· 7 years ago · May 21, 2018, 03:58 AM
1docker-compose up   10:52  88% (0:15) 
2Creating network "asofarma-django_db_network" with driver "bridge"
3Creating network "asofarma-django_nginx_network" with driver "bridge"
4Creating asofarma-django_db_1 ... done
5Creating asofarma-django_webapp_1 ... done
6Creating asofarma-django_nginx_1 ... done
7Attaching to asofarma-django_db_1, asofarma-django_webapp_1, asofarma-django_nginx_1
8db_1 | 2018-05-21 03:52:56.516 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
9db_1 | 2018-05-21 03:52:56.516 UTC [1] LOG: listening on IPv6 address "::", port 5432
10db_1 | 2018-05-21 03:52:56.722 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
11webapp_1 | [2018-05-21 03:52:59 +0000] [1] [INFO] Starting gunicorn 19.8.1
12db_1 | 2018-05-21 03:52:57.391 UTC [26] LOG: database system was interrupted; last known up at 2018-05-21 03:50:23 UTC
13webapp_1 | [2018-05-21 03:52:59 +0000] [1] [INFO] Listening at: http://0.0.0.0:8000 (1)
14db_1 | 2018-05-21 03:53:01.185 UTC [26] LOG: database system was not properly shut down; automatic recovery in progress
15webapp_1 | [2018-05-21 03:52:59 +0000] [1] [INFO] Using worker: sync
16db_1 | 2018-05-21 03:53:01.235 UTC [26] LOG: invalid record length at 0/1723550: wanted 24, got 0
17db_1 | 2018-05-21 03:53:01.235 UTC [26] LOG: redo is not required
18db_1 | 2018-05-21 03:53:01.932 UTC [1] LOG: database system is ready to accept connections
19webapp_1 | [2018-05-21 03:52:59 +0000] [10] [INFO] Booting worker with pid: 10
20webapp_1 | [2018-05-21 03:52:59 +0000] [11] [INFO] Booting worker with pid: 11
21nginx_1 | [2018-05-21 03:53:02 +0000] [1] [INFO] Starting gunicorn 19.8.1
22nginx_1 | [2018-05-21 03:53:02 +0000] [1] [INFO] Listening at: http://0.0.0.0:8000 (1)
23nginx_1 | [2018-05-21 03:53:02 +0000] [1] [INFO] Using worker: sync
24nginx_1 | [2018-05-21 03:53:02 +0000] [10] [INFO] Booting worker with pid: 10
25nginx_1 | [2018-05-21 03:53:02 +0000] [11] [INFO] Booting worker with pid: 11
26nginx_1 | [2018-05-21 03:53:03 +0000] [10] [ERROR] Exception in worker process
27nginx_1 | Traceback (most recent call last):
28nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
29nginx_1 | worker.init_process()
30nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/base.py", line 129, in init_process
31nginx_1 | self.load_wsgi()
32nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
33nginx_1 | self.wsgi = self.app.wsgi()
34nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
35nginx_1 | self.callable = self.load()
36nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
37nginx_1 | return self.load_wsgiapp()
38nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
39nginx_1 | return util.import_app(self.app_uri)
40nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/util.py", line 350, in import_app
41nginx_1 | __import__(module)
42nginx_1 | File "/opt/services/webapp/src/asofarma/wsgi.py", line 16, in <module>
43nginx_1 | application = get_wsgi_application()
44nginx_1 | File "/usr/local/lib/python3.6/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
45nginx_1 | django.setup(set_prefix=False)
46nginx_1 | File "/usr/local/lib/python3.6/site-packages/django/__init__.py", line 19, in setup
47nginx_1 | configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
48nginx_1 | File "/usr/local/lib/python3.6/site-packages/django/conf/__init__.py", line 56, in __getattr__
49nginx_1 | self._setup(name)
50nginx_1 | File "/usr/local/lib/python3.6/site-packages/django/conf/__init__.py", line 43, in _setup
51nginx_1 | self._wrapped = Settings(settings_module)
52nginx_1 | File "/usr/local/lib/python3.6/site-packages/django/conf/__init__.py", line 125, in __init__
53nginx_1 | raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
54nginx_1 | django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
55nginx_1 | [2018-05-21 03:53:03 +0000] [10] [INFO] Worker exiting (pid: 10)
56nginx_1 | [2018-05-21 03:53:03 +0000] [11] [ERROR] Exception in worker process
57nginx_1 | Traceback (most recent call last):
58nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
59nginx_1 | worker.init_process()
60nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/base.py", line 129, in init_process
61nginx_1 | self.load_wsgi()
62nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
63nginx_1 | self.wsgi = self.app.wsgi()
64nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
65nginx_1 | self.callable = self.load()
66nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
67nginx_1 | return self.load_wsgiapp()
68nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
69nginx_1 | return util.import_app(self.app_uri)
70nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/util.py", line 350, in import_app
71nginx_1 | __import__(module)
72nginx_1 | File "/opt/services/webapp/src/asofarma/wsgi.py", line 16, in <module>
73nginx_1 | application = get_wsgi_application()
74nginx_1 | File "/usr/local/lib/python3.6/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
75nginx_1 | django.setup(set_prefix=False)
76nginx_1 | File "/usr/local/lib/python3.6/site-packages/django/__init__.py", line 19, in setup
77nginx_1 | configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
78nginx_1 | File "/usr/local/lib/python3.6/site-packages/django/conf/__init__.py", line 56, in __getattr__
79nginx_1 | self._setup(name)
80nginx_1 | File "/usr/local/lib/python3.6/site-packages/django/conf/__init__.py", line 43, in _setup
81nginx_1 | self._wrapped = Settings(settings_module)
82nginx_1 | File "/usr/local/lib/python3.6/site-packages/django/conf/__init__.py", line 125, in __init__
83nginx_1 | raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
84nginx_1 | django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
85nginx_1 | [2018-05-21 03:53:03 +0000] [11] [INFO] Worker exiting (pid: 11)
86nginx_1 | Traceback (most recent call last):
87nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 210, in run
88nginx_1 | self.sleep()
89nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 360, in sleep
90nginx_1 | ready = select.select([self.PIPE[0]], [], [], 1.0)
91nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 245, in handle_chld
92nginx_1 | self.reap_workers()
93nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
94nginx_1 | raise HaltServer(reason, self.WORKER_BOOT_ERROR)
95nginx_1 | gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
96nginx_1 |
97nginx_1 | During handling of the above exception, another exception occurred:
98nginx_1 |
99nginx_1 | Traceback (most recent call last):
100nginx_1 | File "/usr/local/bin/gunicorn", line 11, in <module>
101nginx_1 | sys.exit(run())
102nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 61, in run
103nginx_1 | WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
104nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/app/base.py", line 223, in run
105nginx_1 | super(Application, self).run()
106nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/app/base.py", line 72, in run
107nginx_1 | Arbiter(self).run()
108nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 232, in run
109nginx_1 | self.halt(reason=inst.reason, exit_status=inst.exit_status)
110nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 345, in halt
111nginx_1 | self.stop()
112nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 393, in stop
113nginx_1 | time.sleep(0.1)
114nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 245, in handle_chld
115nginx_1 | self.reap_workers()
116nginx_1 | File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
117nginx_1 | raise HaltServer(reason, self.WORKER_BOOT_ERROR)
118nginx_1 | gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
119asofarma-django_nginx_1 exited with code 1