question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connection already open error: (hidden keys: 24)} failed with OperationalError

See original GitHub issue

A few minutes after launching my container Frigate starts erroring out. The web gui still loads up the page but no cameras - just the spinning wheel. I began to experience this error when I added the ‘clips’ and ‘snapshot’ configuration lines to each individual camera as well as having some global configs for these at the end. The reason I did this primarily is because I wanted the cameras to start with clips and snapshots enabled which doesn’t appear to be something you can set globally and I didn’t want to have to keep opening the web gui to toggle clips and snapshots on each time the container restarted. If I remove the extra config from the cameras it works again. The problems continues even when the extra config from the cameras is removed. Also I should add my database is local but the clips and recordings are on a NAS but mapped through to the container using a bind mount.

Version blakeblackshear/frigate:stable-amd64nvidia

Config file Include your full config file wrapped in triple back ticks.

  # Required: host name
  host: x.x.x.x
  # Optional: port (default: shown below)
  port: 1883
  # Optional: topic prefix (default: shown below)
  # WARNING: must be unique if you are running multiple instances
  topic_prefix: frigate
  # Optional: client id (default: shown below)
  # WARNING: must be unique if you are running multiple instances
  client_id: frigate
  # Optional: user
  user: homeassistant
  # Optional: password
  # NOTE: Environment variables that begin with 'FRIGATE_' may be referenced in {}.
  #       eg. password: '{FRIGATE_MQTT_PASSWORD}'
  password: xxxxxxx
  # Optional: interval in seconds for publishing stats (default: shown below)
  stats_interval: 60

cameras:
  # Name of your camera

  doorbell:
    ffmpeg:
      inputs:
        - path: rtsp://xxxx:xxx()@xxxxxx/cam/realmonitor?channel=1&subtype=1
          roles:
            - detect
            - rtmp
        - path: rtsp://xxxxx:xxxxxxxxx()@x.x.x.82:554/cam/realmonitor?channel=1&subtype=0
          roles:
            - clips
            - record
    width: 720
    height: 576
    fps: 15
    clips:
      # Required: enables clips for the camera (default: shown below)
      # This value can be set via MQTT and will be updated in startup based on retained value
      enabled: True
      # Optional: Number of seconds before the event to include in the clips (default: shown below)
      pre_capture: 3
      # Optional: Number of seconds after the event to include in the clips (default: shown below)
      post_capture: 3
      # Optional: Objects to save clips for. (default: all tracked objects)
      objects:
        - person
        - dog
      # Optional: Restrict clips to objects that entered any of the listed zones (default: no required zones)
      required_zones: []
      # Optional: Camera override for retention settings (default: global values)
      retain:
        # Required: Default retention days (default: shown below)
        default: 40
        # Optional: Per object retention days
        objects:
          person: 15
          dog: 10
    snapshots:
      # Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
      # This value can be set via MQTT and will be updated in startup based on retained value
      enabled: True
      # Optional: print a timestamp on the snapshots (default: shown below)
      timestamp: True
      # Optional: draw bounding box on the snapshots (default: shown below)
      bounding_box: False
      # Optional: crop the snapshot (default: shown below)
      crop: False
      # Optional: height to resize the snapshot to (default: original size)
      height: 175
      # Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
      required_zones: []
      # Optional: Camera override for retention settings (default: global values)
      retain:
        # Required: Default retention days (default: shown below)
        default: 10
        # Optional: Per object retention days
        objects:
          person: 15

  porch:
    ffmpeg:
      inputs:
        - path: rtsp://xxxxx:xxxxxxxxx@x.x.x.70:554/Streaming/Channels/102
          roles:
            - detect
            - rtmp
        - path: rtsp://xxxxx:xxxxxxxxx@x.x.x.70:554/Streaming/Channels/101
          roles:
            - clips
            - record
    width: 640
    height: 480
    fps: 10
    clips:
      # Required: enables clips for the camera (default: shown below)
      # This value can be set via MQTT and will be updated in startup based on retained value
      enabled: True
      # Optional: Number of seconds before the event to include in the clips (default: shown below)
      pre_capture: 3
      # Optional: Number of seconds after the event to include in the clips (default: shown below)
      post_capture: 3
      # Optional: Objects to save clips for. (default: all tracked objects)
      objects:
        - person
        - dog
      # Optional: Restrict clips to objects that entered any of the listed zones (default: no required zones)
      required_zones: []
      # Optional: Camera override for retention settings (default: global values)
      retain:
        # Required: Default retention days (default: shown below)
        default: 40
        # Optional: Per object retention days
        objects:
          person: 15
          dog: 10
    snapshots:
      # Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
      # This value can be set via MQTT and will be updated in startup based on retained value
      enabled: True
      # Optional: print a timestamp on the snapshots (default: shown below)
      timestamp: True
      # Optional: draw bounding box on the snapshots (default: shown below)
      bounding_box: False
      # Optional: crop the snapshot (default: shown below)
      crop: False
      # Optional: height to resize the snapshot to (default: original size)
      height: 175
      # Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
      required_zones: []
      # Optional: Camera override for retention settings (default: global values)
      retain:
        # Required: Default retention days (default: shown below)
        default: 10
        # Optional: Per object retention days
        objects:
          person: 15


  garden_rear:
    ffmpeg:
      inputs:
        - path: rtsp://xxxxx:xxxxxxxxx@x.x.x.71:554/Streaming/Channels/102
          roles:
            - detect
            - rtmp
        - path: rtsp://xxxxx:xxxxxxxxx@x.x.x.71:554/Streaming/Channels/101
          roles:
            - clips
            - record
    width: 640
    height: 360
    fps: 15
    clips:
      # Required: enables clips for the camera (default: shown below)
      # This value can be set via MQTT and will be updated in startup based on retained value
      enabled: True
      # Optional: Number of seconds before the event to include in the clips (default: shown below)
      pre_capture: 3
      # Optional: Number of seconds after the event to include in the clips (default: shown below)
      post_capture: 3
      # Optional: Objects to save clips for. (default: all tracked objects)
      objects:
        - person
        - dog
      # Optional: Restrict clips to objects that entered any of the listed zones (default: no required zones)
      required_zones: []
      # Optional: Camera override for retention settings (default: global values)
      retain:
        # Required: Default retention days (default: shown below)
        default: 40
        # Optional: Per object retention days
        objects:
          person: 15
          dog: 10
    snapshots:
      # Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
      # This value can be set via MQTT and will be updated in startup based on retained value
      enabled: True
      # Optional: print a timestamp on the snapshots (default: shown below)
      timestamp: True
      # Optional: draw bounding box on the snapshots (default: shown below)
      bounding_box: False
      # Optional: crop the snapshot (default: shown below)
      crop: False
      # Optional: height to resize the snapshot to (default: original size)
      height: 175
      # Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
      required_zones: []
      # Optional: Camera override for retention settings (default: global values)
      retain:
        # Required: Default retention days (default: shown below)
        default: 10
        # Optional: Per object retention days
        objects:
          person: 15


  alley:
    ffmpeg:
      inputs:
        - path: rtsp://xxxxx:xxxxxxxxx@x.x.x.72:554/Streaming/Channels/102
          roles:
            - detect
            - rtmp
        - path: rtsp://xxxxx:xxxxxxxxx@x.x.x.72:554/Streaming/Channels/101
          roles:
            - clips
            - record
    width: 480
    height: 640
    fps: 15
    clips:
      # Required: enables clips for the camera (default: shown below)
      # This value can be set via MQTT and will be updated in startup based on retained value
      enabled: True
      # Optional: Number of seconds before the event to include in the clips (default: shown below)
      pre_capture: 3
      # Optional: Number of seconds after the event to include in the clips (default: shown below)
      post_capture: 3
      # Optional: Objects to save clips for. (default: all tracked objects)
      objects:
        - person
        - dog
      # Optional: Restrict clips to objects that entered any of the listed zones (default: no required zones)
      required_zones: []
      # Optional: Camera override for retention settings (default: global values)
      retain:
        # Required: Default retention days (default: shown below)
        default: 40
        # Optional: Per object retention days
        objects:
          person: 15
          dog: 10
    snapshots:
      # Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
      # This value can be set via MQTT and will be updated in startup based on retained value
      enabled: True
      # Optional: print a timestamp on the snapshots (default: shown below)
      timestamp: True
      # Optional: draw bounding box on the snapshots (default: shown below)
      bounding_box: False
      # Optional: crop the snapshot (default: shown below)
      crop: False
      # Optional: height to resize the snapshot to (default: original size)
      height: 175
      # Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
      required_zones: []
      # Optional: Camera override for retention settings (default: global values)
      retain:
        # Required: Default retention days (default: shown below)
        default: 10
        # Optional: Per object retention days
        objects:
          person: 15


  street:
    ffmpeg:
      inputs:
        - path: rtsp://xxxxx:xxxxxxxxx@x.x.x.73:554/Streaming/Channels/102
          roles:
            - detect
            - rtmp
        - path: rtsp://xxxxx:xxxxxxxxx@x.x.x.73:554/Streaming/Channels/101
          roles:
            - clips
            - record
      global_args:
        -hide_banner 
        -loglevel error
    width: 640
    height: 360
    fps: 10
    clips:
      # Required: enables clips for the camera (default: shown below)
      # This value can be set via MQTT and will be updated in startup based on retained value
      enabled: True
      # Optional: Number of seconds before the event to include in the clips (default: shown below)
      pre_capture: 3
      # Optional: Number of seconds after the event to include in the clips (default: shown below)
      post_capture: 3
      # Optional: Objects to save clips for. (default: all tracked objects)
      objects:
        - person
        - dog
        - car
      # Optional: Restrict clips to objects that entered any of the listed zones (default: no required zones)
      required_zones: []
      # Optional: Camera override for retention settings (default: global values)
      retain:
        # Required: Default retention days (default: shown below)
        default: 40
        # Optional: Per object retention days
        objects:
          person: 15
          dog: 10
          car: 10
    snapshots:
      # Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
      # This value can be set via MQTT and will be updated in startup based on retained value
      enabled: True
      # Optional: print a timestamp on the snapshots (default: shown below)
      timestamp: True
      # Optional: draw bounding box on the snapshots (default: shown below)
      bounding_box: False
      # Optional: crop the snapshot (default: shown below)
      crop: False
      # Optional: height to resize the snapshot to (default: original size)
      height: 175
      # Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
      required_zones: []
      # Optional: Camera override for retention settings (default: global values)
      retain:
        # Required: Default retention days (default: shown below)
        default: 10
        # Optional: Per object retention days
        objects:
          person: 15

  garage:
    ffmpeg:
      inputs:
        - path: rtsp://xxxxx:xxxxxxxxx@x.x.x.74:554/Streaming/Channels/102
          roles:
            - detect
            - rtmp
        - path: rtsp://xxxxx:xxxxxxxxx@x.x.x.74:554/Streaming/Channels/101
          roles:
            - clips
            - record
    width: 640
    height: 480
    fps: 20
    clips:
      # Required: enables clips for the camera (default: shown below)
      # This value can be set via MQTT and will be updated in startup based on retained value
      enabled: True
      # Optional: Number of seconds before the event to include in the clips (default: shown below)
      pre_capture: 3
      # Optional: Number of seconds after the event to include in the clips (default: shown below)
      post_capture: 3
      # Optional: Objects to save clips for. (default: all tracked objects)
      objects:
        - person
        - dog
      # Optional: Restrict clips to objects that entered any of the listed zones (default: no required zones)
      required_zones: []
      # Optional: Camera override for retention settings (default: global values)
      retain:
        # Required: Default retention days (default: shown below)
        default: 40
        # Optional: Per object retention days
        objects:
          person: 15
          dog: 10
    snapshots:
      # Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
      # This value can be set via MQTT and will be updated in startup based on retained value
      enabled: True
      # Optional: print a timestamp on the snapshots (default: shown below)
      timestamp: True
      # Optional: draw bounding box on the snapshots (default: shown below)
      bounding_box: False
      # Optional: crop the snapshot (default: shown below)
      crop: False
      # Optional: height to resize the snapshot to (default: original size)
      height: 175
      # Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
      required_zones: []
      # Optional: Camera override for retention settings (default: global values)
      retain:
        # Required: Default retention days (default: shown below)
        default: 10
        # Optional: Per object retention days
        objects:
          person: 15


  hall:
    ffmpeg:
      inputs:
        - path: rtsp://xxxxx:xxxxxxxxx@x.x.x.75:554/Streaming/Channels/102
          roles:
            - detect
            - rtmp
        - path: rtsp://xxxxx:xxxxxxxxx@x.x.x.75:554/Streaming/Channels/101
          roles:
            - clips
            - record
    width: 640
    height: 480
    fps: 15
    clips:
      # Required: enables clips for the camera (default: shown below)
      # This value can be set via MQTT and will be updated in startup based on retained value
      enabled: True
      # Optional: Number of seconds before the event to include in the clips (default: shown below)
      pre_capture: 3
      # Optional: Number of seconds after the event to include in the clips (default: shown below)
      post_capture: 3
      # Optional: Objects to save clips for. (default: all tracked objects)
      objects:
        - person
        - dog
      # Optional: Restrict clips to objects that entered any of the listed zones (default: no required zones)
      required_zones: []
      # Optional: Camera override for retention settings (default: global values)
      retain:
        # Required: Default retention days (default: shown below)
        default: 40
        # Optional: Per object retention days
        objects:
          person: 15
          dog: 10
    snapshots:
      # Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
      # This value can be set via MQTT and will be updated in startup based on retained value
      enabled: True
      # Optional: print a timestamp on the snapshots (default: shown below)
      timestamp: True
      # Optional: draw bounding box on the snapshots (default: shown below)
      bounding_box: False
      # Optional: crop the snapshot (default: shown below)
      crop: False
      # Optional: height to resize the snapshot to (default: original size)
      height: 175
      # Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
      required_zones: []
      # Optional: Camera override for retention settings (default: global values)
      retain:
        # Required: Default retention days (default: shown below)
        default: 10
        # Optional: Per object retention days
        objects:
          person: 15

  garden:
    ffmpeg:
      inputs:
        - path: rtsp://xxxxx:xxxxxxxxx@x.x.x.76:554/Streaming/Channels/102
          roles:
            - detect
            - rtmp
        - path: rtsp://xxxxx:xxxxxxxxx@x.x.x.76:554/Streaming/Channels/101
          roles:
            - clips
            - record
    width: 704
    height: 576
    fps: 15
    clips:
      # Required: enables clips for the camera (default: shown below)
      # This value can be set via MQTT and will be updated in startup based on retained value
      enabled: True
      # Optional: Number of seconds before the event to include in the clips (default: shown below)
      pre_capture: 3
      # Optional: Number of seconds after the event to include in the clips (default: shown below)
      post_capture: 3
      # Optional: Objects to save clips for. (default: all tracked objects)
      objects:
        - person
        - dog
      # Optional: Restrict clips to objects that entered any of the listed zones (default: no required zones)
      required_zones: []
      # Optional: Camera override for retention settings (default: global values)
      retain:
        # Required: Default retention days (default: shown below)
        default: 40
        # Optional: Per object retention days
        objects:
          person: 15
          dog: 10
    snapshots:
      # Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
      # This value can be set via MQTT and will be updated in startup based on retained value
      enabled: True
      # Optional: print a timestamp on the snapshots (default: shown below)
      timestamp: True
      # Optional: draw bounding box on the snapshots (default: shown below)
      bounding_box: False
      # Optional: crop the snapshot (default: shown below)
      crop: False
      # Optional: height to resize the snapshot to (default: original size)
      height: 175
      # Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
      required_zones: []
      # Optional: Camera override for retention settings (default: global values)
      retain:
        # Required: Default retention days (default: shown below)
        default: 10
        # Optional: Per object retention days
        objects:
          person: 15


  balcony:
    ffmpeg:
      inputs:
        - path: rtsp://xxxxx:xxxxxxxxx@x.x.x.77:554/Streaming/Channels/102
          roles:
            - detect
            - rtmp
        - path: rtsp://xxxxx:xxxxxxxxx@x.x.x.77:554/Streaming/Channels/101
          roles:
            - clips
            - record
    width: 640
    height: 480
    fps: 15
    clips:
      # Required: enables clips for the camera (default: shown below)
      # This value can be set via MQTT and will be updated in startup based on retained value
      enabled: True
      # Optional: Number of seconds before the event to include in the clips (default: shown below)
      pre_capture: 3
      # Optional: Number of seconds after the event to include in the clips (default: shown below)
      post_capture: 3
      # Optional: Objects to save clips for. (default: all tracked objects)
      objects:
        - person
        - dog
      # Optional: Restrict clips to objects that entered any of the listed zones (default: no required zones)
      required_zones: []
      # Optional: Camera override for retention settings (default: global values)
      retain:
        # Required: Default retention days (default: shown below)
        default: 40
        # Optional: Per object retention days
        objects:
          person: 15
          dog: 10
    snapshots:
      # Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
      # This value can be set via MQTT and will be updated in startup based on retained value
      enabled: True
      # Optional: print a timestamp on the snapshots (default: shown below)
      timestamp: True
      # Optional: draw bounding box on the snapshots (default: shown below)
      bounding_box: False
      # Optional: crop the snapshot (default: shown below)
      crop: False
      # Optional: height to resize the snapshot to (default: original size)
      height: 175
      # Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
      required_zones: []
      # Optional: Camera override for retention settings (default: global values)
      retain:
        # Required: Default retention days (default: shown below)
        default: 10
        # Optional: Per object retention days
        objects:
          person: 15


detectors:
  coral_pci:
    type: edgetpu
    device: pci
clips:
  # Optional: Maximum length of time to retain video during long events. (default: shown below)
  # NOTE: If an object is being tracked for longer than this amount of time, the cache
  #       will begin to expire and the resulting clip will be the last x seconds of the event.
  max_seconds: 60
  # Optional: size of tmpfs mount to create for cache files (default: not set)
  # mount -t tmpfs -o size={tmpfs_cache_size} tmpfs /tmp/cache
  # NOTICE: Addon users must have Protection mode disabled for the addon when using this setting.
  # Also, if you have mounted a tmpfs volume through docker, this value should not be set in your config.
  ## tmpfs_cache_size: 256m
  # Optional: Retention settings for clips (default: shown below)
  retain:
    # Required: Default retention days (default: shown below)
    default: 40
    # Optional: Per object retention days
    objects:
      person: 15
      dog: 15

database:
  path: /config/frigate.db

ffmpeg:
  input_args:
    - -c:v
    - h264_cuvid

# Optional: 24/7 recording configuration
record:
  # Optional: Enable recording (default: global setting)
  enabled: True
  # Optional: Number of days to retain (default: global setting)
  retain_days: 40

Error Log

  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2242, in preprocess_request
    rv = func()
  File "/opt/frigate/frigate/http.py", line 89, in _db_connect
    database.connect()
  File "/usr/local/lib/python3.8/dist-packages/peewee.py", line 3061, in connect
    raise OperationalError('Connection already opened.')
peewee.OperationalError: Connection already opened.
2021-07-06T11:28:10Z {'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '53108', 'HTTP_HOST': '10.7.7.14', (hidden keys: 27)} failed with OperationalError
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/flask_sockets.py", line 40, in __call__
    handler, values = adapter.match()
  File "/usr/local/lib/python3.8/dist-packages/werkzeug/routing.py", line 1945, in match
    raise NotFound()
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/gevent/pywsgi.py", line 999, in handle_one_response
    self.run_application()
  File "/usr/local/lib/python3.8/dist-packages/geventwebsocket/handler.py", line 87, in run_application
    return super(WebSocketHandler, self).run_application()
  File "/usr/local/lib/python3.8/dist-packages/gevent/pywsgi.py", line 945, in run_application
    self.result = self.application(self.environ, self.start_response)
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2464, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python3.8/dist-packages/flask_sockets.py", line 48, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2450, in wsgi_app
    response = self.handle_exception(e)
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1867, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.8/dist-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.8/dist-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1948, in full_dispatch_request
    rv = self.preprocess_request()
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2242, in preprocess_request
    rv = func()
  File "/opt/frigate/frigate/http.py", line 89, in _db_connect
    database.connect()
  File "/usr/local/lib/python3.8/dist-packages/peewee.py", line 3061, in connect
    raise OperationalError('Connection already opened.')
peewee.OperationalError: Connection already opened.
2021-07-06T11:28:10Z {'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '53110', 'HTTP_HOST': '10.7.7.14', (hidden keys: 27)} failed with OperationalError
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/flask_sockets.py", line 40, in __call__
    handler, values = adapter.match()
  File "/usr/local/lib/python3.8/dist-packages/werkzeug/routing.py", line 1945, in match
    raise NotFound()
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/gevent/pywsgi.py", line 999, in handle_one_response
    self.run_application()
  File "/usr/local/lib/python3.8/dist-packages/geventwebsocket/handler.py", line 87, in run_application
    return super(WebSocketHandler, self).run_application()
  File "/usr/local/lib/python3.8/dist-packages/gevent/pywsgi.py", line 945, in run_application
    self.result = self.application(self.environ, self.start_response)
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2464, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python3.8/dist-packages/flask_sockets.py", line 48, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2450, in wsgi_app
    response = self.handle_exception(e)
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1867, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.8/dist-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.8/dist-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1948, in full_dispatch_request
    rv = self.preprocess_request()
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2242, in preprocess_request
    rv = func()
  File "/opt/frigate/frigate/http.py", line 89, in _db_connect
    database.connect()
  File "/usr/local/lib/python3.8/dist-packages/peewee.py", line 3061, in connect
    raise OperationalError('Connection already opened.')
peewee.OperationalError: Connection already opened.
2021-07-06T11:28:10Z {'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '53112', 'HTTP_HOST': '10.7.7.14', (hidden keys: 27)} failed with OperationalError

Frigate stats Stats page won’t load.

  • Debian Buster VM on Proxmox

  • Docker compose

  • Coral PCIe

  • Wired connection

  • Hikvisions

  • Models: mix

  • Resolution: 720

  • FPS: 5

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
blakeblackshearcommented, Jul 6, 2021

When its ready, the release will include all architectures.

0reactions
stale[bot]commented, Aug 7, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS: can't connect to RDS database from my machine
It turns out it is not that hard. Do these steps: Go to EC2 Dashboard; Go to Security Groups tab; Select and only...
Read more >
Tests failing and I can't figure out why. Getting "peewee ...
I'm getting 9 errors on this Code Challenge and I can't figure out why. ... OperationalError: Connection already open" Please help!
Read more >
2 Server Error Message Reference - MySQL :: Developer Zone
Occurs for failure to create or copy a file needed for some operation. Possible causes: Permissions problem for source file; destination file already...
Read more >
Why can't I connect to my Amazon RDS DB or Amazon Aurora ...
There are a number of reasons that you might experience connection failures with RDS Proxy, even when RDS Proxy is in the Available...
Read more >
MariaDB Error Codes
Also, the perror tool can be used to get the error message which is associated with a given error code. Shared MariaDB/MySQL error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found