Project

General

Profile

Actions

Defect #13210

closed

500 with sqlite exception (database locked)

Added by Dietmar H about 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

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

Related to Redmine - Defect #15827: Redmine is using a buggy Rails SQLite adapterClosed

Actions
Actions

Also available in: Atom PDF