Pooyan
12/27/2023, 5:44 PMMarvin
12/27/2023, 5:45 PMprefect config set PREFECT_API_URL="<http://127.0.0.1:4200/api>"
Please replace 127.0.0.1:4200
with your actual server instance's IP and port.
2. Ensure you are using a persistent storage backend for the Prefect server that will retain the server state between restarts. Using ephemeral storage will result in loss of data when the server restarts.
3. Review the Prefect Server's logs to identify if there were errors during shutdown or startup that could have led to data loss.
If your deployments and flows have been lost after a restart, this might indicate that the server's database was not properly persisted. It's critical to ensure that the database state remains intact between restarts, which typically involves mounting a persistent volume to the database service when deploying Prefect Server with Docker or Kubernetes.
If persistent information was expected and it is still missing after a restart, you may have encountered a bug or an misconfiguration. In such an event, I recommend checking the Prefect community Slack and GitHub for posts from others who have encountered similar issues. If you are unable to find the solution or you believe there's a bug, you can open a new issue on the Prefect GitHub repository to get help from the community and maintainers.
Would you like to proceed with searching in the Prefect community resources or GitHub issues?Pooyan
12/27/2023, 5:49 PMMarvin
12/27/2023, 5:50 PMNate
12/27/2023, 7:50 PMPREFECT_API_URL
value?Pooyan
12/27/2023, 7:51 PMNate
12/27/2023, 7:52 PMPooyan
12/27/2023, 7:54 PMNate
12/27/2023, 7:55 PM