# GVMD not starting

**URL:** <https://forum.greenbone.net/t/gvmd-not-starting/21422>\
**Category:** Building from Source and Advanced Topics\
**Created:** [June 19, 2025, 11:05pm UTC](https://forum.greenbone.net/t/gvmd-not-starting/21422 "2025-06-19T23:05:46Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Walter](https://forum.greenbone.net/letter_avatar/walter/32/6_449c533f586939b6e5f246632a46421f.png) [@Walter](https://forum.greenbone.net/u/Walter)\
**Post date:** [June 19, 2025, 11:05pm UTC](https://forum.greenbone.net/t/gvmd-not-starting/21422/1 "2025-06-19T23:05:46Z")

</div>

I’ve tried installing the service on 3 machines, Debian, Kali, and Ubuntu. Currently having these issues with Ubuntu.  
I continue to get the this:  
The unit gvmd.service has entered the ‘failed’ state with result ‘protocol’.  
Jun 18 15:57:05 cybsec-ov systemd[1]: Failed to start Greenbone Vulnerability Manager daemon (gvmd).

```plaintext
Jun 18 15:57:05 cybsec-ov systemd[1]: Starting Greenbone Vulnerability Manager daemon (gvmd)...
Jun 18 15:57:05 cybsec-ov systemd[1]: gvmd.service: Can't open PID file /run/gvm/gvmd.pid (yet?) after start: Operation not permitted
Jun 18 15:57:05 cybsec-ov systemd[1]: gvmd.service: Failed with result 'protocol'.
Jun 18 15:57:05 cybsec-ov systemd[1]: Failed to start Greenbone Vulnerability Manager daemon (gvmd).

```

This is another output:

```plaintext
Jun 18 15:57:05 cybsec-ov systemd[1]: gvmd.service: Failed with result 'protocol'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit gvmd.service has entered the 'failed' state with result 'protocol'.
Jun 18 15:57:05 cybsec-ov systemd[1]: Failed to start Greenbone Vulnerability Manager daemon (gvmd).
░░ Subject: A start job for unit gvmd.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit gvmd.service has finished with a failure.
░░
░░ The job identifier is 1435047 and the job result is failed.
Jun 18 15:57:05 cybsec-ov systemd[1]: gvmd.service: Scheduled restart job, restart counter is at 1105.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ Automatic restarting of the unit gvmd.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Jun 18 15:57:05 cybsec-ov systemd[1]: Stopped Greenbone Vulnerability Manager daemon (gvmd).
░░ Subject: A stop job for unit gvmd.service has finished
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A stop job for unit gvmd.service has finished.
░░
░░ The job identifier is 1435139 and the job result is done.
Jun 18 15:57:05 cybsec-ov systemd[1]: gvmd.service: Start request repeated too quickly.
Jun 18 15:57:05 cybsec-ov systemd[1]: gvmd.service: Failed with result 'protocol'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit gvmd.service has entered the 'failed' state with result 'protocol'.
Jun 18 15:57:05 cybsec-ov systemd[1]: Failed to start Greenbone Vulnerability Manager daemon (gvmd).
░░ Subject: A start job for unit gvmd.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support

```

Here some more:

```plaintext
OSPD[100717] 2025-06-19 19:24:55,893: ERROR: (ospd_openvas.openvas) OpenVAS Scanner failed to load VTs. Command '['openvas', '--update-vt-info']' returned non-zero exit status 1.
OSPD[100717] 2025-06-19 19:24:55,894: ERROR: (ospd_openvas.daemon) Updating VTs failed.
OSPD[100717] 2025-06-19 19:25:06,129: INFO: (ospd_openvas.daemon) Loading VTs. Scans will be [requested|queued] until VTs are loaded. This may take a few minutes, please wait...
OSPD[100717] 2025-06-19 19:25:06,189: ERROR: (ospd_openvas.openvas) OpenVAS Scanner failed to load VTs. Command '['openvas', '--update-vt-info']' returned non-zero exit status 1.
OSPD[100717] 2025-06-19 19:25:06,189: ERROR: (ospd_openvas.daemon) Updating VTs failed.

```

And some more:

```plaintext
lib nasl:MESSAGE:2025-06-19 19h25.56 utc:273576: /var/lib/openvas/plugins/plugin_feed_info.inc: Not able to open nor to locate it in include paths
lib nasl:MESSAGE:2025-06-19 19h26.07 utc:273582: /var/lib/openvas/plugins/plugin_feed_info.inc: Not able to open nor to locate it in include paths
lib nasl:MESSAGE:2025-06-19 19h26.17 utc:273588: /var/lib/openvas/plugins/plugin_feed_info.inc: Not able to open nor to locate it in include paths

```

The log file doesn’t exist, even if I try creating it nothing gets written into it  
/var/log/gvm/gvmd.log

Any idea what I’m doing wrong?

---

<div class="post-metadata">

**Author:** ![rippledj](https://forum.greenbone.net/user_avatar/forum.greenbone.net/rippledj/32/2006_2.png) [@rippledj](https://forum.greenbone.net/u/rippledj)\
**Post date:** [June 19, 2025, 11:06pm UTC](https://forum.greenbone.net/t/gvmd-not-starting/21422/2 "2025-06-19T23:06:44Z")

</div>

You should provide detailed information about your install method, and system configuration to get help from community members. Otherwise, we could assume you used the official [Building from Source Guide](https://greenbone.github.io/docs/latest/22.4/source-build/index.html), and then find out differently at a later point.

---

<div class="post-metadata">

**Author:** ![Walter](https://forum.greenbone.net/letter_avatar/walter/32/6_449c533f586939b6e5f246632a46421f.png) [@Walter](https://forum.greenbone.net/u/Walter)\
**Post date:** [June 21, 2025, 6:07am UTC](https://forum.greenbone.net/t/gvmd-not-starting/21422/3 "2025-06-21T06:07:54Z")

</div>

I did build from Source, and also tried the immauss container. Currently running immausss.

---

<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:** [June 21, 2025, 9:34am UTC](https://forum.greenbone.net/t/gvmd-not-starting/21422/4 "2025-06-21T09:34:30Z")

</div>

It looks like a permission problem, you need to start the services in the foreground (without systemd) and if you have permission issues you can run “strace -e file {cmd}” to debug this.

---

<div class="post-metadata">

**Author:** ![Walter](https://forum.greenbone.net/letter_avatar/walter/32/6_449c533f586939b6e5f246632a46421f.png) [@Walter](https://forum.greenbone.net/u/Walter)\
**Post date:** [June 25, 2025, 5:35pm UTC](https://forum.greenbone.net/t/gvmd-not-starting/21422/5 "2025-06-25T17:35:53Z")

</div>

To make sure we are on the right track I’ve been rebuilding from source strictly following the steps on the article. I hit a wall while setting up the admin user. The guide is very specific for this step, if there is no output “User created.” then I must check the log, and I see some errors there, any ideas?

```plaintext
cybsec@cybsec-ov:~/source/openvas-scanner-23.20.0/rust/src/openvasd$ /usr/local/sbin/gvmd --create-user=admin --password='TestPassword'
cybsec@cybsec-ov:~/source/openvas-scanner-23.20.0/rust/src/openvasd$ cat /var/log/gvm/gvmd.log
md main:MESSAGE:2025-06-25 17h29.22 utc:21217: Greenbone Vulnerability Manager version 26.0.0 (DB revision 259)
md manage: INFO:2025-06-25 17h29.22 utc:21217: Creating user.
md manage:WARNING:2025-06-25 17h29.22 utc:21217: sql_exec_internal: PQexec failed: ERROR: relation "public.meta" does not exist
LINE 1: SELECT value FROM public.meta WHERE name = 'database_version...
                          ^
 (7)
md manage:WARNING:2025-06-25 17h29.22 utc:21217: sql_exec_internal: SQL: SELECT value FROM public.meta WHERE name = 'database_version';
md manage:WARNING:2025-06-25 17h29.22 utc:21217: sql_x: sql_exec_internal failed
md manage:MESSAGE:2025-06-25 17h29.22 utc:21217: No SCAP database found
md manage:MESSAGE:2025-06-25 17h29.22 utc:21217: No CERT database found
md manage:WARNING:2025-06-25 17h29.22 utc:21217: sql_exec_internal: PQexec failed: ERROR: permission denied to set role "dba"
 (7)
md manage:WARNING:2025-06-25 17h29.22 utc:21217: sql_exec_internal: SQL: SET ROLE "dba";
md manage:WARNING:2025-06-25 17h29.22 utc:21217: sqlv: sql_exec_internal failed
md main:MESSAGE:2025-06-25 17h30.08 utc:21236: Greenbone Vulnerability Manager version 26.0.0 (DB revision 259)
md manage: INFO:2025-06-25 17h30.08 utc:21236: Creating user.
md manage:WARNING:2025-06-25 17h30.08 utc:21236: sql_exec_internal: PQexec failed: ERROR: relation "public.meta" does not exist
LINE 1: SELECT value FROM public.meta WHERE name = 'database_version...
                          ^
 (7)
md manage:WARNING:2025-06-25 17h30.08 utc:21236: sql_exec_internal: SQL: SELECT value FROM public.meta WHERE name = 'database_version';
md manage:WARNING:2025-06-25 17h30.08 utc:21236: sql_x: sql_exec_internal failed
md manage:MESSAGE:2025-06-25 17h30.08 utc:21236: No SCAP database found
md manage:MESSAGE:2025-06-25 17h30.08 utc:21236: No CERT database found
md manage:WARNING:2025-06-25 17h30.08 utc:21236: sql_exec_internal: PQexec failed: ERROR: permission denied to set role "dba"
 (7)
md manage:WARNING:2025-06-25 17h30.08 utc:21236: sql_exec_internal: SQL: SET ROLE "dba";
md manage:WARNING:2025-06-25 17h30.08 utc:21236: sqlv: sql_exec_internal failed

```

---

<div class="post-metadata">

**Author:** ![Eero](https://forum.greenbone.net/letter_avatar/eero/32/6_449c533f586939b6e5f246632a46421f.png) [@Eero](https://forum.greenbone.net/u/Eero)\
**Post date:** [June 27, 2025, 12:49pm UTC](https://forum.greenbone.net/t/gvmd-not-starting/21422/6 "2025-06-27T12:49:00Z")

</div>

Just follow instructions by step by step..

Eero

---

<div class="post-metadata">

**Author:** ![Walter](https://forum.greenbone.net/letter_avatar/walter/32/6_449c533f586939b6e5f246632a46421f.png) [@Walter](https://forum.greenbone.net/u/Walter)\
**Post date:** [June 28, 2025, 3:46pm UTC](https://forum.greenbone.net/t/gvmd-not-starting/21422/7 "2025-06-28T15:46:16Z")

</div>

I did, didn’t skip anything. And I did it again just to make sure I didn’t miss anything. Same issue.

---

<div class="post-metadata">

**Author:** ![Eero](https://forum.greenbone.net/letter_avatar/eero/32/6_449c533f586939b6e5f246632a46421f.png) [@Eero](https://forum.greenbone.net/u/Eero)\
**Post date:** [June 28, 2025, 3:55pm UTC](https://forum.greenbone.net/t/gvmd-not-starting/21422/8 "2025-06-28T15:55:19Z")

</div>

@Walter how about using deb packages, if instructions are too hard to follow?

Eero

---

<div class="post-metadata">

**Author:** ![Walter](https://forum.greenbone.net/letter_avatar/walter/32/6_449c533f586939b6e5f246632a46421f.png) [@Walter](https://forum.greenbone.net/u/Walter)\
**Post date:** [June 28, 2025, 4:27pm UTC](https://forum.greenbone.net/t/gvmd-not-starting/21422/9 "2025-06-28T16:27:27Z")

</div>

Hey, instructions are not hard to follow, they’re very straight forward. The issue at this time is the Postgres database, I’m currently troubleshooting that, error by error and it seems I’m making some progress.

```plaintext
cybsec@cybsec-ov:~/source/openvas-scanner-23.20.0/rust/src/openvasd$ sudo runuser -u _gvm -- gvmd --migrate

(gvmd:188395): md manage-WARNING **: 15:54:41.857: sql_exec_internal: PQexec failed: ERROR: permission denied to set role "dba"
 (7)

(gvmd:188395): md manage-WARNING **: 15:54:41.857: sql_exec_internal: SQL: SET ROLE "dba";

(gvmd:188395): md manage-WARNING **: 15:54:41.857: sqlv: sql_exec_internal failed
cybsec@cybsec-ov:~/source/openvas-scanner-23.20.0/rust/src/openvasd$ sudo -u postgres psql
psql (17.5 (Ubuntu 17.5-1.pgdg22.04+1), server 14.18 (Ubuntu 14.18-0ubuntu0.22.04.1))
Type "help" for help.

postgres=# GRANT dba TO _gvm;
GRANT ROLE
postgres=# \du
                             List of roles
 Role name | Attributes
-----------+------------------------------------------------------------
 _gvm |
 cybsec |
 dba | Superuser, No inheritance, Cannot login
 gvm |
 gvmduser |
 postgres | Superuser, Create role, Create DB, Replication, Bypass RLS

postgres=# \q
cybsec@cybsec-ov:~/source/openvas-scanner-23.20.0/rust/src/openvasd$ sudo runuser -u _gvm -- gvmd --migrate
md manage-Message: 15:56:57.248: cleanup_old_sql_functions: cleaning up SQL functions now included in pg-gvm extension
md main: DEBUG:2025-06-28 15h56.57 utc:188534: Sentry support disabled
md main: DEBUG:2025-06-28 15h56.57 utc:188534: No default relay mapper found.
md main:MESSAGE:2025-06-28 15h56.57 utc:188534: Greenbone Vulnerability Manager version 22.4.2 (DB revision 250)
md main: INFO:2025-06-28 15h56.57 utc:188534: Migrating database.
Can not open '/var/log/gvm/gvmd.log' logfile: Permission denied

(process:188534): libgvm base-ERROR (recursed) **: Can not open '/var/log/gvm/gvmd.log' logfile: Permission deniedcybsec@cybsec-ov:~/source/openvas-scanner-23.20.0/rust/src/openvasd$

```

Just in case, do you have a guide for the \*.deb packages?  
If I don’t make much progress then I’ll try that for sure

---

<div class="post-metadata">

**Author:** ![Eero](https://forum.greenbone.net/letter_avatar/eero/32/6_449c533f586939b6e5f246632a46421f.png) [@Eero](https://forum.greenbone.net/u/Eero)\
**Post date:** [June 28, 2025, 4:40pm UTC](https://forum.greenbone.net/t/gvmd-not-starting/21422/10 "2025-06-28T16:40:15Z")

</div>

Most of errors can be seen your screen capture.

It might be wise just use kali packages or install debian 12 and just run this script for installation.

> **[GitHub - Kastervo/OpenVAS-Installation: A secure, automated script to install and...](https://github.com/Kastervo/OpenVAS-Installation)**
>
> A secure, automated script to install and configure OpenVAS (Greenbone Community Edition) from source on Debian 12. Features GPG verification, self-signed SSL, and systemd integration.

Eero

Eero

---

<div class="post-metadata">

**Author:** ![Walter](https://forum.greenbone.net/letter_avatar/walter/32/6_449c533f586939b6e5f246632a46421f.png) [@Walter](https://forum.greenbone.net/u/Walter)\
**Post date:** [June 28, 2025, 4:45pm UTC](https://forum.greenbone.net/t/gvmd-not-starting/21422/11 "2025-06-28T16:45:26Z")

</div>

Thanks!  
Hadn’t seen that one yet, I will read it and give it a go on a VM with Debian 12

---

<div class="post-metadata">

**Author:** ![Walter](https://forum.greenbone.net/letter_avatar/walter/32/6_449c533f586939b6e5f246632a46421f.png) [@Walter](https://forum.greenbone.net/u/Walter)\
**Post date:** [July 3, 2025, 8:07pm UTC](https://forum.greenbone.net/t/gvmd-not-starting/21422/12 "2025-07-03T20:07:15Z")

</div>

Hey, I ran the script, and it worked fine!  
Just a little thing. When it finishes, the web access is created which is awesome, but for some reason I can’t seem to be able to bind port 9390 to TCP in order to access the OpenVAS via GMP. The idea is to integrate it to a script we’re creating.  
When checking the GVMD status it always says “initializing”. And when checking the logs it shows issues with a certificate. I’m assuming these 2 issues are correlated but not sure how to fix this. Our idea is to pay for the service, but we wanted to try it out first before investing money on it.

```plaintext
md main:CRITICAL:2025-07-03 19h58.03 utc:440998: gvmd: client server initialisation failed
md main:MESSAGE:2025-07-03 19h58.04 utc:441018: Greenbone Vulnerability Manager version 26.0.0 (DB revision 259)
libgvm util:WARNING:2025-07-03 19h58.18 utc:441018: server_new_internal: failed to set credentials key file: Error while reading file.
libgvm util:WARNING:2025-07-03 19h58.18 utc:441018: server_new_internal: cert file: /var/lib/gvm/CA/servercert.pem
libgvm util:WARNING:2025-07-03 19h58.18 utc:441018: server_new_internal: key file : /var/lib/gvm/private/CA/serverkey.pem
md main:CRITICAL:2025-07-03 19h58.18 utc:441018: gvmd: client server initialisation failed
md main:MESSAGE:2025-07-03 19h58.19 utc:441039: Greenbone Vulnerability Manager version 26.0.0 (DB revision 259)

deb-ov@debian-ov:~$ sudo systemctl status gvmd

● gvmd.service - Greenbone Vulnerability Manager daemon (gvmd)
     Loaded: loaded (/etc/systemd/system/gvmd.service; enabled; preset: enabled)
     Active: active (running) since Thu 2025-07-03 15:58:34 EDT; 11s ago
       Docs: man:gvmd(8)
   Main PID: 441062 (gvmd)
      Tasks: 1 (limit: 8758)
     Memory: 265.7M
        CPU: 6.927s
     CGroup: /system.slice/gvmd.service
             └─441062 "gvmd: Initializing" "" .--osp-vt-update=/run/ospd/ospd-openvas.sock --listen=0.0.0.0 --port=9390 --listen-group=gvm --foreground

Jul 03 15:58:34 debian-ov systemd[1]: Started gvmd.service - Greenbone Vulnerability Manager daemon (gvmd).
deb-ov@debian-ov:~$

```

---

<div class="post-metadata">

**Author:** ![Eero](https://forum.greenbone.net/letter_avatar/eero/32/6_449c533f586939b6e5f246632a46421f.png) [@Eero](https://forum.greenbone.net/u/Eero)\
**Post date:** [July 4, 2025, 9:37am UTC](https://forum.greenbone.net/t/gvmd-not-starting/21422/13 "2025-07-04T09:37:49Z")

</div>

@Walter

I just tested the installation on Debian 12 and it worked perfectly; This script is a bit on the bleeding edge since it downloads the latest versions; I recommend installing Kali Rolling Linux and installing the packages through it (`apt -y install openvas; gvm-setup; gvm-check-setup`).

On this forum, it’s not possible to provide step-by-step guidance — it’s assumed that the basics are already understood. In the commercial version, you can use support services that offer hands-on help and detailed instructions.

edit: make sure that you are running Debian 12 fully updated before running the script.

Eero

---

<div class="post-metadata">

**Author:** ![jakabasej8](https://forum.greenbone.net/letter_avatar/jakabasej8/32/6_449c533f586939b6e5f246632a46421f.png) [@jakabasej8](https://forum.greenbone.net/u/jakabasej8)\
**Post date:** [July 13, 2025, 9:59pm UTC](https://forum.greenbone.net/t/gvmd-not-starting/21422/14 "2025-07-13T21:59:35Z")

</div>

> [@Walter](#):
>
> To make sure we are on the right track I’ve been rebuilding from source strictly following the steps on the article. I hit a wall while setting up the admin user. The guide is very specific for this step, if there is no output “User created.” then I must check the log, and I see some errors there, any ideas?

Verify you’re using the right versions of dependencies, as version mismatches can cause silent failures.

---

<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:** [July 14, 2025, 6:33am UTC](https://forum.greenbone.net/t/gvmd-not-starting/21422/15 "2025-07-14T06:33:13Z")

</div>

Hi,

just to make that obvious, the **only officially supported** installation methods are listed at our community docs

> **[Greenbone Community Edition – Documentation](https://greenbone.github.io/docs/latest/)**
>
> The Greenbone Community Edition covers the actual source code of the Greenbone Vulnerability Management software stack, which is also known as OpenVAS. It is available as regularly updated source c...

**all** other installation methods may fail due to unknown reasons and you can’t expect any help from a Greenbone employee.

---

<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:** [September 17, 2025, 11:05pm UTC](https://forum.greenbone.net/t/gvmd-not-starting/21422/16 "2025-09-17T23:05:56Z")

</div>

Closed on September 17, 2025, 11:05pm UTC

This topic was automatically closed after 90 days. New replies are no longer allowed.
