Check that you have enough disk space. Especially in var.

The re-run openvas-setup.

I have it working fine in VMware and AWS using CentOS 7.4.

On Sun, Feb 25, 2018, 16:15 Jerry Lotto <jerrylo...@gmail.com> wrote:

> [root@centos7vm /]# free
>
>               total        used        free      shared  buff/cache
> available
>
> Mem:        4029108     3483420      205064        2136      340624
> 264468
>
> Swap:       4095996      621668     3474328
>
>
>
> *From: *<eero.t.voloti...@gmail.com> on behalf of Eero Volotinen <
> eero.voloti...@iki.fi>
> *Date: *Sunday, February 25, 2018 at 4:05 PM
> *To: *Gerald Lotto <jerrylo...@gmail.com>
> *Cc: *<openvas-discuss@wald.intevation.org>
> *Subject: *Re: [Openvas-discuss] Installing OpenVAS in CentOS 7 VM
>
>
>
> do you have enought ram in vm?
>
>
>
> Eero
>
>
>
> 25.2.2018 23.04 "Jerry Lotto" <jerrylo...@gmail.com> kirjoitti:
>
> Running around in circles.  Removed, replaced, reinstalled, downgraded 8 /
> upgraded 9.  Everything leads to this:
>
>
>
> Checking OpenVAS Manager database (NVT data) ...
>
>         ERROR: The number of NVTs in the OpenVAS Manager database is too
> low.
>
>         FIX: Make sure OpenVAS Scanner is running with an up-to-date NVT
> collect
>
> ion and run 'openvasmd --rebuild'.
>
>         WARNING: OpenVAS Scanner is NOT running!
>
>         SUGGEST: Start OpenVAS Scanner (openvassd).
>
>
>
> So I’ve got a chicken and egg problem.
>
>
>
> Scanner won’t start:
>
>
>
> [root@centos7vm /]# systemctl status *openvas-scanner* -l
>
> ● openvas-scanner.service - OpenVAS Scanner
>
>    Loaded: loaded (/usr/lib/systemd/system/openvas-scanner.service;
> enabled; vendor preset: disabled)
>
>    Active: *activating (start)* since Sun 2018-02-25 15:46:30 EST; 13min
> ago
>
>   Control: 18590 (openvassd)
>
>    CGroup: /system.slice/openvas-scanner.service
>
>            └─18590 /usr/sbin/openvassd
>
>
>
> Feb 25 15:46:30 centos7vm.lotto.net systemd[1]: Starting OpenVAS
> Scanner...
>
> Feb 25 15:46:30 centos7vm.lotto.net systemd[1]: Starting OpenVAS
> Scanner...
>
>
>
> Everything else is up:
>
>
>
> [root@centos7vm /]# systemctl status *openvas-manager -l*
>
> ● openvas-manager.service - OpenVAS Manager
>
>    Loaded: loaded (/usr/lib/systemd/system/openvas-manager.service;
> enabled; vendor preset: disabled)
>
>    Active: *active (running)* since Sun 2018-02-25 13:26:18 EST; 2h 29min
> ago
>
> Main PID: 9986 (openvasmd)
>
>    CGroup: /system.slice/openvas-manager.service
>
>            └─9986 openvasmd
>
>
>
> Feb 25 13:26:18 centos7vm.lotto.net systemd[1]: Starting OpenVAS
> Manager...
>
> Feb 25 13:26:18 centos7vm.lotto.net systemd[1]: Started OpenVAS Manager.
>
>
>
> [root@centos7vm /]# systemctl status *redis -l*
>
> ● redis.service - Redis persistent key-value database
>
>    Loaded: loaded (/usr/lib/systemd/system/redis.service; enabled; vendor
> preset: disabled)
>
>   Drop-In: /etc/systemd/system/redis.service.d
>
>            └─limit.conf
>
>    Active: *active (running)* since Sun 2018-02-25 12:20:23 EST; 3h 35min
> ago
>
> Main PID: 4744 (redis-server)
>
>    CGroup: /system.slice/redis.service
>
>            └─4744 /usr/bin/redis-server 127.0.0.1:6379
>
>
>
> [root@centos7vm /]# systemctl status *gsad* -l
>
> ● gsad.service - OpenVAS Manager
>
>    Loaded: loaded (/usr/lib/systemd/system/gsad.service; enabled; vendor
> preset: disabled)
>
>    Active: *active (running)* since Sun 2018-02-25 15:06:25 EST; 55min ago
>
> Main PID: 16626 (gsad)
>
>    CGroup: /system.slice/gsad.service
>
>            ├─16626 /usr/sbin/gsad --listen 0.0.0.0 --port 9392
>
>            └─16627 /usr/sbin/gsad --listen 0.0.0.0 --port 9392
>
>
>
> Feb 25 15:06:25 centos7vm.lotto.net systemd[1]: Starting OpenVAS
> Manager...
>
> Feb 25 15:06:25 centos7vm.lotto.net systemd[1]: Started OpenVAS Manager.
>
>
>
> Scanner logs ogs say:
>
> [Sun Feb 25 15:02:52 2018][51446] NVT with duplicate OID
> 1.3.6.1.4.1.25623.1.0.890841 will be replaced with 2017/deb_dla_841.nasl
>
> [Sun Feb 25 16:52:19 2018][1317] Failed to initialize nvti cache.
>
> (repeats)
>
>
>
> But NVT update or rebuild won’t succeed without scanner running.
>
>
>
> md manage:WARNING:2018-02-25 20h12.30 utc:17040: database must be
> initialised from scanner (with --update or --rebuild)
>
> md   main:MESSAGE:2018-02-25 20h12.30 utc:17041:    OpenVAS Manager
> version 7.0.2 (DB revision 184)
>
> md   main:   INFO:2018-02-25 20h12.30 utc:17041: rebuild_nvt_cache_retry:
> Reloading NVT cache
>
> md   main:   INFO:2018-02-25 20h12.30 utc:17042:
> update_or_rebuild_nvt_cache: Rebuilding NVT cache
>
> base gpgme:MESSAGE:2018-02-25 20h12.30 utc:17042: Setting GnuPG dir to
> '/var/lib/openvas/openvasmd/gnupg'
>
> base gpgme:MESSAGE:2018-02-25 20h12.30 utc:17042: Using OpenPGP engine
> version '2.0.22'
>
> md   main:   INFO:2018-02-25 20h12.30 utc:17042:    Updating NVT cache.
>
> md   main:WARNING:2018-02-25 20h26.27 utc:17042: openvas_scanner_read:
> Failed to read from scanner: Connection reset by peer
>
>
>
> I’ve deleted the cache, the database, the scap data, the certs –
> regenerated everything from scratch – spinning my wheels.
>
>
>
> Where is the smoking gun?
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Ru
>
>
> _______________________________________________
> Openvas-discuss mailing list
> Openvas-discuss@wald.intevation.org
> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
>
> _______________________________________________
> Openvas-discuss mailing list
> Openvas-discuss@wald.intevation.org
> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
_______________________________________________
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to