beohna
25 October 2021 15:24
1
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
And what about switching it off
ncc maintenance:mode --off
beohna
26 October 2021 15:54
5
Maintenance mode disabled
Are you able to access Nextcloud now?
In this case I guess it was a temp issue.
You could do a last test
dietpi-services stop
dietpi-services start
beohna
26 October 2021 21:36
9
───────────────────────────────────
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
beohna
27 October 2021 06:20
11
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
beohna
28 October 2021 11:57
13
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
darren
15 November 2021 15:43
14
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