We’re currently running a 20.08 source installation. Are there any special steps required to do an upgrade to 21.04 or just download the sources and run the builds?
There exits some problems with 21.04 in the gvmd and the gsa module. So watch the github site for the fixed. But in general after the update you must migrating your database.
is there any procedure for this?
What steps needs to be configured?
Should I download, compile, install and configure this 6 modules like i did the initial install?
- GVM Libraries 21.4.0
- openvas scanner 21.4.0
- ospd 21.4.0
- ospd-openvas 21.4.0
- Greenbone Vulnerability Manager 21.4.0
- Greenbone Security Assistant 21.4.0
So its not an upgrade? It’s a new install + data migration?
Looking forward to hear from you.
I am also wondering the same thing.
If your 20.08 modules are already configured and working fines; then upgrading to 21.04 should be easy. Indeed, what you need to do is:
- Stop all services (gvmd, gsad, ospd-openvas…)
- Configure, build and install all 21.04 modules, starting with gvm-libs like you did for 20.08
- Migrate your database with “gvmd -m” command
- Start gvmd, ospd-openvas then gsad like you did before
In case gvmd is looping trying to reconstruct the databases with errors like:
md manage: INFO:2021-04-19 19h41.41 utc:34359: Updating /opt/gvm/var/lib/gvm/scap-data/nvdcve-2.0-2017.xml
md manage:WARNING:2021-04-19 19h41.42 utc:34359: insert_cve_from_entry: cvss:score missing
md manage:WARNING:2021-04-19 19h41.42 utc:34359: Update of CVEs failed at file ‘/opt/gvm/var/lib/gvm/scap-data/nvdcve-2.0-2017.xml’
md manage:WARNING:2021-04-19 19h41.43 utc:34436: update_scap: No SCAP db present, rebuilding SCAP db from scratch
md manage: INFO:2021-04-19 19h41.44 utc:34436: update_scap: Updating data from feed
md manage: INFO:2021-04-19 19h41.44 utc:34436: Updating CPEs
md manage: INFO:2021-04-19 19h43.27 utc:34436: Updating /opt/gvm/var/lib/gvm/scap-data/nvdcve-2.0-2017.xml
md manage:WARNING:2021-04-19 19h43.28 utc:34436: insert_cve_from_entry: cvss:score missing
md manage:WARNING:2021-04-19 19h43.28 utc:34436: Update of CVEs failed at file ‘/opt/gvm/var/lib/gvm/scap-data/nvdcve-2.0-2017.xml’
md manage:WARNING:2021-04-19 19h43.30 utc:34515: update_scap: No SCAP db present, rebuilding SCAP db from scratch
md manage: INFO:2021-04-19 19h43.31 utc:34515: update_scap: Updating data from feed
md manage: INFO:2021-04-19 19h43.31 utc:34515: Updating CPEs
md manage: INFO:2021-04-19 19h44.39 utc:34515: Updating /opt/gvm/var/lib/gvm/scap-data/nvdcve-2.0-2017.xml
Then simply stop gvmd; delete all you scap & cert feeds; and run the following commands:
greenbone-feed-sync --type GVMD_DATA
Then start gvmd again and everything should be up and running.
The current 21.4 gvmd has an migration bug, so you must manual create an table and index, or wait for the fixed version. You can find the needed manual steps here:
That’s it. 21.04 is a rather small release and doesn’t contain architecture changes.
Ok, thank you for your responses I’ll wait for the bugfix and then do the upgrade to 21.04
there is already a fix for the migration i believe.
Will try update it this week.
I wish this was easier :\
Tried today 2 times the installation of the new packages. in both of then, at the end the services don’t start. lol. GVM source edition at its best…
Was a bit harsh, but at 3rd try it worked.
might be dup of previous post. excuse my posting error.
Scanner works after update to 21.04 but after scan I’m getting this when trying to bring up results.
Error while loading Results for Report 387d4f91-5ac4-4285-932d-9317ffe4b00c Please try again.
Looking at details it says: TypeError: e is undefined
Yes I was hitting by the same Problem.
The reason is unknown, but sync the feeds and rebuild the database via gvmd --rebuild fix it in my case.
That did it!
21.04. is up and working.
Thank you for your help!