# Compiled Install: gsad service will not run

**URL:** <https://forum.greenbone.net/t/compiled-install-gsad-service-will-not-run/17451>\
**Category:** Getting Started\
**Created:** [April 15, 2024, 7:23am UTC](https://forum.greenbone.net/t/compiled-install-gsad-service-will-not-run/17451 "2024-04-15T07:23:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiljoy001](https://forum.greenbone.net/letter_avatar/kiljoy001/32/6_449c533f586939b6e5f246632a46421f.png) [@kiljoy001](https://forum.greenbone.net/u/kiljoy001)\
**Post date:** [April 15, 2024, 7:23am UTC](https://forum.greenbone.net/t/compiled-install-gsad-service-will-not-run/17451/1 "2024-04-15T07:23:35Z")

</div>

Hello,

I am getting the following errors in the log file:

```auto
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:

```auto
[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.

---

<div class="post-metadata">

**Author:** ![bricks](https://forum.greenbone.net/user_avatar/forum.greenbone.net/bricks/32/46_2.png) [@bricks](https://forum.greenbone.net/u/bricks)\
**Post date:** [April 15, 2024, 8:22am UTC](https://forum.greenbone.net/t/compiled-install-gsad-service-will-not-run/17451/2 "2024-04-15T08:22:10Z")

</div>

Hi,

did you take a look at `/var/log/gvm/gsad.log` for possible errors?

---

<div class="post-metadata">

**Author:** ![kiljoy001](https://forum.greenbone.net/letter_avatar/kiljoy001/32/6_449c533f586939b6e5f246632a46421f.png) [@kiljoy001](https://forum.greenbone.net/u/kiljoy001)\
**Post date:** [April 15, 2024, 4:39pm UTC](https://forum.greenbone.net/t/compiled-install-gsad-service-will-not-run/17451/3 "2024-04-15T16:39:14Z")

</div>

Yes, the log file doesn’t have anything interesting there:

```auto
scott@orangepi5-plus:~$ sudo systemctl start gsad
[sudo] password for scott:
Job for gsad.service failed because the control process exited with error code.
See "systemctl status gsad.service" and "journalctl -xeu gsad.service" for details.
scott@orangepi5-plus:~$ cat /var/log/gvm/gsad.log
gsad main:MESSAGE:2024-04-15 06h46.33 utc:73311: Starting GSAD version 22.09.0
gsad main:CRITICAL:2024-04-15 06h46.33 utc:73311: main: start_https_daemon failed!
gsad main:MESSAGE:2024-04-15 06h46.33 utc:73312: Starting GSAD version 22.09.0
gsad main:CRITICAL:2024-04-15 06h46.33 utc:73312: main: start_https_daemon failed!
gsad main:MESSAGE:2024-04-15 06h46.34 utc:73313: Starting GSAD version 22.09.0
gsad main:CRITICAL:2024-04-15 06h46.34 utc:73313: main: start_https_daemon failed!
gsad main:MESSAGE:2024-04-15 06h46.34 utc:73315: Starting GSAD version 22.09.0
gsad main:CRITICAL:2024-04-15 06h46.34 utc:73315: main: start_https_daemon failed!
gsad main:MESSAGE:2024-04-15 06h46.34 utc:73316: Starting GSAD version 22.09.0
gsad main:CRITICAL:2024-04-15 06h46.34 utc:73316: main: start_https_daemon failed!
gsad main:MESSAGE:2024-04-15 06h56.12 utc:73613: Starting GSAD version 22.09.0
gsad main:CRITICAL:2024-04-15 06h56.12 utc:73613: main: start_https_daemon failed!
gsad main:MESSAGE:2024-04-15 06h56.13 utc:73614: Starting GSAD version 22.09.0
gsad main:CRITICAL:2024-04-15 06h56.13 utc:73614: main: start_https_daemon failed!
gsad main:MESSAGE:2024-04-15 06h56.13 utc:73616: Starting GSAD version 22.09.0
gsad main:CRITICAL:2024-04-15 06h56.13 utc:73616: main: start_https_daemon failed!
gsad main:MESSAGE:2024-04-15 06h56.13 utc:73618: Starting GSAD version 22.09.0
gsad main:CRITICAL:2024-04-15 06h56.13 utc:73618: main: start_https_daemon failed!
gsad main:MESSAGE:2024-04-15 06h56.13 utc:73619: Starting GSAD version 22.09.0
gsad main:CRITICAL:2024-04-15 06h56.13 utc:73619: main: start_https_daemon failed!
gsad main:MESSAGE:2024-04-15 07h22.01 utc:113866: Starting GSAD version 22.09.0
gsad main:CRITICAL:2024-04-15 07h22.01 utc:113866: main: start_https_daemon failed!
gsad main:MESSAGE:2024-04-15 07h22.01 utc:113869: Starting GSAD version 22.09.0
gsad main:CRITICAL:2024-04-15 07h22.01 utc:113869: main: start_https_daemon failed!
gsad main:MESSAGE:2024-04-15 07h22.02 utc:113872: Starting GSAD version 22.09.0
gsad main:CRITICAL:2024-04-15 07h22.02 utc:113872: main: start_https_daemon failed!
gsad main:MESSAGE:2024-04-15 07h22.02 utc:113873: Starting GSAD version 22.09.0
gsad main:CRITICAL:2024-04-15 07h22.02 utc:113873: main: start_https_daemon failed!
gsad main:MESSAGE:2024-04-15 07h22.02 utc:113874: Starting GSAD version 22.09.0
gsad main:CRITICAL:2024-04-15 07h22.02 utc:113874: main: start_https_daemon failed!
gsad main:MESSAGE:2024-04-15 16h37.28 utc:126970: Starting GSAD version 22.09.0
gsad main:CRITICAL:2024-04-15 16h37.28 utc:126970: main: start_https_daemon failed!
gsad main:MESSAGE:2024-04-15 16h37.29 utc:126971: Starting GSAD version 22.09.0
gsad main:CRITICAL:2024-04-15 16h37.29 utc:126971: main: start_https_daemon failed!
gsad main:MESSAGE:2024-04-15 16h37.29 utc:126972: Starting GSAD version 22.09.0
gsad main:CRITICAL:2024-04-15 16h37.29 utc:126972: main: start_https_daemon failed!
gsad main:MESSAGE:2024-04-15 16h37.29 utc:126974: Starting GSAD version 22.09.0
gsad main:CRITICAL:2024-04-15 16h37.29 utc:126974: main: start_https_daemon failed!
gsad main:MESSAGE:2024-04-15 16h37.29 utc:126975: Starting GSAD version 22.09.0
gsad main:CRITICAL:2024-04-15 16h37.29 utc:126975: main: start_https_daemon failed!

```

---

<div class="post-metadata">

**Author:** ![Lukas](https://forum.greenbone.net/user_avatar/forum.greenbone.net/lukas/32/17_2.png) [@Lukas](https://forum.greenbone.net/u/Lukas)\
**Post date:** [April 16, 2024, 11:51am UTC](https://forum.greenbone.net/t/compiled-install-gsad-service-will-not-run/17451/4 "2024-04-16T11:51:11Z")

</div>

Hi,

You can´t bind as user below port 1024 … here you try to use port 80. Try it with 8080, if this works fix your permission system.

---

<div class="post-metadata">

**Author:** ![kiljoy001](https://forum.greenbone.net/letter_avatar/kiljoy001/32/6_449c533f586939b6e5f246632a46421f.png) [@kiljoy001](https://forum.greenbone.net/u/kiljoy001)\
**Post date:** [April 17, 2024, 2:42am UTC](https://forum.greenbone.net/t/compiled-install-gsad-service-will-not-run/17451/5 "2024-04-17T02:42:53Z")

</div>

That worked, I had forgot about that detail, I guess I will just have to set up a forwarding for the port or something.  
Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://forum.greenbone.net/uploads/default/original/2X/4/4660e797edfaea797a8c9965246072ea26732804.png) [@system](https://forum.greenbone.net/u/system)\
**Post date:** [April 7, 2025, 10:21am UTC](https://forum.greenbone.net/t/compiled-install-gsad-service-will-not-run/17451/6 "2025-04-07T10:21:40Z")

</div>

Closed on April 7, 2025, 10:21am UTC


