at the moment i want to migrate my sql file to postgresql database, first i had problems with creating the database cause my “login-username” was “user” and like i think now postgresql have many problems when the username is “user”, because of that i had to change my username and all path’s… (Atm working to fix the .service scripts again, maybe you can help me there to= failed to connect to bus: no such file or directory### after changing the username)
But my current problem is that the migration doesnt work with the gvm-migrate-to-postgres script. Its output looks like that:
<30>Oct 17 09:26:14 gvm-migrate-to-postgres: Checking SQLite3 database.
<31>Oct 17 09:26:14 gvm-migrate-to-postgres: SQLite: DROP INDEX report_hosts_by_host;
<31>Oct 17 09:26:14 gvm-migrate-to-postgres: SQLite: CREATE INDEX report_hosts_by_host ON report_hosts (host);
<31>Oct 17 09:26:14 gvm-migrate-to-postgres: SQLite: PRAGMA integrity_check;
<28>Oct 17 09:26:15 gvm-migrate-to-postgres: Database integrity check failed.
<29>Oct 17 09:26:15 gvm-migrate-to-postgres: Corrupt database, skipping migration.
i found nothing here about the error “integrity check failed”.
maybe someone can help me?
Environment Greenbone Server
**Operating system: Ubuntu Server 18.4
**Installation method / source: Github