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.
docker-compose: failed to create network cup_migrated_cup_migrated_network: Error response from daemon: all predefined address pools have been fully subnetted
docker-compose: failed to create network cup_migrated_cup_migrated_network: Error response from daemon: all predefined address pools have been fully subnetted
36 Replies
Nicolas
Nicolas3d ago
How many apps do you have? Please share the result of ./runtipi-cli debug
Stavros
Stavros3d ago
Damn did docker run out of subnets?
Nicolas
Nicolas3d ago
Looks like it went out of addresses in the network
keywal
keywalOP3d ago
Sorry for the delay - work stuff 🙂
Nicolas
Nicolas3d ago
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 ps
Stavros
Stavros3d ago
You can increase the addresses by editing the docker daemon config I think
keywal
keywalOP3d ago
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.
Nicolas
Nicolas3d ago
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?
keywal
keywalOP2d ago
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
Nicolas
Nicolas2d ago
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
keywal
keywalOP2d ago
ah-ha! brilliant 🙂
Nicolas
Nicolas2d ago
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
keywal
keywalOP2d ago
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
Nicolas
Nicolas19h ago
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?
keywal
keywalOP19h ago
absolutely
Nicolas
Nicolas19h ago
Cool, wait a couple of minutes I'm going to update my instance with this beta to make sure it works first
keywal
keywalOP19h ago
ok cool
Stavros
Stavros19h ago
Count me in
Nicolas
Nicolas19h ago
Okay so it works on my side. Try sudo ./runtipi-cli update v4.0.3-beta.1
Nicolas
Nicolas19h ago
Now each app has a dedicated internal subnet
No description
Stavros
Stavros19h ago
What the heck
Nicolas
Nicolas19h ago
Which will cap the number of apps to 244 instead of 30 or so
Stavros
Stavros19h ago
What does this do Ipam
Nicolas
Nicolas19h ago
Docker default ip scheme uses a narrower pool
Stavros
Stavros19h ago
We can increase this further
Nicolas
Nicolas19h ago
And after 15 networks you start to have conflicts by default
Stavros
Stavros19h ago
Right now the subnet mask is like 255.255.255.0
Nicolas
Nicolas19h ago
We can increase later yes. For now I think it is enough
Stavros
Stavros19h ago
Like just do /16 255.255.0.0 65534 addresses Should be enough no?
Nicolas
Nicolas19h ago
It's not about the number of addresses in the network
Stavros
Stavros19h ago
Wait what
keywal
keywalOP19h ago
Installed and apps coming up now - will let you know if i get the error shortly 🙂
Stavros
Stavros19h ago
It's about the pool running out of addresses Nah fk this I am confused now Remind me to never touch networking stuff
keywal
keywalOP19h ago
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
Nicolas
Nicolas19h ago
Excellent! Happy that we have been able to fix this issue

Did you find this page helpful?