Hi,

4389 ?        Ss     0:37 openvassd: Reloaded all the NVTs.
 4391 pts/0    S      0:00 openvasmd: Reloading
 4395 pts/0    S      0:00 openvasmd: Rebuilding

# strace -f -p 4395
Process 4395 attached
recvfrom(6,


and that's all.

Another try: when I kill both openvasmd and openvassd and after that I start the rebuild, a progress 'bar' show activity until openvassd is ready with loading all nvts:

# openvasmd --rebuild --progress
Rebuilding NVT cache... /md    otp:MESSAGE:2015-10-15 16h34.20 utc:4392: Scanner loading: 14550 / 43739 nvts.
\md    otp:MESSAGE:2015-10-15 16h34.31 utc:4393: Scanner loading: 27800 / 43739 nvts.
/md    otp:MESSAGE:2015-10-15 16h34.42 utc:4394: Scanner loading: 36800 / 43739 nvts.
\

after that, hangs again.

so maybe it's openvassd is to blame.

**********

I killed them again, then started rebuild with strace:

very long msgs omitted,
last lines:

[pid  4419] fstat(3, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 9), ...}) = 0
[pid  4419] getrusage(0x1 /* RUSAGE_??? */, {ru_utime={0, 27609}, ru_stime={0, 53174}, ...}) = 0
[pid  4419] read(3, "%\2221f\24*\353\23e\373\310(\226\370l:", 16) = 16
[pid  4419] openat(AT_FDCWD, "/var/lib/openvas/openvasmd/trusted_certs", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  4419] connect(6, {sa_family=AF_INET, sin_port=htons(9391), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid  4419] rt_sigaction(SIGPIPE, {SIG_IGN, [], SA_RESTORER, 0x7f3227257130}, {SIG_DFL, [], 0}, 8) = 0
[pid  4419] read(3, "8\323KM\347\232\335\365Pec\364o3k\337\202\312\275q\272\35\346,:\231\370o}o\232\371", 32) = 32
[pid  4419] writev(6, [{"\26\3\0\0\325\1\0\0\321\3\3V\37\326\220J\231W\355\213e\343\206\315\310_yx\254\204w\356"..., 218}], 1) = 218
[pid  4419] recvfrom(6,


other missing files:
access("/var/lib/openvas/mgr/tasks.db-wal", F_OK) = -1 ENOENT (No such file or directory)

many of this log repeatedly


**********

another try, last lines:

[pid  4437] getrusage(0x1 /* RUSAGE_??? */, {ru_utime={0, 570338}, ru_stime={1, 294384}, ...}) = 0
[pid  4437] read(3, "\364\213\2045\0\2547[\373\253\204W\246?\23<", 16) = 16
[pid  4437] openat(AT_FDCWD, "/var/lib/openvas/openvasmd/trusted_certs", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  4437] connect(6, {sa_family=AF_INET, sin_port=htons(9391), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid  4437] rt_sigaction(SIGPIPE, {SIG_IGN, [], SA_RESTORER, 0x7f74110ed130}, {SIG_DFL, [], 0}, 8) = 0
[pid  4437] read(3, "\343\366\333n\346\t\307h\ty6\353\333+QX}\376%\302S\7\320\227rNb\353\"\345x\211", 32) = 32
[pid  4437] writev(6, [{"\26\3\0\0\325\1\0\0\321\3\3V\37\327A\5-6\30cd_\272,\364\237n\265Kt\257\177"..., 218}], 1) = 218
[pid  4437] recvfrom(6,


any idea? thanks!


2015-10-15 18:14 keltezéssel, Eero Volotinen írta:
what is output of strace -f -p pid-of-openvasmd ?

--
Eero

2015-10-15 18:42 GMT+03:00 Narancs <[email protected]>:
yes and progress 'bar' freezes ;)


2015-10-15 17:35 keltezéssel, cory cardio írta:


Try `--progress` on the rebuild command?

Here is openvas-feed-update:
$ cat $(which openvas-feed-update)
#!/bin/bash
echo "Updating OpenVas Feeds"
openvas-nvt-sync
openvas-scapdata-sync
openvas-certdata-sync

On Thu, Oct 15, 2015 at 11:33 AM, Narancs <[email protected]> wrote:
well, even the openvas-scanner service must be killed with 'kill -9'
It loads all the NVTs, then you just cannot kill it with normal 'kill [pid]'

there is no such command in centos as: openvas-feed-update
there are several others which all work fine updateing the feed.
but rebuild hangs forever...




2015-10-15 17:20 keltezéssel, cory cardio írta:
Greg,
  I've gotten forever-hangs too, and believe this to be a solid work around (doesn't hang) , though it is for debian and not centos. Maybe the concept still applies.

#!/bin/bash
# start updating an already configured openvas
echo "Stopping services..."
service greenbone-security-assistant stop
service openvas-scanner stop
service openvas-administrator stop
service openvas-manager stop

service openvas-scanner start
openvas-feed-update

echo "Feed updated. Rebuilding.."
openvasmd --rebuild

echo "Starting services..."
service greenbone-security-assistant start
service openvas-administrator start
service openvas-manager start

exit 0

On Thu, Oct 15, 2015 at 11:14 AM, Narancs <[email protected]> wrote:
Dear All!

I'm still having the same issue with atomic/centos7.

The systems is up to date (yum update + all openvas-sync*)

version:
openvas-1.0-20.el7.art.noarch
openvas-cli-1.4.2-8.el7.art.x86_64
openvas-scanner-5.0.4-22.el7.art.x86_64
openvas-manager-6.0.6-33.el7.art.x86_64
openvas-smb-1.0.1-0.2.el7.art.x86_64
openvas-libraries-8.0.5-21.el7.art.x86_64


ps ax|grep openv
 3175 pts/0    S      0:00 tail -f /var/log/openvas/gsad.log /var/log/openvas/openvasmd.log /var/log/openvas/openvassd.log
 3235 ?        Ss     2:19 openvassd: Reloaded all the NVTs.
 3273 pts/0    S      0:00 openvasmd: Reloading
 3274 pts/0    S      0:00 openvasmd: Rebuilding


which version works? should I downgrade to where?

openvas-manager-6.0.1-28.1.el7.art.x86_64.rpm May 08 2015 11:14:03 694kb
openvas-manager-6.0.3-29.el7.art.x86_64.rpm May 28 2015 14:06:56 699kb
openvas-manager-6.0.3-30.el7.art.x86_64.rpm Jun 03 2015 12:01:00 698kb
openvas-manager-6.0.4-31.el7.art.x86_64.rpm Jul 13 2015 10:56:04 700kb
openvas-manager-6.0.5-32.el7.art.x86_64.rpm Aug 03 2015 10:00:28 703kb
openvas-manager-6.0.6-33.el7.art.x86_64.rpm Oct 10 2015 18:20:32 703kb


any other tricks maybe?

Thanks
Greg

_______________________________________________
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


_______________________________________________
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



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

Reply via email to