Modify

Ticket #388 (closed defect: wontfix)

Opened 15 years ago

Last modified 15 years ago

brpt/importscript.py traceback when anyone has the webpage open

Reported by: bradshaw Owned by: desai
Priority: major Milestone:
Component: bcfg2-reports Version:
Keywords: Cc:

Description

So this has been happening off and on for the longest time and I think I have found the true cause of this. So the importscript.py will traceback complaining the DB is locked

Traceback (most recent call last):

File "/usr/lib/python2.3/site-packages/brpt/importscript.py", line 235, in ?

connection._commit()

File "/usr/lib/python2.3/site-packages/django/db/backends/sqlite3/base.py", line 70, in _commit

self.connection.commit()

pysqlite2.dbapi2.OperationalError?: database is locked but what I just proved is that the database is locked due to someone having the website open. So my guess is that the fix is to fix it such that the web opens the DB readonly if that is even possible.

Attachments

Change History

comment:1 Changed 15 years ago by desai

  • Status changed from new to closed
  • Resolution set to wontfix

This is an sqlite limitation. Switch to mysql and the problem should disappear.

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.