Completely different problem...

Am 31. Juli 2015 11:43:37 MESZ, schrieb "Gergő Narancs" 
<narancs.bud...@gmail.com>:
>Hi, I have the same problem, tried everything, wiped,reinstalled,etc.
>no
>success (centos 7, atomic repo)
>After a pkg update, now no problem with the rebuild, but now I can't
>access
>the reports after a scan. GSAD shows 0 reports.
>So still not perfect.
>I guess I'll have to compile from source.
>
>
>Üdv
>Gergő
>
>2015-07-30 17:34 GMT+02:00 Arthur <calvin...@gmail.com>:
>
>> The box is an ec2 t2.medium instance on ec2, which have 4gb of ram
>and
>> some proc.
>>
>> I wiped the current install (apt-get purge openvas && rm -Rvf
>> /var/lib/openvas)
>> then reinstalled it and reconfigured it with the help of
>openvas-check-set
>> (client certificate generation, user creation)
>>
>> When it comes to running `openvasmd --rebuild --progress`, I observe
>the
>> exact
>> same behaviour : progress bar stop to move, and last line of log are
>:
>>
>> $ sudo openvasmd --rebuild --progress --verbose
>> Rebuilding NVT cache... \
>>
>>
>> $ sudo tail /var/log/openvas/openvasmd.log
>> md   main:   INFO:2015-07-30 15h01.44 utc:7057:    OpenVAS Manager
>version
>> 6.0.1 (DB revision 146)
>> md   main:   INFO:2015-07-30 15h01.44 utc:7057:
>rebuild_nvt_cache_retry:
>> Reloading NVT cache
>> md   main:   INFO:2015-07-30 15h01.44 utc:7058:
>> update_or_rebuild_nvt_cache: Rebuilding NVT cache
>> md   main:   INFO:2015-07-30 15h01.44 utc:7058:    Updating NVT
>cache.
>> md    otp:MESSAGE:2015-07-30 15h01.44 utc:7058: Scanner loading: 3700
>/
>> 40087 nvts.
>> md   main:   INFO:2015-07-30 15h01.54 utc:7059:
>> update_or_rebuild_nvt_cache: Rebuilding NVT cache
>> md   main:   INFO:2015-07-30 15h01.54 utc:7059:    Updating NVT
>cache.
>> md    otp:MESSAGE:2015-07-30 15h01.54 utc:7059: Scanner loading:
>14550 /
>> 40087 nvts.
>> md   main:   INFO:2015-07-30 15h02.04 utc:7060:
>> update_or_rebuild_nvt_cache: Rebuilding NVT cache
>> md   main:   INFO:2015-07-30 15h02.04 utc:7060:    Updating NVT
>cache.
>> md    otp:MESSAGE:2015-07-30 15h02.04 utc:7060: Scanner loading:
>22750 /
>> 40087 nvts.
>> md   main:   INFO:2015-07-30 15h02.14 utc:7061:
>> update_or_rebuild_nvt_cache: Rebuilding NVT cache
>> md   main:   INFO:2015-07-30 15h02.14 utc:7061:    Updating NVT
>cache.
>> md    otp:MESSAGE:2015-07-30 15h02.14 utc:7061: Scanner loading:
>29700 /
>> 40087 nvts.
>> md   main:   INFO:2015-07-30 15h02.24 utc:7062:
>> update_or_rebuild_nvt_cache: Rebuilding NVT cache
>> md   main:   INFO:2015-07-30 15h02.24 utc:7062:    Updating NVT
>cache.
>> md    otp:MESSAGE:2015-07-30 15h02.24 utc:7062: Scanner loading:
>35800 /
>> 40087 nvts.
>> md   main:   INFO:2015-07-30 15h02.34 utc:7063:
>> update_or_rebuild_nvt_cache: Rebuilding NVT cache
>> md   main:   INFO:2015-07-30 15h02.35 utc:7063:    Updating NVT
>cache.
>>
>> Half an hour later, the process is still alive and the database is
>still
>> locked ;
>>
>> $ ps aux | grep openvas
>> root      7054  1.9  0.5 145848 21864 ?        Ss   15:01   0:28
>> openvassd: Reloaded all the NVTs.
>> root      7056  0.0  0.0  69960  2204 pts/1    S+   15:01   0:00 sudo
>> openvasmd --rebuild --progress --verbose
>> root      7057  0.0  0.0 163432  3912 pts/1    S+   15:01   0:00
>> openvasmd: Reloading
>> root      7063  0.0  0.2 166344  8456 pts/1    S+   15:02   0:00
>> openvasmd: Rebuilding
>>
>>
>> $ echo ".schema" | sudo sqlite3 /var/lib/openvas/mgr/tasks.db
>> Error: database is locked
>>
>> On that host, load is far below 1, and there is more than 1.5gb of
>free
>> ram, so I doubt it is a hardware issue.
>>
>> I will let the process run and see where it goes.
>> Meanwhile, I appreciate any suggestions.
>>
>> Thanks for your time.
>> Arthur
>>
>>
>> Le jeudi 30 juillet 2015, 09:46:04 Brandon Perry a écrit :
>> > Also, not sure what the specs on your box is. You should have at
>least
>> 4gb
>> > RAM and a nice proc to nicely run OpenVAS.
>> >
>> > On Thu, Jul 30, 2015 at 9:16 AM, Brandon Perry <
>> bperry.volat...@gmail.com>
>> >
>> > wrote:
>> > > Yes, while 30 mins is a bit long, let it sit a bit longer. I
>don't have
>> > > much experience with the Ubuntu packages however.
>> > >
>> > > Also, don't stop them halfway through with Ctrl+c, I am not sure
>what
>> kind
>> > > of state that leaves openvasmd in. If you have done that,
>probably
>> should
>> > > reinstall and try again.
>> > >
>> > > --rebuild will completely rebuild the openvasmd database.
>--update
>> simply
>> > > takes the difference between what openvas-nvt-sync et al have
>added and
>> > > updates the sqlite DB to include the new data. You probably do
>not
>> need to
>> > > run --rebuild.
>> > >
>> > > On Thu, Jul 30, 2015 at 9:11 AM, Arthur <calvin...@gmail.com>
>wrote:
>> > >> Haha good question ; around 30 minutes ? The first time I ran
>that
>> > >> command, it
>> > >> took at most 5 minutes. Should I wait more ?
>> > >>
>> > >> Also, the animated progress bar (the slashes `/|\-`) do not move
>> anymore
>> > >> when
>> > >> it hangs ; I assume a call is blocking somewhere.
>> > >>
>> > >>
>> > >> On a side note, I am using mrazavi packages for Ubuntu 14.04
>> > >> (https://launchpad.net/~mrazavi/+archive/ubuntu/openvas)
>> > >>
>> > >> Le jeudi 30 juillet 2015 09:05:15, vous avez écrit :
>> > >> > How long is forever?
>> > >> >
>> > >> > On Thu, Jul 30, 2015 at 9:04 AM, Arthur <calvin...@gmail.com>
>> wrote:
>> > >> > > Hello,
>> > >> > >
>> > >> > > As my title say, my problem today is that the command
>> > >> > > `openvasmd --progress --verbose --rebuild` never returns and
>hangs
>> > >> > > forever,
>> > >> > > locking the sqlite database and preventing any other action
>> > >> > > (including
>> > >> > > `openvas-check-setup` which is locked when trying to find
>users)
>> > >> > >
>> > >> > > $ sudo openvasmd --progress --verbose --rebuild
>> > >> > > Rebuilding NVT cache... /
>> > >> > > [hangs forever]
>> > >> > >
>> > >> > >
>> > >> > > $ sudo tail -f /var/log/openvas/openvasmd.log
>> > >> > > md   main:WARNING:2015-07-30 13h35.46 utc:4045: database
>must be
>> > >> > > initialised
>> > >> > > from scanner (with --update or --rebuild)
>> > >> > > lib auth:   INFO:2015-07-30 13h35.47 utc:4045:
>Authentication
>> > >> > > configuration
>> > >> > > not found.
>> > >> > > md   main:   INFO:2015-07-30 13h35.52 utc:4049:    OpenVAS
>Manager
>> > >>
>> > >> version
>> > >>
>> > >> > > 6.0.1 (DB revision 146)
>> > >>
>> > >> > > md   main:   INFO:2015-07-30 13h35.52 utc:4049:
>> > >> rebuild_nvt_cache_retry:
>> > >> > > Reloading NVT cache
>> > >> > > md   main:   INFO:2015-07-30 13h35.52 utc:4050:
>> > >> > > update_or_rebuild_nvt_cache:
>> > >> > > Rebuilding NVT cache
>> > >> > > md   main:   INFO:2015-07-30 13h35.52 utc:4050:    Updating
>NVT
>> > >> > > cache.
>> > >>
>> > >> > > md    otp:MESSAGE:2015-07-30 13h35.52 utc:4050: Scanner
>loading:
>> > >> 16550 /
>> > >>
>> > >> > > 40087
>> > >> > > nvts.
>> > >> > > md   main:   INFO:2015-07-30 13h36.02 utc:4060:
>> > >> > > update_or_rebuild_nvt_cache:
>> > >> > > Rebuilding NVT cache
>> > >> > > md   main:   INFO:2015-07-30 13h36.02 utc:4060:    Updating
>NVT
>> > >> > > cache.
>> > >>
>> > >> > > md    otp:MESSAGE:2015-07-30 13h36.02 utc:4060: Scanner
>loading:
>> > >> 25400 /
>> > >>
>> > >> > > 40087
>> > >> > > nvts.
>> > >> > > md   main:   INFO:2015-07-30 13h36.12 utc:4061:
>> > >> > > update_or_rebuild_nvt_cache:
>> > >> > > Rebuilding NVT cache
>> > >> > > md   main:   INFO:2015-07-30 13h36.12 utc:4061:    Updating
>NVT
>> > >> > > cache.
>> > >>
>> > >> > > md    otp:MESSAGE:2015-07-30 13h36.12 utc:4061: Scanner
>loading:
>> > >> 32650 /
>> > >>
>> > >> > > 40087
>> > >> > > nvts.
>> > >> > > md   main:   INFO:2015-07-30 13h36.22 utc:4062:
>> > >> > > update_or_rebuild_nvt_cache:
>> > >> > > Rebuilding NVT cache
>> > >> > > md   main:   INFO:2015-07-30 13h36.22 utc:4062:    Updating
>NVT
>> > >> > > cache.
>> > >>
>> > >> > > md    otp:MESSAGE:2015-07-30 13h36.23 utc:4062: Scanner
>loading:
>> > >> 38800 /
>> > >>
>> > >> > > 40087
>> > >> > > nvts.
>> > >> > > md   main:   INFO:2015-07-30 13h36.33 utc:4063:
>> > >> > > update_or_rebuild_nvt_cache:
>> > >> > > Rebuilding NVT cache
>> > >> > > md   main:   INFO:2015-07-30 13h36.33 utc:4063:    Updating
>NVT
>> > >> > > cache.
>> > >> > > lib auth:   INFO:2015-07-30 13h44.38 utc:4225:
>Authentication
>> > >> > > configuration
>> > >> > > not found.
>> > >> > > [hang forever]
>> > >> > >
>> > >> > >
>> > >> > > I have the exact same problem when update
>> > >> > >
>> > >> > > $ sudo openvasmd --progress --verbose --update
>> > >> > > Updating NVT cache... \
>> > >> > > [hang forever]
>> > >> > >
>> > >> > > $ sudo tail -f /var/log/openvas/openvasmd.log
>> > >> > > md   main:   INFO:2015-07-30 13h56.11 utc:4298:    OpenVAS
>Manager
>> > >>
>> > >> version
>> > >>
>> > >> > > 6.0.1 (DB revision 146)
>> > >>
>> > >> > > md   main:   INFO:2015-07-30 13h56.11 utc:4298:
>> > >> rebuild_nvt_cache_retry:
>> > >> > > Reloading NVT cache
>> > >> > > md   main:   INFO:2015-07-30 13h56.11 utc:4299:
>> > >> > > update_or_rebuild_nvt_cache:
>> > >> > > Updating NVT cache
>> > >> > >
>> > >> > > I tried to move the database (/var/lib/openvas/mgr/tasks.db)
>and
>> > >>
>> > >> recreate
>> > >>
>> > >> > > it,
>> > >> > > with the same results.
>> > >> > >
>> > >> > >
>> > >> > > Any suggestions ?  Is it some server-side issue (maybe an
>> unreachable
>> > >>
>> > >> host
>> > >>
>> > >> > > ?)
>> > >> > > _______________________________________________
>> > >> > > Openvas-discuss mailing list
>> > >> > > Openvas-discuss@wald.intevation.org
>> > >>
>> > >>
>>
>https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discus
>> > >> s
>> > >
>> > > --
>> > > http://volatile-minds.blogspot.com -- blog
>> > > http://www.volatileminds.net -- website
>> _______________________________________________
>> 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