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

Having issues with your DietPi installation or found a bug? Post it here.
beohna
Posts: 10
Joined: Mon Oct 25, 2021 2:51 pm

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

Post by beohna »

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.?
User avatar
Joulinar
Posts: 6448
Joined: Sat Nov 16, 2019 12:49 am

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

Post by Joulinar »

usually it should toggle automatically.

you could simulate

Code: Select all

dietpi-services restart
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
beohna
Posts: 10
Joined: Mon Oct 25, 2021 2:51 pm

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

Post by beohna »

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
Posts: 8
Joined: Sat Oct 17, 2020 1:39 am

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

Post by darren »

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

Code: Select all

ncc maintenance:mode --on

Code: Select all

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)
User avatar
Joulinar
Posts: 6448
Joined: Sat Nov 16, 2019 12:49 am

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

Post by Joulinar »

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

Could you post following

Code: Select all

ls -la /var/www/nextcloud/config
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply