database is locked traceback

View previous topic View next topic Go down

database is locked traceback

Post  192_kbps on Tue Dec 03, 2013 9:33 am

I got this traceback when executing mutliple comictagger processes in the same directory but a different selection of files for each. Admittedly, I was hitting the program hard, starting a new instance for each letter of the alphabet. (comictagger.py -s -t CR -f -o -v A*, ...B*, etc.).

I suspect comictagger could benefit from multithreading since it appears to be network-bound (just like downloading a multipart rar is faster than the equivalent nonparted rar), which is the behavior I was approximating with multiple instances.

File "/usr/local/bin/comictagger.py", line 5, in <module>
ctmain()
File "/usr/local/lib/python2.7/dist-packages/comictaggerlib/main.py", line 54, in ctmain
cli.cli_mode( opts, settings )
File "/usr/local/lib/python2.7/dist-packages/comictaggerlib/cli.py", line 184, in cli_mode
process_file_cli( f, opts, settings, match_results )
File "/usr/local/lib/python2.7/dist-packages/comictaggerlib/cli.py", line 424, in process_file_cli
cv_md = actual_issue_data_fetch(matches[0], settings)
File "/usr/local/lib/python2.7/dist-packages/comictaggerlib/cli.py", line 67, in actual_issue_data_fetch
cv_md = ComicVineTalker().fetchIssueData( match['volume_id'], match['issue_number'], settings )
File "/usr/local/lib/python2.7/dist-packages/comictaggerlib/comicvinetalker.py", line 343, in fetchIssueData
volume_results = self.fetchVolumeData( series_id )
File "/usr/local/lib/python2.7/dist-packages/comictaggerlib/comicvinetalker.py", line 212, in fetchVolumeData
cached_volume_result = cvc.get_volume_info( series_id )
File "/usr/local/lib/python2.7/dist-packages/comictaggerlib/comicvinecacher.py", line 304, in get_volume_info
cur.execute( "DELETE FROM Volumes WHERE timestamp < ?", [ str(a_week_ago) ] )
sqlite3.OperationalError: database is locked

192_kbps

Posts : 9
Join date : 2013-12-01

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum