R
Runtipiβ€’4mo ago
keywal

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
58 Replies
Nicolas
Nicolasβ€’4mo ago
How many apps do you have? Please share the result of ./runtipi-cli debug
Stavros
Stavrosβ€’4mo ago
Damn did docker run out of subnets?
Nicolas
Nicolasβ€’4mo ago
Looks like it went out of addresses in the network
keywal
keywalOPβ€’4mo ago
keywal
keywalOPβ€’4mo ago
Sorry for the delay - work stuff πŸ™‚
Nicolas
Nicolasβ€’4mo 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
Stavrosβ€’4mo ago
You can increase the addresses by editing the docker daemon config I think
keywal
keywalOPβ€’4mo 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
Nicolasβ€’4mo 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
keywalOPβ€’4mo 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
Nicolasβ€’4mo 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
keywalOPβ€’4mo ago
ah-ha! brilliant πŸ™‚
Nicolas
Nicolasβ€’4mo 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
keywalOPβ€’4mo 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
Nicolasβ€’4mo 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
keywalOPβ€’4mo ago
absolutely
Nicolas
Nicolasβ€’4mo ago
Cool, wait a couple of minutes I'm going to update my instance with this beta to make sure it works first
keywal
keywalOPβ€’4mo ago
ok cool
Stavros
Stavrosβ€’4mo ago
Count me in
Nicolas
Nicolasβ€’4mo ago
Okay so it works on my side. Try sudo ./runtipi-cli update v4.0.3-beta.1
Nicolas
Nicolasβ€’4mo ago
Now each app has a dedicated internal subnet
No description
Stavros
Stavrosβ€’4mo ago
What the heck
Nicolas
Nicolasβ€’4mo ago
Which will cap the number of apps to 244 instead of 30 or so
Stavros
Stavrosβ€’4mo ago
What does this do Ipam
Nicolas
Nicolasβ€’4mo ago
Docker default ip scheme uses a narrower pool
Stavros
Stavrosβ€’4mo ago
We can increase this further
Nicolas
Nicolasβ€’4mo ago
And after 15 networks you start to have conflicts by default
Stavros
Stavrosβ€’4mo ago
Right now the subnet mask is like 255.255.255.0
Nicolas
Nicolasβ€’4mo ago
We can increase later yes. For now I think it is enough
Stavros
Stavrosβ€’4mo ago
Like just do /16 255.255.0.0 65534 addresses Should be enough no?
Nicolas
Nicolasβ€’4mo ago
It's not about the number of addresses in the network
Stavros
Stavrosβ€’4mo ago
Wait what
keywal
keywalOPβ€’4mo ago
Installed and apps coming up now - will let you know if i get the error shortly πŸ™‚
Stavros
Stavrosβ€’4mo 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
keywalOPβ€’4mo 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
Nicolasβ€’4mo ago
Excellent! Happy that we have been able to fix this issue
keywal
keywalOPβ€’4mo ago
Sorry guys seemed to have hit another networking problem and cant install more apps -
Failed to install app onedev:migrated: failed to create network onedev_migrated_onedev_migrated_network: Error response from daemon: invalid pool request: Pool overlaps with other one on this address space
Failed to install app onedev:migrated: failed to create network onedev_migrated_onedev_migrated_network: Error response from daemon: invalid pool request: Pool overlaps with other one on this address space
Nicolas
Nicolasβ€’4mo ago
Is the issue only with onedev?
keywal
keywalOPβ€’4mo ago
no 3 apps that i have tried since
2025-05-05T23:10:28.819Z - error > Failed to install app authentik:migrated: Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint authentik_migrated-authentik-1 (1ac1f137aee834be3729941bb80b307e6db9c8e0ffa7237fd23dd0154b76b020): Bind for 0.0.0.0:9443 failed: port is already allocated
2025-05-05T23:17:33.120Z - error > Failed to install app kasm-workspaces:migrated: failed to create network kasm-workspaces_migrated_kasm-workspaces_migrated_network: Error response from daemon: invalid pool request: Pool overlaps with other one on this address space
2025-05-05T23:22:03.652Z - error > Failed to install app onedev:migrated: failed to create network onedev_migrated_onedev_migrated_network: Error response from daemon: invalid pool request: Pool overlaps with other one on this address space
2025-05-05T23:10:28.819Z - error > Failed to install app authentik:migrated: Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint authentik_migrated-authentik-1 (1ac1f137aee834be3729941bb80b307e6db9c8e0ffa7237fd23dd0154b76b020): Bind for 0.0.0.0:9443 failed: port is already allocated
2025-05-05T23:17:33.120Z - error > Failed to install app kasm-workspaces:migrated: failed to create network kasm-workspaces_migrated_kasm-workspaces_migrated_network: Error response from daemon: invalid pool request: Pool overlaps with other one on this address space
2025-05-05T23:22:03.652Z - error > Failed to install app onedev:migrated: failed to create network onedev_migrated_onedev_migrated_network: Error response from daemon: invalid pool request: Pool overlaps with other one on this address space
Sorry the authentik one is different
Nicolas
Nicolasβ€’4mo ago
Can you run docker network inspect $(docker network ls -q) | jq -r '.[] | "\(.Name): \(.IPAM.Config[0].Subnet // "N/A")"' (install jq if needed)
keywal
keywalOPβ€’4mo ago
Nicolas
Nicolasβ€’4mo ago
Could you with this one?
(echo -e "NETWORK NAME\tSUBNET"; docker network inspect $(docker network ls -q) | jq -r '.[] | "\(.Name)\t\(.IPAM.Config[0].Subnet // "N/A")"' | sort -k2) | column -t -s $'\t'
(echo -e "NETWORK NAME\tSUBNET"; docker network inspect $(docker network ls -q) | jq -r '.[] | "\(.Name)\t\(.IPAM.Config[0].Subnet // "N/A")"' | sort -k2) | column -t -s $'\t'
It prints a pretty table
keywal
keywalOPβ€’4mo ago
Discord saying too many characters so going into a file each time
Nicolas
Nicolasβ€’4mo ago
Okay everything looks fine really, so probably you have a subnet that didn't get correctly registered in the database. Can you try to do a ./runtipi-cli restart and see if this solves the issue? If not, I'll add an extra check to see if the network is free on the system itself
keywal
keywalOPβ€’4mo ago
sure Same again im afraid -
failed to create network onedev_migrated_onedev_migrated_network: Error response from daemon: invalid pool request: Pool overlaps with other one on this address space
failed to create network onedev_migrated_onedev_migrated_network: Error response from daemon: invalid pool request: Pool overlaps with other one on this address space
Nicolas
Nicolasβ€’4mo ago
Okay sorry about this bug, I'll give you another update to fix this. Can you just share me the apps/migrated/<app>/docker-compose.yml file of one of the apps that fails to install? It should have created this file before failing
keywal
keywalOPβ€’4mo ago
hmmm keeps deleting the file
keywal
keywalOPβ€’4mo ago
Nicolas
Nicolasβ€’4mo ago
This is extremly odd, the network is not in use πŸ€” I'll dive in after work Are you willing to try v4.1.0-alpha.1? It includes a potential fix for it
keywal
keywalOPβ€’4mo ago
Hey Nicolas sorry i havent replied - been busy! Would you like me to try it out now?
Nicolas
Nicolasβ€’4mo ago
Yes sure when you want Since I'm not really sure why you have this issue, this version includes a more robust check directly against docker api to look for free networks Not 100% sure it'll work, if not I'll implement a retry strategy with a random subnet each time
keywal
keywalOPβ€’4mo ago
Installed and apps are installing again any data youneed me to get for you?
Nicolas
Nicolasβ€’4mo ago
Okay that's good to know I think I have all I need, I'll still implement the more robust retry mechanism just in case Thank you
keywal
keywalOPβ€’4mo ago
NP! thank you for your efforts!
Nicolas
Nicolasβ€’4mo ago
Just as a note, you’ll see other alpha updates even beta. I suggest you keep the one you have until we have 4.1 stable out
8johnr8
8johnr8β€’4mo ago
Hi, I've just installed the final version of 4.1 and I have the same issue. Multiple apps don't want to start πŸ˜•
Nicolas
Nicolasβ€’4mo ago
Same error? Could you share your logs?
8johnr8
8johnr8β€’4mo ago
I’ve dug in the discord and found I had to close all apps with the command sudo docker stop… It fixed my issue but I have no idea how this happened. Thank anyway πŸ™‚

Did you find this page helpful?