Hello,
I am getting the following errors in the log file:
Apr 14 23:56:12 orangepi5-plus systemd[1]: Starting gsad.service - Greenbone Security Assistant daemon (gsad)...
Apr 14 23:56:12 orangepi5-plus systemd[1]: Started gsad.service - Greenbone Security Assistant daemon (gsad).
Apr 14 23:56:12 orangepi5-plus systemd[1]: gsad.service: Main process exited, code=exited, status=1/FAILURE
Apr 14 23:56:12 orangepi5-plus systemd[1]: gsad.service: Failed with result 'exit-code'.
Apr 14 23:56:13 orangepi5-plus systemd[1]: gsad.service: Scheduled restart job, restart counter is at 1.
Apr 14 23:56:13 orangepi5-plus systemd[1]: Stopped gsad.service - Greenbone Security Assistant daemon (gsad).
Apr 14 23:56:13 orangepi5-plus systemd[1]: Starting gsad.service - Greenbone Security Assistant daemon (gsad)...
Apr 14 23:56:13 orangepi5-plus systemd[1]: Started gsad.service - Greenbone Security Assistant daemon (gsad).
Apr 14 23:56:13 orangepi5-plus systemd[1]: gsad.service: Main process exited, code=exited, status=1/FAILURE
Apr 14 23:56:13 orangepi5-plus systemd[1]: gsad.service: Failed with result 'exit-code'.
Apr 14 23:56:13 orangepi5-plus systemd[1]: gsad.service: Scheduled restart job, restart counter is at 2.
Apr 14 23:56:13 orangepi5-plus systemd[1]: Stopped gsad.service - Greenbone Security Assistant daemon (gsad).
Apr 14 23:56:13 orangepi5-plus systemd[1]: Starting gsad.service - Greenbone Security Assistant daemon (gsad)...
Apr 14 23:56:13 orangepi5-plus systemd[1]: Started gsad.service - Greenbone Security Assistant daemon (gsad).
Apr 14 23:56:13 orangepi5-plus systemd[1]: gsad.service: Main process exited, code=exited, status=1/FAILURE
Apr 14 23:56:13 orangepi5-plus systemd[1]: gsad.service: Failed with result 'exit-code'.
Apr 14 23:56:13 orangepi5-plus systemd[1]: gsad.service: Scheduled restart job, restart counter is at 3.
Apr 14 23:56:13 orangepi5-plus systemd[1]: Stopped gsad.service - Greenbone Security Assistant daemon (gsad).
Apr 14 23:56:13 orangepi5-plus systemd[1]: Starting gsad.service - Greenbone Security Assistant daemon (gsad)...
Apr 14 23:56:13 orangepi5-plus systemd[1]: Started gsad.service - Greenbone Security Assistant daemon (gsad).
Apr 14 23:56:13 orangepi5-plus systemd[1]: gsad.service: Main process exited, code=exited, status=1/FAILURE
Apr 14 23:56:13 orangepi5-plus systemd[1]: gsad.service: Failed with result 'exit-code'.
Apr 14 23:56:13 orangepi5-plus systemd[1]: gsad.service: Scheduled restart job, restart counter is at 4.
Apr 14 23:56:13 orangepi5-plus systemd[1]: Stopped gsad.service - Greenbone Security Assistant daemon (gsad).
Apr 14 23:56:13 orangepi5-plus systemd[1]: Starting gsad.service - Greenbone Security Assistant daemon (gsad)...
Apr 14 23:56:13 orangepi5-plus systemd[1]: Started gsad.service - Greenbone Security Assistant daemon (gsad).
Apr 14 23:56:13 orangepi5-plus systemd[1]: gsad.service: Main process exited, code=exited, status=1/FAILURE
Apr 14 23:56:13 orangepi5-plus systemd[1]: gsad.service: Failed with result 'exit-code'.
Apr 14 23:56:14 orangepi5-plus systemd[1]: gsad.service: Scheduled restart job, restart counter is at 5.
Apr 14 23:56:14 orangepi5-plus systemd[1]: Stopped gsad.service - Greenbone Security Assistant daemon (gsad).
Apr 14 23:56:14 orangepi5-plus systemd[1]: gsad.service: Start request repeated too quickly.
Apr 14 23:56:14 orangepi5-plus systemd[1]: gsad.service: Failed with result 'exit-code'.
Apr 14 23:56:14 orangepi5-plus systemd[1]: Failed to start gsad.service - Greenbone Security Assistant daemon (gsad).
I can run the same command as the unit file as the gvm user and it works, with no issues. I’ve tried to figure out if there was a way to get more information about why the application will not start, such as the verbose option or changing the gsad_log.conf * log level to 127. I cannot seem to get any data to give me an idea what the issue is or why it won’t work, especially since running the same command with the same flags does work with no issue. Below is my unit file:
[Unit]
Description=Greenbone Security Assistant daemon (gsad)
Documentation=man:gsad(8) https://www.greenbone.net
After=network.target gvmd.service
Wants=gvmd.service
[Service]
Type=exec
User=gvm
Group=gvm
RuntimeDirectory=gsad
RuntimeDirectoryMode=2775
PIDFile=/run/gsad/gsad.pid
ExecStart=/usr/local/sbin/gsad --listen=0.0.0.0 -f -v --port=80 --http-only
Restart=always
TimeoutStopSec=10
[Install]
WantedBy=multi-user.target
Alias=greenbone-security-assistant.service
I’ve also tried to change the unit file to use forking, which did not work as well.