Roundup Tracker - Issues

Issue 1581388

classification
db initialisation fails if db locked
Type: Severity: normal
Components: Installation Versions:
process
Status: closed wont fix
:
: richard : midtoad, richard
Priority: normal :

Created on 2006-10-20 16:10 by midtoad, last changed 2006-11-09 03:16 by richard.

Messages
msg2315 Author: [hidden] (midtoad) Date: 2006-10-20 16:10
the db initialisation (with roundup-admin initialise)
will fail if there is a lock on the db. That is, the
initialisation needs to delete the db, and if it
cannot, the initialisation will fail.  Fair enough. 

BUT, even though the db could not be deleted, the
backend_name file will be deleted. If you then release
the lock on db, and re-run the initialisation, now it
will fail in line 73 of instance.py in get_backend_name
complaining that there is no backend_name file.  

The workaround is:
1. create this file by hand (it contains only the name
of the backend (e.g. sqlite)
2. re-run the install (but then you'll lose your
config.ini changes). 
msg2316 Author: [hidden] (richard) Date: 2006-11-09 03:16
Logged In: YES 
user_id=6405

I'm not sure of a sane way to work around this. I need to nuke the database contents before I make any changes to the database. I'm 
afraid that there's just going to have to be a work-around, as you've noted.
History
Date User Action Args
2006-10-20 16:10:58midtoadcreate