Report information timing out

Hello, we are finding reports are timing out once the number of results for a scan grows large. 8000 results seems to be too much. The various tabs of the report field stay at 0 and we get the following message:

Error while loading Report f6cba155-b3e4-4161-9070-5aa820779c58
Please try again.
Hide Error Details
Rejection: Unknown Error
Error
    at new $b (https://greenbone.ourdomain.com/static/js/main.cae1bbe1.js:2:1885360)
    at https://greenbone.ourdomain.com/static/js/main.cae1bbe1.js:2:1888286

It seems to be about a minute before the timeout. Looking at top we can see postgres working hard,

Apart from splitting the scans into multiple IP blocks, is there anything we can adjust to have the front end wait longer for the database? (I’m guessing that is the issue here)

The host machiine is a VM with the containers on a SAN. We have allocated plenty of RAM, CPU and although postgres uses 100% on some cores there are still free resources on the machine.

Greenbone about shows version 22.9.1

You can adjust the timeout … please check the other posts here. And you should work on your IO, a faster Storage (NVME native) would help if you need to speed up you database.

2 Likes

Thanks Lukas, can you post a link to the post about adjusting the timeouts? I have searched the forum already, and I’ve only found a few related posts that are inconclusive as to what to do.

You can try search for “adjust GSA timeout”.

Here are some relevant posts with answers:

2 Likes

Thanks for the pointers. It was the second post that had the answer from bricks. If anyone else finds this, create a file in the gsa container as follows:

Add a config.js file to /usr/local/share/gvm/gsad/web/ with the following content:

config = {
  timeout: <timeout in seconds>,
}
1 Like