-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
An instance of rover retrieve request.txt, attached to this issue, run on Python 3.6 has lead to a critical error sqlite3.OperationalError: data base is locked. The rover retrieve.log shows two stack traces that are leading to the data base is locked error.
CRITICAL 2019-06-25 18:00:08,691: Traceback (most recent call last):
File "/.conda/envs/rover/lib/python3.6/site-packages/rover/__init__.py", line 116, in main
with ProcessManager(config):
File "/.conda/envs/rover/lib/python3.6/site-packages/rover/process.py", line 48, in __enter__
self._check_command(self._command)
File "/.conda/envs/rover/lib/python3.6/site-packages/rover/process.py", line 87, in _check_command
pid, command = self._current_command_inside_transaction()
File "/.conda/envs/rover/lib/python3.6/site-packages/rover/process.py", line 69, in _current_command_inside_transaction
self._db.execute('DELETE FROM rover_processes WHERE pid = ?', (pid,))
sqlite3.OperationalError: database is locked
CRITICAL 2019-06-25 19:47:33,962: Traceback (most recent call last):
File "/.conda/envs/rover/lib/python3.6/site-packages/rover/__init__.py", line 117, in main
execute(config.command, config)
File "/.conda/envs/rover/lib/python3.6/site-packages/rover/__init__.py", line 96, in execute
commands[command][0](config).run(config.args)
File "/.conda/envs/rover/lib/python3.6/site-packages/rover/retrieve.py", line 213, in run
return self.do_run(args, True, RETRIEVE)
File "/.conda/envs/rover/lib/python3.6/site-packages/rover/retrieve.py", line 152, in do_run
return self._fetch()
File "/.conda/envs/rover/lib/python3.6/site-packages/rover/retrieve.py", line 180, in _fetch
n_downloads = self._download_manager.download()
File "/.conda/envs/rover/lib/python3.6/site-packages/rover/manager.py", line 882, in download
self.step(quiet=False)
File "/.conda/envs/rover/lib/python3.6/site-packages/rover/manager.py", line 854, in step
self._update_stats()
File "/.conda/envs/rover/lib/python3.6/site-packages/rover/manager.py", line 906, in _update_stats
self._db.execute('DELETE FROM rover_download_stats', tuple())
sqlite3.OperationalError: database is locked
Please note that both database is locked operations originate from a DELETE FROM sql command.
request.txt
Metadata
Metadata
Assignees
Labels
No labels