Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenVAS fails to rebuild database after a clean install #98

Closed
shibumi opened this issue May 4, 2018 · 3 comments
Closed

OpenVAS fails to rebuild database after a clean install #98

shibumi opened this issue May 4, 2018 · 3 comments

Comments

@shibumi
Copy link

shibumi commented May 4, 2018

Expected behavior

openvasmd --rebuild --progress should work as expected.

Current behavior

Rebuilding the database is failing or hanging. See also: https://bugs.archlinux.org/task/57470

Steps to reproduce

  1. Install openvas-manager from Arch Linux repositories
  2. execute openvasamd --rebuild --progress
  3. wait for it

GVM versions

gsa: 7.0.3

gvm: 7.0.3

openvas-scanner: 5.1.2

gvm-libs: 9.0.2

Environment

Operating system: Arch Linux

Installation method / source: package installation

Here is the way I build gvm:

sed -i '1c#!/usr/bin/python2' tools/extra/xml_split
cmake -DCMAKE_BUILD_TYPE=Release -DSBINDIR=/usr/bin \
    -DCMAKE_INSTALL_PREFIX=/usr -DSYSCONFDIR=/etc -DLOCALSTATEDIR=/var .
make
make install

Logfiles

Sorry no log files provided. But if you tell me what you need I try to start a container or VM and get it.
@cfi-gb
Copy link
Member

cfi-gb commented May 6, 2018

@shibumi This sounds to me more like a setup issue which should go to http://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

e.g. the Wiki Article on Arch https://wiki.archlinux.org/index.php/OpenVAS says to setup the OpenVAS related redis stuff "Post-install":

https://wiki.archlinux.org/index.php/OpenVAS#Post-install

but this needs to be done before the initial start of openvassd. Most likely the manager has issues to connect to the scanner because its e.g. not running (due to the missing redis modifications).

Make also sure that the start of the openvassd doesn't time out / freeze due to this missing modifications:

http://lists.wald.intevation.org/pipermail/openvas-discuss/2017-November/011629.html

@cfi-gb
Copy link
Member

cfi-gb commented May 8, 2018

As a side note also make sure to apply the recommended settings shown in greenbone/openvas-scanner#93

Especially the commented out "save" statements are important and might be the root cause of this issue if missing.

@salsa-dev
Copy link

I've also bumped into this on Ubuntu 16.04.
Rebuild process was hanging on generating certificate. This was due to low entropy.
Try to increase kernel entropy for GPG key generation during 'openvasmd --rebuild' install package 'haveged'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants