elsa-workflows / elsa-core

A .NET workflows library
https://v3.elsaworkflows.io/
MIT License
6.16k stars 1.13k forks source link

V3 - Server + Studio Docker image not starting #4940

Open gerrewsb opened 6 months ago

gerrewsb commented 6 months ago

Hi,

Our company is in the process of migrating from Microsoft WWF to Elsa Workflows. I Pulled the elsaworkflows/elsa-server-and-studio-v3:latest image in Docker Desktop and set ASPNETCORE_ENVIRONMENT to Development and PYTHONNET_PYDLL to /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0 and the port to 13000 like the docs suggest.

I can see the application starting correctly and listening on port 8080 of the container (13000 on my device). however, when i browse to localhost:13000 either manually of by clicking the link of the docker container i just get a page that gives no response, no login request whatsoever. image

Am i doing something wrong here?

Alternatively i followed the guide to build Elsa Server in a .NET8 project by adding the packages and setting up Program.cs, i followed the guide to the letter but again it's not starting correctly. This one is think is related to an endpoint being registered multiple times: image

Hope i posted this in the right place.

Kind regards

glime-ai[bot] commented 6 months ago

Based on the information provided, it seems like you are encountering issues with accessing the Elsa Workflows server and studio after pulling the Docker image and running it. Additionally, you are facing issues with setting up Elsa Server in a .NET 8 project.

For the Docker issue, it's important to ensure that the Docker container is running and properly configured. Since you mentioned setting ASPNETCORE_ENVIRONMENT to Development and PYTHONNET_PYDLL to the specified path, please ensure that these environment variables are necessary and correctly set for the Elsa Docker image you are using. The PYTHONNET_PYDLL variable is typically related to Python interop and may not be relevant unless you have specific Python dependencies.

The port mapping seems correct, as you've mapped the container's port 8080 to port 13000 on your host machine. However, the screenshot you've provided indicates that there might be an issue with the server not responding. This could be due to several reasons, such as the container not starting properly, a misconfiguration, or a network issue.

For the .NET 8 project setup, the error message about an endpoint being registered multiple times suggests there might be a conflict in your Program.cs configuration. This could be due to duplicate calls to configure services or middleware that are trying to bind to the same path or route.

To troubleshoot these issues, I would recommend the following steps:

  1. For the Docker issue:

    • Ensure that the Docker container is running by executing docker ps.
    • Check the container logs for any errors or messages that could indicate what the issue might be using docker logs <container_id>.
    • Verify that there are no firewall or network issues preventing access to the specified port on localhost.
  2. For the .NET 8 project setup:

    • Review the Program.cs file and ensure that there are no duplicate calls to app.MapControllers() or similar methods that register endpoints.
    • Check the startup configuration and remove any redundant service registrations.
    • Look for any custom middleware that might be interfering with the default routing.

If you continue to face issues, please provide more detailed logs or error messages, and ensure that the configuration steps you've followed match the official documentation for the version of Elsa Workflows you are using.

For further assistance, you can refer to the official Elsa Workflows documentation and resources:

If you have followed all the steps correctly and the issue persists, it might be helpful to reach out to the Elsa Workflows community or support for more specific guidance.

gerrewsb commented 6 months ago

i got the .NET8 program to run by making some small tweaks.

The Docker image is still not working unfortunately. I have to set the PYTHONNET_PYDLL becuse if i don't the application doesn't start because it can't load the Python engine: image

I can confirm that the docker image is running: image

There are no errors in the logs, just the usual warnings about EF Core but that's normal. image

I tried different ports (that i know work from other projects) and it's the same issue.

GerhardKainz commented 4 months ago

Hi,

I have the same Docker Issue. This is how I started Elsa: image

After getting the Error in the browser I tried

image

and got "connection was unexpectedly closed BR Gerhard