sn00py Posted February 18, 2020 Share Posted February 18, 2020 HEllo i have a problem. Everytime my unraid server starts, the network interface br0 is missing and therefore the docker container wouldn't start. I have to manually add them everytime - after this everythings works correct. But the problem is if the server starts because of a long power interruption - no containter is started. How to fix this? Quote Link to comment
trurl Posted February 18, 2020 Share Posted February 18, 2020 Are you sure you don't have something wrong in your Network Settings? How are you manually adding them? It shouldn't be necessary to work at the command line for this. Quote Link to comment
knex666 Posted February 18, 2020 Share Posted February 18, 2020 I had the same problem:Solfed it with this User Script on array start#!/bin/bashdocker network create -d macvlan --subnet=192.168.0.0/24 --gateway=192.168.0.1 -o parent=br0 br0With the last Update the Problem went awayCheersGesendet von meinem Redmi Note 8 Pro mit Tapatalk Quote Link to comment
bonienl Posted February 18, 2020 Share Posted February 18, 2020 You should never use a script to create the br0 network. The br0 network is automatically created when the docker service is started. If docker can not create the network, an error is logged in the syslog. Post diagnostics so we can check. Quote Link to comment
sn00py Posted February 18, 2020 Author Share Posted February 18, 2020 i didn't change something in network settings everytime i reboot i have to connect with telnet and execute following script rm /var/lib/docker/network/files/local-kv.db /etc/rc.d/rc.docker restart after this the br0 interface exists Diagnostic File is attached hal9000-diagnostics-20200218-1924.zip Quote Link to comment
bonienl Posted February 18, 2020 Share Posted February 18, 2020 Your system doesn't get a proper IP address assigned when starting up. The reason is the interface goes down while inquiring for an IP address. This prevents docker from assigning br0 as valid network Disable "bonding" in your network configuration and retest. It is also recommended to update to Unraid 6.8.2 Quote Link to comment
sn00py Posted February 23, 2020 Author Share Posted February 23, 2020 did both update and disabled bonding, now after reboot all works. thanks Quote Link to comment
costianuv Posted January 26 Share Posted January 26 @bonienl Raising this one from the dead. What if this machine is running pfSense in a VM. (it's normat that it does not have an IP at startup) any elegant solution for such cases if running a script to create br0 is not advisable? Quote Link to comment
JonathanM Posted January 27 Share Posted January 27 20 hours ago, costianuv said: What if this machine is running pfSense in a VM. (it's normat that it does not have an IP at startup) Not normal. I run pfSense as a VM, and don't have any of the listed issues. Running your gateway as a VM can cause issues, but not if you have things configured to account for them. In my case, Unraid has a 10GB interface with a fixed IP connected to the main switch, and the pfSense VM has 2 1GB connections passed through, the WAN assigned interface connected to the modem, the LAN assigned interface connected to the same switch as the 10GB. Other than not having DNS and WAN connectivity until the VM is running, Unraid handles it just fine. 1 Quote Link to comment
costianuv Posted January 27 Share Posted January 27 Ah. I see. That did the trick! Had DHCP assignment burned into my mind as the only viable way to get an IP. 😅 Thank you! Quote Link to comment
JonathanM Posted January 27 Share Posted January 27 2 hours ago, costianuv said: Ah. I see. That did the trick! Had DHCP assignment burned into my mind as the only viable way to get an IP. 😅 Thank you! It's the best way, preferably with static assignments handed out by the router's DHCP service. That way you only have a single place to update things to manage your IP's. However, when the DHCP service is managed by a VM, you are forced into setting it on the host manually. I still have the assignment in the router's DHCP table, as I keep a standalone PC ready to take over the pfSense duties if the server ever needs more than a few minutes downtime. Keeping 2 pfSense instances synced is easy. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.