Error: System service failed cannot connect to docker daemon

Getting message below, presumably after power outage. Already restarted/rebooted and shutdown my Raspberry pi 8gb. Also flashed my mSD with latest UmbrelOS but no luck yet. I am able to login using SSH but running commands like

docker ps

or

sudo systemctl stop umbrel-startup.service && docker system prune --force --all && sudo systemctl start umbrel-startup.service

Result in the error “Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?”.

Also command

systemctl status docker

results in

docker.service - Docker Application Container Engine

Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)

Active: failed (Result: exit-code) since Sat 2022-06-11 13:21:31 UTC; 32min ago

Docs: https://docs.docker.com

Process: 16355 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=2)

Main PID: 16355 (code=exited, status=2)

docker.service: Service RestartSec=2s expired, scheduling restart.
docker.service: Scheduled restart job, restart counter is at 3.

Jun 11 13:21:31 umbrel systemd[1]: Stopped Docker Application Container Engine.

Jun 11 13:21:31 umbrel systemd[1]: docker.service: Start request repeated too quickly.

Jun 11 13:21:31 umbrel systemd[1]: docker.service: Failed with result ‘exit-code’.

Jun 11 13:21:31 umbrel systemd[1]: Failed to start Docker Application Container Engine.

Debug info:

=====================

= Umbrel debug info =

=====================

Umbrel version


0.4.18

Flashed OS version


v0.5.0

Raspberry Pi Model


Revision : d03115

Serial : 1000000010da26c1

Model : Raspberry Pi 4 Model B Rev 1.5

Firmware


Dec 1 2021 15:01:54

Copyright (c) 2012 Broadcom

version 71bd3109023a0c8575585ba87cbb374d2eeb038f (clean) (release) (start)

Temperature


temp=44.3’C

Throttling


throttled=0x0

Memory usage


total used free shared buff/cache available

Mem: 7.8G 117M 7.3G 8.0M 378M 7.6G

Swap: 4.1G 0B 4.1G

total: 1.5%

system: 1.5%

tor: 0%

mempool: 0%

lnd: 0%

home-assistant: 0%

electrs: 0%

btc-rpc-explorer: 0%

bitcoin: 0%

Memory monitor logs


2022-06-11 13:19:35 Memory monitor running!

2022-06-11 13:19:47 Memory monitor running!

2022-06-11 13:19:59 Memory monitor running!

2022-06-11 13:20:11 Memory monitor running!

2022-06-11 13:20:24 Memory monitor running!

2022-06-11 13:20:36 Memory monitor running!

2022-06-11 13:20:48 Memory monitor running!

2022-06-11 13:21:00 Memory monitor running!

2022-06-11 13:21:12 Memory monitor running!

2022-06-11 13:21:24 Memory monitor running!

Filesystem information


Filesystem Size Used Avail Use% Mounted on

/dev/root 59G 3.1G 53G 6% /

/dev/sda1 916G 527G 343G 61% /home/umbrel/umbrel

Startup service logs


Jun 11 13:21:25 umbrel umbrel startup[16068]: The NGINX_IP variable is not set. Defaulting to a blank string.

Jun 11 13:21:25 umbrel umbrel startup[16068]: The BITCOIN_P2P_PORT variable is not set. Defaulting to a blank string.

Jun 11 13:21:25 umbrel umbrel startup[16068]: The BITCOIN_IP variable is not set. Defaulting to a blank string.

Jun 11 13:21:25 umbrel umbrel startup[16068]: The LND_REST_PORT variable is not set. Defaulting to a blank string.

Jun 11 13:21:25 umbrel umbrel startup[16068]: The LND_GRPC_PORT variable is not set. Defaulting to a blank string.

Jun 11 13:21:25 umbrel umbrel startup[16068]: The LND_IP variable is not set. Defaulting to a blank string.

Jun 11 13:21:25 umbrel umbrel startup[16068]: The DASHBOARD_IP variable is not set. Defaulting to a blank string.

Jun 11 13:21:25 umbrel umbrel startup[16068]: The MIDDLEWARE_IP variable is not set. Defaulting to a blank string.

Jun 11 13:21:25 umbrel umbrel startup[16068]: The BITCOIN_RPC_PORT variable is not set. Defaulting to a blank string.

Jun 11 13:21:25 umbrel umbrel startup[16068]: The BITCOIN_RPC_USER variable is not set. Defaulting to a blank string.

Jun 11 13:21:25 umbrel umbrel startup[16068]: The BITCOIN_RPC_PASS variable is not set. Defaulting to a blank string.

Jun 11 13:21:25 umbrel umbrel startup[16068]: The BITCOIN_NETWORK variable is not set. Defaulting to a blank string.

Jun 11 13:21:25 umbrel umbrel startup[16068]: The MANAGER_IP variable is not set. Defaulting to a blank string.

Jun 11 13:21:25 umbrel umbrel startup[16068]: The NEUTRINO_SWITCHER_IP variable is not set. Defaulting to a blank string.

Jun 11 13:21:25 umbrel umbrel startup[16068]: The ELECTRUM_PORT variable is not set. Defaulting to a blank string.

Jun 11 13:21:25 umbrel umbrel startup[16068]: The ELECTRUM_IP variable is not set. Defaulting to a blank string.

Jun 11 13:21:25 umbrel umbrel startup[16068]: The NETWORK_IP variable is not set. Defaulting to a blank string.

Jun 11 13:21:26 umbrel umbrel startup[16068]: The Compose file ‘./docker-compose.yml’ is invalid because:

Jun 11 13:21:26 umbrel umbrel startup[16068]: networks.default.ipam.config.subnet is invalid: should use the CIDR format

Jun 11 13:21:26 umbrel umbrel startup[16068]: services.tor_proxy.ports contains an invalid type, it should be a number, or an object

Jun 11 13:21:26 umbrel umbrel startup[16068]: services.bitcoin.ports contains an invalid type, it should be a number, or an object

Jun 11 13:21:26 umbrel umbrel startup[16068]: services.electrs.ports contains an invalid type, it should be a number, or an object

Jun 11 13:21:26 umbrel umbrel startup[16068]: services.lnd.ports contains an invalid type, it should be a number, or an object

Jun 11 13:21:26 umbrel umbrel startup[16068]: services.nginx.ports contains an invalid type, it should be a number, or an object

Jun 11 13:21:26 umbrel umbrel startup[16068]: services.lnd.ports value [‘9735:9735’, ‘:’, ‘:’] has non-unique elements

Jun 11 13:21:26 umbrel umbrel startup[16068]: Failed to start containers

Jun 11 13:21:26 umbrel systemd[1]: umbrel-startup.service: Control process exited, code=exited, status=1/FAILURE

Jun 11 13:21:26 umbrel systemd[1]: umbrel-startup.service: Failed with result ‘exit-code’.

Jun 11 13:21:26 umbrel systemd[1]: Failed to start Umbrel Startup Service.

Jun 11 13:21:31 umbrel systemd[1]: Stopped Umbrel Startup Service.

External storage service logs


– Logs begin at Sat 2022-06-11 13:11:36 UTC, end at Sat 2022-06-11 13:22:10 UTC. –

Jun 11 13:11:41 umbrel systemd[1]: Starting External Storage Mounter…

Jun 11 13:11:41 umbrel external storage mounter[485]: Running external storage mount script…

Jun 11 13:11:41 umbrel external storage mounter[485]: Found device “Samsung PSSD T7”

Jun 11 13:11:41 umbrel external storage mounter[485]: Blacklisting USB device IDs against UAS driver…

Jun 11 13:11:41 umbrel external storage mounter[485]: Rebinding USB drivers…

Jun 11 13:11:41 umbrel external storage mounter[485]: Checking USB devices are back…

Jun 11 13:11:41 umbrel external storage mounter[485]: Waiting for USB devices…

Jun 11 13:11:42 umbrel external storage mounter[485]: Waiting for USB devices…

Jun 11 13:11:43 umbrel external storage mounter[485]: Waiting for USB devices…

Jun 11 13:11:44 umbrel external storage mounter[485]: Checking if the device is ext4…

Jun 11 13:11:44 umbrel external storage mounter[485]: Yes, it is ext4

Jun 11 13:11:44 umbrel external storage mounter[485]: Checking if device contains an Umbrel install…

Jun 11 13:11:44 umbrel external storage mounter[485]: Yes, it contains an Umbrel install

Jun 11 13:11:44 umbrel external storage mounter[485]: Bind mounting external storage over local Umbrel installation…

Jun 11 13:11:44 umbrel external storage mounter[485]: Bind mounting external storage over local Docker data dir…

Jun 11 13:11:44 umbrel external storage mounter[485]: Bind mounting external storage to /swap

Jun 11 13:11:44 umbrel external storage mounter[485]: Bind mounting SD card root at /sd-card…

Jun 11 13:11:44 umbrel external storage mounter[485]: Checking Umbrel root is now on external storage…

Jun 11 13:11:45 umbrel external storage mounter[485]: Checking /var/lib/docker is now on external storage…

Jun 11 13:11:45 umbrel external storage mounter[485]: Checking /swap is now on external storage…

Jun 11 13:11:45 umbrel external storage mounter[485]: Setting up swapfile

Jun 11 13:11:46 umbrel external storage mounter[485]: Setting up swapspace version 1, size = 4 GiB (4294963200 bytes)

Jun 11 13:11:46 umbrel external storage mounter[485]: no label, UUID=3ad0e221-e99d-4c91-a737-3f8e5c5cd9f8

Jun 11 13:11:46 umbrel external storage mounter[485]: Checking SD Card root is bind mounted at /sd-root…

Jun 11 13:11:46 umbrel external storage mounter[485]: Starting external drive mount monitor…

Jun 11 13:11:46 umbrel external storage mounter[485]: Mount script completed successfully!

Jun 11 13:11:46 umbrel systemd[1]: Started External Storage Mounter.

External storage SD card update service logs


Jun 11 13:11:57 umbrel external storage updater[904]: Fixing permissions

Jun 11 13:12:00 umbrel external storage updater[904]: Configuring new release

Jun 11 13:12:00 umbrel external storage updater[904]: ======================================

Jun 11 13:12:00 umbrel external storage updater[904]: =========== RECONFIGURING ============

Jun 11 13:12:00 umbrel external storage updater[904]: ========= UMBREL (mainnet) ===========

Jun 11 13:12:00 umbrel external storage updater[904]: ======================================

Jun 11 13:12:00 umbrel external storage updater[904]: Generating auth credentials

Jun 11 13:12:00 umbrel external storage updater[904]: Generating Tor password

Jun 11 13:12:08 umbrel external storage updater[904]: docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.

Jun 11 13:12:08 umbrel external storage updater[904]: See ‘docker run --help’.

Jun 11 13:12:08 umbrel external storage updater[904]: == End Update Script 01-run.sh ==

Jun 11 13:12:08 umbrel external storage updater[904]: == Begin Update Script 02-run.sh ==

Jun 11 13:12:08 umbrel external storage updater[904]: =======================================

Jun 11 13:12:08 umbrel external storage updater[904]: =============== UPDATE ================

Jun 11 13:12:08 umbrel external storage updater[904]: =======================================

Jun 11 13:12:08 umbrel external storage updater[904]: ========= Stage: Post-update ==========

Jun 11 13:12:08 umbrel external storage updater[904]: =======================================

Jun 11 13:12:08 umbrel external storage updater[904]: == End Update Script 02-run.sh ==

Jun 11 13:12:08 umbrel external storage updater[904]: == Begin Update Script 03-run.sh ==

Jun 11 13:12:08 umbrel external storage updater[904]: =======================================

Jun 11 13:12:08 umbrel external storage updater[904]: =============== UPDATE ================

Jun 11 13:12:08 umbrel external storage updater[904]: =======================================

Jun 11 13:12:08 umbrel external storage updater[904]: =========== Stage: Success ============

Jun 11 13:12:08 umbrel external storage updater[904]: =======================================

Jun 11 13:12:08 umbrel external storage updater[904]: Removing backup

Jun 11 13:12:08 umbrel external storage updater[904]: Successfully installed Umbrel 0.5.0

Jun 11 13:12:08 umbrel external storage updater[904]: == End Update Script 03-run.sh ==

Jun 11 13:12:08 umbrel external storage updater[904]: Deleting cloned repository

Jun 11 13:12:08 umbrel external storage updater[904]: Removing lock

Jun 11 13:12:08 umbrel systemd[1]: Started External Storage SDcard Updater.

Karen logs


karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

karen is running in /home/umbrel/umbrel/events

Docker containers


Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Umbrel logs


ERROR: The Compose file ‘./docker-compose.yml’ is invalid because:

networks.default.ipam.config.subnet is invalid: should use the CIDR format

services.tor_proxy.ports contains an invalid type, it should be a number, or an object

services.bitcoin.ports contains an invalid type, it should be a number, or an object

services.electrs.ports contains an invalid type, it should be a number, or an object

services.lnd.ports contains an invalid type, it should be a number, or an object

services.lnd.ports contains an invalid type, it should be a number, or an object

services.nginx.ports contains an invalid type, it should be a number, or an object

services.lnd.ports value [‘9735:9735’, ‘:’, ‘:’] has non-unique elements

Bitcoin Core logs


ERROR: The Compose file ‘./docker-compose.yml’ is invalid because:

networks.default.ipam.config.subnet is invalid: should use the CIDR format

services.tor_proxy.ports contains an invalid type, it should be a number, or an object

services.bitcoin.ports contains an invalid type, it should be a number, or an object

services.electrs.ports contains an invalid type, it should be a number, or an object

services.lnd.ports contains an invalid type, it should be a number, or an object

services.lnd.ports contains an invalid type, it should be a number, or an object

services.nginx.ports contains an invalid type, it should be a number, or an object

services.lnd.ports value [‘9735:9735’, ‘:’, ‘:’] has non-unique elements

LND logs


ERROR: The Compose file ‘./docker-compose.yml’ is invalid because:

networks.default.ipam.config.subnet is invalid: should use the CIDR format

services.tor_proxy.ports contains an invalid type, it should be a number, or an object

services.bitcoin.ports contains an invalid type, it should be a number, or an object

services.electrs.ports contains an invalid type, it should be a number, or an object

services.lnd.ports contains an invalid type, it should be a number, or an object

services.lnd.ports contains an invalid type, it should be a number, or an object

services.nginx.ports contains an invalid type, it should be a number, or an object

services.lnd.ports value [‘9735:9735’, ‘:’, ‘:’] has non-unique elements

electrs logs


ERROR: The Compose file ‘./docker-compose.yml’ is invalid because:

networks.default.ipam.config.subnet is invalid: should use the CIDR format

services.tor_proxy.ports contains an invalid type, it should be a number, or an object

services.bitcoin.ports contains an invalid type, it should be a number, or an object

services.electrs.ports contains an invalid type, it should be a number, or an object

services.lnd.ports contains an invalid type, it should be a number, or an object

services.lnd.ports contains an invalid type, it should be a number, or an object

services.nginx.ports contains an invalid type, it should be a number, or an object

services.lnd.ports value [‘9735:9735’, ‘:’, ‘:’] has non-unique elements

Tor logs


ERROR: The Compose file ‘./docker-compose.yml’ is invalid because:

networks.default.ipam.config.subnet is invalid: should use the CIDR format

services.tor_proxy.ports contains an invalid type, it should be a number, or an object

services.bitcoin.ports contains an invalid type, it should be a number, or an object

services.electrs.ports contains an invalid type, it should be a number, or an object

services.lnd.ports contains an invalid type, it should be a number, or an object

services.lnd.ports contains an invalid type, it should be a number, or an object

services.nginx.ports contains an invalid type, it should be a number, or an object

services.lnd.ports value [‘9735:9735’, ‘:’, ‘:’] has non-unique elements

App logs


btc-rpc-explorer

ERROR: Couldn’t find env file: /home/umbrel/umbrel/.env

home-assistant

ERROR: Couldn’t find env file: /home/umbrel/umbrel/.env

mempool

ERROR: Couldn’t find env file: /home/umbrel/umbrel/.env

================

==== Result ====

================

The debug script did not automatically detect any issues with your Umbrel.

SOLUTION thanks to @21isenough

Step 1 - Enter using SSH into your Umbrel node:

Step 2 - stop Umbrel node with:

cd umbrel

sudo ./scripts/stop

Step 3 - clean / reconfigure the broken container:

sudo rm -f .env && sudo ./scripts/configure

Step 4 - Restart your node:

sudo ./scripts/start

I tried step 2 sudo ./scripts/stop and got the following:

umbrel@umbrel:~/umbrel$ sudo ./scripts/stop
[sudo] password for umbrel:
Killing background services
Stopping installed apps…

Stopping Docker services…

WARNING: The TOR_PROXY_PORT variable is not set. Defaulting to a blank string.
WARNING: The TOR_PROXY_IP variable is not set. Defaulting to a blank string.
WARNING: The NGINX_PORT variable is not set. Defaulting to a blank string.
WARNING: The NGINX_IP variable is not set. Defaulting to a blank string.
WARNING: The DASHBOARD_IP variable is not set. Defaulting to a blank string.
WARNING: The UMBREL_AUTH_SECRET variable is not set. Defaulting to a blank string.
WARNING: The BITCOIN_P2P_PORT variable is not set. Defaulting to a blank string.
WARNING: The BITCOIN_RPC_PORT variable is not set. Defaulting to a blank string.
WARNING: The BITCOIN_RPC_USER variable is not set. Defaulting to a blank string.
WARNING: The BITCOIN_RPC_PASS variable is not set. Defaulting to a blank string.
WARNING: The BITCOIN_NETWORK variable is not set. Defaulting to a blank string.
WARNING: The MANAGER_IP variable is not set. Defaulting to a blank string.
WARNING: The AUTH_PORT variable is not set. Defaulting to a blank string.
WARNING: The AUTH_IP variable is not set. Defaulting to a blank string.
WARNING: The NETWORK_IP variable is not set. Defaulting to a blank string.
ERROR: The Compose file ‘./docker-compose.yml’ is invalid because:
networks.default.ipam.config.subnet is invalid: should use the CIDR format
services.tor_proxy.ports contains an invalid type, it should be a number, or an object
services.auth.ports contains an invalid type, it should be a number, or an object
services.nginx.ports contains an invalid type, it should be a number, or an object