Hi,

I have copied tasks.db from openvas-6 to openvas-8 system under mgr folder.And 
also copied users folder from openvas6 to openvas 8 system under openvas folder.


I tried running openvasmd --migrate but it completes in seconds.

running openvas --migrate -v gives below message.


md   main:  DEBUG:2623:2015-04-27 06h37.43 EDT:    sql: ATTACH DATABASE 
'/usr/local/var/lib/openvas/scap-data/scap.db' AS scap;
md   main:  DEBUG:2623:2015-04-27 06h37.43 EDT:    sql: ATTACH DATABASE 
'/usr/local/var/lib/openvas/cert-data/cert.db' AS cert;
md   main:  DEBUG:2623:2015-04-27 06h37.43 EDT:    sql: SELECT count (*) FROM 
main.sqlite_master WHERE type = 'table' AND name = 'meta';
md   main:  DEBUG:2623:2015-04-27 06h37.43 EDT:    sql_x end
md   main:  DEBUG:2623:2015-04-27 06h37.43 EDT:    sql: SELECT value FROM 
main.meta WHERE name = 'database_version' LIMIT 1;
md   main:  DEBUG:2623:2015-04-27 06h37.43 EDT:    sql_x end


running ./openvas-check-setup shows below message.


Step 1: Checking OpenVAS Scanner ...
        OK: OpenVAS Scanner is present in version 5.0.1.
        OK: OpenVAS Scanner CA Certificate is present as 
/usr/local/var/lib/openvas/CA/cacert.pem.
        OK: NVT collection in /usr/local/var/lib/openvas/plugins contains 38674 
NVTs.
        WARNING: Signature checking of NVTs is not enabled in OpenVAS Scanner.
        SUGGEST: Enable signature checking (see 
http://www.openvas.org/trusted-nvts.html).
        OK: The NVT cache in /usr/local/var/cache/openvas contains 38674 files 
for 38674 NVTs.
        OK: redis-server is present in version v=2.8.19.
        OK: scanner (kb_location setting) is configured properly using the 
redis-server socket: /tmp/redis.sock
        OK: redis-server is running and listening on socket: /tmp/redis.sock.
        OK: redis-server configuration is OK and redis-server is running.
Step 2: Checking OpenVAS Manager ...
        OK: OpenVAS Manager is present in version 6.0.1.
        OK: OpenVAS Manager client certificate is present as 
/usr/local/var/lib/openvas/CA/clientcert.pem.
        OK: OpenVAS Manager database found in 
/usr/local/var/lib/openvas/mgr/tasks.db.
        OK: Access rights for the OpenVAS Manager database are correct.
        ERROR: No users found. You need to create at least one user to log in.
        It is recommended to have at least one user with role Admin.
        FIX: create a user by running 'openvasmd --create-user=<name> 
--role=Admin && openvasmd --user=<name> --new-password=<password>'

 ERROR: Your OpenVAS-8 installation is not yet complete!


Please let me know am i missing some steps.

can you please let me know after copying users directory and Tasks.db from 
openvas-6 to openvas-8 what all steps i have to follow?


Regards,
Deepak jha

-------------------------------------------------------------------------------------------------------------------------------------------------


On Samstag, 25. April 2015, Deepak Jha wrote:
> I have installed openvas 8 from source on centOS8.I am already using openvas 
> 6 .
> I want to migrate all configuration from openvas6 to openvas 8.
> I copied Tasks.db from openvas6 and replaced it on openvas 8 and trying to 
> run openvasmd -migrate it is not working also when I run openvas-check-setup  
> I get below error.
> ERROR: No users found. You need to create at least one user to log in.
>         It is recommended to have at least one user with role Admin.
>
> Please let me know how I can migrate openvas 6 database to openvas8

what you actually did was not just migrate. You transferred the entire setup
to another location/system. Seems like you did not copy over the "users" 
directory
which is used by the migration routine to more the users into the database
where they are managed since OpenVAS-7.

So, copy the users dir and copy again the tasks.db and retry the migration.

________________________________
From: Deepak Jha
Sent: Saturday, April 25, 2015 12:17 PM
To: Eero Volotinen
Cc: [email protected]
Subject: RE: [Openvas-discuss] installing openvas 8 from source on CentOS 7

Hi,

I have installed openvas 8 from source on centOS8.I am already using openvas 6 .
I want to migrate all configuration from openvas6 to openvas 8.
I copied Tasks.db from openvas6 and replaced it on openvas 8 and trying to run 
openvasmd -migrate it is not working also when I run openvas-check-setup  I get 
below error.
ERROR: No users found. You need to create at least one user to log in.
        It is recommended to have at least one user with role Admin.

Please let me know how I can migrate openvas 6 database to openvas8

Thanks,
Deepak Jha
_______________________________________________
Openvas-discuss mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to