I recently experienced this as well, openvassd not starting.. just hanging and 
nothing being logged.
This was the result of starting a few jobs too many and some just hanging.. I 
eventually used kill -9 to end and restart everything.
An strace showed it halted while doing something with redis so I flushed it 
using:

redis-cli -s /var/run/redis/redis.sock flushall

It had to rebuild the database but it worked just fine again after that.

Thijs Stuurman
Security Operations Center | KPN Internedservices
[email protected]<mailto:[email protected]> | 
[email protected]<mailto:[email protected]>
T: +31(0)299476185 | M: +31(0)624366778
PGP Key-ID: 0x16ADC048 (https://pgp.surfnet.nl/)
Fingerprint: 2EDB 9B42 D6E8 7D4B 6E02 8BE5 6D46 8007 16AD C048

W: https://www.internedservices.nl<https://www.internedservices.nl/> | L: 
http://nl.linkedin.com/in/thijsstuurman

Van: Openvas-discuss [mailto:[email protected]] 
Namens Harsh kapadia
Verzonden: woensdag 28 juni 2017 20:19
Aan: Christian Fischer <[email protected]>
CC: [email protected]
Onderwerp: Re: [Openvas-discuss] openVAS scanner service timing out

Hi Christian,

Yes, actually the openvassd.log did not show anything.

I waited and retried deleting the redis dump file and restarting the service. 
This resolved the issue! The service started and is scanning successfully now.

Thanks a lot for your help!

Regards,
Harsh


On Wed, Jun 28, 2017 at 11:43 PM, Christian Fischer 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

On 28.06.2017 18:56, Harsh kapadia wrote:
> Hi,
>
> There seems to be enough memory.
> [root@etvas8r4 ~]# free
>               total        used        free      shared  buff/cache
> available
> Mem:        3882052     1497340      721696      102084     1663016
> 1941572
> Swap:       4063228      239012     3824216
> [root@etvas8r4 ~]#
>
> The logs dont display anything new - attached openvasmd.log file

this is the manager logfile (openvasMd) which probably doesn't contain
any information as you have an issue with the scanner (openvasSd).

> Also, tried and tested deleting the redis dump and restarted services.
> Still no luck. The scanner service is still getting stuck.
>
> Regards,
> Harsh
>
>
> On Wed, Jun 28, 2017 at 10:07 PM, Christian Fischer
> <[email protected]<mailto:[email protected]>
> <mailto:[email protected]<mailto:[email protected]>>>
>  wrote:
>
>     Hi,
>
>     On 28.06.2017 17:14, Harsh kapadia wrote:
>     > Hi,
>     >
>     > I am running openVAS 9 and the openvas scanner service is timing out -
>     > because of this, I cannot run reports.
>     >
>     > The openvas-check-setup show everything is OK. Below is the error
>     I see
>     > when the services dont start up:
>     > Redirecting to /bin/systemctl start  openvas-scanner.service.service
>     > Job for openvas-scanner.service failed because a timeout was exceeded.
>     > See "systemctl status openvas-scanner.service" and "journalctl
>     -xe" for
>     > details.
>     >
>     > Have attached the "journalctl - xe " output as well.
>     >
>     > Please suggest on this. There's no further info available online
>     > regarding this issue.
>     >
>     > Thanks in advance!
>     > Harsh
>
>     most likely the known issue where redis is blocking any access by the
>     scanner due to unknown reasons. This should do the trick:
>
>     1. Delete dump.rdb (somewhere in /var/run/redis or similar)
>     2. Comment out/remove all "save xy z" (e.g. save 900 1) from your
>     redis.conf
>     3. restart redis
>     4. restart scanner and try again
--

Christian Fischer | PGP Key: 0x54F3CE5B76C597AD
Greenbone Networks GmbH | http://greenbone.net
Neumarkt 12, 49074 Osnabrück, Germany | AG Osnabrück, HR B 202460
Geschäftsführer: Lukas Grunwald, Dr. Jan-Oliver Wagner

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

Reply via email to