Closed videlanicolas closed 7 years ago
With the latest merge, the docker-compose up works until this point:
lemur-web_1 | Waiting for db to become available
lemur-web_1 | Attempt to connect to db.. try #1
lemur-web_1 | psql: could not connect to server: Connection refused
lemur-web_1 | Is the server running on host "postgres" (172.17.0.3) and accepting
lemur-web_1 | TCP/IP connections on port 5432?
lemur-web_1 | Attempt to connect to db.. try #2
lemur-web_1 | ?column?
lemur-web_1 | ----------
lemur-web_1 | 1
lemur-web_1 | (1 row)
lemur-web_1 |
lemur-web_1 | db ready!
lemur-web_1 |
lemur-web_1 | Creating lemurdb...
lemur-web_1 | CREATE DATABASE
lemur-web_1 | Creating the lemur user...
lemur-web_1 | CREATE ROLE
lemur-web_1 | Changing postgres password...
lemur-web_1 | GRANT
lemur-web_1 | Done changing postgres password...
lemur-web_1 | DONE CREATING lemurdb...
lemur-web_1 | Plugin 'ACMEIssuerPlugin' may not work correctly. Required variable 'ACME_DIRECTORY_URL' is not set in Lemur's conf.
lemur-web_1 | Plugin 'DigiCertCISIssuerPlugin' may not work correctly. Required variable 'DIGICERT_CIS_API_KEY' is not set in Lemur's conf.
lemur-web_1 | Plugin 'DigiCertIssuerPlugin' may not work correctly. Required variable 'DIGICERT_API_KEY' is not set in Lemur's conf.
lemur-web_1 | INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
lemur-web_1 | INFO [alembic.runtime.migration] Will assume transactional DDL.
lemur-web_1 | INFO [alembic.runtime.migration] Running stamp_revision -> 5e680529b666
lemur-web_1 | [+] Created 'admin' role
lemur-web_1 | [+] Created 'operator' role
lemur-web_1 | [+] Created 'read-only' role
lemur-web_1 | [+] Created the user 'lemur' and granted it the 'admin' role!
lemur-web_1 | [+] Creating expiration email notifications!
lemur-web_1 | [!] Using LEMUR_SECURITY_TEAM_EMAIL as specified by LEMUR_SECURITY_TEAM_EMAIL for notifications
lemur-web_1 | [!] Creating 3 notifications for 30,15,2 days as specified by LEMUR_DEFAULT_EXPIRATION_NOTIFICATION_INTERVALS
lemur-web_1 | [/] Done!
lemur-web_1 | Plugin 'DigiCertCISIssuerPlugin' may not work correctly. Required variable 'DIGICERT_CIS_API_KEY' is not set in Lemur's conf.
lemur-web_1 | Plugin 'DigiCertIssuerPlugin' may not work correctly. Required variable 'DIGICERT_API_KEY' is not set in Lemur's conf.
lemur-web_1 | Plugin 'ACMEIssuerPlugin' may not work correctly. Required variable 'ACME_DIRECTORY_URL' is not set in Lemur's conf.
lemur-web_1 | Traceback (most recent call last):
lemur-web_1 | File "manage.py", line 538, in <module>
lemur-web_1 | main()
lemur-web_1 | File "manage.py", line 534, in main
lemur-web_1 | manager.run()
lemur-web_1 | File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/flask_script/__init__.py", line 412, in run
lemur-web_1 | result = self.handle(sys.argv[0], sys.argv[1:])
lemur-web_1 | File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/flask_script/__init__.py", line 383, in handle
lemur-web_1 | res = handle(*args, **config)
lemur-web_1 | File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/flask_script/commands.py", line 216, in __call__
lemur-web_1 | return self.run(*args, **kwargs)
lemur-web_1 | File "manage.py", line 369, in run
lemur-web_1 | validate_conf(current_app, REQUIRED_VARIABLES)
lemur-web_1 | File "/usr/local/src/lemur/lemur/common/utils.py", line 102, in validate_conf
lemur-web_1 | raise InvalidConfiguration("Required variable '{var}' is not set in Lemur's conf.".format(var=var))
lemur-web_1 | lemur.exceptions.InvalidConfiguration: Required variable 'LEMUR_SECURITY_TEAM_EMAIL' is not set in Lemur's conf.
lemur-web_1 | Waiting for db to become available
lemur-web_1 | Attempt to connect to db.. try #1
lemur-web_1 | ?column?
lemur-web_1 | ----------
lemur-web_1 | 1
lemur-web_1 | (1 row)
lemur-web_1 |
lemur-web_1 | db ready!
lemur-web_1 |
lemur-web_1 | Creating lemurdb...
postgres_1 | ERROR: database "lemur" already exists
postgres_1 | STATEMENT: CREATE DATABASE lemur;
lemur-web_1 | ERROR: database "lemur" already exists
lemur-web_1 | Creating the lemur user...
postgres_1 | ERROR: role "lemur" already exists
postgres_1 | STATEMENT: CREATE USER lemur WITH PASSWORD 'lemur';
lemur-web_1 | ERROR: role "lemur" already exists
lemur-web_1 | Changing postgres password...
lemur-web_1 | GRANT
lemur-web_1 | Done changing postgres password...
lemur-web_1 | DONE CREATING lemurdb...
lemur-web_1 | Plugin 'DigiCertCISIssuerPlugin' may not work correctly. Required variable 'DIGICERT_CIS_API_KEY' is not set in Lemur's conf.
lemur-web_1 | Plugin 'DigiCertIssuerPlugin' may not work correctly. Required variable 'DIGICERT_API_KEY' is not set in Lemur's conf.
lemur-web_1 | Plugin 'ACMEIssuerPlugin' may not work correctly. Required variable 'ACME_DIRECTORY_URL' is not set in Lemur's conf.
lemur-web_1 | INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
lemur-web_1 | INFO [alembic.runtime.migration] Will assume transactional DDL.
lemur-web_1 | [-] Admin role already created, skipping...!
lemur-web_1 | [-] Operator role already created, skipping...!
lemur-web_1 | [-] Operator role already created, skipping...!
lemur-web_1 | [-] Default user has already been created, skipping...!
lemur-web_1 | [+] Creating expiration email notifications!
lemur-web_1 | [!] Using LEMUR_SECURITY_TEAM_EMAIL as specified by LEMUR_SECURITY_TEAM_EMAIL for notifications
lemur-web_1 | [!] Creating 3 notifications for 30,15,2 days as specified by LEMUR_DEFAULT_EXPIRATION_NOTIFICATION_INTERVALS
lemur-web_1 | [/] Done!
lemur-web_1 | Plugin 'DigiCertIssuerPlugin' may not work correctly. Required variable 'DIGICERT_API_KEY' is not set in Lemur's conf.
lemur-web_1 | Plugin 'DigiCertCISIssuerPlugin' may not work correctly. Required variable 'DIGICERT_CIS_API_KEY' is not set in Lemur's conf.
lemur-web_1 | Plugin 'ACMEIssuerPlugin' may not work correctly. Required variable 'ACME_DIRECTORY_URL' is not set in Lemur's conf.
lemur-web_1 | Traceback (most recent call last):
lemur-web_1 | File "manage.py", line 538, in <module>
lemur-web_1 | main()
lemur-web_1 | File "manage.py", line 534, in main
lemur-web_1 | manager.run()
lemur-web_1 | File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/flask_script/__init__.py", line 412, in run
lemur-web_1 | result = self.handle(sys.argv[0], sys.argv[1:])
lemur-web_1 | File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/flask_script/__init__.py", line 383, in handle
lemur-web_1 | res = handle(*args, **config)
lemur-web_1 | File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/flask_script/commands.py", line 216, in __call__
lemur-web_1 | return self.run(*args, **kwargs)
lemur-web_1 | File "manage.py", line 369, in run
lemur-web_1 | validate_conf(current_app, REQUIRED_VARIABLES)
lemur-web_1 | File "/usr/local/src/lemur/lemur/common/utils.py", line 102, in validate_conf
lemur-web_1 | raise InvalidConfiguration("Required variable '{var}' is not set in Lemur's conf.".format(var=var))
lemur-web_1 | lemur.exceptions.InvalidConfiguration: Required variable 'LEMUR_SECURITY_TEAM_EMAIL' is not set in Lemur's conf.
postgres_1 | ERROR: database "lemur" already exists
postgres_1 | STATEMENT: CREATE DATABASE lemur;
postgres_1 | ERROR: role "lemur" already exists
postgres_1 | STATEMENT: CREATE USER lemur WITH PASSWORD 'lemur';
postgres_1 | ERROR: database "lemur" already exists
postgres_1 | STATEMENT: CREATE DATABASE lemur;
postgres_1 | ERROR: role "lemur" already exists
postgres_1 | STATEMENT: CREATE USER lemur WITH PASSWORD 'lemur';
postgres_1 | ERROR: database "lemur" already exists
postgres_1 | STATEMENT: CREATE DATABASE lemur;
postgres_1 | ERROR: role "lemur" already exists
postgres_1 | STATEMENT: CREATE USER lemur WITH PASSWORD 'lemur';
postgres_1 | ERROR: database "lemur" already exists
postgres_1 | STATEMENT: CREATE DATABASE lemur;
postgres_1 | ERROR: role "lemur" already exists
postgres_1 | STATEMENT: CREATE USER lemur WITH PASSWORD 'lemur';
postgres_1 | ERROR: database "lemur" already exists
postgres_1 | STATEMENT: CREATE DATABASE lemur;
postgres_1 | ERROR: role "lemur" already exists
postgres_1 | STATEMENT: CREATE USER lemur WITH PASSWORD 'lemur';
postgres_1 | ERROR: database "lemur" already exists
postgres_1 | STATEMENT: CREATE DATABASE lemur;
postgres_1 | ERROR: role "lemur" already exists
postgres_1 | STATEMENT: CREATE USER lemur WITH PASSWORD 'lemur';
postgres_1 | ERROR: database "lemur" already exists
postgres_1 | STATEMENT: CREATE DATABASE lemur;
postgres_1 | ERROR: role "lemur" already exists
postgres_1 | STATEMENT: CREATE USER lemur WITH PASSWORD 'lemur';
postgres_1 | ERROR: database "lemur" already exists
postgres_1 | STATEMENT: CREATE DATABASE lemur;
postgres_1 | ERROR: role "lemur" already exists
postgres_1 | STATEMENT: CREATE USER lemur WITH PASSWORD 'lemur';
postgres_1 | ERROR: database "lemur" already exists
postgres_1 | STATEMENT: CREATE DATABASE lemur;
postgres_1 | ERROR: role "lemur" already exists
postgres_1 | STATEMENT: CREATE USER lemur WITH PASSWORD 'lemur';
postgres_1 | ERROR: database "lemur" already exists
postgres_1 | STATEMENT: CREATE DATABASE lemur;
postgres_1 | ERROR: role "lemur" already exists
postgres_1 | STATEMENT: CREATE USER lemur WITH PASSWORD 'lemur';
For some reason it gets stuck at creating the user and database.
yep, i'm experiencing the same database/user create issue.
i was able to get past this issue by setting the required variables just as they are defined in the tests https://github.com/Netflix/lemur/blob/cf6ad94509dfeb038416c76430162587ff58109c/lemur/tests/conf.py
Does it help if you docker-compose down
to destroy everything, then docker-compose up
to start anew?
Thanks, @mxk1235 I've pushed up a change to help with initial startup.
When building the container, docker-compose throws an error with your Dockerfile:
The command failing is the following:
make develop
Same issue appears if I try only to make.