[Openvas-discuss] ERROR: Database schema is out of date

Stevens, Scott sstevens at nicusa.com
Wed Mar 30 04:42:54 CEST 2011


HELP!   After upgrading OpenVAS to v4.0 I ran the openvas-check-setup script and everything seems to checkout fine until I run into a DB schema being out of date error.  Specifically, the output of this script is:

TexOpenVAS:/etc/openvas# ./openvas-check-setup
openvas-check-setup 2.0.3
  Test completeness and readiness of OpenVAS-4

  Please report us any non-detected problems and
  help us to improve this check routine:
  http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss

  Send us the log-file (/tmp/openvas-check-setup.log) to help analyze the problem.

  Use the parameter --server to skip checks for client tools
  like GSD and OpenVAS-CLI.

Step 1: Checking OpenVAS Scanner ...
        OK: OpenVAS Scanner is present in version 3.2.2.
        OK: OpenVAS Scanner CA Certificate is present as /var/lib/openvas/CA/cacert.pem.
        OK: NVT collection in /var/lib/openvas/plugins contains 20527 NVTs.
Step 2: Checking OpenVAS Manager ...
        OK: OpenVAS Manager is present in version 2.0.2.
        OK: OpenVAS Manager client certificate is present as /var/lib/openvas/CA/clientcert.pem.
        OK: OpenVAS Manager database found in /var/lib/openvas/mgr/tasks.db.
        OK: sqlite3 found, extended checks of the OpenVAS Manager installation enabled.
        OK: OpenVAS Manager database is at revision 37.
        OK: OpenVAS Manager expects database at revision 41.
        ERROR: Database schema is out of date.
        FIX: Run 'openvasmd --migrate'.

ERROR: Your OpenVAS-4 installation is not yet complete!

Please follow the instructions marked with FIX above and run this
script again.



The result of running 'openvasmd -migrate' shows:

TexOpenVAS:/etc/openvas# openvasmd --migrate
*** glibc detected *** openvasmd: free(): invalid pointer: 0xbc7e3400 ***
======= Backtrace: =========
/lib/i686/cmov/libc.so.6[0xb716b764]
/lib/i686/cmov/libc.so.6(cfree+0x96)[0xb716d966]
/usr/lib/libglib-2.0.so.0(g_free+0x36)[0xb74d2446]
openvasmd[0xb76c8d18]
openvasmd(manage_migrate+0x1c3)[0xb76e4633]
openvasmd(main+0x212)[0xb768e5f2]
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb7113455]
openvasmd[0xb768d291]
======= Memory map: ========
b5e00000-b5e21000 rw-p b5e00000 00:00 0
b5e21000-b5f00000 ---p b5e21000 00:00 0
b5f4a000-b5f56000 r-xp 00000000 08:02 6029328    /lib/libgcc_s.so.1
b5f56000-b5f57000 rw-p 0000b000 08:02 6029328    /lib/libgcc_s.so.1
b5f57000-b5f58000 ---p b5f57000 00:00 0
b5f58000-b6758000 rw-p b5f58000 00:00 0
b6758000-b6759000 ---p b6758000 00:00 0
b6759000-b6f5c000 rw-p b6759000 00:00 0
b6f5c000-b6f72000 r-xp 00000000 08:02 1141172    /usr/lib/libsasl2.so.2.0.22
b6f72000-b6f73000 rw-p 00015000 08:02 1141172    /usr/lib/libsasl2.so.2.0.22
b6f73000-b6f80000 r-xp 00000000 08:02 1142568    /usr/lib/liblber-2.4.so.2.1.0
b6f80000-b6f81000 rw-p 0000c000 08:02 1142568    /usr/lib/liblber-2.4.so.2.1.0
b6f81000-b6fa5000 r-xp 00000000 08:02 6037541    /lib/i686/cmov/libm-2.7.so
b6fa5000-b6fa7000 rw-p 00023000 08:02 6037541    /lib/i686/cmov/libm-2.7.so
b6fa7000-b6fb7000 r-xp 00000000 08:02 6037544    /lib/i686/cmov/libresolv-2.7.so
b6fb7000-b6fb9000 rw-p 0000f000 08:02 6037544    /lib/i686/cmov/libresolv-2.7.so
b6fb9000-b6fbb000 rw-p b6fb9000 00:00 0
b6fbb000-b6ffb000 r-xp 00000000 08:02 1142567    /usr/lib/libldap_r-2.4.so.2.1.0
b6ffb000-b6ffd000 rw-p 0003f000 08:02 1142567    /usr/lib/libldap_r-2.4.so.2.1.0
b6ffd000-b6fff000 rw-p b6ffd000 00:00 0
b6fff000-b7027000 r-xp 00000000 08:02 1143432    /usr/lib/libpcap.so.0.9.8
b7027000-b7029000 rw-p 00027000 08:02 1143432    /usr/lib/libpcap.so.0.9.8
b7029000-b7051000 r-xp 00000000 08:02 1142323    /usr/lib/libpcre.so.3.12.1
b7051000-b7052000 rw-p 00027000 08:02 1142323    /usr/lib/libpcre.so.3.12.1
b7052000-b70b8000 r-xp 00000000 08:02 1141338    /usr/lib/libgcrypt.so.11.4.4
b70b8000-b70ba000 rw-p 00066000 08:02 1141338    /usr/lib/libgcrypt.so.11.4.4
b70ba000-b70ce000 r-xp 00000000 08:02 1140639    /usr/lib/libz.so.1.2.3.3
b70ce000-b70cf000 rw-p 00013000 08:02 1140639    /usr/lib/libz.so.1.2.3.3
b70cf000-b70de000 r-xp 00000000 08:02 1141349    /usr/lib/libtasn1.so.3.0.15
b70de000-b70df000 rw-p 0000e000 08:02 1141349    /usr/lib/libtasn1.so.3.0.15
b70df000-b70f4000 r-xp 00000000 08:02 6037562    /lib/i686/cmov/libpthread-2.7.so
b70f4000-b70f6000 rw-p 00014000 08:02 6037562    /lib/i686/cmov/libpthread-2.7.so
b70f6000-b70f9000 rw-p b70f6000 00:00 0
b70f9000-b70fb000 r-xp 00000000 08:02 6037551    /lib/i686/cmov/libdl-2.7.so
b70fb000-b70fd000 rw-p 00001000 08:02 6037551    /lib/i686/cmov/libdl-2.7.so
b70fd000-b7252000 r-xp 00000000 08:02 6037548    /lib/i686/cmov/libc-2.7.so
b7252000-b7253000 r--p 00155000 08:02 6037548    /lib/i686/cmov/libc-2.7.so
b7253000-b7255000 rw-p 00156000 08:02 6037548    /lib/i686/cmov/libc-2.7.so
b7255000-b7258000 rw-p b7255000 00:00 0
b7258000-b725b000 r-xp 00000000 08:02 1141340    /usr/lib/libgpg-error.so.0.3.0
b725b000-b725c000 rw-p 00002000 08:02 1141340    /usr/lib/libgpg-error.so.0.3.0
b725c000-b7282000 r-xp 00000000 08:02 1143424    /usr/lib/libgpgme.so.11.6.4
b7282000-b7284000 rw-p 00025000 08:02 1143424    /usr/lib/libgpgme.so.11.6.4
b7284000-b728b000 r-xp 00000000 08:02 6054101    /usr/lib/libopenvas_omp.so.4.0.3
b728b000-b728c000 r--p 00006000 08:02 6054101    /usr/lib/libopenvas_omp.so.4.0.3
b728c000-b728d000 rw-p 00007000 08:02 6054101    /usr/lib/libopenvas_omp.so.4.0.3
b728d000-b738d000 rw-p b728d000 00:00 0
b738d000-b73f0000 r-xp 00000000 08:02 6054105    /usr/lib/libopenvas_nasl.so.4.0.3
b73f0000-b73f6000 rw-p 00063000 08:02 6054105    /usr/lib/libopenvas_nasl.so.4.0.3
b73f6000-b73f8000 rw-p b73f6000 00:00 0
b73f8000-b7402000 r-xp 00000000 08:02 6054103    /usr/lib/libopenvas_base.so.4.0.3
b7402000-b7403000 r--p 00009000 08:02 6054103    /usr/lib/libopenvas_base.so.4.0.3
b7403000-b7404000 rw-p 0000a000 08:02 6054103    /usr/lib/libopenvas_base.so.4.0.3
b7404000-b7409000 r-xp 00000000 08:02 6054102    /usr/lib/libopenvas_hg.so.4.0.3
b7409000-b740a000 r--p 00004000 08:02 6054102    /usr/lib/libopenvas_hg.so.4.0.3
b740a000-b740b000 rw-p 00005000 08:02 6054102    /usr/lib/libopenvas_hg.so.4.0.3
b740b000-b7432000 r-xp 00000000 08:02 6054104    /usr/lib/libopenvas_misc.so.4.0.3
b7432000-b7434000 rw-p 00027000 08:02 6054104    /usr/lib/libopenvas_misc.so.4.0.3
b7434000-b7491000 rw-p b7434000 00:00 0
b7491000-b7545000 r-xp 00000000 08:02 1143415    /usr/lib/libglib-2.0.so.0.1600.6
b7545000-b7546000 rw-p 000b4000 08:02 1143415    /usr/lib/libglib-2.0.so.0.1600.6
b7546000-b7549000 r-xp 00000000 08:02 6029326    /lib/libuuid.so.1.2
b7549000-b754a000 rw-p 00002000 08:02 6029326    /lib/libuuid.so.1.2
b754a000-b754b000 rw-p b754a000 00:00 0
b754b000-b75e2000 r-xp 00000000 08:02 1141247    /usr/lib/libgnutls.so.26.4.6
b75e2000-b75e8000 rw-p 00097000 08:02 1141247    /usr/lib/libgnutls.so.26.4.6
b75e8000-b7655000 r-xp 00000000 08:02 1142579    /usr/lib/libsqlite3.so.0.8.6
b7655000-b7657000 rw-p 0006c000 08:02 1142579    /usr/lib/libsqlite3.so.0.8.6
b7661000-b7663000 rw-p b7661000 00:00 0
b7663000-b7664000 r-xp b7663000 00:00 0          [vdso]
b7664000-b767e000 r-xp 00000000 08:02 6029678    /lib/ld-2.7.so
b767e000-b7680000 rw-p 0001a000 08:02 6029678    /lib/ld-2.7.so
b7680000-b7711000 r-xp 00000000 08:02 6070340    /usr/sbin/openvasmd
b7711000-b7713000 rw-p 00090000 08:02 6070340    /usr/sbin/openvasmd
b7713000-bab13000 rw-p b7713000 00:00 0
bc7da000-bc7fb000 rw-p bc7da000 00:00 0          [heap]
bfbad000-bfbc2000 rw-p bffea000 00:00 0          [stack]
Aborted



Scott Stevens
Senior Security Operations Engineer

[cid:image001.png at 01CBEE5A.42B9C7D0]
100 Congress Avenue, Suite 600
Austin, Texas 78701
T   512 651 9891
C  512 897 9082
F   512 651 9334
sstevens at nicusa.com<mailto:sstevens at nicusa.com>

Visit us at Texas.Gov<http://www.texas.gov/>

CONFIDENTIALITY NOTICE:
This E-mail and any attachments are confidential. If you are not the intended recipient, you do not have permission to disclose, copy, distribute, or open any attachments. If you have received this E-mail in error, please notify us immediately by returning it to the sender and delete this copy from your system.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wald.intevation.org/pipermail/openvas-discuss/attachments/20110329/f9b63ec4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 8698 bytes
Desc: image001.png
URL: <http://lists.wald.intevation.org/pipermail/openvas-discuss/attachments/20110329/f9b63ec4/attachment.png>


More information about the Openvas-discuss mailing list