# Startup hangs on "Starting Open Scanner Protocol daemon for OpenVAS..."

**URL:** <https://forum.greenbone.net/t/startup-hangs-on-starting-open-scanner-protocol-daemon-for-openvas/5025>\
**Category:** Greenbone Community Edition\
**Created:** [April 5, 2020, 6:43am UTC](https://forum.greenbone.net/t/startup-hangs-on-starting-open-scanner-protocol-daemon-for-openvas/5025 "2020-04-05T06:43:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbaptiste](https://forum.greenbone.net/user_avatar/forum.greenbone.net/jbaptiste/32/963_2.png) [@jbaptiste](https://forum.greenbone.net/u/jbaptiste)\
**Post date:** [April 5, 2020, 6:43am UTC](https://forum.greenbone.net/t/startup-hangs-on-starting-open-scanner-protocol-daemon-for-openvas/5025/1 "2020-04-05T06:43:17Z")

</div>

I’m not being able to get it to work. If I only build opsd and opsd-openvas I get this error when starting up:

`ERROR: Not possible to get the installed gvm-libs version. Outdated openvas version. openvas version needs to be at least 7.0.1.`

So I build gvm-libs on branch gvm-libs-11.0 and openvas-scanner on branch openvas-7.0 and now the startup hangs on:

`Starting Open Scanner Protocol daemon for OpenVAS...`

What I’m missing?

---

<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 5, 2020, 8:39am UTC](https://forum.greenbone.net/t/startup-hangs-on-starting-open-scanner-protocol-daemon-for-openvas/5025/2 "2020-04-05T08:39:26Z")

</div>

Please build openvas from the release branch too.

---

<div class="post-metadata">

**Author:** ![jbaptiste](https://forum.greenbone.net/user_avatar/forum.greenbone.net/jbaptiste/32/963_2.png) [@jbaptiste](https://forum.greenbone.net/u/jbaptiste)\
**Post date:** [April 5, 2020, 4:55pm UTC](https://forum.greenbone.net/t/startup-hangs-on-starting-open-scanner-protocol-daemon-for-openvas/5025/3 "2020-04-05T16:55:21Z")

</div>

Hi,

Could you be more specific ? I thought I was building the release branch `openvas-7.0` for the openvas package ? These are the packages and branches I’m currently building:

> **[greenbone/gvm-libs](https://github.com/greenbone/gvm-libs)**
>
> Greenbone Vulnerability Management Libraries. Contribute to greenbone/gvm-libs development by creating an account on GitHub.

  
gvm-libs-11.0

> **[greenbone/openvas](https://github.com/greenbone/openvas)**
>
> Open Vulnerability Assessment Scanner. Contribute to greenbone/openvas development by creating an account on GitHub.

  
openvas-7.0

> **[greenbone/ospd](https://github.com/greenbone/ospd)**
>
> OSPD is a base class for vulnerability scanners which share the same communication protocol: OSP (Open Scanner Protocol) - greenbone/ospd

  
ospd-2.0

> **[greenbone/ospd-openvas](https://github.com/greenbone/ospd-openvas)**
>
> ospd-openvas is an OSP server implementation to allow GVM to remotely control an OpenVAS Scanner - greenbone/ospd-openvas

  
ospd-openvas-1.0

The rest of them are being built from the released versions, as you can see [here](https://pastebin.com/ezY4B6R6).

---

<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 6, 2020, 6:53am UTC](https://forum.greenbone.net/t/startup-hangs-on-starting-open-scanner-protocol-daemon-for-openvas/5025/4 "2020-04-06T06:53:22Z")

</div>

The message is a bit confusing because there is no released version of openvas 7.0.1. It requires either a version from the current [https://github.com/greenbone/openvas/tree/openvas-7.0](https://github.com/greenbone/openvas/tree/openvas-7.0) branch or from master branch. You can check if you have a sufficient version of `openvas` by running `openvas --version`. The output must contain a line about the gvm-libs version.

Something like (I am using a version from the master branch)

```auto
$ openvas --version
OpenVAS 20.4+beta1
gvm-libs 20.4

```

---

<div class="post-metadata">

**Author:** ![jbaptiste](https://forum.greenbone.net/user_avatar/forum.greenbone.net/jbaptiste/32/963_2.png) [@jbaptiste](https://forum.greenbone.net/u/jbaptiste)\
**Post date:** [April 6, 2020, 5:25pm UTC](https://forum.greenbone.net/t/startup-hangs-on-starting-open-scanner-protocol-daemon-for-openvas/5025/5 "2020-04-06T17:25:51Z")

</div>

Hi Bricks,

Then I don’t understand what I’m doing wrong, if you looked at the _pastebin_ link you would have noticed that indeed I’m building [https://github.com/greenbone/openvas](https://github.com/greenbone/openvas) from openvas-7.0 branch:

```
git clone https://github.com/greenbone/openvas.git && \
    cd /build/*/ && \
    git checkout openvas-7.0 && \
    mkdir build && \
    cd build && \
    cmake -DCMAKE_BUILD_TYPE=Release .. && \
    make && \
    make install && \
    cd /build && \
    rm -rf *

```

but when running openvas --version I still get 7.0.0 version:

```
openvas --version
 ---> Running in a80db5cdd576
OpenVAS 7.0.0
gvm-libs 11.0.1

```

I’m missing building from master any other package or something ? I will try switching from openvas-7.0 branch to master and see what happens.

btw, thanks for your help.

---

<div class="post-metadata">

**Author:** ![jbaptiste](https://forum.greenbone.net/user_avatar/forum.greenbone.net/jbaptiste/32/963_2.png) [@jbaptiste](https://forum.greenbone.net/u/jbaptiste)\
**Post date:** [April 7, 2020, 2:12am UTC](https://forum.greenbone.net/t/startup-hangs-on-starting-open-scanner-protocol-daemon-for-openvas/5025/6 "2020-04-07T02:12:38Z")

</div>

Ok, I managed go pass from the “Starting Open Scanner Protocol daemon for OpenVAS” message and see the correct versions as you pointed out:

```auto
openvas --version
OpenVAS 20.4+beta1
gvm-libs 20.4

```

but it seems there is still something wrong or broken. At startup I get lots of error messages like these:

```
lib osp:WARNING:2020-04-06 20h01.42 utc:240: osp_get_vts_version: element VTS missing.
md manage:WARNING:2020-04-06 20h01.42 utc:240: manage_update_nvt_cache_osp: failed to get scanner_version
md manage: INFO:2020-04-06 20h01.49 utc:210: update_dfn_xml: dfn-cert-2013.xml
md manage: INFO:2020-04-06 20h01.49 utc:210: Updating /usr/local/var/lib/gvm/cert-data/dfn-cert-2013.xml
lib osp:WARNING:2020-04-06 20h01.53 utc:244: osp_get_vts_version: element VTS missing.

```

And I cannot add a target, I get this error:

 ![Screenshot_20200406_211135](https://community.greenbone.net/uploads/default/original/2X/0/0da3ca1c049c989fa70f83f1871c0979d4c86ad3.png) and on the logs I can see this:

```
==> /usr/local/var/log/gvm/gvmd.log <==
event target:MESSAGE:2020-04-06 20h43.40 UTC:1743: Target could not be created by admin

```

Now I will try backporting only those two PR’s to the current released versions and see what happens…

btw, when is the next version going to be released ?

---

<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 7, 2020, 6:04am UTC](https://forum.greenbone.net/t/startup-hangs-on-starting-open-scanner-protocol-daemon-for-openvas/5025/7 "2020-04-07T06:04:38Z")

</div>

> [@jbaptiste](#):
>
> but when running openvas --version I still get 7.0.0 version:
> 
> ```auto
> openvas --version
> ---> Running in a80db5cdd576
> OpenVAS 7.0.0
> gvm-libs 11.0.1
> 
> ```
> 
> I’m missing building from master any other package or something ? I will try switching from openvas-7.0 branch to master and see what happens.

As I wrote the warning is a bit confusing because there is no 7.0.1 version but the openvas-7.0 branch should work despite not announcing a 7.0.1 version. From the output of `openvas --version` it was important that the version of gvm-libs is displayed which was only added **after** the initial openvas 7.0.0 release. Therefore the openvas-7.0 branch should work with ospd 2.0 and ospd-openvas 1.0.

I am not sure if you used the master branch of all components. In that case it wont work. `gvmd` needs some data from the feed which isn’t available at the moment. It is never a good idea to use our master branches without getting in touch with architecture and code details. Master branches may always be broken in some kind.

> [@jbaptiste](#):
>
> when is the next version going to be released ?

We are currently not doing bugfix releases because there is seems to be no demand (no distribution ships our current version as far as I am aware of) and because it cost to much developer resources. Our GOS just picks the code from the release branches.

Due to the current situation there will be some delay for the next GVM release (it was planned as 20.4). Therefore there isn’t an up to date time base for the next release.

---

<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:04am UTC](https://forum.greenbone.net/t/startup-hangs-on-starting-open-scanner-protocol-daemon-for-openvas/5025/8 "2025-04-07T10:04:45Z")

</div>

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


