Skip to content

Prefect Server (v2.20) silently crashing in Docker Compose on Ubuntu 24.04 LTS #18007

Answered by desertaxle
richelieuli asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @richelieuli!

I noticed this comment in your server Dockerfile:

# Prefect images usually have ENTRYPOINT and CMD set; we rely on their defaults

The Prefect Docker images set an ENTRYPOINT, but they don't set a default command. If no command is provided, the entrypoint will print the Prefect ASCII art and then immediately exit with a 0 exit code.

You can see this behavior by running something like this:

docker run prefecthq/prefect:2.20-python3.10

which will print the ASCII art and exit like you're seeing.

To fix this, I think you should add the prefect server start command to your prefect-server service in your docker-compose.yml.

Let me know if that solves the issue for you. We can …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@richelieuli
Comment options

Answer selected by richelieuli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants