Hi! I`m trying to install OpenVAS v4 and stuck on rebuilding Manager database. First of all - sorry for my bad English, not my native language actually.
[~]$ sudo ./openvas-check-setup openvas-check-setup 2.1.5 Test completeness and readiness of OpenVAS-4 (add '--v5' if you want to check for OpenVAS-5) Please report us any non-detected problems and help us to improve this check routine: http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss Send us the log-file (/tmp/openvas-check-setup.log) to help analyze the problem. Use the parameter --server to skip checks for client tools like GSD and OpenVAS-CLI. Step 1: Checking OpenVAS Scanner ... OK: OpenVAS Scanner is present in version 3.2.5. log_init():open : No such file or directory dup2 : Bad file descriptor fdopen : Bad file descriptor log_init():open : No such file or directory dup2 : Bad file descriptor fdopen : Bad file descriptor OK: OpenVAS Scanner CA Certificate is present as /usr/var/lib/openvas/CA/cacert.pem. log_init():open : No such file or directory dup2 : Bad file descriptor fdopen : Bad file descriptor OK: NVT collection in /usr/var/lib/openvas/plugins contains 25395 NVTs. log_init():open : No such file or directory dup2 : Bad file descriptor fdopen : Bad file descriptor WARNING: Signature checking of NVTs is not enabled in OpenVAS Scanner. SUGGEST: Enable signature checking (see http://www.openvas.org/trusted-nvts.html). Step 2: Checking OpenVAS Manager ... OK: OpenVAS Manager is present in version 2.0.4. OK: OpenVAS Manager client certificate is present as /usr/var/lib/openvas/CA/clientcert.pem. ERROR: No OpenVAS Manager database found. (Tried: /usr/var/lib/openvas/mgr/tasks.db) FIX: Run 'openvasmd --rebuild' while OpenVAS Scanner is running. ERROR: Your OpenVAS-4 installation is not yet complete! Please follow the instructions marked with FIX above and run this script again. If you think this result is wrong, please report your observation and help us to improve this check routine: http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss Please attach the log-file (/tmp/openvas-check-setup.log) to help us analyze the problem. Than, if: [~]$ sudo openvasmd --rebuild And: sudo ./openvas-check-setup Get same error: ERROR: No OpenVAS Manager database found. (Tried: /usr/var/lib/openvas/mgr/tasks.db) FIX: Run 'openvasmd --rebuild' while OpenVAS Scanner is running. Few more info: 0. Running from ArchLinux. 1. Trying creating manually /usr/var/lib/openvas/mgr/tasks.db, and setup-checker give me advise to 'chmod 600 tasks.db'. I've done it, but get from setup-checker error, saying that tasks.db is corrupted and need to be removed :( 2. Has installation issue with -Werror (fixed by deleting this flag in CMakeList) and also when executing 'cmake . && make'. Problem with INTERNAL_COMM_MSG_TYPE_CTRL, that was used without defining in hosts.c (line 99), fixed by adding in /usr/include/openvas/misc/plugutils.h that and some other missing stuff, got from /usr/local/include/openvas/misc/plugutils.h (dunno why I has two almost similar files, because after install second file is disappeared O_O) #define INTERNAL_COMM_MSG_TYPE_CTRL (1 << 16) 3. Earlier I've tried to install OpenVAS v5-beta but was unable to create user with administrator rights, as needed. And thank for help! ^_^ Here log file: openvas-check-setup 2.1.5 Mode: desktop Date: Sat, 21 Apr 2012 19:06:34 +0300 Checking for old OpenVAS Scanner <= 2.0 ... ./openvas-check-setup: line 124: openvasd: команда не найдена Checking presence of OpenVAS Scanner ... OpenVAS Scanner 3.2.5 Nessus origin: (C) 2004 Renaud Deraison <[email protected]> Most new code since OpenVAS: (C) 2011 Greenbone Networks GmbH License GPLv2: GNU GPL version 2 This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Checking OpenVAS Scanner version ... OK: OpenVAS Scanner is present in version 3.2.5. Could not open the logfile, using stderr plugins_folder = /usr/var/lib/openvas/plugins cache_folder = /usr/var/cache/openvas include_folders = /usr/var/lib/openvas/plugins max_hosts = 30 max_checks = 10 be_nice = no logfile = /usr/var/log/openvas/openvassd.messages log_whole_attack = no log_plugins_name_at_load = no dumpfile = /usr/var/log/openvas/openvassd.dump rules = /usr/share/openvas/openvassd.rules cgi_path = /cgi-bin:/scripts port_range = default optimize_test = yes checks_read_timeout = 5 non_simult_ports = 139, 445 plugins_timeout = 320 safe_checks = yes auto_enable_dependencies = yes silent_dependencies = no use_mac_addr = no save_knowledge_base = no kb_restore = no only_test_hosts_whose_kb_we_dont_have = no only_test_hosts_whose_kb_we_have = no kb_dont_replay_scanners = no kb_dont_replay_info_gathering = no kb_dont_replay_attacks = no kb_dont_replay_denials = no kb_max_age = 864000 slice_network_addresses = no nasl_no_signature_check = yes drop_privileges = no unscanned_closed = yes vhosts = vhosts_ip = cert_file = /usr/var/lib/openvas/CA/servercert.pem key_file = /usr/var/lib/openvas/private/CA/serverkey.pem ca_file = /usr/var/lib/openvas/CA/cacert.pem config_file = /usr/etc/openvas/openvassd.conf Checking OpenVAS Scanner CA cert ... OK: OpenVAS Scanner CA Certificate is present as /usr/var/lib/openvas/CA/cacert.pem. Checking NVT collection ... OK: NVT collection in /usr/var/lib/openvas/plugins contains 25395 NVTs. Checking status of signature checking in OpenVAS Scanner ... WARNING: Signature checking of NVTs is not enabled in OpenVAS Scanner. SUGGEST: Enable signature checking (see http://www.openvas.org/trusted-nvts.html). Checking presence of OpenVAS Manager ... OpenVAS Manager 2.0.4 Manager DB revision 41 Copyright (C) 2010 Greenbone Networks GmbH License GPLv2+: GNU GPL version 2 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. OK: OpenVAS Manager is present in version 2.0.4. Checking OpenVAS Manager client certificate ... OK: OpenVAS Manager client certificate is present as /usr/var/lib/openvas/CA/clientcert.pem. Checking OpenVAS Manager database ... ERROR: No OpenVAS Manager database found. (Tried: /usr/var/lib/openvas/mgr/tasks.db) FIX: Run 'openvasmd --rebuild' while OpenVAS Scanner is running. _______________________________________________ Openvas-discuss mailing list [email protected] http://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
