NextCloud stuck on maintenance mode after upgrading to NC 30

My NextCloud got stuck on maintenance mode after trying to upgrade to version 30.
I run the command su -s /bin/bash www-data -c ‘php maintenance:mode --off’ to enable NextCloud
However, I have this message now (Update Needed).
The problem is that everything is updated in the Scale GUI for the Apps.
I speculate that the PostgreSQL version 13 currently installed is too old.
Any idea?
Thanks in advance

I am using Scale Dragonfish-24.04.2.2.
My NextCloud is built on TrueNas charts and using nginx.
I have four folders for NextCloud, including one for the Database (PostgreSQL)
image

You need to get a shell in the container and run php occ upgrade. As the error message is telling you: “use the command line updater”.

1 Like

Patrick, thanks so much
Working again
Just adjust the command for my case
su -s /bin/bash www-data -c ‘php occ upgrade’

I encountered the same issue here but a slight nuance is that when I disabled maintenance mode, there was an option to continue the upgrade in the browser but that failed. When I ran through the command line that succeeded.
Also here’s the commands you need to run (formatted so you can paste into shell)

su -s /bin/bash -c "php occ maintenance:mode --off" www-data
su -s /bin/bash -c "php occ upgrade" www-data