bug: dietpt-services Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
frezeen
Posts: 12
Joined: Thu Aug 20, 2020 4:30 pm

bug: dietpt-services

Post by frezeen »

everytime i use dietpi-services for to stop a random services the script exec this command too:
[ OK ] DietPi-Services | ncc maintenance:mode --on

and let nextcloud in maintenance mode for ever, even if i finish in dietpi-services and close it

need to launch from shell ncc maintenance:mode --off everytime i use dietpi-services
User avatar
Joulinar
Posts: 2287
Joined: Sat Nov 16, 2019 12:49 am

Re: bug: dietpt-services

Post by Joulinar »

Hi,

many thanks for your message. There is basically a similar report viewtopic.php?f=9&t=7320

What service you like to stop? If possible I would try to replicate the issue.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
frezeen
Posts: 12
Joined: Thu Aug 20, 2020 4:30 pm

Re: bug: dietpt-services

Post by frezeen »

i think its easy to replicare, all my services stop nextcloud too

rpi-monitor
nmbd
smbd
redis-server
mariadb
php7.3-fpm
lighttpd
qbitttorent
docker
ssh
pihole-FTL
openvpn

this is all my services up, and everyone i stop script do ncc maintenance:mode --on and leave it set to on for ever
i manually off the maintenacemode everytime in this log before try to stop something

Code: Select all

root@DietPi:~# dietpi-services
[  OK  ] DietPi-Services | ncc maintenance:mode --on
[  OK  ] DietPi-Services | stop : rpimonitor
[  OK  ] DietPi-Services | restart : rpimonitor
[  OK  ] DietPi-Services | ncc maintenance:mode --on
[  OK  ] DietPi-Services | stop : nmbd
[  OK  ] DietPi-Services | restart : nmbd
[  OK  ] DietPi-Services | ncc maintenance:mode --on
[  OK  ] DietPi-Services | stop : smbd
[  OK  ] DietPi-Services | restart : smbd
[  OK  ] DietPi-Services | ncc maintenance:mode --on
[  OK  ] DietPi-Services | stop : redis-server
[  OK  ] DietPi-Services | restart : redis-server
[  OK  ] DietPi-Services | ncc maintenance:mode --on
[  OK  ] DietPi-Services | stop : mariadb
[  OK  ] DietPi-Services | restart : mariadb
[  OK  ] DietPi-Services | ncc maintenance:mode --on
[  OK  ] DietPi-Services | stop : php7.3-fpm
[  OK  ] DietPi-Services | restart : php7.3-fpm
[  OK  ] DietPi-Services | ncc maintenance:mode --on
[  OK  ] DietPi-Services | stop : lighttpd
[  OK  ] DietPi-Services | restart : lighttpd
[  OK  ] DietPi-Services | ncc maintenance:mode --on
[  OK  ] DietPi-Services | stop : qbittorrent
[  OK  ] DietPi-Services | restart : qbittorrent
[  OK  ] DietPi-Services | ncc maintenance:mode --on
User avatar
Joulinar
Posts: 2287
Joined: Sat Nov 16, 2019 12:49 am

Re: bug: dietpt-services

Post by Joulinar »

ok seems still not fixed. I will open a GitHub issue out of it. For the time being, pls use systemctl

Code: Select all

systemctl stop <service>
However if you like using dietpi-services, pls use:

Code: Select all

dietpi-services start <service>
and not

Code: Select all

dietpi-services restart <service>
Using start will enable NextCloud as well, while restart will just restart the particular service

Code: Select all

root@DietPi3:~# dietpi-services restart qbittorrent

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

[  OK  ] DietPi-Services | restart : qbittorrent
root@DietPi3:~# 
root@DietPi3:~# 
root@DietPi3:~# dietpi-services start qbittorrent

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

[  OK  ] DietPi-Services | start : qbittorrent
[  OK  ] DietPi-Services | ncc maintenance:mode --off
GitHub open: https://github.com/MichaIng/DietPi/issues/3740
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
Joulinar
Posts: 2287
Joined: Sat Nov 16, 2019 12:49 am

Re: bug: dietpt-services

Post by Joulinar »

a fix will be implemented with upcoming DietPi release 6.32.

https://github.com/MichaIng/DietPi/comm ... 2df88895b1
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
frezeen
Posts: 12
Joined: Thu Aug 20, 2020 4:30 pm

Re: bug: dietpt-services

Post by frezeen »

thanks for your work, really
Post Reply