Opened 18 years ago
Closed 18 years ago
#4476 closed defect (duplicate)
Database lockup - regular but intermittent
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | highest | Milestone: | |
Component: | general | Version: | 0.10.3 |
Severity: | critical | Keywords: | needinfo |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
I am unable to logon to Trac. I get the error message shown below. If you believe it is a server issue please let me know. This problem has occurred about 5 times in the last 10 minutes. But seems to be an intermittent issue. I am fine when I go to the main page: https://develop.participatoryculture.org/trac/democracy/
However when I try to do anything like https://develop.participatoryculture.org/trac/democracy/query?status=new&milestone=Unassigned&order=id&desc=1 I get the error.
Python Traceback Traceback (most recent call last): File "/usr/lib64/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request dispatcher.dispatch(req) File "/usr/lib64/python2.4/site-packages/trac/web/main.py", line 192, in dispatch req.session = Session(self.env, req) File "/usr/lib64/python2.4/site-packages/trac/web/session.py", line 52, in __init__ self.promote_session(sid) File "/usr/lib64/python2.4/site-packages/trac/web/session.py", line 154, in promote_session db.commit() OperationalError: database is locked
Attachments (0)
Change History (11)
comment:1 by , 18 years ago
Description: | modified (diff) |
---|
comment:2 by , 18 years ago
Milestone: | 0.10.4 |
---|---|
Version: | 0.10.3 → 0.10.2 |
comment:3 by , 18 years ago
Priority: | highest → normal |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
comment:4 by , 18 years ago
Priority: | normal → highest |
---|---|
Resolution: | worksforme |
Status: | closed → reopened |
Our administrator updated our Trac system to 0.10.3 and I and a number of other people are still having issues using Trac. In general I get a message that state the Database is Locked when I try to query or update tickets.
comment:5 by , 18 years ago
Cc: | added |
---|---|
Version: | 0.10.2 → 0.10.3 |
Yes, the upgrade unfortunately did not resolve the problem. The database in question is sqlite, the system is running on Apache 2.0+mod_python.
While typing this, I believe I have discovered why, though:
The DB is *very* large (with plenty of open tickets ;-). Whereas I had doctored up the reports in the past so that they did not pull in the entire ticket under the hidden/RSS field _description (I encountered this awhile ago, but the symptom then for a report failure was a timeout in the web browser, not a Trac fatal error), I cannot do a similar fix to the query page.
Why is this a database locked' error? Why not a
database timeout out' or query result too large'? Or, perhaps the query page should have the very-useful
Show n results starting at result n' type of option?
comment:6 by , 18 years ago
Priority: | highest → low |
---|
comment:7 by , 18 years ago
Priority: | low → highest |
---|
Please do not tamper w/ the ticket status without explaining the reason about your change.
follow-up: 9 comment:8 by , 18 years ago
Description: | modified (diff) |
---|---|
Keywords: | needinfo added |
The site seems to be quite responsive - are you still experiencing locks?
comment:9 by , 18 years ago
Cc: | removed |
---|
Replying to cboos:
The site seems to be quite responsive - are you still experiencing locks?
If you go to the original poster's link (Custom Query page), there is now a checkbox with the text 'Show full description under each result' that did not used to be there, IIRC. Previously, the default action was to show the full description. If you *do* check this box, the page returns a 500 Internal Server Error.
I am positive that this is because the result of the DB query is enormous. It *would* be nice if Trac could handle a 'DB query result too big' problem rather than causing an error page.
However, I do not administer that web site any longer and am not concerned about this specific problem, and so am removing myself from the CC.
comment:10 by , 18 years ago
Milestone: | → 0.10.5 |
---|
Ok, thanks for the precision.
The problem doesn't seem to be related to a huge query (though it seems to be the norm there to include huge logs in ticket descriptions), rather some problematic content.
I narrowed it down to 3 tickets that are extremely slow to load:
the latter alone always triggering a 500.
It would be extremely useful to get access to the source of this ticket…
comment:11 by , 18 years ago
Milestone: | 0.10.5 |
---|---|
Resolution: | → duplicate |
Status: | reopened → closed |
See #3944.
The site reports "Powered by Trac 0.10.2 By Edgewall Software." - not 0.10.3