We deleted docker image and done new installation again but still getting the same error. Please see the error log:
root@confidant:~# docker run -p 80:80 --env-file my_config -t lyft/confidant
[2015-11-12 04:12:36 +0000] [1] [INFO] Starting gunicorn 19.3.0
[2015-11-12 04:12:36 +0000] [1] [INFO] Listening at: http://0.0.0.0:80 (1)
[2015-11-12 04:12:36 +0000] [1] [INFO] Using worker: gevent
[2015-11-12 04:12:36 +0000] [11] [INFO] Booting worker with pid: 11
[2015-11-12 04:12:36 +0000] [14] [INFO] Booting worker with pid: 14
108.237.190.154 - - [12/Nov/2015:04:12:47 +0000] "GET / HTTP/1.1" 500 291 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36"
108.237.190.154 - - [12/Nov/2015:04:12:48 +0000] "GET /favicon.ico HTTP/1.1" 500 291 "http://107.170.156.26/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36"In my_config file when we enable GEVENT_RESOLVER as follows its not stating and getting error:
# The region our service is running in.
AWS_DEFAULT_REGION=us-east-1
# The IAM role name of the confidant server.
AUTH_CONTEXT=confidant-production
# The KMS key used for auth.
AUTH_KEY=authnz-production
# A long randomly generated string used for the google OAuth2 flow.
AUTHOMATIC_SALT=H39bfLCqLbrYrFyiJIxkK0uf12rlzvgjgo9FqOnttPXIdAAuyQ
# The DynamoDB table name for storage.
DYNAMODB_TABLE=confidant-production
# The client id and consumer secret from the google developer console.
# The KMS key used for at-rest encryption in DynamoDB.
#export KMS_MASTER_KEY='confidant-production'
# The Redis server used for sessions.
REDIS_URL=redis://localhost:6381
# A long randomly generated string for CSRF protection.
SESSION_SECRET=aBVmJA3zv6zWGjrYto135hkdox6mW2kOu7UaXIHK8ztJvT8w5O
# The IP address to listen on.
HOST=0.0.0.0
# The port to listen on.
PORT=80
Error are as follows:
root@confidant:~docker run -p 80:80 --env-file my_config -t lyft/confidant
[2015-11-12 04:46:37 +0000] [1] [INFO] Starting gunicorn 19.3.0
[2015-11-12 04:46:37 +0000] [1] [INFO] Listening at: http://0.0.0.0:80 (1)
[2015-11-12 04:46:37 +0000] [1] [INFO] Using worker: gevent
[2015-11-12 04:46:37 +0000] [11] [INFO] Booting worker with pid: 11
[2015-11-12 04:46:37 +0000] [14] [INFO] Booting worker with pid: 14
[2015-11-12 04:46:37 +0000] [11] [ERROR] Exception in worker process:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 507, in spawn_worker
worker.init_process()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/ggevent.py", line 192, in init_process
super(GeventWorker, self).init_process()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 118, in init_process
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
return self.load_wsgiapp()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python2.7/dist-packages/gunicorn/util.py", line 355, in import_app
__import__(module)
File "/srv/confidant/wsgi.py", line 3, in <module>
from confidant import app, settings
File "/srv/confidant/confidant/__init__.py", line 40, in <module>
prefix='confidant'
File "/usr/local/lib/python2.7/dist-packages/statsd/client.py", line 138, in __init__
host, port, 0, socket.SOCK_DGRAM
File "/usr/local/lib/python2.7/dist-packages/gevent/socket.py", line 623, in getaddrinfo
return get_hub().resolver.getaddrinfo(host, port, family, socktype, proto, flags)
File "/usr/local/lib/python2.7/dist-packages/gevent/hub.py", line 428, in _get_resolver
self.resolver_class = _import(self.resolver_class)
File "/usr/local/lib/python2.7/dist-packages/gevent/hub.py", line 205, in _import
return _import(path[-1])
File "/usr/local/lib/python2.7/dist-packages/gevent/hub.py", line 209, in _import
raise ImportError("Cannot import %r (required format: [path/][package.]module.class)" % path)
ImportError: Cannot import "ares'" (required format: [path/][package.]module.class)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 507, in spawn_worker
worker.init_process()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/ggevent.py", line 192, in init_process
super(GeventWorker, self).init_process()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 118, in init_process
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
return self.load_wsgiapp()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python2.7/dist-packages/gunicorn/util.py", line 355, in import_app
__import__(module)
File "/srv/confidant/wsgi.py", line 3, in <module>
from confidant import app, settings
File "/srv/confidant/confidant/__init__.py", line 40, in <module>
prefix='confidant'
File "/usr/local/lib/python2.7/dist-packages/statsd/client.py", line 138, in __init__
host, port, 0, socket.SOCK_DGRAM
File "/usr/local/lib/python2.7/dist-packages/gevent/socket.py", line 623, in getaddrinfo
return get_hub().resolver.getaddrinfo(host, port, family, socktype, proto, flags)
File "/usr/local/lib/python2.7/dist-packages/gevent/hub.py", line 428, in _get_resolver
self.resolver_class = _import(self.resolver_class)
File "/usr/local/lib/python2.7/dist-packages/gevent/hub.py", line 205, in _import
return _import(path[-1])
File "/usr/local/lib/python2.7/dist-packages/gevent/hub.py", line 209, in _import
raise ImportError("Cannot import %r (required format: [path/][package.]module.class)" % path)
ImportError: Cannot import "ares'" (required format: [path/][package.]module.class)
[2015-11-12 04:46:37 +0000] [11] [INFO] Worker exiting (pid: 11)
[2015-11-12 04:46:37 +0000] [14] [ERROR] Exception in worker process:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 507, in spawn_worker
worker.init_process()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/ggevent.py", line 192, in init_process
super(GeventWorker, self).init_process()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 118, in init_process
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
return self.load_wsgiapp()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python2.7/dist-packages/gunicorn/util.py", line 355, in import_app
__import__(module)
File "/srv/confidant/wsgi.py", line 3, in <module>
from confidant import app, settings
File "/srv/confidant/confidant/__init__.py", line 40, in <module>
prefix='confidant'
File "/usr/local/lib/python2.7/dist-packages/statsd/client.py", line 138, in __init__
host, port, 0, socket.SOCK_DGRAM
File "/usr/local/lib/python2.7/dist-packages/gevent/socket.py", line 623, in getaddrinfo
return get_hub().resolver.getaddrinfo(host, port, family, socktype, proto, flags)
File "/usr/local/lib/python2.7/dist-packages/gevent/hub.py", line 428, in _get_resolver
self.resolver_class = _import(self.resolver_class)
File "/usr/local/lib/python2.7/dist-packages/gevent/hub.py", line 205, in _import
return _import(path[-1])
File "/usr/local/lib/python2.7/dist-packages/gevent/hub.py", line 209, in _import
raise ImportError("Cannot import %r (required format: [path/][package.]module.class)" % path)
ImportError: Cannot import "ares'" (required format: [path/][package.]module.class)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 507, in spawn_worker
worker.init_process()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/ggevent.py", line 192, in init_process
super(GeventWorker, self).init_process()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 118, in init_process
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
return self.load_wsgiapp()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python2.7/dist-packages/gunicorn/util.py", line 355, in import_app
__import__(module)
File "/srv/confidant/wsgi.py", line 3, in <module>
from confidant import app, settings
File "/srv/confidant/confidant/__init__.py", line 40, in <module>
prefix='confidant'
File "/usr/local/lib/python2.7/dist-packages/statsd/client.py", line 138, in __init__
host, port, 0, socket.SOCK_DGRAM
File "/usr/local/lib/python2.7/dist-packages/gevent/socket.py", line 623, in getaddrinfo
return get_hub().resolver.getaddrinfo(host, port, family, socktype, proto, flags)
File "/usr/local/lib/python2.7/dist-packages/gevent/hub.py", line 428, in _get_resolver
self.resolver_class = _import(self.resolver_class)
File "/usr/local/lib/python2.7/dist-packages/gevent/hub.py", line 205, in _import
return _import(path[-1])
File "/usr/local/lib/python2.7/dist-packages/gevent/hub.py", line 209, in _import
raise ImportError("Cannot import %r (required format: [path/][package.]module.class)" % path)
ImportError: Cannot import "ares'" (required format: [path/][package.]module.class)
Thanks