Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Support]: Frigate Addon not starting after update to release 0.13.0 #9527

Closed
msalessandro69 opened this issue Jan 31, 2024 · 51 comments
Closed

Comments

@msalessandro69
Copy link

Describe the problem you are having

when I try to start the addon on home assistant with version 0.13.0 I get thrown the error message that Can't create container from addon_ccab4aaf_frigate: 400 Client Error for http+docker:https://localhost/v1.41/containers/create?name=addon_ccab4aaf_frigate: Bad Request ("invalid CapAdd: unknown capability: "CAP_PERFMON"")

Version

0.13.0

Frigate config file

N/A

Relevant log output

Can't create container from addon_ccab4aaf_frigate: 400 Client Error for http+docker:https://localhost/v1.41/containers/create?name=addon_ccab4aaf_frigate: Bad Request ("invalid CapAdd: unknown capability: "CAP_PERFMON"")

FFprobe output from your camera

N/A

Frigate stats

N/A

Operating system

Debian

Install method

HassOS Addon

Coral version

CPU (no coral)

Network connection

Wired

Camera make and model

N/A

Any other information that may be helpful

No response

@NickM-27
Copy link
Sponsor Collaborator

It seems like you may be running an old version of docker / HA supervised?

@msalessandro69
Copy link
Author

it is on the latest version of both home assistant which was updated today(2024.1.6) and on docker (24.07)
image
image

@NickM-27
Copy link
Sponsor Collaborator

@felipecrs any ideas here? I don't think other users have seen issues with this

@NickM-27
Copy link
Sponsor Collaborator

and actually, I don't think this changed with 0.13 either

@felipecrs
Copy link
Contributor

Oh. This is odd. But yes, it's new from 0.13.

Supposing this is a supervised installation, make sure your docker is up to date. At least v24.

@msalessandro69
Copy link
Author

Docker is on v24.0.7 already

@NickM-27
Copy link
Sponsor Collaborator

ah I see, it was reduced from admin blakeblackshear/frigate-hass-addons@3323e7b

@felipecrs
Copy link
Contributor

This may be an issue with a too old kernel as well.

@msalessandro69
Copy link
Author

image
this is the kernel version I am running, for now I downgraded from 0.13.0 to 0.12.1

@msalessandro69
Copy link
Author

are there any logs that you guys think would help for me to retrieve? @NickM-27 @felipecrs

@felipecrs
Copy link
Contributor

Your kernel is quite old. Can't you upgrade? There is nothing wrong in Frigate specifically. I would not expect a fix for it.

Looking up online, it can also be the version of runc and containerd. Maybe you updated docker recently but didn't restart the daemon?

A system reboot may help as well.

@msalessandro69
Copy link
Author

I will update the Kernel and come back if it worked, a system reboot has already been done, obrigado Felipe.

@JamesDilan
Copy link

JamesDilan commented Feb 1, 2024

Good day,
Have the same issue. Kernel version is 5.4.0-170. Running on Ubuntu 20.04 under Docker. Version 0.13.1. Failed to start addon with same error.
Appreciate is you could share a solution.

@felipecrs
Copy link
Contributor

felipecrs commented Feb 1, 2024

Update docker to the latest version, and update the kernel to the latest version. AFAIK latest kernel for Ubuntu 20.04 is 5.15 through HWE.

Please let us know the result.

@JamesDilan
Copy link

Many thanks for pointing in right direction. Update Kernel to 5.15. Confirm it's working.

@mack0352
Copy link

mack0352 commented Feb 1, 2024

I will update the Kernel and come back if it worked, a system reboot has already been done, obrigado Felipe.

Did you end up updating your Kernel? I am having the same issue with Debian 11 on 5.10.0-16, and wanted to make sure this was the fix before I invest some time into updating my server.

@msalessandro69
Copy link
Author

hey @mack0352 I m not able to update my kernel, i am thinking abount doing a backup of my HA instance, doing a fresh debian install on the latest version, I am not a linux guy by trade so I am not sure if there is an easier way to update the kernel I am all ears

@felipecrs
Copy link
Contributor

According to the requirements, Debian 11 is not supported for Home Assistant Supervised installations anyway: https://github.com/home-assistant/architecture/blob/master/adr/0014-home-assistant-supervised.md#supported-operating-system-system-dependencies-and-versions

@mack0352
Copy link

mack0352 commented Feb 1, 2024

I believe that. I installed Debian 11 in early 2022, and never really have kept it up to date or looked at new versions. I only have a few things running on this server, so I may also just do a fresh install on Debian 12 with a HA Backup. For now, nothing is broken on my end (still running Frigate 12.1).

@msalessandro69
Copy link
Author

I am planning on going the same way @mack0352 , doing a fresh install and retrieving the backup

@felipecrs
Copy link
Contributor

From the Supervised documentation, it says:

This method is considered advanced and should only be used if one is an expert in managing a Linux operating system, Docker and networking.

So, if you don't feel comfortable with it, I don't understand why using it at all. I personally use HAOS.

@msalessandro69
Copy link
Author

@mack0352 I updated from Debian 11 to 12, now I have kernel version 6.1, and frigate 0.13.1 is working correctly

@felipecrs I actually am using debian because I have other services running alongside home assistant, such as a printer server, transmission, Arr suite, etc

@NickM-27 NickM-27 closed this as completed Feb 1, 2024
@felipecrs
Copy link
Contributor

Right. One other option you had was to run Frigate through docker compose. It wouldn't have the same issue, I believe.

Anyway, glad that it worked.

@cpankonien
Copy link

I'm having the same issue on hassos install, frigate installed as add-on. frigate will not start. restored from backup to 12.1, works fine. None of the issues identified in this bug report seem to apply to my install.

@felipecrs
Copy link
Contributor

felipecrs commented Feb 2, 2024

Did you say you are using HAOS? If so, what version?

If not, what is your docker, kernel and supervisor version?

@cpankonien
Copy link

yes, using haos.
Core 2024.1.6
Supervisor 2023.12.1
Operating System 11.4
Frontend 20240104.0

@felipecrs
Copy link
Contributor

What error are you receiving while starting the add-on?

@cpankonien
Copy link

none, it just hangs

@felipecrs
Copy link
Contributor

No logs?

@cpankonien
Copy link

i'll try the upgrade again so the logs should be easier to follow

@felipecrs
Copy link
Contributor

Here are my versions btw, which works:

Core 2024.1.6
Supervisor 2023.12.1
Operating System 11.4
Frontend 20240104.0

Very same as yours.

And if you don't find out that your logs contain unknown capability: "CAP_PERFMON", please open a separate issue.

@cpankonien
Copy link

yay. installed the upgrade same as before, only it works now. thanks!

@Kwiatjk
Copy link

Kwiatjk commented Feb 5, 2024

I have that same problem
Core 2024.1.6
Supervisor 2023.12.1
Interfejs użytkownika 20240104.0

@Neneow
Copy link

Neneow commented Feb 5, 2024

Hello,

Same issue.

Core : 2024.2.0b7
Supervisor : 2024.01.1

Trying upgrade Debian 11 to 12, but always same error :

"ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /addons/ccab4aaf_frigate-fa/start - Can't create container from addon_ccab4aaf_frigate-fa: 400 Client Error for http+docker:https://localhost/v1.41/containers/create?name=addon_ccab4aaf_frigate-fa: Bad Request ("invalid CapAdd: unknown capability: "CAP_PERFMON"")#33[0m"

Regards

@felipecrs
Copy link
Contributor

felipecrs commented Feb 5, 2024

Upgrade docker to the latest version and the Linux kernel to at least 5.15. That's the solution for this problem.

@Neneow
Copy link

Neneow commented Feb 5, 2024

Thanks @felipecrs .

I had previously mark hold containerd.io / docker-ce / docker-ce-cli package for compatibility. Just upgrade theses packages et now error is not present.

Now error in conf, but is other problem.

Thanks you

@FunkyKwak
Copy link

Hi,

I have the same issue since a few weeks :

Can't create container from addon_ccab4aaf_frigate: 400 Client Error for http+docker:https://localhost/v1.41/containers/create?name=addon_ccab4aaf_frigate: Bad Request ("invalid CapAdd: unknown capability: "CAP_PERFMON"")

I don't know how I could update the mentionned packages. My home assistant instance is runing on docker installed on a synology NAS, and the "Container Manager" Synology package is already up to date.

Thanks in advance for your help !

Regards,
Yann

@felipecrs
Copy link
Contributor

You need to upgrade your operating system or your kernel as well.

@FunkyKwak
Copy link

I am runing on a Synology NAS, everything is up to date : operating system (DSM) and installed packages.
Frigate is the only addon I have having this issue.

@felipecrs
Copy link
Contributor

What is the Linux version you have?

@FunkyKwak
Copy link

FunkyKwak commented Feb 24, 2024

The operating system is DSM (Disk Station Manager v7.2.1-69057) from Synology. It's Linux based, but that's all I know.
Maybe it's not officialy supported, but it works great once configured.

Docker is running via a Synology package Container Manager, and the last update is from september 2023. Maybe the CAP_PERFMON is not there yet, I see here that it's only with the latest versions.

Is there a way to start the addon without the CAP_PERFMON ?

@felipecrs
Copy link
Contributor

As your system is not supported by supervisor, I would advise you to use docker compose to spin up Frigate. And then, if you want the Frigate panel in Hass you can use the Frigate proxy add-on.

@FunkyKwak
Copy link

I don't need the Frigate panel, I only use the card in order to have two-way audio and use it as an intercom.
So I add frigate to my docker compose with hassio-supervisor, and it will start the addon with home-assistant ?

@felipecrs
Copy link
Contributor

felipecrs commented Feb 24, 2024

Follow the installation guide for docker: https://docs.frigate.video/frigate/installation/

@FunkyKwak
Copy link

Thank you, I will try that. But that would be nice to be able to start it like any other addon in home assistant, and like before the 0.13 version

@felipecrs
Copy link
Contributor

felipecrs commented Feb 24, 2024

Sorry friend, but in my opinion, you were not even supposed to be running home assistant supervised in your system.

They make it clear that only Debian 12 is supported. This enables add-ons developers to know what features they can use or not.

You can of course still run supervised on your system, just be aware that you'll be on your own. That's what "unsupported" means in this context.

I am not a maintainer of Frigate, so @NickM-27 and @blakeblackshear may have a different opinion.

@NickM-27
Copy link
Sponsor Collaborator

The reason this occurs is because the system privilege level for the addon was dropped from admin to just performance. This is an improvement in security and reduces risk for the user so this is an objective improvement.

Users are always encouraged to run supported systems

@FunkyKwak
Copy link

Ok thanks for your explanations (but I will keep using home assistant supervised 😄, hopefully DSM will get supported one day)

@felipecrs
Copy link
Contributor

That's very unlikely, but yeah maybe someday DSM will upgrade the Linux kernel and Docker to a version that supports CAP_PERFMON.

@Kwiatjk
Copy link

Kwiatjk commented Feb 24, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants