Hi! I'm new to Prefect and wish to get some help from experts.
We have a POC system using prefect. We just do "prefect server start" to start a local server, and "prefect agent start" on the same server to run the code. Everything works fine for weeks.
After some heavy load testing, we started to get error saying "Unexpected error: OSError(28, 'No space left on device') "
If we run our code directly using flow.run(), it works fine. But if the same code for flow.register(), it failed with "Unexpected error: OSError(28, 'No space left on device') "
We have tried to remove all images and clear docker volumes, but still getting this error. The disk space usage looks OK on that server.
Can someone help to shed some light on this issue? Thanks in advance
z
Zanie
12/21/2020, 7:14 PM
This is likely due to flow result storage which defaults to
Is there an easy way to change the value of the prefect.config.home_dir setting?
z
Zanie
12/21/2020, 9:17 PM
Yep! Just change your config file
Zanie
12/21/2020, 9:18 PM
Or pass an environment variable
Zanie
12/21/2020, 9:18 PM
Copy code
# base configuration directory (typically you won't change this!)
home_dir = "~/.prefect"
in the config file
Zanie
12/21/2020, 9:19 PM
I’m not actually sure what happens if you change that because then it’ll look for things elsewhere
Zanie
12/21/2020, 9:19 PM
I’d recommend just changing your flows to use a
LocalResult(...)
with a set directory
f
Frank Cheng
12/21/2020, 10:25 PM
I deleted the files in /home/fcheng1/.prefect/results and our flows start successful again! Thank you very much! I'll try to implement the LocalResult method to resolve this properly. 🙂
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.