Last week I was upgrading my OpenVAS installation and I realized the reports sections was empty. I tried to google for a solution but couldn't find anything useful, so I decided to share my findings here.
At first I thought could be an issue with GreenBone so I tried to fetch the report using the cli tools, but no joy:
$ omp -v -u amartin -w XXXXX -R e6feb760-c9c3-425d-9ef5-a861d0dad6d2 -f a3810a62-1f62-11e1-9219-406186ea4fc5
WARNING: Verbose mode may reveal passwords!
Will try to connect to host 127.0.0.1, port 9390...
Failed to get report.
After some debugging with strace I realized a command was being executed by openvasmd:
/bin/sh -c "su nobody -c "/bin/sh /usr/local/share/openvas/openvasmd/global_report_formats/c402cc3e-b531-11e1-9163-406186ea4fc5/generate ....
Checked the permissions on those files, user nobody had no rights to execute or read any files in /usr/local/share/openvas/openvasmd/global_report_formats. Open the permissions:
$ sudo chmod a+xr /usr/local/share/openvas/openvasmd/global_report_formats/ -R
And then OpenVAS reports were working again.