Defect #13210
closed500 with sqlite exception (database locked)
0%
Description
After moving our Redmine installation to another server (slower HW then before, but in Intranet) and updating it from 1.3 to 2.2.3, every few days it stops working because of locked DB. Restarting Apache solves the problem.
Usually the problems starts with a log entry
ActiveRecord::StatementInvalid (SQLite3::BusyException: cannot rollback transaction - SQL statements in progress: rollback transaction):
After that, every write access results in
ActiveRecord::StatementInvalid (SQLite3::BusyException: database is locked: commit transaction):
Before the server and version migration we used it for about 1 year, with comparable concurrency (~ 10 team members) and this didn't happen once.
I already tried adding
timeout: 10000
to database.yml with no luck.
crontabs installed are:
31 * * * * cd /usr/share/redmine && ./script/rails runner "Repository.fetch_changesets" -e production 01 7 * * 1-4 cd /usr/share/redmine && rake redmine:send_reminders days=7 RAILS_ENV="production" > /dev/null
I know moving to a "real" DB would solve this problem, but I would prefer avoiding that, since migration wouldn't be a trivial issue and sqlite has it's advantages (e.g. very easy to backup). I think in our case it may even be faster then with MySQL.
Any suggestions are welcome.
Related issues