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

"Supervisor is not privileged" even though it is #2343

Closed
jo-me opened this issue Dec 4, 2020 · 15 comments
Closed

"Supervisor is not privileged" even though it is #2343

jo-me opened this issue Dec 4, 2020 · 15 comments
Labels

Comments

@jo-me
Copy link

jo-me commented Dec 4, 2020

Describe the issue

Supervisor panel suddenly reports that my system is unhealthy due to "Supervisor is not privileged"

When I check the supervisor container it says that it is:
image

Steps to reproduce

  1. ...
  2. ...
  3. ...

Enviroment details

  • Operating System:: xxx
ha host info
chassis: desktop
cpe: ""
deployment: ""
disk_free: 18.8
disk_total: 62.3
disk_used: 40.2
features:
- reboot
- shutdown
- services
- network
- hostname
hostname: adloko
kernel: 5.4.0-53-generic
operating_system: Ubuntu 18.04.5 LTS
  • Supervisor version:: xxx
arch: amd64
channel: stable
debug: false
debug_block: false
diagnostics: null
healthy: false
ip_address: 172.30.32.2
logging: info
supported: false
timezone: Europe/Berlin
update_available: false
version: 2020.12.2
version_latest: 2020.12.2
wait_boot: 5
  • Home Assistant version: xxx
arch: amd64
channel: stable
docker: 19.03.13
features:
- reboot
- shutdown
- services
- network
- hostname
hassos: null
homeassistant: 0.118.4
hostname: adloko
logging: info
machine: qemux86-64
operating_system: Ubuntu 18.04.5 LTS
supervisor: 2020.12.2
supported: false
supported_arch:
- amd64
- i386
timezone: Europe/Berlin

Supervisor logs

Supervisor logs

20-12-04 16:43:40 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
20-12-04 16:43:57 INFO (MainThread) [supervisor.snapshots] Found 1 snapshot files

20-12-04 16:48:15 WARNING (MainThread) [supervisor.jobs] 'AddonManager.install' blocked from execution, system is not healthy

@jo-me jo-me added the bug label Dec 4, 2020
@jo-me
Copy link
Author

jo-me commented Dec 4, 2020

I followed the hint behind the "not privileged" notice and ran the script again.
Did not change anything.

@jo-me
Copy link
Author

jo-me commented Dec 4, 2020

@ludeeus
Copy link
Member

ludeeus commented Dec 4, 2020

There are to types of "privileged", the one that is added when the container is created, and access to HW monitoring, the first is solved by running the installation script, the other is solved buy updating and rebooting the host OS

@ludeeus ludeeus closed this as completed Dec 4, 2020
@jo-me
Copy link
Author

jo-me commented Dec 5, 2020

So when does it happen that this gets lost?
When the supervisor container is updated without rebooting the system?

@derrick011
Copy link

@ludeeus
When I rerun the script it will not resolve the problem.

The problem started after installing version 2020.12.6 of Supervisor.
Tried running the script and waited several hours than rebooted the OS and still same error.

Please reopen and address the problem because we cannot update HA anymore. So no new core updates nor Supervised Apps i.e. VCS. Updates

@frenck
Copy link
Member

frenck commented Dec 5, 2020

The issue has been raised for an unsupported system. If you have a supported system that causes this, please raise a new issue. Thanks 👍

@jerkovicl
Copy link

Error is showing up if host os is Ubuntu 20.04.1 aswell

@SamJongenelen
Copy link

SamJongenelen commented Dec 6, 2020

Same here, Ubuntu 20 host. After clean boot things are running well. Next day this message occurs and indeed cannot update.

Note: I restart the HA container after reboot to get a custom integration working (roborock).
Does anyone else with this issue do docker restartd as well?

@olskar
Copy link

olskar commented Dec 6, 2020

Same issue here on Ubuntu 20. Is this a sneaky way to "get rid" of unsupported installations? :)

@matthew73210
Copy link

matthew73210 commented Dec 6, 2020

Just chipping in, on debian 10. Which I beleive to be a supported system. Has the same issue.
Followed protocol and updated the server, Ran script. Rebooted. Problem still presists.

@frenck
Copy link
Member

frenck commented Dec 6, 2020

Is this a sneaky way to "get rid" of unsupported installations? :)

Is it not, udev hardware monitoring fails in most cases, which is an issue. This warning should have been in your logs for months already.

@matthew73210 Please raise a new issue if you have a supported system, with as many details as possible.

@jo-me
Copy link
Author

jo-me commented Dec 6, 2020

So, whenever a supervisor update arrives the system becomes automatically unhealthy now for "unsupported" systems?

I found HA multiple times in the last week or so with all addons suddenly disabled and no hint why I could not update one (update button just flashed red with no indication why). Only then I went to look for issues elsewhere. There could be at least some kind of notification when the system gets flagged as unhealthy when it was previously ok.

I know that I'm running an unsupported installation but the spontaneous nature of supervisor updates are real liability to system stability. Installing them at any time leaves you at risk of breaking peoples systems (see introduction of DNS features) .
It is ok if things have breaking changes, occasional bugs, or have additional hoops to jump through in case of unsupported systems, but those "fixing periods" need to be plannable. I don't want to worry every morning whether things broke overnight. I want to move updates to weekends when I can spend the time.

So, the solution would be quite simple: There should be an option to opt-out of automatic supervisor updates.

@jazzmonger
Copy link

Why is this issue closed when the problem remains for so many of us? I'm on Supervisor Version 2020.12.6 and have resorted to the jobs.json fix. It's the only way to get around this annoying problem...

Jeff

@SamJongenelen
Copy link

I've updated my ubuntu host, now we wait for the supervisor update..
Clean boot and update when it comes 👍

@frenck
Copy link
Member

frenck commented Dec 7, 2020

I'm locking down this issue. Ubuntu is not supported, if you need help with unsupported systems, you can try the community forum.

@home-assistant home-assistant locked and limited conversation to collaborators Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

9 participants