HelpITru
(Help I Tru)
January 13, 2024, 1:16pm
1208
Why ? I used to always install under the root user. However, then errors usually occurred with an enviable frequency.
HelpITru:
Why ?
because it’s really bad practice to run as root user and as you see it screws things up
1 Like
AlexMPH
(Alex)
January 19, 2024, 4:54pm
1210
Is it possible that a recent docker upgrade messes things up again?
Upgraded docker-ce as part of an overall update of the underlying Debian system earlier on, and now supervisor won’t set up anymore.
To verify, I did the same on a backup system I have and the exact same thing happened.
Reading through this thread and some others, it appears that similar things have happened in the past…
Running suoervised on Debian Bookworm on an Intel nuc 8.
bighead85
(Bighead85)
January 19, 2024, 5:32pm
1211
Just had the exact same issue myself. Not yet figured out how to fix
AlexMPH
(Alex)
January 19, 2024, 5:41pm
1212
Clear. I checked, there wasn’t a bug reported yet as far as I can see.
Now there is.
opened 05:28PM - 19 Jan 24 UTC
bug
### Describe the issue you are experiencing
Today MY HA went crazy, probably af… ter a Debian OS update: it all started after an OS reboot.
From Settings > Integrations I see "Home Assistati Supervisor Failed setup, will retry"
![immagine](https://github.com/home-assistant/supervisor/assets/19230076/d356c312-ffd4-4ce0-96d4-5e1a4581b677)
Several other integrations same behaviour, some other are working (Shelly, MQTT, ZHA, HomeKit ...)
![immagine](https://github.com/home-assistant/supervisor/assets/19230076/0217dfef-1b04-4c38-9f69-c03797762aa1)
From HA Core Logs I see (among others):
Logger: homeassistant.helpers.system_info
Source: helpers/system_info.py:72
First occurred: 18:12:57 (1 occurrences)
Last logged: 18:12:57
No Home Assistant Supervisor info available
Logger: homeassistant.components.hassio
Source: components/hassio/__init__.py:557
Integration: Home Assistant Supervisor (documentation, issues)
First occurred: 18:02:11 (4 occurrences)
Last logged: 18:17:21
Can't read Supervisor data:
If I try to read HA Supervisor Logs: Failed to get supervisor logs, 502: Bad Gateway
What could be happend?
In Debian I found this updates, today:
Start-Date: 2024-01-19 17:14:36
Commandline: packagekit role='update-packages'
Upgrade: docker-compose-plugin:amd64 (2.21.0-1~debian.11~bullseye, 2.24.1-1~debian.11~bullseye), docker-ce-cli:amd64 (5:24.0.7-1~debian.11~bullseye, 5:25.0.0-1~debian.11~bullseye), docker-buildx-plugin:amd64 (0.11.2-1~debian.11~bullseye, 0.12.1-1~debian.11~bullseye), docker-ce:amd64 (5:24.0.7-1~debian.11~bullseye, 5:25.0.0-1~debian.11~bullseye), docker-ce-rootless-extras:amd64 (5:24.0.7-1~debian.11~bullseye, 5:25.0.0-1~debian.11~bullseye)
End-Date: 2024-01-19 17:14:49
Rebooted several times: no changes
Tried to go for a backup: not visible when I press the button
### What type of installation are you running?
Home Assistant Supervised
### Which operating system are you running on?
Debian
### Steps to reproduce the issue
1.
2.
3.
...
### Anything in the Supervisor logs that might be useful for us?
```txt
not available
```
### System Health information
not available
### Supervisor diagnostics
cannot find download diagnostics
### Additional information
_No response_
1 Like
AlexMPH
(Alex)
January 19, 2024, 6:20pm
1213
Someone posted this as a temporary workaround, basically a downgrade of docker ce
sudo apt install \
docker-compose-plugin=2.21.0-1~debian.12~bookworm \
docker-ce-cli=5:24.0.7-1~debian.12~bookworm \
docker-buildx-plugin=0.11.2-1~debian.12~bookworm \
docker-ce=5:24.0.7-1~debian.12~bookworm \
docker-ce-rootless-extras=5:24.0.7-1~debian.12~bookworm
2 Likes
bighead85
(Bighead85)
January 19, 2024, 6:29pm
1214
yes I did same for Ubuntu and working again. Thanks for posting, I was about to as thought I was going crazy
1 Like
brianuab
(Brian)
January 19, 2024, 9:33pm
1215
So my logs from - cat /var/log/apt/history.log
Upgrade: docker-compose-plugin:arm64 (2.21.0-1~debian.11~bullseye, 2.24.1-1~debian.11~bullseye), docker-ce-cli:arm64 (5:24.0.7-1~debian.11~bullseye, 5:25.0.0-1~debian.11~bullseye), docker-buildx-plugin:arm64 (0.11.2-1~debian.11~bullseye, 0.12.1-1~debian.11~bullseye), docker-ce:arm64 (5:24.0.7-1~debian.11~bullseye, 5:25.0.0-1~debian.11~bullseye), docker-ce-rootless-extras:arm64 (5:24.0.7-1~debian.11~bullseye, 5:25.0.0-1~debian.11~bullseye)
Installation - Home Assistant Supervised on a Raspberry Pi using Debian 11
So when I downgrade (do I need to include ‘arm64’ or remove it; can someone suggest how to fix it to address my scenario)
sudo apt install
docker-compose-plugin=arm64~2.21.0-1~debian.11~bullseye
docker-ce-cli=arm64 5:24.0.7-1~debian.11~bullseye
docker-buildx-plugin=arm64 0.11.2-1~debian.11~bullseye
docker-ce=arm64 5:24.0.7-1~debian.11~bullseye
docker-ce-rootless-extras=arm64 5:24.0.7-1~debian.11~bullseye
GitWally
(Git Wally)
January 20, 2024, 8:08am
1216
Hello may be I was the first to report in GItHub, but I can confirm as a temporary workaround, you must downgrade Docker packages to the previuos working version.
You can find a brief guide in GitHub post, I wrote for newbies like me!
Hope there will be a long term solution!
Bye
GitWally
(Git Wally)
January 20, 2024, 8:11am
1217
See the commands I used in github post : I think we are in the very same configuration.
It worked for me and now my HA is working 100%
Bye
1 Like
kanga_who
(Jason)
January 20, 2024, 8:24am
1218
@AlexMPH , @bighead85 @brianuab Please make sure you adhere to the ADR HERE and have Docker CE 20.10.17. If you are not running that specific version you may encounter problems with Supervised.
Also note that Ubuntu is not a supported OS and hasn’t been for about 2 years now. If you have not followed the ADR and the recommendations in this guide, please do not post for support or advice on how to fix problems.
3 Likes
AlexMPH
(Alex)
January 20, 2024, 10:38am
1219
Except that it says that:
Docker CE >= 20.10.17
So an update should in theory - clearly not in practice - break it, as it does not ask for a specific version just a minimum version
kanga_who
(Jason)
January 20, 2024, 10:44am
1220
Unless something introduced in the newest Docker version does break it, which it seems to have.
Pretty simple solution, follow the ADR and additionally lock your version from updating. No need to update Docker if your HA is working and you are adhering to the ADR.
1 Like
smoltron
(Smoltron)
January 20, 2024, 11:06am
1221
I can confirm that docker-ce update breaks also a running Debian supervised Home Assistant. MariaDB will not start any more. See MariaDb container suddenly stopped starting
AlexMPH
(Alex)
January 20, 2024, 2:03pm
1222
That is not what the ADR says though, is it?
Anyway, a fix on Docker side is on the way , which is expected to be retrofitted in version 25.0.1 (it’s the version 25 that breaks things) (ref:
opened 05:28PM - 19 Jan 24 UTC
bug
### Describe the issue you are experiencing
Today MY HA went crazy, probably … after a Debian OS update: it all started after an OS reboot.
From Settings > Integrations I see "Home Assistant Supervisor Failed setup, will retry"
![immagine](https://github.com/home-assistant/supervisor/assets/19230076/d356c312-ffd4-4ce0-96d4-5e1a4581b677)
Several other integrations same behaviour, some other are working (Shelly, MQTT, ZHA, HomeKit ...)
![immagine](https://github.com/home-assistant/supervisor/assets/19230076/0217dfef-1b04-4c38-9f69-c03797762aa1)
From HA Core Logs I see (among others):
```
Logger: homeassistant.helpers.system_info
Source: helpers/system_info.py:72
First occurred: 18:12:57 (1 occurrences)
Last logged: 18:12:57
```
No Home Assistant Supervisor info available
```
Logger: homeassistant.components.hassio
Source: components/hassio/__init__.py:557
Integration: Home Assistant Supervisor (documentation, issues)
First occurred: 18:02:11 (4 occurrences)
Last logged: 18:17:21
```
Can't read Supervisor data:
If I try to read HA Supervisor Logs: Failed to get supervisor logs, 502: Bad Gateway
What could be happend?
In Debian I found this updates to Docker Packages, today (with command `cat /var/log/apt/history.log`):
```
Start-Date: 2024-01-19 17:14:36
Commandline: packagekit role='update-packages'
Upgrade: docker-compose-plugin:amd64 (2.21.0-1~debian.11~bullseye, 2.24.1-1~debian.11~bullseye), docker-ce-cli:amd64 (5:24.0.7-1~debian.11~bullseye, 5:25.0.0-1~debian.11~bullseye), docker-buildx-plugin:amd64 (0.11.2-1~debian.11~bullseye, 0.12.1-1~debian.11~bullseye), docker-ce:amd64 (5:24.0.7-1~debian.11~bullseye, 5:25.0.0-1~debian.11~bullseye), docker-ce-rootless-extras:amd64 (5:24.0.7-1~debian.11~bullseye, 5:25.0.0-1~debian.11~bullseye)
End-Date: 2024-01-19 17:14:49
```
It all began after a reboot I did one hour after Debian OS Updates.
Tried to reboot Debian and HA several times: no changes
Tried to go for a backup: not visible when I press the button
Thanks
### What type of installation are you running?
Home Assistant Supervised
### Which operating system are you running on?
Debian
### Steps to reproduce the issue
1.
2.
3.
...
### Anything in the Supervisor logs that might be useful for us?
```txt
not available
```
### System Health information
not available
### Supervisor diagnostics
cannot find download diagnostics
### Additional information
_No response_
)
1 Like
AlexMPH
(Alex)
January 24, 2024, 11:15am
1223
Docker ce 25.0.1 was just released with a fix for this, and multiple users (including me) have indicated it now works.
1 Like
Tamsy
(Tamsy)
January 24, 2024, 1:39pm
1224
Better be wise and wait before upgrading Docker. There is absolutely no reason to rush but let it settle and mature before hopping to 25.0.x.
While for some Docker CE 25.0.1 seem to work with HA Supervisor other users are still having issues with some addons like i.e InfluxDB and ebusd. More about the latter HERE .
that’s not what the ADR actually says. The ADR only specifies a MINIMUM docker version. v25.0.1 seems to have fixed all issues I was seeing
1 Like
kanga_who
(Jason)
January 24, 2024, 11:54pm
1226
I understand that, I suggested in my next post…
If you have a working system and have the ADR minimum version of all the dependencies there is no need to update them and risk breaking your install.
Docker updates breaking HA installs has happened a few times now, I don’t see the point in updating it unless it’s to meet a change in the ADR or patch a security flaw.
petro
(Petro)
January 25, 2024, 12:09am
1227
I only update when HA forces new dependencies. I’ve only update handful of times since 2018. No reason to stay current with Debian when it’s meant to be LTS.
3 Likes