mikesplain / openvas-docker

A Docker container for Openvas
MIT License
768 stars 305 forks source link

Database issues when using persistent storage #210

Closed Lallassu closed 6 years ago

Lallassu commented 6 years ago

When configuring the container to mount /var/lib/openvas/mgr it starts to get a lot of database issues when fetching reports through OMP.

Running docker with: -v $(pwd)/openvas_data:/var/lib/openvas/mgr/ Produces the following when executing "" through the OMP protocol.

md manage:WARNING:2018-10-18 11h22.08 UTC:5047: sql_exec_internal: sqlite3_step failed: interrupted
md manage:WARNING:2018-10-18 11h22.08 UTC:5047: sql_x_internal: sql_exec_internal failed
md manage:WARNING:2018-10-18 11h22.08 UTC:5047: sql_close: attempt to close db with open statement(s)

The directory is filled with the tasks.db etc.

Works fine when not mounting the persistent storage.

Lallassu commented 6 years ago

Was due to a timeout where connection was closed before fully fetched reports.