Elliot Oram
09/16/2021, 5:02 PMprefect server start --postgres-port 5433
to start the server (have another postgres instance on my machine hence the port diff) then I get the following error. However despite this and the logs spitting out endless errors the I can still connect agents and register flows and they still work. Any ideas how I can fix this?Zach Angell
09/16/2021, 5:05 PMprefect server database upgrade
Elliot Oram
09/16/2021, 5:13 PM$ prefect server database upgrade
Usage: prefect server [OPTIONS] COMMAND [ARGS]...
Try "prefect server -h" for help.
Error: No such command "database".
Kevin Kho
09/16/2021, 5:14 PMElliot Oram
09/16/2021, 5:15 PMZach Angell
09/16/2021, 5:56 PMprefect-server database upgrade
Elliot Oram
09/17/2021, 7:05 AM$ prefect-server database upgrade
zsh: command not found: prefect-server
Zach Angell
09/17/2021, 1:53 PMlog_flow_run_id_fkey
was added over a year ago.
It seems like something is trying to write logs for a flow run that no longer exists.
• Do you know what is trying to write these logs? The most likely candidate is a Prefect agent
• Did you persist data when restarting Server? If not, it's possible any running flow runs would try to write remaining logs and generate these errors