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.

[Support]: Restarting the addon throws an error after update to v0.11.0 if watchdog is enabled

See original GitHub issue

Describe the problem you are having

Restarting the addon with the “watchdog” setting enabled throws the following error:

Can’t create container from addon_ccab4aaf_frigate: 409 Client Error for http+docker://localhost/v1.41/containers/create?name=addon_ccab4aaf_frigate: Conflict (“Conflict. The container name “/addon_ccab4aaf_frigate” is already in use by container “131cbd0d164a02eb4fad96446f086e9a00e7725aeccc59867eef273c54a604e8”. You have to remove (or rename) that container to be able to reuse that name.”)

I first noticed this when prompted to restart the addon after adding a Frigate+ key to the addon config, but it’s also happened on subsequent attempts to restart the addon. The Frigate addon usually does seem to restart successfully despite the error, but when this first happened, that didn’t seem to be the case; it appeared to be stopped, and clicking “start” got it running again without issue, but during subsequent testing I’ve noticed that the Home Assistant UI sometimes seems to get out of sync with the actual status and incorrectly show it as stopped, so I’m not sure whether it was really stopped that first time.

The log below is from the HA Supervisor. There’s nothing in the Frigate logs relating to this as it’s at the HA Addon / Docker level.

Version

0.11.0-3846A13

Frigate config file

mqtt:
  host: core-mosquitto
  user: [redacted]
  password: [redacted]

cameras:
  camera1:
    ffmpeg:
      inputs:
        - path: rtsp://[redacted]/unicast
          roles:
            - detect
            - rtmp
            - record
    detect:
      width: 1280
      height: 720
      fps: 5
    
  camera2:
    ffmpeg:
      inputs:
        - path: rtsp://[redacted]/unicast
          roles:
            - detect
            - rtmp
            - record
    detect:
      width: 1280
      height: 720
      fps: 5
    objects:
      track:
        - person
        - car
        - cat
    motion:
      mask:
        - [redacted]
    zones:
      driveway:
        coordinates: [redacted]
      lawn:
        coordinates: [redacted]
record:
  enabled: true
  retain:
    days: 7
    mode: motion
  events:
    retain:
      default: 25
      mode: active_objects
      
detectors:
  coral1:
    type: edgetpu
    device: pci:0
    
logger:
  default: info

Relevant log output

22-09-28 23:11:26 INFO (SyncWorker_6) [supervisor.docker.interface] Stopping addon_ccab4aaf_frigate application
22-09-28 23:11:27 INFO (SyncWorker_6) [supervisor.docker.interface] Cleaning addon_ccab4aaf_frigate application
22-09-28 23:11:27 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Frigate NVR is failed, restarting...
22-09-28 23:11:27 INFO (SyncWorker_3) [supervisor.docker.interface] Cleaning addon_ccab4aaf_frigate application
22-09-28 23:11:27 ERROR (SyncWorker_4) [supervisor.docker.manager] Can't create container from addon_ccab4aaf_frigate: 409 Client Error for http+docker://localhost/v1.41/containers/create?name=addon_ccab4aaf_frigate: Conflict ("Conflict. The container name "/addon_ccab4aaf_frigate" is already in use by container "43981bd9b762f92899bcb04a49fb9f1043f55a404622dc8ea9a8aa8c8b87d2e9". You have to remove (or rename) that container to be able to reuse that name.")
22-09-28 23:11:28 INFO (SyncWorker_1) [supervisor.docker.addon] Starting Docker add-on blakeblackshear/frigate with version None

FFprobe output from your camera

N/A

Frigate stats

No response

Operating system

Other Linux

Install method

HassOS Addon

Coral version

PCIe

Network connection

Wireless

Camera make and model

N/A

Any other information that may be helpful

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
paulncommented, Oct 17, 2022

This no longer seems to be an issue (for me, at least); I think it might’ve been fixed by a Home Assistant update, so perhaps it was a bad interaction between specific version of HA and Frigate. Is anybody else still experiencing this issue, or can it be closed now?

0reactions
mantaalexcommented, Oct 1, 2022

i have this problem to on all frigate rpi’s and my proxmox

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: The watchdog timer expired. - Dell Community
When it stops getting a heartbeat from a component that it is monitoring then the timer expires, and you receive an error in...
Read more >
Home Assistant Add-on: Hardware watchdog service
On success you will get a hardware restart by watchdog as on software problems. It's not completely correct, but you will check if...
Read more >
Red Hat OpenShift Pipelines release notes
The chains-config config map for Tekton Chains in the openshift-pipelines namespace is automatically reset to default after upgrading the Red Hat OpenShift ...
Read more >
Bug listing with status RESOLVED with resolution UPSTREAM ...
Bug:6292 - "loadkeys broken, or kernel memory garbled!!!" status:RESOLVED resolution:UPSTREAM severity:major · Bug:7994 - "Patch to net-tools to allow ...
Read more >
Untitled
... backport-When-interpreting-if-val-is-NULL-return-an-empty-str.patch backport-auditd.service-Restart-on-failure-ignoring-some-exit.patch ...
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