Hello,
I had some sql errors while using Sqlite while performing multiple tasks scan at the same time so I decided to switch to postgres as recommended in some threads.
The migration did well (I removed tasks.db) for all the elements exept the Scap and Certs databases.
When I perform scans now I have internal errors when the task ends
Openvasmd.log :
event task:MESSAGE:2019-01-16 22h32.31 CET:6726: Status of task *********(8bfcaca4-8c69-4105-9cae-a4c3811e3f60) has changed to Done
md manage:WARNING:2019-01-16 22h32.31 CET:6726: manage_cleanup_process_error: Error exit, setting running task to Internal Error
event task:MESSAGE:2019-01-16 22h32.31 CET:6726: Status of task *********(8bfcaca4-8c69-4105-9cae-a4c3811e3f60) has changed to Internal Error
postgresql-9.6-main.log :
2019-01-16 22:32:31.278 CET [6727] root@tasks ERROR: operator doesn't exists : name = integer at character 86
2019-01-16 22:32:31.278 CET [6727] root@tasks INFO : No operator matches the given name and the types of arguments.
You must add explicit type conversions.
2019-01-16 22:32:31.278 CET [6727] root@tasks INSTRUCTION : SELECT max(severity) FROM report_counts WHERE report = 443 AND override = 1 AND user = (SELECT id FROM users WHERE uuid = 'd9cb5862-8988-4b19-8d2b-8a545db4a2a5') AND min_qod = 70 AND (end_time = 0 or end_time >= m_now ());
And, when I start openvasmd (same with openvasmd-pg, I don’t know if it changes something) :
md manage:MESSAGE:2019-01-17 08h43.10 utc:1919: No SCAP database found
md manage:MESSAGE:2019-01-17 08h43.10 utc:1919: No CERT database found
Of course I runned the greenbone-scapdata-sync and greenbone-certdata-sync scripts but this doesn’t change anything. I tried deleting the data at /usr/local/var/lib/cert-data/ and /usr/local/var/lib/scap-data and rebuilding it using the scripts in vain.
It is like the sync/cert databases are still linked to sqlite someway and I can’t find any documentation about how to change this.
I use Debian 9 and every component’s version is the latest stable.
Any help is welcome, thank you for reading