Unable to start apps after Update to 4.0
Hey guys,
updated today but i'm getting problems with the networks.
Roughly half of my apps wont start.
36 Replies
How many apps do you have?
Please share the result of ./runtipi-cli debug
Damn did docker run out of subnets?
Looks like it went out of addresses in the network
Sorry for the delay - work stuff 🙂
Maybe you have something special in your
user-config/tipi-compose.yml
?
Otherwise I suggest to remove some containers manually
Check with docker pa
docker psYou can increase the addresses by editing the docker daemon config I think
I have a grand total of 9 applications that can start. This seems to be the max as I can only install or start another, if I completely uninstall one of the 9. All I have in my tipi compose is traefik stuff. Dashboard port and DNS token.
Try to
docker network prune
maybe it will release some addresses
Have you done custom things in your docker install /etc/docker/daemon.json? To limit address pool or something like using a different subnet?No but i have noticed something. Several apps are in the network 172.x.0.0 but there are others in 192.168.x.0. the x in the 172 network are going up 1 at a time but in the 192 network there are going up in the 3rd octave in multiples of 16 so it runs out of addresses very quickly
I've also removed all apps 1 by 1 and began reinstalling them.
According to Portainer i have 33 networks which seems to be 30 apps and the usual 3 you get on the host
Also to answer your questions - Pruning hasnt helped and i havent stepped outside the default directory in opt
I've found the root cause of your issue, since we don't define the subnets explicitly Docker is using its default scheme. After 15 bridge networks docker runs out of available addresses
ah-ha! brilliant 🙂
I'll release a patch fix later today
If you are in a hurry we can add custom configs to your apps to use specified networks
No hurry at all! i took some stuff offline and have backups so can fix it later without issue! thank you for looking into it
Change is not as trivial as expected! Will continue tomorrow
I have the fix ready, I'm releasing a beta version. Are you willing to test?
absolutely
Cool, wait a couple of minutes I'm going to update my instance with this beta to make sure it works first
ok cool
Count me in
Okay so it works on my side. Try
sudo ./runtipi-cli update v4.0.3-beta.1
Now each app has a dedicated internal subnet

What the heck
Which will cap the number of apps to 244 instead of 30 or so
What does this do
Ipam
Docker default ip scheme uses a narrower pool
We can increase this further
And after 15 networks you start to have conflicts by default
Right now the subnet mask is like 255.255.255.0
We can increase later yes. For now I think it is enough
Like just do /16
255.255.0.0
65534 addresses
Should be enough no?
It's not about the number of addresses in the network
Wait what
Installed and apps coming up now - will let you know if i get the error shortly 🙂
It's about the pool running out of addresses
Nah fk this I am confused now
Remind me to never touch networking stuff
No error - system seems a lot more agile - Installs either with being exposed or not are all fine when installing. Thank you - perhaps you guys should release this solution now and take a few days to think it over. Perhaps something more elegant will come to you when youre not under pressure. I wouldnt give up either. Containered networking by default is a major plus point for Tipi
Thank you again
Excellent! Happy that we have been able to fix this issue