jofpin / jofpin/trape

database is locked

Open
#262 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
9k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

Keep seeing database is locked error.

Process Process-2:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py", line 267, in _bootstrap
self.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/Users/peter/Downloads/trape/core/user.py", line 200, in getHostsAlive
hDB.sentences_victim('delete_hostalive', vId, 2)
File "/Users/peter/Downloads/trape/core/db.py", line 153, in sentences_victim
return self.sql_insert(self.prop_sentences_victim(type, data))
File "/Users/peter/Downloads/trape/core/db.py", line 54, in sql_insert
self.cursor.execute(sentence[0], sentence[1])
OperationalError: database is locked

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with core/user.py around getHostsAlive and core/db.py around sentences_victim and sql_insert, following the reported traceback. Reproduce the multiprocessing scenario that raises OperationalError: database is locked, then confirm the reported operation completes without that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.