HA on Debian 11 (Bullseye) with docker-compose?

I recently upgraded my server to Debian 11 (Bullseye) and now I have a small problem.
If I reboot the server HA does not completely restart.
It does restart OK when I run
docker-compose restart

Cross-post from here?

Nah. All good. That topic was about a supervised install, this is a container install.

Let’s stick here, then.

OP, what do you mean by that? Logs, please.
Do you mean restarting from inside HA doesn’t work, while restarting the container does?

No, as I stated in my original post, if I restart the server HA does not completely restart.
It does restart OK when I run
docker-compose restart
Here are the logs:-
Waiting on integrations to complete setup: shelly
8:42:43 PM – (WARNING) bootstrap.py - message first occurred at 8:39:43 PM and shows up 4 times

Failed to update: connection error
8:41:56 PM – (ERROR) fronius - message first occurred at 8:38:45 PM and shows up 5 times

Error fetching Ring active dings data: (‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’))
8:41:50 PM – (WARNING) Ring

Error setting up entry Xiaomi Aqara Gateway for xiaomi_aqara
8:38:46 PM – (ERROR) components/xiaomi_aqara/init.py

Failed to login, Error: Cannot connect to host 10.1.1.1:443 ssl:False [Network unreachable], Line: 109
8:38:46 PM – (ERROR) Ubiquiti EdgeOS Routers (custom integration)

Error while setting up opengarage platform for cover
8:38:45 PM – (ERROR) Cover

Config entry ‘DaikinRear’ for daikin integration not ready yet: Cannot connect to host 10.1.1.32:80 ssl:default [Network unreachable]; Retrying in background
8:38:45 PM – (WARNING) config_entries.py - message first occurred at 8:38:45 PM and shows up 2 times

Unable to prepare setup for platform zoneminder.sensor: Unable to set up component.
8:38:45 PM – (ERROR) setup.py - message first occurred at 8:38:45 PM and shows up 2 times

Error connecting to Open garage: Cannot connect to host 10.1.1.5:80 ssl:default [Network unreachable]
8:38:45 PM – (ERROR) /usr/local/lib/python3.9/site-packages/opengarage/init.py

Error setting up entry 10.1.1.102 for shelly
8:38:45 PM – (ERROR) components/shelly/utils.py

Failed to connect to MQTT server due to exception: [Errno 101] Network unreachable
8:38:45 PM – (ERROR) MQTT

Hikvision event stream has no data, unable to set up
8:38:45 PM – (ERROR) hikvision - message first occurred at 8:38:45 PM and shows up 3 times

Unable to fetch deviceInfo, error: HTTPConnectionPool(host=‘10.1.1.40’, port=80): Max retries exceeded with url: /ISAPI/System/deviceInfo (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7f044beec790>: Failed to establish a new connection: [Errno 101] Network unreachable’))
8:38:45 PM – (ERROR) /usr/local/lib/python3.9/site-packages/pyhik/hikvision.py - message first occurred at 8:38:45 PM and shows up 3 times

Pioneer Pioneer Receiver refused connection
8:38:45 PM – (WARNING) pioneer

Error during setup of component zoneminder
8:38:45 PM – (ERROR) components/zoneminder/init.py

Also, once I have successfully restarted I can then restart from inside HA too.

Do you mean restart the server as a whole?

Obviously, there is a network issue, there.
Looks like the docker daemon is started before your network is up, at lest the “10.1.1.0/24” one.

Yes that is what I mean.
Do you know how to delay the docker daemon startup?

You likely have some specifics, because it’s normally taken care of by the systemd unit file with “After=network-online”

[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
BindsTo=containerd.service
After=network-online.target firewalld.service containerd.service
Wants=network-online.target
Requires=docker.socket
...

Thanks,
I checked both
/lib/systemd/system/containerd.service
and
/lib/systemd/system/docker.service
Both have that line.

This problem only started after I upgraded from Buster to Bullseye.
I guess for now I will just have to remember to run
docker-compose restart
after a server reboot.

Stop restarting your server Rob. :frowning:

LoL. :grinning:
I only restart the server when there is a kernel update.