I recently changed routers. One router 192.168.1.1 to 192.168.50.1. I got a valid IP and can ping internet. But node has not started correctly every since. 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 flashed the SD card 3 times and replaced with a new. I am spinning up a secondary or new node now. I would like to fix the old one and save a two week process. I have funds on it.
Hi @puppetmasterp
Interesting, I would’ve guessed this would be resolved by a restart or reflash, but we have two options to try here.
Firstly, if you could SSH into your Umbrel, and run the following command:
Open a terminal window on your computer. On macOS, you can open the Terminal app that’s installed by default on every Mac. On Windows, you can open Command Prompt or the PowerShell app.
Type in the following command* and press the Enter
key:ssh -t umbrel@umbrel.local
*In the command given above, you can replace umbrel.local
with the local IP of your Umbrel if you prefer. If you are using PowerShell on Windows 10, you may need to run ssh umbrel@umbrel
instead of the command given above.
You will then be prompted to enter your password. This is the same password you use to access your Umbrel through a browser. The default password before you have created an account on your Umbrel is moneyprintergobrrr
on Raspberry Pi, and umbrel
on Umbrel Home. You will not be able to see your password as you type it into the terminal. Once you have typed in your password, press the Enter
key.
then run
sudo systemctl stop docker && sudo rm -rf /var/lib/docker/* && sudo reboot
If that does not work, it may also be worth looking at this static IP guide which could help.
How could we fix ourselves these issues?
1. How to set a fix IP for my Umbrel?
Option A - setup in your router a fix IP for your Umbrel
enter in your router configuration
find DNS or DHCP server (depending on each brand)
set a fix IP, from your LAN range and one that is not used by other device. You can run from any Windows machine in command prompt arp -a
and will see a list of all computers connected in your LAN, with their assigned IPs and MAC address. One of those could be also your Umbrel if is ON. Also you can see the MAC address on the box of your Pi.
so assign a fix IP using your RPi MAC address in your router
done, from now on, each time your RPi will be connected to that router, it will be assigned the IP you configure it.
Option B - setup a fix IP in your RPi settings
use Windows Powershell or Putty to enter SSH into your Rpi
type ssh umbrel@umbrel.local
or ssh umbrel@yourRpi-IP` if you know that dynamically assigned IP (see previous point listing IPs in your LAN)
will ask you for a password, BUT YOU WILL NOT SEE IT. Just type your user password for Umbrel and press ENTER.
once you are in, configure the static IP address for the Pi, the gateway path and a DNS server. The configuration for the DHCP client (Pi) is located in the /etc/dhcpcd.conf file:
sudo nano /etc/dhcpcd.conf
The following snippet is an example of a sample configuration.
Change the value of static routers and static domain_name_servers to the IP of your router (default gateway, see Option A).
Be aware of giving the Raspberry Pi an address which is OUTSIDE the range of addresses which are assigned by the DHCP server. You can get this range by looking under the router configurations page and checking for the range of the DHCP addresses. This means, that if the DHCP range goes from 192.168.178.1 to 192.168.178.99 you’re good to go with the IP 192.168.178.100 for your Raspberry Pi.
Add the following to the /etc/dhcpcd.conf file:
#Configuration static IP address (CHANGE THE VALUES TO FIT FOR YOUR NETWORK)
interface eth0
static ip_address=192.168.178.100/24
static routers=192.168.178.1
static domain_name_servers=192.168.178.1
Restart networking system sudo /etc/init.d/networking restart
NOTE (Thanks @LoboGuara ): If you update umbrel by reflashing a new version in SDcard, dchpcd.conf file is reseted. So make a copy of that file before you reflash your mSD card or edit again with your modifications before you start your Umbrel.
2. Add Umbrel’s IP into your hosts file
Now, once you know that your Pi will have a fix IP, you can go and add it also to your local computer, for easy accessing.
Go to the hosts file located into: C\Windows\system32\drivers\etc\ If you can’t see it, go to view folder options and select “show hidden files and folders”.
copy it onto your desktop and start editing with notepad
add the following line:
192.168.x.x umbrel.local
(replace 192.168.x.x with your local IP assigned for your Umbrel)
save the file and copy it back over the original. It will ask you to confirm, because it’s a system file. Confirm and done.
restart your PC. From now on your PC will always go to the assigned IP when you type in your browser umbrel.local
For Mac users, follow these steps to edit your hosts file .
For Linux users, these instructions are not valid.