[FAILED] DietPi-Services | ncc maintenance:mode --on

I’m new to dietpi. I installed my privat nextcloud with dietpi.

After 2 Weeks I start the upgrade to dietpi V7.7.3 with dietpi-update. The update completed,with this messages:

─────────────────────────────────────────────────────
 Phase: Completed

[ INFO ] DietPi-Update | Current version : v7.7.3
[ INFO ] DietPi-Update | Latest version  : v7.7.3
[  OK  ] DietPi-Survey | Sending survey data
[ SUB1 ] DietPi-Services > restart
[FAILED] DietPi-Services | ncc maintenance:mode --on
[  OK  ] DietPi-Services | restart : nmbd
[  OK  ] DietPi-Services | restart : smbd
[  OK  ] DietPi-Services | restart : redis-server
[  OK  ] DietPi-Services | restart : mariadb
[  OK  ] DietPi-Services | restart : php7.4-fpm
[  OK  ] DietPi-Services | restart : lighttpd
[  OK  ] DietPi-Services | restart : rpimonitor
[  OK  ] DietPi-Services | restart : cron

What does “[FAILED] DietPi-Services | ncc maintenance:mode --on” mean?
Is there something wrong with my Nextcloud-Installation?

Greetings from Germany
beohna
Greeting

Is there something wrong with my Nextcloud-Installation?

Probably.

what does following give you back once executed on command line

ncc maintenance:mode --on

it says:

Maintenance mode enabled

And what about switching it off

ncc maintenance:mode --off
Maintenance mode disabled

Are you able to access Nextcloud now?

Yes. Normal working.

In this case I guess it was a temp issue.

You could do a last test

dietpi-services stop
dietpi-services start

───────────────────────────────────

root@Server:~# dietpi-services stop

 DietPi-Services
─────────────────────────────────────────────────────
 Mode: stop

[  OK  ] DietPi-Services | ncc maintenance:mode --on
[  OK  ] DietPi-Services | stop : cron
[  OK  ] DietPi-Services | stop : rpimonitor
[  OK  ] DietPi-Services | stop : lighttpd
[  OK  ] DietPi-Services | stop : php7.4-fpm
[  OK  ] DietPi-Services | stop : mariadb
[  OK  ] DietPi-Services | stop : redis-server
[  OK  ] DietPi-Services | stop : smbd
[  OK  ] DietPi-Services | stop : nmbd



root@Server:~# dietpi-services start

 DietPi-Services
─────────────────────────────────────────────────────
 Mode: start

[  OK  ] DietPi-Services | start : nmbd
[  OK  ] DietPi-Services | start : smbd
[  OK  ] DietPi-Services | start : redis-server
[  OK  ] DietPi-Services | start : mariadb
[  OK  ] DietPi-Services | start : php7.4-fpm
[  OK  ] DietPi-Services | start : lighttpd
[  OK  ] DietPi-Services | start : rpimonitor
[  OK  ] DietPi-Services | start : cron
[  OK  ] DietPi-Services | ncc maintenance:mode --off
root@Server:~#

All good, no further issues

Yes, I also think so.
But in the dietpi-update-script at the end the maintance-mode of nc should set to -off and not to -on.?

usually it should toggle automatically.

you could simulate

dietpi-services restart

it works fine…

root@Server:~# dietpi-services restart

DietPi-Services
─────────────────────────────────────────────────────
Mode: restart

[ OK ] DietPi-Services | ncc maintenance:mode --on
[ OK ] DietPi-Services | restart : nmbd
[ OK ] DietPi-Services | restart : smbd
[ OK ] DietPi-Services | restart : redis-server
[ OK ] DietPi-Services | restart : mariadb
[ OK ] DietPi-Services | restart : php7.4-fpm
[ OK ] DietPi-Services | restart : lighttpd
[ OK ] DietPi-Services | restart : rpimonitor
[ OK ] DietPi-Services | restart : cron
[ OK ] DietPi-Services | ncc maintenance:mode --off


So thanks for your support

I have this same issue. Running as root. User ID 1000 is the dietpi user.

ncc maintenance:mode --on



Console has to be executed with the user that owns the file config/config.php
Current user id: 33
Owner id of config.php: 1000
Try adding 'sudo -u #1000' to the beginning of the command (without the single quotes)
If running with 'docker exec' try adding the option '-u 1000' to the docker command (without the single quotes)

It is not the same issue as you might have incorrect permissions on config file.

Could you post following

ls -la /var/www/nextcloud/config