Nextcloud stuck in Maintenance mode

My YunoHost server

Hardware: VPS bought online / Old laptop or computer / Raspberry Pi at home / Internet Cube with VPN / Other ARM board / …
YunoHost version: 11.2.17.1
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen | …
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If yes, please explain:
If your request is related to an app, specify its name and version: app v1.0~ynh1

Description of my issue

I know I know I know this issue has come up before and I promise that I have tried all of the solutions here, but keep getting no where.

So…

I have a nexcloud instance Version 29.0.2~ynh1

Recently in Nextcloud apps I updated Snappymail and calendar and now the instance is stuck in Maintenance Mode… Grrrrr!

So using ssh I went to /var/www/nextcloud and did the following:

sudo -u php7.3 occ maintenance:mode --off

Which returns:

sudo: error initializing audit plugin sudoers_audit

Stuck…

Thank you

dj

First of all, you have to use php8.2 normally.
If this doesn’t help, try to disable the updated Nextcloud apps, by running
sudo -u php8.2 occ apps:disable snappymail or something like that.

@tho thanks very much… I’m just restoring a backup from yesterday, but I will try it again and see what happens. Not much happened between the backup and the update so I’m not loosing anything, just time… It’s 93gig…

More later

Thanks

dj

Hello,

Nextcloud 29 should use php8.3

In order to be informed about calendar app updates i use RSS feed with :
https://apps.nextcloud.com/en/feeds/releases.rss?app=calendar
From
https://apps.nextcloud.com/apps/calendar

Maybe it could be done for snappymail
https://apps.nextcloud.com/en/feeds/releases.rss?app=snappymail
From

ppr

1 Like

Oops my bad, updates go so fast :rocket:

@Tho @ppr thanks very much so far…

Yes I have successfully restored my Nextcloud, only 12 pictures missing which I’ll upload later after I have tried to update SnappyMail

I’ll replay with a fail or success

Dj

Why don’t you use the app shell

sudo yunohost app shell nextcloud

Then

php occ maintenance:mode --off

Running commands in the app shell will use the correct php version

Hello, I discover on 2 servers upgraded to nextcloud 29 they still use php8.2… How fix this ??

Maybe by installing the testing branch… Testing by ericgaspar · Pull Request #693 · YunoHost-Apps/nextcloud_ynh · GitHub

1 Like

Uuuh… I have try testing branch… but still using php8.2…

I put logs here, with result of cat /var/log/yunohost/categories/operation/20240627-080003-app_upgrade-nextcloud.log |grep php

Is it important ? does nextcloud 29 really needs php8.3 ? can I try first install the dependencies manually ?

Hello,

I’ve upgrade 29.0.2 with php 8.2.20 to 29.0.3 with php 8.3.8 <3

Out of subject :
Since upgrade 28.x.x to 29.x.x, i’ve this warning :

Votre serveur web n’est pas configuré correctement pour résoudre les URL .well-known, a échoué sur : /.well-known/caldav Pour plus d’information, voir la documentation :arrow_upper_right:.

What should i do to solve it ?

ppr

Hello, I found how resolve here: .well-known URLs, failed on: /.well-known/caldav · Issue #701 · YunoHost-Apps/nextcloud_ynh · GitHub

1 Like

Take care, this fix is perhaps not a good idea as said here Fichiers exposés après mise à jour de nextcloud? - #22 by jarod5001

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.