Skip to content
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

Locked database #106

Open
kerschke opened this issue Oct 21, 2015 · 1 comment
Open

Locked database #106

kerschke opened this issue Oct 21, 2015 · 1 comment

Comments

@kerschke
Copy link

Hi, is there a way to unlock a locked database? I already ran a couple of jobs on a cluster, but for some reason it is locked now.

Error in sqliteSendQuery(con, statement, bind.data) : 
  error in statement: database is locked

Now, I can not submit further jobs and I also can't collect the results any more :-/

@dagola
Copy link

dagola commented Feb 8, 2016

You can try this: [http://stackoverflow.com/questions/151026/how-do-i-unlock-a-sqlite-database](How do I unlock a SQLite database).

In particular, second answer helped me from time to time. But sometimes it doesn't help. In those cases I copy the corrupted database and copy it back again:

cd /path/to/your/registry
cp BatchJobs.db BatchJobs.corrupt.db
mv BatchJobs.db BatchJobs.db.old
cp BatchJobs.corrupt.db BatchJobs.db

Usually, one of these this works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants