DefectDojo / django-DefectDojo

DevSecOps, ASPM, Vulnerability Management. All on one platform.
https://defectdojo.com
BSD 3-Clause "New" or "Revised" License
3.66k stars 1.53k forks source link

Authentication failure using docker compose #1409

Closed lucasluitjes closed 5 years ago

lucasluitjes commented 5 years ago

Bug description I wanted to try out defectdojo using the Quick Start guide from the README.md, so I cloned the repo and ran docker-compose build. Then I ran docker-compose up and visited localhost:8080.

I used the username and password from the latest initializer container, but received the following error: Please enter a correct username and password. Note that both fields may be case-sensitive..

Steps to reproduce Steps to reproduce the behavior:

  1. git clone git@github.com:DefectDojo/django-DefectDojo.git
  2. docker-compose build
  3. docker-compose up
  4. visit localhost:8080 in browser
  5. docker logs django-defectdojo_initializer_1 | grep Admin | tail -n2
  6. Enter credentials from previous command

Expected behavior To be logged in successfully.

Deployment method (select with an X)

Environment information

Console logs (optional) Log output from docker-compose up and reproducing the issue:

Starting django-defectdojo_mysql_1 ... 
Starting django-defectdojo_rabbitmq_1 ... 

Starting django-defectdojo_rabbitmq_1 ... done

Starting django-defectdojo_mysql_1    ... done
Starting django-defectdojo_celeryworker_1 ... 
Starting django-defectdojo_initializer_1  ... 
Starting django-defectdojo_uwsgi_1        ... 
Starting django-defectdojo_celerybeat_1   ... 

Starting django-defectdojo_celeryworker_1 ... done

Starting django-defectdojo_celerybeat_1   ... done

Starting django-defectdojo_initializer_1  ... done

Starting django-defectdojo_uwsgi_1        ... done
Starting django-defectdojo_nginx_1        ... 

Starting django-defectdojo_nginx_1        ... done
Attaching to django-defectdojo_rabbitmq_1, django-defectdojo_mysql_1, django-defectdojo_celeryworker_1, django-defectdojo_celerybeat_1, django-defectdojo_initializer_1, django-defectdojo_uwsgi_1, django-defectdojo_nginx_1
mysql_1         | 2019-07-24T11:04:57.714961Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
mysql_1         | 2019-07-24T11:04:57.718086Z 0 [Note] mysqld (mysqld 5.7.26) starting as process 1 ...
mysql_1         | 2019-07-24T11:04:57.732173Z 0 [Note] InnoDB: PUNCH HOLE support available
mysql_1         | 2019-07-24T11:04:57.732191Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
mysql_1         | 2019-07-24T11:04:57.732195Z 0 [Note] InnoDB: Uses event mutexes
mysql_1         | 2019-07-24T11:04:57.732199Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
mysql_1         | 2019-07-24T11:04:57.732202Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
mysql_1         | 2019-07-24T11:04:57.732205Z 0 [Note] InnoDB: Using Linux native AIO
mysql_1         | 2019-07-24T11:04:57.733765Z 0 [Note] InnoDB: Number of pools: 1
mysql_1         | 2019-07-24T11:04:57.738356Z 0 [Note] InnoDB: Using CPU crc32 instructions
mysql_1         | 2019-07-24T11:04:57.742601Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
mysql_1         | 2019-07-24T11:04:57.762972Z 0 [Note] InnoDB: Completed initialization of buffer pool
mysql_1         | 2019-07-24T11:04:57.767364Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
mysql_1         | 2019-07-24T11:04:57.812338Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
mysql_1         | 2019-07-24T11:04:57.932324Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
mysql_1         | 2019-07-24T11:04:57.932384Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
mysql_1         | 2019-07-24T11:04:58.067971Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
mysql_1         | 2019-07-24T11:04:58.068616Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
mysql_1         | 2019-07-24T11:04:58.068624Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
mysql_1         | 2019-07-24T11:04:58.069472Z 0 [Note] InnoDB: Waiting for purge to start
mysql_1         | 2019-07-24T11:04:58.119668Z 0 [Note] InnoDB: 5.7.26 started; log sequence number 21170541
mysql_1         | 2019-07-24T11:04:58.120399Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
mysql_1         | 2019-07-24T11:04:58.121360Z 0 [Note] Plugin 'FEDERATED' is disabled.
mysql_1         | 2019-07-24T11:04:58.177430Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
mysql_1         | 2019-07-24T11:04:58.180275Z 0 [Warning] CA certificate ca.pem is self signed.
mysql_1         | 2019-07-24T11:04:58.194240Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
mysql_1         | 2019-07-24T11:04:58.203990Z 0 [Note] IPv6 is available.
mysql_1         | 2019-07-24T11:04:58.205466Z 0 [Note]   - '::' resolves to '::';
mysql_1         | 2019-07-24T11:04:58.205682Z 0 [Note] Server socket created on IP: '::'.
mysql_1         | 2019-07-24T11:04:58.210185Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
mysql_1         | 2019-07-24T11:04:58.232667Z 0 [Note] InnoDB: Buffer pool(s) load completed at 190724 11:04:58
mysql_1         | 2019-07-24T11:04:58.307470Z 0 [Note] Event Scheduler: Loaded 0 events
mysql_1         | 2019-07-24T11:04:58.307781Z 0 [Note] mysqld: ready for connections.
mysql_1         | Version: '5.7.26'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)
mysql_1         | 2019-07-24T11:04:58.605429Z 2 [Note] Got an error reading communication packets
mysql_1         | 2019-07-24T11:04:58.687871Z 3 [Note] Got an error reading communication packets
mysql_1         | 2019-07-24T11:04:59.884062Z 4 [Note] Got an error reading communication packets
mysql_1         | 2019-07-24T11:05:00.055956Z 5 [Note] Got an error reading communication packets
celeryworker_1  | wait-for-it.sh: waiting 30 seconds for mysql:3306
celeryworker_1  | wait-for-it.sh: mysql:3306 is available after 0 seconds
celerybeat_1    | wait-for-it.sh: waiting 30 seconds for mysql:3306
celerybeat_1    | wait-for-it.sh: mysql:3306 is available after 0 seconds
initializer_1   | wait-for-it.sh: waiting 60 seconds for mysql:3306
initializer_1   | wait-for-it.sh: mysql:3306 is available after 0 seconds
initializer_1   | Initializing.
initializer_1   | Admin user: admin
initializer_1   | Admin password: xZH7y00uue6zsN8waHZiOM
uwsgi_1         | wait-for-it.sh: waiting 30 seconds for mysql:3306
uwsgi_1         | wait-for-it.sh: mysql:3306 is available after 0 seconds
uwsgi_1         | *** Starting uWSGI 2.0.18 (64bit) on [Wed Jul 24 11:05:00 2019] ***
uwsgi_1         | compiled with version: 8.3.0 on 18 July 2019 13:04:32
uwsgi_1         | os: Linux-4.4.0-1087-aws #98-Ubuntu SMP Wed Jun 26 05:50:53 UTC 2019
uwsgi_1         | nodename: 0a62463660d0
uwsgi_1         | machine: x86_64
uwsgi_1         | clock source: unix
uwsgi_1         | pcre jit disabled
uwsgi_1         | detected number of CPU cores: 2
uwsgi_1         | current working directory: /app
uwsgi_1         | detected binary path: /usr/local/bin/uwsgi
uwsgi_1         | *** WARNING: you are running uWSGI without its master process manager ***
uwsgi_1         | your memory page size is 4096 bytes
uwsgi_1         | detected max file descriptor number: 1048576
uwsgi_1         | lock engine: pthread robust mutexes
uwsgi_1         | thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi_1         | uwsgi socket 0 bound to TCP address 0.0.0.0:3031 fd 3
uwsgi_1         | Python version: 2.7.16 (default, Jul 13 2019, 16:04:25)  [GCC 8.3.0]
uwsgi_1         | *** Python threads support is disabled. You can enable it with --enable-threads ***
uwsgi_1         | Python main interpreter initialized at 0x55c1a3979c60
uwsgi_1         | your server socket listen backlog is limited to 100 connections
uwsgi_1         | your mercy for graceful operations on workers is 60 seconds
uwsgi_1         | mapped 72920 bytes (71 KB) for 1 cores
uwsgi_1         | *** Operational MODE: single process ***
celeryworker_1  | Waiting for database to be reachable 
celerybeat_1    | Waiting for database to be reachable 
initializer_1   | Waiting for database to be reachable 
uwsgi_1         | WSGI app 0 (mountpoint='') ready in 2 seconds on interpreter 0x55c1a3979c60 pid: 1 (default app)
uwsgi_1         | *** uWSGI is running in multiple interpreter mode ***
uwsgi_1         | spawned uWSGI worker 1 (and the only) (pid: 1, cores: 1)
celeryworker_1  | /usr/local/lib/python2.7/site-packages/celery/platforms.py:796: RuntimeWarning: You're running the worker with superuser privileges: this is
celeryworker_1  | absolutely not recommended!
celeryworker_1  | 
celeryworker_1  | Please specify a different user using the --uid option.
celeryworker_1  | 
celeryworker_1  | User information: uid=1001 euid=1001 gid=0 egid=0
celeryworker_1  | 
celeryworker_1  |   uid=uid, euid=euid, gid=gid, egid=egid,
celerybeat_1    | [2019-07-24 11:05:05,962: ERROR/MainProcess] beat: Connection error: [Errno 111] Connection refused. Trying again in 2.0 seconds...
celeryworker_1  | [2019-07-24 11:05:06,002: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@rabbitmq:5672//: [Errno 111] Connection refused.
celeryworker_1  | Trying again in 2.00 seconds...
celeryworker_1  | 
initializer_1   | Operations to perform:
initializer_1   |   Apply all migrations: admin, auditlog, auth, authtoken, contenttypes, custom_field, django_celery_results, dojo, sessions, sites, social_django, tagging, tastypie, watson
initializer_1   | Running migrations:
initializer_1   |   No migrations to apply.
rabbitmq_1      | 2019-07-24 11:05:07.661 [info] <0.248.0> 
rabbitmq_1      |  Starting RabbitMQ 3.7.16 on Erlang 22.0.7
rabbitmq_1      |  Copyright (C) 2007-2019 Pivotal Software, Inc.
rabbitmq_1      |  Licensed under the MPL.  See https://www.rabbitmq.com/
rabbitmq_1      | 
rabbitmq_1      |   ##  ##
rabbitmq_1      |   ##  ##      RabbitMQ 3.7.16. Copyright (C) 2007-2019 Pivotal Software, Inc.
rabbitmq_1      |   ##########  Licensed under the MPL.  See https://www.rabbitmq.com/
rabbitmq_1      |   ######  ##
rabbitmq_1      |   ##########  Logs: <stdout>
rabbitmq_1      | 
rabbitmq_1      |               Starting broker...
rabbitmq_1      | 2019-07-24 11:05:07.664 [info] <0.248.0> 
rabbitmq_1      |  node           : rabbit@e36da3e24716
rabbitmq_1      |  home dir       : /var/lib/rabbitmq
rabbitmq_1      |  config file(s) : /etc/rabbitmq/rabbitmq.conf
rabbitmq_1      |  cookie hash    : bPMbODMybfThbcSETvGWtA==
rabbitmq_1      |  log(s)         : <stdout>
rabbitmq_1      |  database dir   : /var/lib/rabbitmq/mnesia/rabbit@e36da3e24716
rabbitmq_1      | 2019-07-24 11:05:07.689 [info] <0.248.0> Running boot step pre_boot defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.689 [info] <0.248.0> Running boot step rabbit_core_metrics defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.690 [info] <0.248.0> Running boot step rabbit_alarm defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.695 [info] <0.290.0> Memory high watermark set to 1580 MiB (1656805785 bytes) of 3950 MiB (4142014464 bytes) total
rabbitmq_1      | 2019-07-24 11:05:07.705 [info] <0.292.0> Enabling free disk space monitoring
rabbitmq_1      | 2019-07-24 11:05:07.705 [info] <0.292.0> Disk free limit set to 50MB
rabbitmq_1      | 2019-07-24 11:05:07.709 [info] <0.248.0> Running boot step code_server_cache defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.709 [info] <0.248.0> Running boot step file_handle_cache defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.710 [info] <0.296.0> FHC read buffering:  OFF
rabbitmq_1      | 2019-07-24 11:05:07.710 [info] <0.295.0> Limiting to approx 1048476 file handles (943626 sockets)
rabbitmq_1      | 2019-07-24 11:05:07.710 [info] <0.296.0> FHC write buffering: ON
rabbitmq_1      | 2019-07-24 11:05:07.711 [info] <0.248.0> Running boot step worker_pool defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.711 [info] <0.251.0> Will use 2 processes for default worker pool
rabbitmq_1      | 2019-07-24 11:05:07.711 [info] <0.251.0> Starting worker pool 'worker_pool' with 2 processes in it
rabbitmq_1      | 2019-07-24 11:05:07.712 [info] <0.248.0> Running boot step database defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.713 [info] <0.248.0> Waiting for Mnesia tables for 30000 ms, 9 retries left
rabbitmq_1      | 2019-07-24 11:05:07.734 [info] <0.248.0> Waiting for Mnesia tables for 30000 ms, 9 retries left
rabbitmq_1      | 2019-07-24 11:05:07.735 [info] <0.248.0> Peer discovery backend rabbit_peer_discovery_classic_config does not support registration, skipping registration.
rabbitmq_1      | 2019-07-24 11:05:07.735 [info] <0.248.0> Running boot step database_sync defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.736 [info] <0.248.0> Running boot step codec_correctness_check defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.736 [info] <0.248.0> Running boot step external_infrastructure defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.736 [info] <0.248.0> Running boot step rabbit_registry defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.737 [info] <0.248.0> Running boot step rabbit_auth_mechanism_cr_demo defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.737 [info] <0.248.0> Running boot step rabbit_queue_location_random defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.738 [info] <0.248.0> Running boot step rabbit_event defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.738 [info] <0.248.0> Running boot step rabbit_auth_mechanism_amqplain defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.739 [info] <0.248.0> Running boot step rabbit_auth_mechanism_plain defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.739 [info] <0.248.0> Running boot step rabbit_exchange_type_direct defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.739 [info] <0.248.0> Running boot step rabbit_exchange_type_fanout defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.740 [info] <0.248.0> Running boot step rabbit_exchange_type_headers defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.740 [info] <0.248.0> Running boot step rabbit_exchange_type_topic defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.741 [info] <0.248.0> Running boot step rabbit_mirror_queue_mode_all defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.741 [info] <0.248.0> Running boot step rabbit_mirror_queue_mode_exactly defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.742 [info] <0.248.0> Running boot step rabbit_mirror_queue_mode_nodes defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.742 [info] <0.248.0> Running boot step rabbit_priority_queue defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.742 [info] <0.248.0> Priority queues enabled, real BQ is rabbit_variable_queue
rabbitmq_1      | 2019-07-24 11:05:07.742 [info] <0.248.0> Running boot step rabbit_queue_location_client_local defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.742 [info] <0.248.0> Running boot step rabbit_queue_location_min_masters defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.743 [info] <0.248.0> Running boot step kernel_ready defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.743 [info] <0.248.0> Running boot step rabbit_sysmon_minder defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.743 [info] <0.248.0> Running boot step rabbit_epmd_monitor defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.746 [info] <0.248.0> Running boot step guid_generator defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.749 [info] <0.248.0> Running boot step rabbit_node_monitor defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.750 [info] <0.320.0> Starting rabbit_node_monitor
rabbitmq_1      | 2019-07-24 11:05:07.750 [info] <0.248.0> Running boot step delegate_sup defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.751 [info] <0.248.0> Running boot step rabbit_memory_monitor defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.751 [info] <0.248.0> Running boot step core_initialized defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.751 [info] <0.248.0> Running boot step upgrade_queues defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.767 [info] <0.248.0> Running boot step rabbit_connection_tracking defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.767 [info] <0.248.0> Running boot step rabbit_connection_tracking_handler defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.767 [info] <0.248.0> Running boot step rabbit_exchange_parameters defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.767 [info] <0.248.0> Running boot step rabbit_mirror_queue_misc defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.768 [info] <0.248.0> Running boot step rabbit_policies defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.769 [info] <0.248.0> Running boot step rabbit_policy defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.769 [info] <0.248.0> Running boot step rabbit_queue_location_validator defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.770 [info] <0.248.0> Running boot step rabbit_vhost_limit defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.770 [info] <0.248.0> Running boot step recovery defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.771 [info] <0.351.0> Making sure data directory '/var/lib/rabbitmq/mnesia/rabbit@e36da3e24716/msg_stores/vhosts/628WB79CIFDYO9LJI6DKMI09L' for vhost '/' exists
rabbitmq_1      | 2019-07-24 11:05:07.778 [info] <0.351.0> Starting message stores for vhost '/'
rabbitmq_1      | 2019-07-24 11:05:07.778 [info] <0.355.0> Message store "628WB79CIFDYO9LJI6DKMI09L/msg_store_transient": using rabbit_msg_store_ets_index to provide index
rabbitmq_1      | 2019-07-24 11:05:07.783 [info] <0.351.0> Started message store of type transient for vhost '/'
rabbitmq_1      | 2019-07-24 11:05:07.783 [info] <0.358.0> Message store "628WB79CIFDYO9LJI6DKMI09L/msg_store_persistent": using rabbit_msg_store_ets_index to provide index
rabbitmq_1      | 2019-07-24 11:05:07.787 [info] <0.351.0> Started message store of type persistent for vhost '/'
rabbitmq_1      | 2019-07-24 11:05:07.793 [info] <0.248.0> Running boot step empty_db_check defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.793 [info] <0.248.0> Running boot step rabbit_looking_glass defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.793 [info] <0.248.0> Running boot step rabbit_core_metrics_gc defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.794 [info] <0.248.0> Running boot step background_gc defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.794 [info] <0.248.0> Running boot step connection_tracking defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.795 [info] <0.248.0> Setting up a table for connection tracking on this node: tracked_connection_on_node_rabbit@e36da3e24716
rabbitmq_1      | 2019-07-24 11:05:07.795 [info] <0.248.0> Setting up a table for per-vhost connection counting on this node: tracked_connection_per_vhost_on_node_rabbit@e36da3e24716
rabbitmq_1      | 2019-07-24 11:05:07.795 [info] <0.248.0> Running boot step routing_ready defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.795 [info] <0.248.0> Running boot step pre_flight defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.795 [info] <0.248.0> Running boot step notify_cluster defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.795 [info] <0.248.0> Running boot step networking defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.797 [warning] <0.387.0> Setting Ranch options together with socket options is deprecated. Please use the new map syntax that allows specifying socket options separately from other options.
rabbitmq_1      | 2019-07-24 11:05:07.798 [info] <0.401.0> started TCP listener on [::]:5672
rabbitmq_1      | 2019-07-24 11:05:07.798 [info] <0.248.0> Running boot step direct_client defined by app rabbit
rabbitmq_1      | 2019-07-24 11:05:07.970 [info] <0.405.0> accepting AMQP connection <0.405.0> (172.18.0.7:60688 -> 172.18.0.2:5672)
rabbitmq_1      | 2019-07-24 11:05:07.981 [info] <0.405.0> connection <0.405.0> (172.18.0.7:60688 -> 172.18.0.2:5672): user 'guest' authenticated and granted access to vhost '/'
rabbitmq_1      | 2019-07-24 11:05:07.994 [info] <0.8.0> Server startup complete; 0 plugins started.
rabbitmq_1      |  completed with 0 plugins.
rabbitmq_1      | 2019-07-24 11:05:08.012 [info] <0.418.0> accepting AMQP connection <0.418.0> (172.18.0.4:46478 -> 172.18.0.2:5672)
rabbitmq_1      | 2019-07-24 11:05:08.014 [info] <0.418.0> connection <0.418.0> (172.18.0.4:46478 -> 172.18.0.2:5672): user 'guest' authenticated and granted access to vhost '/'
celeryworker_1  | [2019-07-24 11:05:08,014: INFO/MainProcess] Connected to amqp://guest:**@rabbitmq:5672//
rabbitmq_1      | 2019-07-24 11:05:08.024 [info] <0.425.0> accepting AMQP connection <0.425.0> (172.18.0.4:46480 -> 172.18.0.2:5672)
rabbitmq_1      | 2019-07-24 11:05:08.026 [info] <0.425.0> connection <0.425.0> (172.18.0.4:46480 -> 172.18.0.2:5672): user 'guest' authenticated and granted access to vhost '/'
celeryworker_1  | [2019-07-24 11:05:08,026: INFO/MainProcess] mingle: searching for neighbors
rabbitmq_1      | 2019-07-24 11:05:08.041 [info] <0.442.0> accepting AMQP connection <0.442.0> (172.18.0.4:46482 -> 172.18.0.2:5672)
rabbitmq_1      | 2019-07-24 11:05:08.043 [info] <0.442.0> connection <0.442.0> (172.18.0.4:46482 -> 172.18.0.2:5672): user 'guest' authenticated and granted access to vhost '/'
django-defectdojo_initializer_1 exited with code 0
celeryworker_1  | [2019-07-24 11:05:09,051: INFO/MainProcess] mingle: all alone
celeryworker_1  | [2019-07-24 11:05:09,067: INFO/MainProcess] celery@204e2dba0b23 ready.
celeryworker_1  | [2019-07-24 11:05:09,068: INFO/MainProcess] Received task: dojo.tasks.add_alerts[8fcf0d35-ea51-4e41-84ed-1fc834d664da]  
celeryworker_1  | [2019-07-24 11:05:09,078: INFO/MainProcess] Task dojo.tasks.add_alerts[8fcf0d35-ea51-4e41-84ed-1fc834d664da] succeeded in 0.00950020400023s: None
celeryworker_1  | [2019-07-24 11:05:09,079: INFO/MainProcess] Received task: dojo.tasks.async_dupe_delete[438e6092-3c86-4d21-b3aa-74ede626e6a6]  
celeryworker_1  | [2019-07-24 11:05:09,079: INFO/MainProcess] dojo.tasks.async_dupe_delete[438e6092-3c86-4d21-b3aa-74ede626e6a6]: delete excess duplicates
celeryworker_1  | [2019-07-24 11:05:09,082: INFO/MainProcess] Task dojo.tasks.async_dupe_delete[438e6092-3c86-4d21-b3aa-74ede626e6a6] succeeded in 0.00288105900017s: None
celeryworker_1  | [2019-07-24 11:06:08,042: INFO/MainProcess] Received task: dojo.tasks.async_dupe_delete[bb36e3de-aab2-488c-8acd-c69b899ae859]  
celeryworker_1  | [2019-07-24 11:06:08,043: INFO/MainProcess] dojo.tasks.async_dupe_delete[bb36e3de-aab2-488c-8acd-c69b899ae859]: delete excess duplicates
celeryworker_1  | [2019-07-24 11:06:08,046: INFO/MainProcess] Task dojo.tasks.async_dupe_delete[bb36e3de-aab2-488c-8acd-c69b899ae859] succeeded in 0.0033440809998s: None
uwsgi_1         | [pid: 1|app: 0|req: 1/1] 172.18.0.1 () {42 vars in 1221 bytes} [Wed Jul 24 11:06:17 2019] GET / => generated 0 bytes in 4 msecs (HTTP/1.1 302) 5 headers in 149 bytes (1 switches on core 0)
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:17 +0000] "GET / HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:18 +0000] "GET /login?next=/ HTTP/1.1" 200 11648 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
uwsgi_1         | [pid: 1|app: 0|req: 2/2] 172.18.0.1 () {42 vars in 1244 bytes} [Wed Jul 24 11:06:17 2019] GET /login?next=/ => generated 11648 bytes in 1058 msecs (HTTP/1.1 200) 7 headers in 392 bytes (1 switches on core 0)
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:18 +0000] "GET /static/metisMenu/dist/metisMenu.min.css HTTP/1.1" 304 0 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:18 +0000] "GET /static/startbootstrap-sb-admin-2/dist/css/sb-admin-2.css HTTP/1.1" 200 5602 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:18 +0000] "GET /static/bootstrap/dist/css/bootstrap.min.css HTTP/1.1" 304 0 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:18 +0000] "GET /static/font-awesome/css/font-awesome.min.css HTTP/1.1" 304 0 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:18 +0000] "GET /static/fullcalendar/dist/fullcalendar.min.css HTTP/1.1" 404 153 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 2019/07/24 11:06:18 [error] 6#6: *1 open() "/usr/share/nginx/html/static/fullcalendar/dist/fullcalendar.min.css" failed (2: No such file or directory), client: 172.18.0.1, server: , request: "GET /static/fullcalendar/dist/fullcalendar.min.css HTTP/1.1", host: "localhost:8080", referrer: "http://localhost:8080/login?next=/"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:18 +0000] "GET /static/chosen-bootstrap/chosen.bootstrap.min.css HTTP/1.1" 304 0 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:18 +0000] "GET /static/jquery-ui/themes/flick/jquery-ui.min.css HTTP/1.1" 200 31161 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:18 +0000] "GET /static/startbootstrap-sb-admin-2/dist/js/sb-admin-2.js HTTP/1.1" 200 1379 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:18 +0000] "GET /static/metisMenu/dist/metisMenu.min.js HTTP/1.1" 200 4786 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:18 +0000] "GET /static/dojo/css/dojo.css HTTP/1.1" 200 26156 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:18 +0000] "GET /static/jquery-ui/jquery-ui.min.js HTTP/1.1" 200 253669 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:19 +0000] "GET /static/dojo/js/index.js HTTP/1.1" 200 7128 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:19 +0000] "GET /static/fullcalendar/dist/fullcalendar.min.js HTTP/1.1" 404 153 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 2019/07/24 11:06:19 [error] 6#6: *7 open() "/usr/share/nginx/html/static/fullcalendar/dist/fullcalendar.min.js" failed (2: No such file or directory), client: 172.18.0.1, server: , request: "GET /static/fullcalendar/dist/fullcalendar.min.js HTTP/1.1", host: "localhost:8080", referrer: "http://localhost:8080/login?next=/"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:19 +0000] "GET /static/bootstrap/dist/js/bootstrap.min.js HTTP/1.1" 304 0 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:19 +0000] "GET /static/jquery-cookie/jquery.cookie.js HTTP/1.1" 304 0 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:19 +0000] "GET /static/moment/min/moment.min.js HTTP/1.1" 304 0 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:19 +0000] "GET /static/jquery/dist/jquery.js HTTP/1.1" 304 0 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:19 +0000] "GET /static/font-awesome/fonts/fontawesome-webfont.woff2?v=4.4.0 HTTP/1.1" 304 0 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:19 +0000] "GET /static/dojo/img/chop.png HTTP/1.1" 304 0 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:19 +0000] "GET /static/dojo/img/logo.png HTTP/1.1" 200 10362 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
uwsgi_1         | [pid: 1|app: 0|req: 3/3] 172.18.0.1 () {50 vars in 1447 bytes} [Wed Jul 24 11:06:42 2019] POST /login?next=/ => generated 12049 bytes in 210 msecs (HTTP/1.1 200) 7 headers in 392 bytes (1 switches on core 0)
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:42 +0000] "POST /login?next=/ HTTP/1.1" 200 12049 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 2019/07/24 11:06:42 [error] 6#6: *1 open() "/usr/share/nginx/html/static/fullcalendar/dist/fullcalendar.min.css" failed (2: No such file or directory), client: 172.18.0.1, server: , request: "GET /static/fullcalendar/dist/fullcalendar.min.css HTTP/1.1", host: "localhost:8080", referrer: "http://localhost:8080/login?next=/"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:42 +0000] "GET /static/fullcalendar/dist/fullcalendar.min.css HTTP/1.1" 404 153 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
nginx_1         | 2019/07/24 11:06:42 [error] 6#6: *4 open() "/usr/share/nginx/html/static/fullcalendar/dist/fullcalendar.min.js" failed (2: No such file or directory), client: 172.18.0.1, server: , request: "GET /static/fullcalendar/dist/fullcalendar.min.js HTTP/1.1", host: "localhost:8080", referrer: "http://localhost:8080/login?next=/"
nginx_1         | 172.18.0.1 - - [24/Jul/2019:11:06:42 +0000] "GET /static/fullcalendar/dist/fullcalendar.min.js HTTP/1.1" 404 153 "http://localhost:8080/login?next=/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" "-"
Stopping django-defectdojo_celerybeat_1   ... 
Stopping django-defectdojo_celeryworker_1 ... 
Stopping django-defectdojo_nginx_1        ... 
Stopping django-defectdojo_uwsgi_1        ... 
Stopping django-defectdojo_rabbitmq_1     ... 
Stopping django-defectdojo_mysql_1        ... 

Stopping django-defectdojo_nginx_1        ... done

Stopping django-defectdojo_celeryworker_1 ... done

Stopping django-defectdojo_celerybeat_1   ... done

Stopping django-defectdojo_uwsgi_1        ... done
Killing django-defectdojo_rabbitmq_1      ... 
Killing django-defectdojo_mysql_1         ... 

Killing django-defectdojo_rabbitmq_1      ... done

Killing django-defectdojo_mysql_1         ... done
Gracefully stopping... (press Ctrl+C again to force)
dr3dd589 commented 5 years ago

yes, I think there is something changed and the default credentials are --> username: admin and password: admin. we will fix it.

well, you can change the password just do a couple of things:

docker ps

grab container id of django-defectdojo_uwsgi_1

docker exec -it <container_id>  /bin/bash

now just change password

python manage.py changepassword admin

hope this will work!

lucasluitjes commented 5 years ago

Sorry for the late response. The credentials admin:admin also did not work, but after changing the password using the commands you supplied, I was able to log in. Thanks!

ptrovatelli commented 5 years ago

Hi @lucasluitjes . Is it possible that you started the app more than one time? This happened to me many times. Upon the first start, the app will create a password and use it After that when you restart the app, it will create more passwords but the good on is the one from the first launch that you may or may not have written down. it's not available anymore in the logs! In that case, if I'm just on a throwable env, what I do is (it will remove all data)

docker-compose down --volumes
docker-compose up

the --volumes part will drop the folder that persists the database across restarts

lucasluitjes commented 5 years ago

That is possible, however, I do not have the machine with me right now. But if that is the case, we should update the documentation. Over here (https://github.com/DefectDojo/django-DefectDojo/blob/master/DOCKER.md) it says the following:

Beware that when re-running the application several times, there may be several occurrences of "Admin password". In that case you should use the last occurrence.

If I understand your comment correctly the actual behavior is the opposite of the documentation?

ptrovatelli commented 5 years ago

@lucasluitjes you have a good point :) . I have updated the doc in the (unrelated) PR https://github.com/DefectDojo/django-DefectDojo/pull/1445