After hours and hours of going through loads and loads of this I have found that all services can be green yet the web interface not be ready, scanner failing verification etc. Here is my write-up regarding my experience with this application in regard to feed updates. Please feel free to expand on this further. This software is really good and I have contributed to many open source projects so a ton of time goes in to building and maintaining it so thank you for providing it!!
Update Process (Paths based on Debian build from source):
Update in this order:
greenbone-nvt-sync
Need to wait for this to complete. If it dies in the middle of the sync a .lock file will be left in the /opt/gvm/var/run/*.lock this lock file will need to be removed and then run the greenbone-nvt-sync command again. Failure to do this and moving on to the next sync will certainly break things!
greenbone-certdata-sync
Follows nvt sync and usually completes without error. Again check for the presence of a .lock file and run the command again until it completes
greenbone-scapdata-sync
Follow the same guidelines as above
When these commands are complete check the gvmd service status
systemctl status gvmd
Output similar to the following will be shown:
â gvmd.service - Job that runs the gvm daemon
Loaded: loaded (/etc/systemd/system/gvmd.service; enabled; vendor preset: ena
Active: active (running) since Mon 2020-06-08 20:15:50 CDT; 47min ago
Docs: man:gvm
Process: 661 ExecStart=/opt/gvm/sbin/gvmd --osp-vt-update=/opt/gvm/var/run/osp
Main PID: 667 (gvmd)
Tasks: 3 (limit: 4689)
Memory: 226.9M
CGroup: /system.slice/gvmd.service
ââ 667 gvmd: Waiting for incoming connections
ââ6060 gvmd: Reloading NVTs
ââ6062 gvmd: OSP: Updating NVT cache
Until the service is done reloading operations it’s best not to try to run scans or disrupt it in any way. The updating takes a bit so when you do this it’s probably best to let it run through the evening then use it in the AM to scan.
A finished output looks similar to the following:
â gvmd.service - Job that runs the gvm daemon
Loaded: loaded (/etc/systemd/system/gvmd.service; enabled; vendor preset: ena
Active: active (running) since Mon 2020-06-08 20:15:50 CDT; 1h 0min ago
Docs: man:gvm
Process: 661 ExecStart=/opt/gvm/sbin/gvmd --osp-vt-update=/opt/gvm/var/run/osp
Main PID: 667 (gvmd)
Tasks: 1 (limit: 4689)
Memory: 224.5M
CGroup: /system.slice/gvmd.service
ââ667 gvmd: Waiting for incoming connections
The following services should also be checked as well for a running state:
systemctl status gsad
systemctl status ospd-openvas
If all three services are running, the system should open and function correctly.
-If the feeds get hosed up the software will not run the web browser and you are rolling back (VM) or restoring from a backup. It’s one of the things you have to deal with. The software is free after all.
-D-