-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: database is locked #1201
Comments
Same with v0.25.0 |
Hey @auipga, we have a ticket for this here: #1067, but perhaps it's not so easy to find without "database is locked" in the title. Did you run just a single deployment, or did you attempt several? We're working on resolving the issue, but in the meantime you should be able to avoid the bug by letting a deployment finish before starting a new one (which will be the case if you don't exit the deployment stream). If you do end up with multiple deployments in the building/loading states, you should be able to reset it with a |
Although waiting a minute or more between the deployments reduced the likelihood of the mentioned error it still occurred sometimes. (It drove me a little crazy because I changed things back and forth but getting inconsistent results) I read #1067 back when I created this issue but I thought that a crashed deployment is not running anymore hence no concurrency. I'll try your suggestion to |
Ah, okay, thanks for the info! It does seem like this error can occur when having an active deployment and one building too, which is unexpected. We're about to make a change in the coming week that will stop writing logs to the deployer sqlite database, this should alleviate this issue since logs are the majority of writes to the DB. In the slightly longer term we aim to completely remove this DB from deployers (the container your service runs in), and of course support interuptible builds as stated in #1067. |
Although this bug is more rare now, it can still happen. |
Installed cargo-shuttle for the first time. Also ❯ cargo shuttle project restart
Project "helo" is destroyed
Run `cargo shuttle project start` to recreate project environment on Shuttle.
Project "helo" is ready
Your project will sleep if it is idle for 30 minutes.
To change the idle time refer to the docs: https://docs.shuttle.rs/getting-started/idle-projects
Run `cargo shuttle deploy --allow-dirty` to deploy your Shuttle service.
❯ cargo shuttle project restart --allow-dirty
error: unexpected argument '--allow-dirty' found
Usage: cargo-shuttle project restart [OPTIONS] |
|
Well the first --allow-dirty is a different issue as you said and probably I mixed the concept of deploy and start at the moment. |
This bug has become a lot more common now and we have raised the priority to solve it. |
Any idea how can I fix this ? |
The solution is usually to restart the project and deploy again. |
Update: This bug has been hard to reproduce, but it looks to be less frequent now than in previous weeks. We are also working on a bigger change that should eliminate this bug once and for all (getting rid of the sqlite dbs in deployers). |
I just got realized I got this issue. Even after a
I tried to update the |
We have continued investigating this, and we made some improvements in 0.39.0 that we hope help reduce the frequency of this bug. |
The probability of getting this error seems to be reduced since 0.39.0 |
Improvements in recent releases has made this error very rare now. We are continuing work on getting rid of it completely. |
Closing due to being solved on the shuttle.dev platform. |
What happened?
Regularly reading this error while changing nothing and just rerunning the deployment:
Version
v0.24.0
Which operating system(s) are you seeing the problem on?
In deployment
Which CPU architectures are you seeing the problem on?
In deployment
Relevant log output
Duplicate declaration
The text was updated successfully, but these errors were encountered: