getumbrel / umbrel-os

umbrelOS for Raspberry Pi 4 (only). Covert your Raspberry Pi into a home server in one click. For other hardware, checkout https://github.com/getumbrel/umbrel
https://umbrel.com
BSD 3-Clause "New" or "Revised" License
581 stars 57 forks source link

Upgrade from buster to bullseye to bookworm broke 80% of umbrel (but not 100% 🤔) #280

Closed diyoyo closed 9 months ago

diyoyo commented 9 months ago

Hi, I was so happy to learn that Debian 12 was solving the nightmare of system python versions etc that I wanted to upgrade. Yet, I did it sequentially from buster to bullseye to bookworm, and it started breaking already in bullseye. Basically, I had to install the proper "docker compose" (and not "docker-compose") and then look for all the scripts where umbrel still used "docker-compose" as a command. Then only, umbrel started working under Debian 12...

except... only Bitcoin and Lightning node are starting correctly. All other apps are under "Starting..." status forever (in the Web UI), and basically, docker logs state that the app_proxy cannot find the server for each app. My three hypotheses are:

I don't know where to start to fix this. I always perform scripts actions directly from umbrel's folder.

I also don't understand why Bitcoin is working and not the others?

Thanks for your help.

diyoyo commented 9 months ago

Oh, I have a new hypothesis: I should also replace "_" by "-" in addresses when containers are looking for other services in the same stack. Or even completely remove the prefixes, ie replace "element_web_1" by just "web" in the docker-compose.yml relationships. I'll keep you posted.

diyoyo commented 9 months ago

Yes, replacing the "_" with "-" worked! Actually, removing the entire prefix was a good idea, but did not work here because the dependency is actually declared through en environment variable, rather than "properly" using stack's yaml nomenclature.

So to summarize, maybe that's a risk you don't want to take (and I decline any responsibility if you have problems) but in case you want to upgrade from buster to bookworm, the following might help :

I hope it'll help someone save time. (I also hope that all this was not supposed to be obvious, but anyway, I learnt some stuff :D )

IMPORTANT EDIT there is one issue though: you have to modify the docker-compose.yml every time you install a new app :(