gvm-containers
gvm-containers copied to clipboard
Can not log in
I've create a .env file wich contains GVMD_USER=admin, then I run
docker-compose -f docker-compose.yml -f nvt-sync.yml -f cert-sync.yml -f scap-sync.yml up
Unfortunately, I see login page but cannot log in with admin/admin. I thought it should work ( As I see at https://github.com/admirito/gvm-containers/blob/master/gvmd/docker-entrypoint.sh )
Can you help me? My log is:
Starting gvm-containers_gvm-postgres_1 ... done Starting gvm-containers_gvmd_1 ... done Starting gvm-containers_openvas_1 ... done Starting gvm-containers_redis_1 ... done Starting gvm-containers_scap-sync_1 ... done Starting gvm-containers_nvt-sync_1 ... done Starting gvm-containers_gsad_1 ... done Starting gvm-containers_cert-sync_1 ... done Attaching to gvm-containers_gvm-postgres_1, gvm-containers_openvas_1, gvm-containers_gvmd_1, gvm-containers_redis_1, gvm-containers_scap-sync_1, gvm-containers_cert-sync_1, gvm-containers_gsad_1, gvm-containers_nvt-sync_1 gvm-postgres_1 | gvm-postgres_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization gvm-postgres_1 | gvm-postgres_1 | 2020-07-20 11:02:16.126 UTC [1] LOG: starting PostgreSQL 12.3 (Debian 12.3-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit gvm-postgres_1 | 2020-07-20 11:02:16.126 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 gvm-postgres_1 | 2020-07-20 11:02:16.126 UTC [1] LOG: listening on IPv6 address "::", port 5432 gvm-postgres_1 | 2020-07-20 11:02:16.127 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" gvm-postgres_1 | 2020-07-20 11:02:16.147 UTC [24] LOG: database system was shut down at 2020-07-20 11:00:28 UTC gvm-postgres_1 | 2020-07-20 11:02:16.154 UTC [1] LOG: database system is ready to accept connections gvmd_1 | waiting for the database... gvmd_1 | md main:MESSAGE:2020-07-20 11h02.19 utc:1: Greenbone Vulnerability Manager version 9.0.1 (DB revision 221) gvmd_1 | md manage:WARNING:2020-07-20 11h02.19 utc:1: database must be initialised from scanner gvmd_1 | util gpgme:MESSAGE:2020-07-20 11h02.20 utc:1: Setting GnuPG dir to '/var/lib/gvm/gvmd/gnupg' gvmd_1 | util gpgme:MESSAGE:2020-07-20 11h02.20 utc:1: Using OpenPGP engine version '2.2.19' gvmd_1 | md manage:WARNING:2020-07-20 11h02.21 utc:38: manage_update_nvt_cache_osp: failed to connect to /var/run/ospd/ospd.sock openvas_1 | waiting for the redis... redis_1 | 1:C 20 Jul 2020 11:02:20.437 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo redis_1 | 1:C 20 Jul 2020 11:02:20.440 # Redis version=5.0.9, bits=64, commit=00000000, modified=0, pid=1, just started redis_1 | 1:C 20 Jul 2020 11:02:20.440 # Configuration loaded redis_1 | 1:M 20 Jul 2020 11:02:20.445 * Running mode=standalone, port=0. redis_1 | 1:M 20 Jul 2020 11:02:20.445 # Server initialized redis_1 | 1:M 20 Jul 2020 11:02:20.445 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. redis_1 | 1:M 20 Jul 2020 11:02:20.445 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled. redis_1 | 1:M 20 Jul 2020 11:02:20.446 * The server is now ready to accept connections at /var/run/redis/redis.sock nvt-sync_1 | <28>Jul 20 11:02:23 greenbone-nvt-sync: The log facility is not working as expected. All messages will be written to the standard error stream. nvt-sync_1 | <28>Jul 20 11:02:23 greenbone-nvt-sync: Another process related to the feed update is already running. cert-sync_1 | rsync: failed to connect to feed.community.greenbone.net (45.135.106.142): Connection refused (111) cert-sync_1 | rsync: failed to connect to feed.community.greenbone.net (2a0e:6b40:20:106:20c:29ff:fe67:cbb5): Cannot assign requested address (99) cert-sync_1 | rsync error: error in socket IO (code 10) at clientserver.c(127) [Receiver=3.1.3] scap-sync_1 | Greenbone community feed server - http://feed.community.greenbone.net/ scap-sync_1 | This service is hosted by Greenbone Networks - http://www.greenbone.net/ scap-sync_1 | scap-sync_1 | All transactions are logged. scap-sync_1 | scap-sync_1 | If you have any questions, please use the Greenbone community portal. scap-sync_1 | See https://community.greenbone.net for details. scap-sync_1 | scap-sync_1 | By using this service you agree to our terms and conditions. scap-sync_1 | scap-sync_1 | Only one sync per time, otherwise the source ip will be temporarily blocked. scap-sync_1 | gsad_1 | gsad main:MESSAGE:2020-07-20 11h02.23 utc:1: Starting GSAD version 9.0.1 scap-sync_1 | receiving incremental file list scap-sync_1 | timestamp 13 100% 12.70kB/s 0:00:00 (xfr#1, to-chk=0/1) scap-sync_1 | scap-sync_1 | sent 43 bytes received 113 bytes 62.40 bytes/sec scap-sync_1 | total size is 13 speedup is 0.08 gvm-containers_nvt-sync_1 exited with code 1 scap-sync_1 | Greenbone community feed server - http://feed.community.greenbone.net/ scap-sync_1 | This service is hosted by Greenbone Networks - http://www.greenbone.net/ scap-sync_1 | scap-sync_1 | All transactions are logged. scap-sync_1 | scap-sync_1 | If you have any questions, please use the Greenbone community portal. scap-sync_1 | See https://community.greenbone.net for details. scap-sync_1 | scap-sync_1 | By using this service you agree to our terms and conditions. scap-sync_1 | scap-sync_1 | Only one sync per time, otherwise the source ip will be temporarily blocked. scap-sync_1 | gvm-containers_cert-sync_1 exited with code 1 scap-sync_1 | receiving incremental file list scap-sync_1 | ./ scap-sync_1 | COPYING 1,719 100% 1.64MB/s 0:00:00 (xfr#1, to-chk=42/44) scap-sync_1 | nvdcve-2.0-2002.xml gvmd_1 | md manage:WARNING:2020-07-20 11h02.31 utc:42: manage_update_nvt_cache_osp: failed to connect to /var/run/ospd/ospd.sock openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.35 utc:19: plugin_feed_info.inc: Not able to open nor to locate it in include paths openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.35 utc:19: /var/lib/openvas/plugins/gb_manageengine_servicedesk_plus_consolidation.nasl: Parse error at or near line 19 openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.37 utc:19: plugin_feed_info.inc: Not able to open nor to locate it in include paths openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.37 utc:19: /var/lib/openvas/plugins/gb_fortimail_consolidation.nasl: Parse error at or near line 21 openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.38 utc:19: plugin_feed_info.inc: Not able to open nor to locate it in include paths openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.38 utc:19: /var/lib/openvas/plugins/gb_apache_derby_consolidation.nasl: Parse error at or near line 19 openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.38 utc:19: plugin_feed_info.inc: Not able to open nor to locate it in include paths openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.38 utc:19: /var/lib/openvas/plugins/unknown_services.nasl: Parse error at or near line 26 openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.39 utc:19: plugin_feed_info.inc: Not able to open nor to locate it in include paths openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.39 utc:19: /var/lib/openvas/plugins/gb_netapp_data_ontap_consolidation.nasl: Parse error at or near line 27 openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.39 utc:19: plugin_feed_info.inc: Not able to open nor to locate it in include paths openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.39 utc:19: /var/lib/openvas/plugins/gb_dell_sonicwall_sma_sra_consolidation.nasl: Parse error at or near line 19 openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.39 utc:19: plugin_feed_info.inc: Not able to open nor to locate it in include paths openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.39 utc:19: /var/lib/openvas/plugins/gb_ibm_security_identity_manager_consolidation.nasl: Parse error at or near line 21 openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.40 utc:19: plugin_feed_info.inc: Not able to open nor to locate it in include paths openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.40 utc:19: /var/lib/openvas/plugins/gb_manageengine_assetexplorer_consolidation.nasl: Parse error at or near line 19 gsad_1 | gsad gmp:MESSAGE:2020-07-20 11h02.41 utc:1: Authentication success for 'admin' from 172.18.0.1 gvmd_1 | md manage:WARNING:2020-07-20 11h02.41 utc:48: manage_update_nvt_cache_osp: failed to connect to /var/run/ospd/ospd.sock openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.43 utc:19: plugin_feed_info.inc: Not able to open nor to locate it in include paths openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.43 utc:19: /var/lib/openvas/plugins/2015/gb_f5_big_iq_webinterface_default_credentials.nasl: Parse error at or near line 27 openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.47 utc:19: plugin_feed_info.inc: Not able to open nor to locate it in include paths openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.47 utc:19: /var/lib/openvas/plugins/gb_ibm_db2_consolidation.nasl: Parse error at or near line 19 openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.47 utc:19: plugin_feed_info.inc: Not able to open nor to locate it in include paths openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.47 utc:19: /var/lib/openvas/plugins/os_detection.nasl: Parse error at or near line 27 openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.47 utc:19: plugin_feed_info.inc: Not able to open nor to locate it in include paths openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.47 utc:19: /var/lib/openvas/plugins/gb_grandstream_ucm_consolidation.nasl: Parse error at or near line 19 openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.48 utc:19: plugin_feed_info.inc: Not able to open nor to locate it in include paths openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.48 utc:19: /var/lib/openvas/plugins/gb_cisco_nam_consolidation.nasl: Parse error at or near line 21 openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.48 utc:19: plugin_feed_info.inc: Not able to open nor to locate it in include paths openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.48 utc:19: /var/lib/openvas/plugins/os_fingerprint.nasl: Parse error at or near line 26 openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.48 utc:19: plugin_feed_info.inc: Not able to open nor to locate it in include paths openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.48 utc:19: /var/lib/openvas/plugins/kb_2_sc.nasl: Parse error at or near line 58 openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.48 utc:19: plugin_feed_info.inc: Not able to open nor to locate it in include paths openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.48 utc:19: /var/lib/openvas/plugins/gb_rockwell_micrologix_ethernetip_detect.nasl: Parse error at or near line 27 openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.49 utc:19: plugin_feed_info.inc: Not able to open nor to locate it in include paths openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.49 utc:19: /var/lib/openvas/plugins/gb_oracle_weblogic_consolidation.nasl: Parse error at or near line 21 openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.49 utc:19: plugin_feed_info.inc: Not able to open nor to locate it in include paths openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.49 utc:19: /var/lib/openvas/plugins/gb_manageengine_servicedesk_plus_msp_consolidation.nasl: Parse error at or near line 19 openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.50 utc:19: plugin_feed_info.inc: Not able to open nor to locate it in include paths openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.50 utc:19: /var/lib/openvas/plugins/host_scan_end.nasl: Parse error at or near line 50 gvmd_1 | md manage:WARNING:2020-07-20 11h02.51 utc:52: manage_update_nvt_cache_osp: failed to connect to /var/run/ospd/ospd.sock openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.54 utc:19: plugin_feed_info.inc: Not able to open nor to locate it in include paths openvas_1 | lib nasl:MESSAGE:2020-07-20 11h02.54 utc:19: /var/lib/openvas/plugins/gb_option_cloudgate_consolidation.nasl: Parse error at or near line 21 openvas_1 | lib nvticache:WARNING:2020-07-20 11h02.54 utc:18: nvt_feed_version: Failed to open file “/var/lib/openvas/plugins/plugin_feed_info.inc”: No such file or directory openvas_1 | 2020-07-20 11:02:54,376 OSPD - openvas: ERROR: (ospd_openvas.daemon) OpenVAS Scanner failed to load NVTs. Command '['openvas', '--update-vt-info']' returned non-zero exit status 1. openvas_1 | 2020-07-20 11:02:54,432 OSPD - openvas: INFO: (ospd_openvas.daemon) Loading vts in memory. gvmd_1 | md manage:WARNING:2020-07-20 11h03.02 utc:56: manage_update_nvt_cache_osp: failed to connect to /var/run/ospd/ospd.sock openvas_1 | 2020-07-20 11:03:10,622 OSPD - openvas: INFO: (ospd_openvas.daemon) Finish loading up vts.
The default value for GVMD_USER is admin as it is set in the Dockerfile
The entrypoint will create the user only if gvmd --get-users reports that it doesn't already exists.
As I can see no creating ${GVMD_USER} user... in your log, I suspect that it has already been created on the first execution. The default password if GVMD_PASSWORD is not set would be the same as the username.
It does not work, admin/admin is not worked for me. Rebuild at main Xubuntu machine, not at Virtualbox Ubuntu finally helped! But now I faced what reports are empty. Can you help me with it? Any suggestions why could this happen? I used Task Wizard link