billowy-diamond-53482
10/19/2022, 3:53 PMcargo-shuttle 0.7.0 with my Cargo.toml having:
shuttle-secrets = "0.7.0"
shuttle-service = { version = "0.7.0", features = ["bot-serenity"] }
shuttle-shared-db = { version = "0.7.0", features = ["postgres"] }
# Commands
## Reset everything
cargo shuttle project rm
cargo shuttle project new
The listing cargo shuttle deployment list confirms that I have some past deployment with these resources:
- database::shared::postgres
- No secrets are linked to this service <- that one is not normal, I have a Secrets.toml
## Deletion
When I try to delete those with cargo shuttle delete I get:
Error: 500 Internal Server Error
message: Persistence failure: Database error: error returned from database: (code: 787) FOREIGN KEY constraint failed
My current database is empy (no data, no table) and my project do not have any FK for now.
## Deployment
If I try to push my code with cargo shuttle deploy, the secret_store crate fails to find stuff from my Secrets.toml (probably linked to the previous No secrets are linked to this service).
If you have any idea how to make those two commands work again, it would be greatly appreciated 🙏.stocky-kangaroo-53672
10/19/2022, 4:21 PMSecrets.toml in .gitignore causes them to not be archived. Hence why they are not set. This is a known issue we have an open ticket for. So should get to it soonish.
2. The foreign key constraint is an internal shuttle error on our deployments database. This one is currently not that high on our fix list (having some other emergencies 😅 ) but it will also get fixed. The current idea with cargo shuttle delete is to only stop the running deployment and not delete all resources.
TL;DR; the deploy should work by temporarily removing Secrets.toml from .gitignorebillowy-diamond-53482
10/19/2022, 4:36 PMstocky-kangaroo-53672
10/24/2022, 9:30 AMbillowy-diamond-53482
10/24/2022, 10:05 AM