Closed kpgtek closed 11 months ago
By default, the script /opt/tdp/hue/build/env/bin/stop-hue-server.sh has no execution permission:
/opt/tdp/hue/build/env/bin/stop-hue-server.sh
-rw-r--r--. 1 root root 128 [...] /opt/tdp/hue/build/env/bin/stop-hue-server.sh
we have an error after stopping the service:
● hue.service - Hue Server Loaded: loaded (/usr/lib/systemd/system/hue.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since [...] ago Process: 83448 ExecStop=/opt/tdp/hue/build/env/bin/stop-hue-server.sh (code=exited, status=203/EXEC) Process: 83413 ExecStart=/opt/tdp/hue/build/env/bin/supervisor -l /var/log/hue & (code=killed, signal=TERM) Main PID: 83413 (code=killed, signal=TERM) [...] edge-01.novalocal supervisor[83445]: [...] [83445] [INFO] Booting worker with pid: 83445 [...] edge-01.novalocal supervisor[83419]: [...] [83419] [DEBUG] 1 workers [...] edge-01.novalocal systemd[1]: Stopping Hue Server... [...] edge-01.novalocal systemd[1]: hue.service: Control process exited, code=exited status=203 [...] edge-01.novalocal supervisor[83419]: [...] [83419] [INFO] Handling signal: term [...] edge-01.novalocal supervisor[83445]: [...] [83445] [DEBUG] Ignoring connection reset [...] edge-01.novalocal supervisor[83445]: [...] [83445] [INFO] Worker exiting (pid: 83445) [...] edge-01.novalocal supervisor[83419]: [...] [83419] [INFO] Shutting down: Master [...] edge-01.novalocal systemd[1]: hue.service: Failed with result 'exit-code'. [...] edge-01.novalocal systemd[1]: Stopped Hue Server.
If we add execution permission to the script /opt/tdp/hue/build/env/bin/stop-hue-server.sh:
-rwxr-xr-x. 1 root root 128 [...] /opt/tdp/hue/build/env/bin/stop-hue-server.sh
we have another error after stopping the service:
● hue.service - Hue Server Loaded: loaded (/usr/lib/systemd/system/hue.service; disabled; vendor preset: disabled) Active: failed (Result: signal) since [...] ago Process: 83397 ExecStop=/opt/tdp/hue/build/env/bin/stop-hue-server.sh (code=exited, status=0/SUCCESS) Process: 83359 ExecStart=/opt/tdp/hue/build/env/bin/supervisor -l /var/log/hue & (code=killed, signal=KILL) Main PID: 83359 (code=killed, signal=KILL) [...] edge-01.novalocal supervisor[83365]: [...] [83365] [DEBUG] 1 workers [...] edge-01.novalocal supervisor[83391]: [...] [83391] [INFO] Booting worker with pid: 83391 [...] edge-01.novalocal supervisor[83391]: [...] [83391] [DEBUG] Closing connection. [...] edge-01.novalocal supervisor[83391]: [...] [83391] [DEBUG] Closing connection. [...] edge-01.novalocal supervisor[83391]: [...] [83391] [DEBUG] Closing connection. [...] edge-01.novalocal systemd[1]: Stopping Hue Server... [...] edge-01.novalocal stop-hue-server.sh[83397]: /opt/tdp/hue/build/env/bin/stop-hue-server.sh: ligne 9 : kill: (83395) - Opération non permise [...] edge-01.novalocal systemd[1]: hue.service: Main process exited, code=killed, status=9/KILL [...] edge-01.novalocal systemd[1]: hue.service: Failed with result 'signal'. [...] edge-01.novalocal systemd[1]: Stopped Hue Server.
By default, the script
/opt/tdp/hue/build/env/bin/stop-hue-server.sh
has no execution permission:we have an error after stopping the service:
If we add execution permission to the script
/opt/tdp/hue/build/env/bin/stop-hue-server.sh
:we have another error after stopping the service: