Upgrading from Ubuntu 20.04 to 22.04 and get errors..
-
I was on Ubuntu 20.04 and went thru the upgrade to 22.04.
When I finished I randpkg --configure -aas instructed in the howto. Now I can't upgrade to 24.04 due to the following errors.Setting up libnginx-mod-http-dav-ext (1.18.0-6ubuntu14.7) ... ln: failed to create symbolic link '/etc/nginx/modules-enabled/50-mod-http-dav-ext.conf': No such file or directory dpkg: error processing package libnginx-mod-http-dav-ext (--configure): installed libnginx-mod-http-dav-ext package post-installation script subprocess returned error exit status 1 Setting up libnginx-mod-http-upstream-fair (1.18.0-6ubuntu14.7) ... ln: failed to create symbolic link '/etc/nginx/modules-enabled/50-mod-http-upstream-fair.conf': No such file or directory dpkg: error processing package libnginx-mod-http-upstream-fair (--configure): installed libnginx-mod-http-upstream-fair package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of nginx-full: nginx-full depends on libnginx-mod-http-dav-ext; however: Package libnginx-mod-http-dav-ext is not configured yet. nginx-full depends on libnginx-mod-http-upstream-fair; however: Package libnginx-mod-http-upstream-fair is not configured yet. dpkg: error processing package nginx-full (--configure): dependency problems - leaving unconfigured Setting up libnginx-mod-http-auth-pam (1.18.0-6ubuntu14.7) ... ln: failed to create symbolic link '/etc/nginx/modules-enabled/50-mod-http-auth-pam.conf': No such file or directory dpkg: error processing package libnginx-mod-http-auth-pam (--configure): installed libnginx-mod-http-auth-pam package post-installation script subprocess returned error exit status 1 Setting up libnginx-mod-http-echo (1.18.0-6ubuntu14.7) ... ln: failed to create symbolic link '/etc/nginx/modules-enabled/50-mod-http-echo.conf': No such file or directory dpkg: error processing package libnginx-mod-http-echo (--configure): root@vultr:~# /home/yellowtent/box/scripts/init-ubuntu.shtallation script subprocess returned error exit status 1ectoryryAny help would be appreciated.
-
My 2 cents, I never upgraded the same VM with Cloudron running on it, I just bootstraped a new VM with a fresh upgraded Ubuntu and migrated Cloudron to it ^^ , which allows me to test safely.
Reason: too many topics about problematic Ubuntu upgrades that break things or Cloudron
-
Hello @swheeler78
I think I've seen something like this before.
Since on Cloudron servers/etc/nginx/does not "exist" as a real folder but is a symlink to/etc/nginx -> /home/yellowtent/platformdata/nginxI've seen it happen that for some reason the symlink gets removed and a real/etc/nginx/folder gets created.
You can simply start thebox.serviceonce and stop it again, then/etc/nginxshould be a symlink again and thedpkg --configure -ashould work. -
My 2 cents, I never upgraded the same VM with Cloudron running on it, I just bootstraped a new VM with a fresh upgraded Ubuntu and migrated Cloudron to it ^^ , which allows me to test safely.
Reason: too many topics about problematic Ubuntu upgrades that break things or Cloudron
@SansGuidon said in Upgrading from Ubuntu 20.04 to 22.04 and get errors..:
My 2 cents, I never upgraded the same VM with Cloudron running on it, I just bootstraped a new VM with a fresh upgraded Ubuntu and migrated Cloudron to it ^^ , which allows me to test safely.
Reason: too many topics about problematic Ubuntu upgrades that break things or Cloudron
Yeah, that's mostly what I've always done too. Not sure what I'll do next now that I'm on a dedicated server though...
-
Hello @SansGuidon and @jdaviescoates
That is indeed the most reliable / safest approach.
I have upgraded many Cloudron Ubuntu's with the provided guides and rarely ran into issues.
But when something comes up, like this case, a somewhat deeper understanding of Cloudron is valuable to resolve it.
@jdaviescoates If you upgrade your Ubuntu version on your dedicated server with the provided guides, would you be willing to document your process in a forum topic?
If anything is unclear, questionable or breaks having this documented process of yours would be a great help to further improve the guides. -
Hello @SansGuidon and @jdaviescoates
That is indeed the most reliable / safest approach.
I have upgraded many Cloudron Ubuntu's with the provided guides and rarely ran into issues.
But when something comes up, like this case, a somewhat deeper understanding of Cloudron is valuable to resolve it.
@jdaviescoates If you upgrade your Ubuntu version on your dedicated server with the provided guides, would you be willing to document your process in a forum topic?
If anything is unclear, questionable or breaks having this documented process of yours would be a great help to further improve the guides.@james should that day come, sure!