GVM20.08 - Reports page doensn't work / shows error / TypeError: s is undefined / TypeError: Cannot read property 'scan_run_status' of undefined

GVM versions

gsad: Greenbone Security Assistant 20.08.0~git
gvmd: Greenbone Vulnerability Manager 20.08.0 / Manager DB revision 233
openvas-scanner: OpenVAS 20.8.0
gvm-libs: gvm-libs 20.8.0
ospd-openvas: OSP Server for openvas: 20.8.0 / OSP: 1.2 / OSPd OpenVAS: 20.8.1

Environment

Operating system: Debian 10 on Docker
Kernel: (‘uname -a’) Linux 8514a08201e7 4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24) x86_64 GNU/Linux
Installation method / source:

Debian 10:
docker image ls | grep debian
debian buster ee11c54e6bb7 3 weeks ago 114MB

Sources: GVM 20.08 (stable, initial release 2020-08-12)

Hello Community,

i have build GVM 20.08 from source and followed the new instructions and hints (sync GVMD_DATA, add the feed user, etc). I do build GVM in docker, so i can assure, that every build is made in a clean environment. The whole setup works (GUI, NVT and config sync, and scanning), but the reports page doens’t show any reports after the first scan took place. Instead i get the following error (Firefox):



It seems to be the same problem like another user, when opening the page in Chrome: https://github.com/greenbone/gsa/issues/2389

Steps to reproduce

  • Build all components from source
  • start daemons
  • Create admin user
  • Add admin user as feed user
  • sync gvmd_data, scap, cert, nvts
  • login to gui
  • reports page (scans -> reports) is accessible without error
  • start first scan (scan finishes successfully)
    - reports page (scans -> reports) shows error

Report files:

ls -lahrt /usr/local/var/lib/gvm/data-objects/gvmd/
total 36K
drwxr-xr-x 5 root root 4.0K Jun 17 13:41 20.08
drwxr-xr-x 5 root root 4.0K Jul 22 10:11 21.04
-rw-r–r-- 1 root root 13 Aug 31 07:29 timestamp
-rw-r–r-- 1 root root 4.4K Aug 31 07:29 sha256sums
-rw-r–r-- 1 root root 833 Aug 31 07:29 sha256sums.asc
drwxr-xr-x 4 root root 4.0K Aug 31 07:29 .
drwxr-xr-x 3 root root 4.0K Sep 1 06:51 …
-rw-r–r-- 1 root root 608 Sep 1 09:17 feed.xml

ls -lahrt /usr/local/var/lib/gvm/data-objects/gvmd/20.08/report_formats/
total 204K
drwxr-xr-x 5 root root 4.0K Jun 17 13:41 …
-rw-r–r-- 1 root root 2.2K Aug 31 07:29 xml-a994b278-1f62-11e1-96ac-406186ea4fc5.xml
-rw-r–r-- 1 root root 55K Aug 31 07:29 txt-a3810a62-1f62-11e1-9219-406186ea4fc5.xml
-rw-r–r-- 1 root root 92K Aug 31 07:29 pdf-c402cc3e-b531-11e1-9163-406186ea4fc5.xml
-rw-r–r-- 1 root root 4.7K Aug 31 07:29 itg-77bd6c4a-1f62-11e1-abf0-406186ea4fc5.xml
-rw-r–r-- 1 root root 22K Aug 31 07:29 csv-results-c1645568-627a-11e3-a660-406186ea4fc5.xml
-rw-r–r-- 1 root root 11K Aug 31 07:29 anonymous-xml-5057e5cc-b825-11e4-9d0e-28d24461215b.xml
drwxr-xr-x 2 root root 4.0K Aug 31 07:29 .

ls -lahrt /usr/local/var/lib/gvm/gvmd/report_formats/
total 12K
drwxr-xr-x 4 root root 4.0K Sep 1 06:53 …
drwx------ 3 root root 4.0K Sep 1 06:53 .
drwxr-xr-x 8 root root 4.0K Sep 1 06:53 8b0374f0-ab57-4e34-a815-0f7bd81798b4

Startup
/usr/local/sbin/gsad --listen 0.0.0.0 --port 9392 --http-only --mlisten 127.0.0.1 -f
/usr/local/sbin/gvmd --listen=0.0.0.0 --port=9390 -f
ospd-openvas -u /var/run/ospd/ospd.sock -l /var/log/gvm/ospd-openvas.log --log-level=DEBUG -f
redis-server /etc/redis/redis.con

Config is synced

greenbone-feed-sync --type GVMD_DATA
Greenbone community feed server - http://feed.community.greenbone.net/
This service is hosted by Greenbone Networks - http://www.greenbone.net/
All transactions are logged.
If you have any questions, please use the Greenbone community portal.
See https://community.greenbone.net for details.
By using this service you agree to our terms and conditions.
Only one sync per time, otherwise the source ip will be temporarily blocked.
receiving incremental file list
timestamp
13 100% 12.70kB/s 0:00:00 (xfr#1, to-chk=0/1)
sent 43 bytes received 114 bytes 314.00 bytes/sec
total size is 13 speedup is 0.08

greenbone-feed-sync --type SCAP
Greenbone community feed server - http://feed.community.greenbone.net/
This service is hosted by Greenbone Networks - http://www.greenbone.net/
All transactions are logged.
If you have any questions, please use the Greenbone community portal.
See https://community.greenbone.net for details.
By using this service you agree to our terms and conditions.
Only one sync per time, otherwise the source ip will be temporarily blocked.
receiving incremental file list
timestamp
13 100% 12.70kB/s 0:00:00 (xfr#1, to-chk=0/1)
sent 43 bytes received 113 bytes 312.00 bytes/sec
total size is 13 speedup is 0.08

greenbone-feed-sync --type CERT
Greenbone community feed server - http://feed.community.greenbone.net/
This service is hosted by Greenbone Networks - http://www.greenbone.net/
All transactions are logged.
If you have any questions, please use the Greenbone community portal.
See https://community.greenbone.net for details.
By using this service you agree to our terms and conditions.
Only one sync per time, otherwise the source ip will be temporarily blocked.
receiving incremental file list
timestamp
13 100% 12.70kB/s 0:00:00 (xfr#1, to-chk=0/1)
sent 43 bytes received 114 bytes 314.00 bytes/sec
total size is 13 speedup is 0.08

NVT: 202008310959
SCAP: 202008310729
SCAP: 202008310130
CERT: 202008310030

Feed user
gvmd --modify-setting 78eceaec-3385-11ea-b237-28d24461215b --value $(gvmd --get-users --verbose | grep psadmin | awk {‘print $2’})

Hi, welcome to this community and thanks for providing this very detailed posting.

As this issue is still open and under investigation by the development team i would like to close this topic here to avoid that the same problem is discussed in multiple places (thanks for your understanding).

Please subscribe to the linked issue to see if further info are required or a fix was provided. You could also post the info from above there to see if it gives the development team additional info to reproduce this issue.