https://linen.dev logo
How to delete a project that doesn't exist locally
# help
l
I tried spinning up a new project and got an error in the middle of it (not sure why) so I deleted the local files that were generated to try again but now I can't create a new project with the same name because it already exists but I also can't delete it because shuttle can't find it. Any suggestions for how to solve this issue? I tried
Copy code
cargo shuttle project rm --name my-project
Which gets me
Copy code
Error: Could not locate the root of a cargo project. Are you inside a cargo project? You can also use `--working-directory` to locate your cargo project.
k
Just running the delete command from within another project (or any cargo project directory), but passing the name of the one you want to delete should work.
l
That worked, thanks!
a
Hello! I seem to be experiencing the same problem. However when I run the
delete
or the
project rm
command, I get the following error
Copy code
Error: 503 Service Unavailable
message: project not ready
I am specifying the name of course
k
Hey! What is the output of
cargo shuttle project status
(if you pass in the name, or call it from the project directory with the name set in Cargo.toml or Shuttle.toml)?
a
At the moment
Copy code
project '[redacted]' is destroyed
k
Ah, so this is the state the project should be in after
project rm
. It means the container is offline, so if you're sending commands that need the container to be online it will error (but the error message doesn't give a lot of info).
a
Indeed, however, after using the
Copy code
cargo shuttle deploy --name [redacted] --allow-dirty
command I get the following output
Copy code
Error: 503 Service Unavailable
message: project not ready
That is also the reason i attempted to delete it at the first place
k
Ah, yes, so you'd need to do
cargo shuttle project new
first, which I realize is a bit confusing as I'm writing this 😄
Reworking this flow is high on our list at the moment, but just to clarify, your name will stay reserved for you on doing a
project rm
and your DB state will not be cleared, so doing
project rm
->
project new
is more of a restart.
a
Yep now it is deploying successfully! Thank you for your help! It was definitely somewhat confusing 😅
Keep up the good work! Looking forward to seeing the reworked flow when it is done!
k
Thanks, have fun!
6 Views