Error: Failed to start containers

Yes, just bought a new one (about £7) and started it up with that after flashing the latest version of the OS on to it. I didn’t realise that only the OS is on the card, the important stuff is on the drive, so flashing a new card gets all back to normal provided the hard drive is ok, which mine is. Only downside for me is that my lightning node was down for 3 days and I got one of my channels force closed on me.

Shit, sorry to hear that. Hope you get new channels up and running.
I’ve ordered an SD, delivered tomorrow, hopefully minimise downtime
Thanks again

It’s all ok, didn’t lose any funds apart from a very small mining fee.

2 Likes

thanks.solved my problem

I started using Umbrel nearly a year ago. I rarely experienced any issues. I recently lost power and now the browser shows “Error: Failed to start containers”. I bought a new microSD card and flashed it with the most recent Umbrel OS, but still receive the error. I am able to ssh to the device and see that there are errors, but I am not sure what to try next to start the containers. Here is my debug file. I appreciate any advice, links, or suggestions you can provide. Thank you for your time and consideration.

=====================
= Umbrel debug info =

Umbrel version

0.5.0

Flashed OS version

v0.5.0

Raspberry Pi Model

Revision : d03114
Serial : 10000000678aebdd
Model : Raspberry Pi 4 Model B Rev 1.4

Firmware

Dec 1 2021 15:01:54
Copyright © 2012 Broadcom
version 71bd3109023a0c8575585ba87cbb374d2eeb038f (clean) (release) (start)

Temperature

temp=37.9’C

Throttling

throttled=0x0

Memory usage

          total        used        free      shared  buff/cache   available

Mem: 7.8G 116M 7.0G 16M 654M 7.6G
Swap: 4.1G 0B 4.1G

total: 1.5%
system: 1.5%
tor: 0%
ride-the-lightning: 0%
mempool: 0%
lnd: 0%
lightning: 0%
electrs: 0%
electrs: 0%
btcpay-server: 0%
bitcoin: 0%
bitcoin: 0%

Memory monitor logs

2022-07-19 00:42:47 Memory monitor running!
2022-07-19 00:42:59 Memory monitor running!
2022-07-19 00:43:11 Memory monitor running!
2022-07-19 00:43:23 Memory monitor running!
2022-07-19 00:43:35 Memory monitor running!
2022-07-19 00:43:47 Memory monitor running!
2022-07-19 00:43:59 Memory monitor running!
2022-07-19 00:44:12 Memory monitor running!
2022-07-19 00:44:24 Memory monitor running!
2022-07-19 00:44:35 Memory monitor running!

Filesystem information

Filesystem Size Used Avail Use% Mounted on
/dev/root 29G 3.1G 25G 12% /
/dev/sda1 1.8T 534G 1.2T 31% /home/umbrel/umbrel

Startup service logs

Jul 19 00:44:35 umbrel umbrel startup[19457]: Starting backup monitor…
Jul 19 00:44:35 umbrel umbrel startup[19457]: Starting decoy backup trigger…
Jul 19 00:44:35 umbrel umbrel startup[19457]: Starting Docker services…
Jul 19 00:44:37 umbrel umbrel startup[19457]: The TOR_PROXY_PORT variable is not set. Defaulting to a blank string.
Jul 19 00:44:37 umbrel umbrel startup[19457]: The TOR_PROXY_IP variable is not set. Defaulting to a blank string.
Jul 19 00:44:37 umbrel umbrel startup[19457]: The NGINX_PORT variable is not set. Defaulting to a blank string.
Jul 19 00:44:37 umbrel umbrel startup[19457]: The NGINX_IP variable is not set. Defaulting to a blank string.
Jul 19 00:44:37 umbrel umbrel startup[19457]: The DASHBOARD_IP variable is not set. Defaulting to a blank string.
Jul 19 00:44:37 umbrel umbrel startup[19457]: The MIDDLEWARE_IP variable is not set. Defaulting to a blank string.
Jul 19 00:44:37 umbrel umbrel startup[19457]: The UMBREL_AUTH_SECRET variable is not set. Defaulting to a blank string.
Jul 19 00:44:37 umbrel umbrel startup[19457]: The BITCOIN_P2P_PORT variable is not set. Defaulting to a blank string.
Jul 19 00:44:37 umbrel umbrel startup[19457]: The BITCOIN_RPC_PORT variable is not set. Defaulting to a blank string.
Jul 19 00:44:37 umbrel umbrel startup[19457]: The BITCOIN_RPC_USER variable is not set. Defaulting to a blank string.
Jul 19 00:44:37 umbrel umbrel startup[19457]: The BITCOIN_RPC_PASS variable is not set. Defaulting to a blank string.
Jul 19 00:44:37 umbrel umbrel startup[19457]: The BITCOIN_NETWORK variable is not set. Defaulting to a blank string.
Jul 19 00:44:37 umbrel umbrel startup[19457]: The MANAGER_IP variable is not set. Defaulting to a blank string.
Jul 19 00:44:37 umbrel umbrel startup[19457]: The BITCOIN_IP variable is not set. Defaulting to a blank string.
Jul 19 00:44:37 umbrel umbrel startup[19457]: The LND_IP variable is not set. Defaulting to a blank string.
Jul 19 00:44:37 umbrel umbrel startup[19457]: The AUTH_PORT variable is not set. Defaulting to a blank string.
Jul 19 00:44:37 umbrel umbrel startup[19457]: The AUTH_IP variable is not set. Defaulting to a blank string.
Jul 19 00:44:37 umbrel umbrel startup[19457]: The NETWORK_IP variable is not set. Defaulting to a blank string.
Jul 19 00:44:37 umbrel umbrel startup[19457]: The Compose file ‘./docker-compose.yml’ is invalid because:
Jul 19 00:44:37 umbrel umbrel startup[19457]: networks.default.ipam.config.subnet is invalid: should use the CIDR format
Jul 19 00:44:37 umbrel umbrel startup[19457]: services.tor_proxy.ports contains an invalid type, it should be a number, or an object
Jul 19 00:44:37 umbrel umbrel startup[19457]: services.auth.ports contains an invalid type, it should be a number, or an object
Jul 19 00:44:37 umbrel umbrel startup[19457]: services.nginx.ports contains an invalid type, it should be a number, or an object
Jul 19 00:44:37 umbrel umbrel startup[19457]: Failed to start containers
Jul 19 00:44:37 umbrel systemd[1]: umbrel-startup.service: Control process exited, code=exited, status=1/FAILURE
Jul 19 00:44:37 umbrel systemd[1]: umbrel-startup.service: Failed with result ‘exit-code’.
Jul 19 00:44:37 umbrel systemd[1]: Failed to start Umbrel Startup Service.

External storage service logs

– Logs begin at Tue 2022-06-07 15:16:31 UTC, end at Tue 2022-07-19 00:44:37 UTC. –
Jun 07 15:16:37 umbrel systemd[1]: Starting External Storage Mounter…
Jun 07 15:16:37 umbrel external storage mounter[505]: Running external storage mount script…
Jun 07 15:16:39 umbrel external storage mounter[505]: Found device “Samsung PSSD T7”
Jun 07 15:16:39 umbrel external storage mounter[505]: Blacklisting USB device IDs against UAS driver…
Jun 07 15:16:40 umbrel external storage mounter[505]: Rebinding USB drivers…
Jun 07 15:16:40 umbrel external storage mounter[505]: Checking USB devices are back…
Jun 07 15:16:40 umbrel external storage mounter[505]: Waiting for USB devices…
Jun 07 15:16:41 umbrel external storage mounter[505]: Waiting for USB devices…
Jun 07 15:16:42 umbrel external storage mounter[505]: Waiting for USB devices…
Jun 07 15:16:43 umbrel external storage mounter[505]: Checking if the device is ext4…
Jun 07 15:16:44 umbrel external storage mounter[505]: Yes, it is ext4
Jun 07 15:16:44 umbrel external storage mounter[505]: Checking if device contains an Umbrel install…
Jun 07 15:16:44 umbrel external storage mounter[505]: Yes, it contains an Umbrel install
Jun 07 15:16:44 umbrel external storage mounter[505]: Bind mounting external storage over local Umbrel installation…
Jun 07 15:16:44 umbrel external storage mounter[505]: Bind mounting external storage over local Docker data dir…
Jun 07 15:16:44 umbrel external storage mounter[505]: Bind mounting external storage to /swap
Jun 07 15:16:44 umbrel external storage mounter[505]: Bind mounting SD card root at /sd-card…
Jun 07 15:16:44 umbrel external storage mounter[505]: Checking Umbrel root is now on external storage…
Jun 07 15:16:46 umbrel external storage mounter[505]: Checking /var/lib/docker is now on external storage…
Jun 07 15:16:46 umbrel external storage mounter[505]: Checking /swap is now on external storage…
Jun 07 15:16:46 umbrel external storage mounter[505]: Setting up swapfile
Jun 07 15:16:47 umbrel external storage mounter[505]: Setting up swapspace version 1, size = 4 GiB (4294963200 bytes)
Jun 07 15:16:47 umbrel external storage mounter[505]: no label, UUID=8bb9acc3-ac2b-4271-bccd-b9d5a70b70db
Jun 07 15:16:47 umbrel external storage mounter[505]: Checking SD Card root is bind mounted at /sd-root…
Jun 07 15:16:47 umbrel external storage mounter[505]: Starting external drive mount monitor…
Jun 07 15:16:47 umbrel external storage mounter[505]: Mount script completed successfully!
Jun 07 15:16:47 umbrel systemd[1]: Started External Storage Mounter.

External storage SD card update service logs

– Logs begin at Tue 2022-06-07 15:16:31 UTC, end at Tue 2022-07-19 00:44:37 UTC. –
Jun 07 15:16:54 umbrel systemd[1]: Starting External Storage SDcard Updater…
Jun 07 15:16:54 umbrel external storage updater[1006]: Checking if SD card Umbrel is newer than external storage…
Jun 07 15:16:54 umbrel external storage updater[1006]: No, SD version is not newer, exiting.
Jun 07 15:16:54 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.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

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.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

App logs

bitcoin

./scripts/app: line 81: NETWORK_IP: unbound variable

btcpay-server

./scripts/app: line 81: NETWORK_IP: unbound variable

electrs

./scripts/app: line 81: NETWORK_IP: unbound variable

lightning

./scripts/app: line 81: NETWORK_IP: unbound variable

mempool

./scripts/app: line 81: NETWORK_IP: unbound variable

ride-the-lightning

./scripts/app: line 81: NETWORK_IP: unbound variable

==== Result ====

The debug script did not automatically detect any issues with your Umbrel.
Connection to umbrel.local closed.

I attempted the following solution.

You have error that a specific Umbrel App do not start or it keeps staying in “installing”, maybe the docker container for that app it wasn’t installed correctly or it hangs.

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

However, when I run Step 3, I receive the error.

docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See ‘docker run --help’.

From that point, I am not sure what I should do from the help file to get the docker daemon running.

I continued to step 4 and this happened.

======================================
============= STARTING ===============
============== UMBREL ================

Setting environment variables…

Starting karen…

Starting status monitors…
Starting memory monitor…

Starting backup monitor…

Starting decoy backup trigger…

Starting 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 MIDDLEWARE_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 BITCOIN_IP variable is not set. Defaulting to a blank string.
WARNING: The LND_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
Failed to start containers

1 Like

Hi there got the same thing here :cry:

I have the same problem, how did you fix yours?

this worked for me

1 Like

Same issue. How to fix this?

Thank you. Worked for me.

Hey louneskmt, I have tried all the steps above getting the same " Error: Failed to start containers" error when booting. I re-flashed my sd card with Umbrel OS and still get same error, please, see log here Really appreciate you taking a look:)

I also had the same problem and can confirm following the steps in post #7 worked :slight_smile:

I had to reflash the O/S onto the SD card first, but once done following the SSH commands worked a treat

Thank you 21isenough!

Thanks - solved this :slight_smile:

Hi,

I can confirm that steps are working even for umbrel v 0.5.4.
I followed steps, but before that I would add Step 0 which is reflash umbrelos on a brand new microSD card and the use umbrel original password for ssh (moneyprintergobrrr) and then follow steps as written by @OpenWaterSwim.

Thank you community for help.

when i try to run the “sudo rm -f .env && sudo ./scripts/configure” I get the following:

docker: Error response from daemon: open /var/lib/docker/overlay2/d4467a12718b341182b314a283b0806d9e43cd85fa39dee8086c978925513cf9/committed: no such file or directory.
See ‘docker run --help’.

not sure what is happening here. any thoughts??

Have you hadany luck in resolving this? I continue to get the error message…
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See ‘docker run --help’.

And…
umbrel@umbrel:~/umbrel $ sudo ./scripts/stop
Killing background services
Stopping installed apps…

Stopping app chatpad-ai…
Stopping app mempool…
/home/umbrel/umbrel/scripts/…/scripts/app: line 79: NETWORK_IP: unbound variable
/home/umbrel/umbrel/scripts/…/scripts/app: line 79: NETWORK_IP: unbound variable
Stopping app electrs…
/home/umbrel/umbrel/scripts/…/scripts/app: line 79: NETWORK_IP: unbound variable
Stopping app lightning…
Stopping app core-lightning…
Stopping app lnbits…
/home/umbrel/umbrel/scripts/…/scripts/app: line 79: NETWORK_IP: unbound variable
Stopping app bitcoin…
/home/umbrel/umbrel/scripts/…/scripts/app: line 79: NETWORK_IP: unbound variable
/home/umbrel/umbrel/scripts/…/scripts/app: line 79: NETWORK_IP: unbound variable
/home/umbrel/umbrel/scripts/…/scripts/app: line 79: NETWORK_IP: unbound variable

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

I have the same thing. Any luck out there?

I tried multiple items to get it to work. The thing that worked was a resync of the Blockchain. Sucked, but I made sure to have my seed words, wiped the drive, then reflashed the image. Let the node sync 100% then entered my seed phrase in Lightning Node app to recover my funds and that was that.