Upgrade OpenVAS Community Edition- CentOS7

When posting you should provide information about your environment using the following template:
gsad --version
Greenbone Security Assistant 7.0.2
Copyright © 2010-2016 Greenbone Networks GmbH
License GPLv2+: GNU GPL version 2 or later

OpenVAS Manager 7.0.2
Manager DB revision 184
Copyright © 2010-2016 Greenbone Networks GmbH
License GPLv2+: GNU GPL version 2 or later

Environment

Operating system: CentOS Linux release 7.4.1708 (Core)
Kernel: Linux xxx 3 . 10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

We are facing errors in updating the feed, please let me know step-by-step to upgrade for the resolution:
rsync: failed to connect to feed.openvas .org (89.146.224.58): Connection refused (111)
rsync: failed to connect to feed.openvas .org (2a01:130:2000:127::d1): Network is unreachable (101)
rsync error: error in socket IO (code 10) at clientserver.c(122) [Receiver=3.0.9]
rsync: failed to connect to feed.openvas .org (89.146.224.58): Connection refused (111)
rsync: failed to connect to feed.openvas .org (2a01:130:2000:127::d1): Network is unreachable (101)
rsync error: error in socket IO (code 10) at clientserver.c(122) [Receiver=3.0.9]
rsync: failed to connect to feed.openvas .org (89.146.224.58): Connection refused (111)
rsync: failed to connect to feed.openvas .org (2a01:130:2000:127::d1): Network is unreachable (101)
rsync error: error in socket IO (code 10) at clientserver.c(122) [Receiver=3.0.9]

You are using a very outdated version of our software. The URL for the feed has changed a while ago and the servers have been shut now.

Also this has been discussed at several places already. Please use the search function next time before posting.

2 Likes

Thanks for the response! But could not find any post or article showing the upgrade steps. Kindly share the same to proceed.

Hi,
I tried yum update, now unable to start openvas-manager and GMP Service is down. Please suggest as soon as possible.

Oct 13 19:13:22 langpo systemd[1]: gvmd.service: control process exited, code=exited status=1
Oct 13 19:13:22 langpo systemd[1]: Failed to start OpenVAS Manager.
– Subject: Unit gvmd.service has failed
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit gvmd.service has failed.

– The result is failed.
Oct 13 19:13:22 langpo systemd[1]: Unit gvmd.service entered failed state.
Oct 13 19:13:22 langpo systemd[1]: gvmd.service failed.
Oct 13 19:13:23 langpo systemd[1]: gvmd.service holdoff time over, scheduling restart.
Oct 13 19:13:23 langpo systemd[1]: start request repeated too quickly for gvmd.service
Oct 13 19:13:23 langpo systemd[1]: Failed to start OpenVAS Manager.
– Subject: Unit gvmd.service has failed
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit gvmd.service has failed.

– The result is failed.
Oct 13 19:13:23 langpo systemd[1]: Unit gvmd.service entered failed state.
Oct 13 19:13:23 langpo systemd[1]: gvmd.service failed.

tail -f /var/log/gvm/gvmd.log
md main:MESSAGE:2020-10-13 13h28.52 utc:32520: Greenbone Vulnerability Manager version 9.0.0 (DB revision 221)
md manage:WARNING:2020-10-13 13h28.53 utc:32520: sql_exec_internal: PQexec failed: ERROR: could not load library “/usr/lib64/libgvm-pg-server.so”: /lib64/libgvm_util.so.11: undefined symbol: gnutls_x509_privkey_import
(7)
md manage:WARNING:2020-10-13 13h28.53 utc:32520: sql_exec_internal: SQL: CREATE OR REPLACE FUNCTION hosts_contains (text, text) RETURNS boolean AS ‘/usr/lib64/libgvm-pg-server’, ‘sql_hosts_contains’ LANGUAGE C IMMUTABLE;
md manage:WARNING:2020-10-13 13h28.53 utc:32520: sqlv: sql_exec_internal failed
md main:MESSAGE:2020-10-13 13h28.54 utc:32527: Greenbone Vulnerability Manager version 9.0.0 (DB revision 221)
md manage:WARNING:2020-10-13 13h28.54 utc:32527: sql_exec_internal: PQexec failed: ERROR: could not load library “/usr/lib64/libgvm-pg-server.so”: /lib64/libgvm_util.so.11: undefined symbol: gnutls_x509_privkey_import
(7)
md manage:WARNING:2020-10-13 13h28.54 utc:32527: sql_exec_internal: SQL: CREATE OR REPLACE FUNCTION hosts_contains (text, text) RETURNS boolean AS ‘/usr/lib64/libgvm-pg-server’, ‘sql_hosts_contains’ LANGUAGE C IMMUTABLE;
md manage:WARNING:2020-10-13 13h28.54 utc:32527: sqlv: sql_exec_internal failed
md main:MESSAGE:2020-10-13 13h28.55 utc:32530: Greenbone Vulnerability Manager version 9.0.0 (DB revision 221)
md manage:WARNING:2020-10-13 13h28.55 utc:32530: sql_exec_internal: PQexec failed: ERROR: could not load library “/usr/lib64/libgvm-pg-server.so”: /lib64/libgvm_util.so.11: undefined symbol: gnutls_x509_privkey_import
(7)
md manage:WARNING:2020-10-13 13h28.55 utc:32530: sql_exec_internal: SQL: CREATE OR REPLACE FUNCTION hosts_contains (text, text) RETURNS boolean AS ‘/usr/lib64/libgvm-pg-server’, ‘sql_hosts_contains’ LANGUAGE C IMMUTABLE;
md manage:WARNING:2020-10-13 13h28.55 utc:32530: sqlv: sql_exec_internal failed
md main:MESSAGE:2020-10-13 13h28.56 utc:32533: Greenbone Vulnerability Manager version 9.0.0 (DB revision 221)
md manage:WARNING:2020-10-13 13h28.56 utc:32533: sql_exec_internal: PQexec failed: ERROR: could not load library “/usr/lib64/libgvm-pg-server.so”: /lib64/libgvm_util.so.11: undefined symbol: gnutls_x509_privkey_import
(7)
md manage:WARNING:2020-10-13 13h28.56 utc:32533: sql_exec_internal: SQL: CREATE OR REPLACE FUNCTION hosts_contains (text, text) RETURNS boolean AS ‘/usr/lib64/libgvm-pg-server’, ‘sql_hosts_contains’ LANGUAGE C IMMUTABLE;
md manage:WARNING:2020-10-13 13h28.56 utc:32533: sqlv: sql_exec_internal failed
md main:MESSAGE:2020-10-13 13h28.57 utc:32536: Greenbone Vulnerability Manager version 9.0.0 (DB revision 221)
md manage:WARNING:2020-10-13 13h28.57 utc:32536: sql_exec_internal: PQexec failed: ERROR: could not load library “/usr/lib64/libgvm-pg-server.so”: /lib64/libgvm_util.so.11: undefined symbol: gnutls_x509_privkey_import
(7)
md manage:WARNING:2020-10-13 13h28.57 utc:32536: sql_exec_internal: SQL: CREATE OR REPLACE FUNCTION hosts_contains (text, text) RETURNS boolean AS ‘/usr/lib64/libgvm-pg-server’, ‘sql_hosts_contains’ LANGUAGE C IMMUTABLE;
md manage:WARNING:2020-10-13 13h28.57 utc:32536: sqlv: sql_exec_internal failed

I don´t know what you are doing, but it is NOT working to replace a outdated and end of life version with a other outdated and end of life version. Please check the correct migration steps here in the forum:

1 Like