After update python 3.7.4, Reports in Scans on gsad homepage can' not be displayed

For installation of gvm-tools, I update python2 to python3.7.4, as a result, Reports in Scans on gsad homepage can’ not be displayed.

Request:
https://192.168.10.129/report/
Error Info:
TypeError: Cannot read property 'counts' of undefined


    in Unknown
    in t
    in a
    in t
    in a
    in a
    in O
    in t
    in O
    in a
    in t
    in withRouter(a)
    in Unknown
    in a
    in t
    in Unknown
    in a
    in t
    in t
    in t
    in main
    in Main
    in Unknown
    in withLayout(Main)
    in div
    in Unknown
    in Layout
    in Styled(Layout)
    in t
    in t
    in a
    in t
    in O
    in t
    in withRouter(Connect(t))
    in a
    in t
    in O
    in t
    in withRouter(Connect(t))
    in a
    in t
    in t
    in Unknown
    in a
    in t
    in O
    in t
    in t
    in t
    in t
TypeError: Cannot read property 'counts' of undefined
    at t.a (https://192.168.10.129/static/js/main.fa860b0e.chunk.js:1:1591609)
    at Jp (https://192.168.10.129/static/js/2.33b2c378.chunk.js:1:741593)
    at Lr (https://192.168.10.129/static/js/2.33b2c378.chunk.js:1:748450)
    at xr (https://192.168.10.129/static/js/2.33b2c378.chunk.js:1:755194)
    at Vb (https://192.168.10.129/static/js/2.33b2c378.chunk.js:1:779405)
    at Ub (https://192.168.10.129/static/js/2.33b2c378.chunk.js:1:779789)
    at NM (https://192.168.10.129/static/js/2.33b2c378.chunk.js:1:786686)
    at LM (https://192.168.10.129/static/js/2.33b2c378.chunk.js:1:786066)
    at TM (https://192.168.10.129/static/js/2.33b2c378.chunk.js:1:787160)
    at Object.notify (https://192.168.10.129/static/js/2.33b2c378.chunk.js:1:31298)

If you have an own installation you’re not using Greenbone OS, moving into the GSE category accordingly.

The error that you show here is a Javascript issue. I’m sure that the Python update did not cause GSA to break. However, we fixed a bug concerning counts in GSA a short while ago, that threw exactly the same error.
I would assume that, if you update to a newer GSA version, this issue should be fixed for you.

2 Likes

currently, I use openvas-6.0.1.tar.gz, gvmd-8.0.1.tar.gz, gsa-8.0.1.tar.gz and gvm-tools-2.0.0.tar.gz 、
python-gvm-1.0.0.tar.gz。

before with update python3.7.4 , gsad can run correctly。
Though update python 3.7.4, pages other than Reports on gsad webpage can be displayed corrently.

The other pages are running correctly, because they are not concerned with the counts, that are used in the reports page.
Please update your packages to at least openvas-7, gvmd-9.0, gvm-libs-11.0 and gsa-9.0. You will have to install ospd-2.0 and ospd-openvas-1.0 as well. With these versions you will be running gvm-11 and the problem should be gone.

2 Likes

What I want most is that without upgrading gvm-11, beacuse gvm-11 no longer uses sqlite, but my device only supports sqlite.
In addition, I want to only modify the source code of gsad to solve the problem that the reports page cannot be displayed.
Is there any way to do this?

I just upgrad gsad-9.0.1 and the Reports page still issue an error.

**Request:
https://192.168.10.129/reports
Error Info:

TypeError: Cannot read property ‘scan_run_status’ of undefined

in LI
in tbody
in t
in styled.tbody
in table
in Unknown
in t
in Styled(StripedTable)
in div
in Unknown
in t
in Styled(Layout)
in t
in Unknown
in div
in Unknown
in t
in Layout
in section
in Unknown
in a
in div
in Unknown
in t
in Layout
in t
in d
in Unknown
in t
in a
in d
in Unknown
in withRouter()
in Unknown
in t
in s
in d
in withRouter(Connect(s))
in Unknown
in a
in t
in Unknown
in d
in Unknown
in t
in t
in t
in main
in t
in Main
in Unknown
in t
in withLayout(Main)
in div
in Unknown
in t
in Styled(Layout)
in t
in withRouter(t)
in Unknown
in t
in d
in withRouter(Connect(t))
in Unknown
in t
in d
in withRouter(Connect(t))
in Unknown
in t
in t
in Unknown
in Unknown
in t
in d
in d
in t
in t

TypeError: Cannot read property ‘scan_run_status’ of undefined
at LI (https://192.168.10.129/static/js/main.bdbaa957.chunk.js:1:1449477)
at Pi (https://192.168.10.129/static/js/2.3846b0c8.chunk.js:1:744033)
at Gc (https://192.168.10.129/static/js/2.3846b0c8.chunk.js:1:787125)
at Xc (https://192.168.10.129/static/js/2.3846b0c8.chunk.js:1:772848)
at Bc (https://192.168.10.129/static/js/2.3846b0c8.chunk.js:1:769868)
at Ec (https://192.168.10.129/static/js/2.3846b0c8.chunk.js:1:768428)
at https://192.168.10.129/static/js/2.3846b0c8.chunk.js:1:730329
at t.unstable_runWithPriority (https://192.168.10.129/static/js/2.3846b0c8.chunk.js:1:804772)
at lo (https://192.168.10.129/static/js/2.3846b0c8.chunk.js:1:730058)
at mo (https://192.168.10.129/static/js/2.3846b0c8.chunk.js:1:730275)

Ok, I see the problem with sqlite. In that case using the latest versions is not a solution for you.

The error you are posting is again a Javascript issue. Changing the gsad code does probably not help very much, you’d have to change GSA instead. It looks like you are trying to access a report that does either not exist or whose data was not properly loaded.

Is it a delta report that caused this error message?

BTW: it is important to have matching version numbers. Just upgrading to gsad-9.0.1 won’t do any good as long as you don’t also upgrade to GSA-9.0, gvmd-9.0 and so on (see my list above), which was not an option for you. For your wanted setup of gvm-10 you need gvm-libs 10.0, gsa and gsad 8.0, gvmd 8.0 and openvas-scanner 6.0.

2 Likes

I am very sorry.
I found that the reason that the Report page cannot be displayed, because the disk space on my virtual machine is insufficient.
gvm-10 is still very stable for me.

3 Likes

No need to be sorry, I’m glad it was such an easy fix for your problem! Seemingly not so easy to find in the first place, but at least it’s working now :slight_smile: