Michael,

Thijs help me find out where the problem reside. For some unknown reason, when 
compiling openvas-manager as an rpm package as I do before installation, the 
path related to /var/lib/openvas were rewritten to /usr/var/lib/openvas in the 
following script and program.

/usr/bin/openvas-manage-certs
/usr/sbin/greenbone-certdata-sync
/usr/sbin/greenbone-scapdata-sync
/usr/sbin/openvasmd
/usr/sbin/openvasmd-sqlite
/usr/sbin/openvas-migrate-to-postgres

Therefore, my solution was to make a sed on those files and replace any 
references for /usr/var/lib/openvas to /var/lib/openvas before running the 
installation.

Here my build:

%cmake -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=%{_prefix} \
        -DSYSCONFDIR=%{_sysconfdir} \
        -DLOCALSTATEDIR=%{_localstatedir} .

%{__make} %{?_smp_mflags} VERBOSE=1

Regards,
Gerhard.


> On Jun 6, 2017, at 3:15 PM, [email protected] wrote:
> 
> Dear Gerhard,
> 
> could you please execute 'ls -lah' in /var/lib/openvas/mgr/ and provide us 
> the full output?
> Like Harald already said, this process requires some time and the ammount can 
> vary depending
> on the hardware capacities assigned to the machine.
> 
> Please use the basic command for rebuilding: openvasmd --rebuild
> You can check if the manager is still rebuilding by launching 'htop',
> now look in the 'command' tab and if the rebuild is still running, it will 
> show the following entry:
> 
> openvasmd: rebuilding
> 
> As soon as this is gone, the process has completed.
> If you still want to check if the scanner is running and a sock existant 
> please do this in a single
> step, right before launching 'openvasmd --rebuild'. Here a short example how 
> to:
> [ ! -f /var/run/openvassd.sock ] && echo "Scanner socket not up nor running"
> 
> If the problem still persists even after granting a generous ammount of 
> waiting time for the rebuilding process,
> then we suggest to link us the output of the ls -lah command as suggested 
> above.
> 
> Thank you very much.
> 
> Cheers,
> Michael.
> 
> 
> 
> On 06.06.2017 20:15, Reindl Harald wrote:
>> Am 06.06.2017 um 19:18 schrieb Gerhard Mourani:
>>> Hello,
>>> Some generic information about my environment.
>>> Linux CentOS 6.8
>>> openvas-libraries version is 9.0.1
>>> openvas-manger version is 7.0.1
>>> openvas-scanner version is 5.1.1
>>> openvas-gsa version is 7.0.2
>>> OpenVAS compiled from source
>>> When I run the following command -> /usr/bin/openvas-check-setup --v9
>>> I receive the following error:
>>> ERROR: No OpenVAS Manager database found. (Tried: 
>>> /var/lib/openvas/mgr/tasks.db)
>>>         FIX: Run 'openvasmd --rebuild' while OpenVAS Scanner is running.
>>> So I run /usr/sbin/openvasmd --otp-scanner=/var/run/openvassd.sock 
>>> --rebuild again and again with same result
>> and how long did you wait?
>> build/rebuild the database is nothing which finishes within seconds
>> _______________________________________________
>> Openvas-discuss mailing list
>> [email protected]
>> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
> 

_______________________________________________
Openvas-discuss mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to