Skip to content

sqlite3.OperationalError: database is locked #720

@aitov

Description

@aitov

Hi, today I faced this issue second time on UA0001 camera, the first time was after big release so it is rare but sometimes happening and as result - no captured data for this night
Maybe it could be somehow fixed.

The error log:

Traceback (most recent call last):
  File "/home/pi/source/RMS/RMS/BufferedCapture.py", line 1198, in initVideoDevice
    max_retries=5, retry_interval=1
  File "/home/pi/source/RMS/RMS/BufferedCapture.py", line 934, in createGstreamDevice
    device_url = self.extractRtspUrl(self.config.deviceID)
  File "/home/pi/source/RMS/RMS/BufferedCapture.py", line 580, in extractRtspUrl
    raise ValueError("No RTSP URL found in the input string: {}".format(input_string))
ValueError: No RTSP URL found in the input string: v4l2src device=/dev/video0 !  videoconvert ! video/x-raw,format=GRAY8 ! appsink sync=1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/source/RMS/RMS/BufferedCapture.py", line 1569, in run
    while not self.exit.is_set() and not self.initVideoDevice():
  File "/home/pi/source/RMS/RMS/BufferedCapture.py", line 1261, in initVideoDevice
    conn = getObsDBConn(self.config)
  File "/home/pi/source/RMS/RMS/Formats/ObservationSummary.py", line 96, in getObsDBConn
    """SELECT name FROM sqlite_master WHERE type = 'table' and name = 'records';""").fetchall()
sqlite3.OperationalError: database is locked

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions