I am pretty stuck now
If I remove all files in /var/lib/openvas/mgr and do a
touch /var/lib/openvas/mgr/tasks.db
openvasmd --backup
strace openvasmd --rebuild
it just hangs..if I strace it I get:
getrusage(RUSAGE_SELF, {ru_utime={0, 70989}, ru_stime={0, 284956}, ...}) = 0
times({tms_utime=7, tms_stime=28, tms_cutime=0, tms_cstime=2}) = 429506782
gettimeofday({1305028907, 296573}, NULL) = 0
getrusage(RUSAGE_SELF, {ru_utime={0, 70989}, ru_stime={0, 284956}, ...}) = 0
times({tms_utime=7, tms_stime=28, tms_cutime=0, tms_cstime=2}) = 429506782
sendto(3, "\27\3\1\0\320*\365\213\326X\24`K\227\253\336\325\246\262\177\231\372f\323\230\3N\341\244uD\276"..., 213, 0, NULL, 0) = 213
select(4, [3], [], [3], {1, 0}) = 1 (in [3], left {0, 999998})
recvfrom(3, "", 5, 0, NULL, NULL) = 0
write(4, "md main:WARNING:2011-05-10 12h"..., 146) = 146
select(4, [], [], [3], {1, 0}) = 0 (Timeout)
select(4, [], [], [3], {1, 0}) = 0 (Timeout)
select(4, [], [], [3], {1, 0}) = 0 (Timeout)
select(4, [], [], [3], {1, 0}) = 0 (Timeout)
select(4, [], [], [3], {1, 0}) = 0 (Timeout)
select(4, [], [], [3], {1, 0}) = 0 (Timeout)
select(4, [], [], [3], {1, 0}) = 0 (Timeout)
select(4, [], [], [3], {1, 0}) = 0 (Timeout)
select(4, [], [], [3], {1, 0}) = 0 (Timeout)
select(4, [], [], [3], {1, 0}) = 0 (Timeout)
select(4, [], [], [3], {1, 0}) = 0 (Timeout)