https://prefect.io logo
Title
n

Newskooler

12/10/2020, 3:07 PM
Hi 👋 , Any tips on how I might debug this 🤔
prefect[9118]: Pulling postgres ...
prefect[9118]: Pulling hasura   ...
prefect[9118]: Pulling graphql  ...
prefect[9118]: Pulling towel    ...
prefect[9118]: Pulling apollo   ...
prefect[9118]: Pulling ui       ...
prefect[9118]: [29.6K blob data] Host is already in use by another container
prefect[9118]: [47B blob data]prefect[9118]: ERROR: for cli_postgres_1  Cannot start service postgres: driver failed programming external connectivity on endpoint cli_postgres_1 (32c027fb4da78cf7d569efc0a4f33e5baed8621c161b7c4a2c5efca694b3912c): Error starting userland proxy: listen tcp 0.0.0.0:5432: bind: address already in use
Dec 10 14:53:26 mb-01 prefect[9118]: ERROR: for postgres  Cannot start service postgres: driver failed programming external connectivity on endpoint cli_postgres_1 (32c027fb4da78cf7d569efc0a4f33e5baed8621c161b7c4a2c5efca694b3912c): Error starting userland proxy: listen tcp 0.0.0.0:5432: bind: address already in use
prefect[9118]: Encountered errors while bringing up the project.
g

Greg Roche

12/10/2020, 3:11 PM
I'm no expert but that error suggests to me that there's already something running on the system that's bound to port 5432, so prefect's postgres instance can't start
you could either kill whatever is already running on port 5432, or start the server with
prefect server start --postgres-port x
where
x
is a port which isn't already being used on the machine
n

Newskooler

12/10/2020, 3:15 PM
Thanks, so I did that and killed the process and cleaned all docker containers and images.
But then I got another error:
FATAL: could not write lock file "postmaster.pid": No space left on device
upon starting the server
j

Joël Luijmes

12/10/2020, 3:17 PM
Well it says what is wrong doesn’t? 😅 Your disk is full. No kidding, you probably should clean up your docker (
docker system prune
check docs for everything it try to do), or increase your docker volume (in case of mac, not sure how windows handles it)
n

Newskooler

12/10/2020, 3:18 PM
The thing is, i do have plenty of GBs of space (200+) that’s available - hence my confusion : /
j

Joël Luijmes

12/10/2020, 3:19 PM
Is that the disk of your machine or what docker has access to? Because those are different things.
Kinda depends on your machiene / OS and how you setup docker
If it is macos for instance, checkout the tips I gave, either clean up your docker volume or increase it in size 🙂
n

Newskooler

12/10/2020, 3:20 PM
Ubuntu is what I am using. The most “recent” error i saw is this
Error: (psycopg2.OperationalError) could not translate host name "postgres" to address: Name or service not known
I did do
docker system prune
and “reclaimed” 😄 17 more gigs, so that was nice. Thanks for that.
I found the problem … the location where Prefect saves data is full.
How can I clean it up? It’s 100GB, which is crazy considering I have used it for 20 days or so.
j

Joël Luijmes

12/10/2020, 3:39 PM
Woah that is alot, no idea, not running prefect in production yet. But I could imagine if you use the LocalResult (or some other Result mechanism) it takes up space, if that is the data you are referring to, see if you can disable it or clean it up after a run?
n

Newskooler

12/10/2020, 3:42 PM
I don’t know what’s safe to delete. This is not
--volume-path
but instead it’s the task
flow.storage = Local(directory='/this/location)
Do you recon it’s save to clean up after evey task or once in a while?
j

Joël Luijmes

12/10/2020, 9:24 PM
Don’t take my word for it, but AFAIK the results is only used for caching. Such that you can restart at a later point in the flow, without having to recalculate earlier tasks. Best to check docs to be sure 🙂
👍 1