blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
19.18k stars 1.75k forks source link

[Support]: When the media is set to a locally mounted NFS share it doesn't start #2526

Closed woolmonkey closed 2 years ago

woolmonkey commented 2 years ago

Describe the problem you are having

So when I have -v /mnt/share:/media/frigate it hangs on the peewee migrate in the logs. If I remove that line so it starts up just fine. If I create a folder on the /root directory to test frigate starts fine. I have tried multiple NFS mounts and multiple versions of the docker frigate from 0.9 to 0.10 latest beta. It is always the same. Even with a very simple config.

Also I can send these mounts to other containers or VM's no problem just seems to be the frigate one hanging on them

Version

0.10.0-14c74e4

Frigate config file

mqtt:
  host: mosquitto
  user: 
  password: 

cameras:
  Backyard:
    ffmpeg:
      inputs:
        - path: rtsp://192.168.1.2/cam/realmonitor?channel=1&subty>
          roles:
            - rtmp

Relevant log output

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2021-12-26 06:35:35] frigate.app                    INFO    : Starting Frigate (0.10.0-14c74e4)
Starting migrations
[2021-12-26 06:35:35] peewee_migrate                 INFO    : Starting migrations

FFprobe output from your camera

N/a

Frigate stats

No response

Operating system

Debian

Install method

Docker CLI

Coral version

PCIe

Network connection

Wired

Camera make and model

Dahua

Any other information that may be helpful

No response

blakeblackshear commented 2 years ago

Take a look at the docs on storage: https://docs.frigate.video/installation#storage

woolmonkey commented 2 years ago

So weird when I keep the database local and put other files on the shared drive it seems to work.

blakeblackshear commented 2 years ago

That's expected. Sqlite databases don't do well on network shares.

stale[bot] commented 2 years ago

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.

jcoulter commented 1 year ago

I have this same problem. It worked for a while and then seems to have failed after a watchtower update with this exact behavior.