Getting error on installation

407 views
Skip to first unread message

Geo PC

unread,
Nov 10, 2015, 7:11:16 AM11/10/15
to confidant-users
We followed manual installation instructions from this url: http://lyft.github.io/confidant/basics/install/

When we run this command "gunicorn wsgi:app --workers=2 -k gevent" we are getting error as:

(venv)root@confidant:/srv/confidant# gunicorn wsgi:app --workers=2 -k gevent
[2015-11-10 07:02:37 +0000] [23339] [INFO] Starting gunicorn 19.3.0
[2015-11-10 07:02:37 +0000] [23339] [INFO] Listening at: http://127.0.0.1:8000 (23339)
[2015-11-10 07:02:37 +0000] [23339] [INFO] Using worker: gevent
[2015-11-10 07:02:37 +0000] [23344] [INFO] Booting worker with pid: 23344
[2015-11-10 07:02:37 +0000] [23344] [ERROR] Exception in worker process:
Traceback (most recent call last):
  File "/srv/confidant/venv/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker
    worker.init_process()
  File "/srv/confidant/venv/local/lib/python2.7/site-packages/gunicorn/workers/ggevent.py", line 192, in init_process
    super(GeventWorker, self).init_process()
  File "/srv/confidant/venv/local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 118, in init_process
    self.wsgi = self.app.wsgi()
  File "/srv/confidant/venv/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
    self.callable = self.load()
  File "/srv/confidant/venv/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 65, in load
    return self.load_wsgiapp()
  File "/srv/confidant/venv/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
    return util.import_app(self.app_uri)
  File "/srv/confidant/venv/local/lib/python2.7/site-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 1, in <module>
    import boto3
  File "/srv/confidant/venv/local/lib/python2.7/site-packages/boto3/__init__.py", line 16, in <module>
    from boto3.session import Session
  File "/srv/confidant/venv/local/lib/python2.7/site-packages/boto3/session.py", line 16, in <module>
    import botocore.session
ImportError: No module named botocore.session
..............
[2015-11-10 07:02:37 +0000] [23344] [INFO] Worker exiting (pid: 23344)
Traceback (most recent call last):
  File "/srv/confidant/venv/bin/gunicorn", line 11, in <module>
    sys.exit(run())
  File "/srv/confidant/venv/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 74, in run
    WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
  File "/srv/confidant/venv/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 189, in run
    super(Application, self).run()
  File "/srv/confidant/venv/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 72, in run
    Arbiter(self).run()
  File "/srv/confidant/venv/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 174, in run
    self.manage_workers()
  File "/srv/confidant/venv/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 477, in manage_workers
    self.spawn_workers()
  File "/srv/confidant/venv/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 541, in spawn_workers
    time.sleep(0.1 * random.random())
  File "/srv/confidant/venv/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 214, in handle_chld
    self.reap_workers()
  File "/srv/confidant/venv/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 459, in reap_workers
    raise HaltServer(reason, self.WORKER_BOOT_ERROR)
gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>



Please see our my_config:

# The region our service is running in.
export AWS_DEFAULT_REGION='us-east-1'
# The IAM role name of the confidant server.
#export AUTH_CONTEXT='confidant-production'
# The KMS key used for auth.
#export AUTH_KEY='authnz-production'
# A long randomly generated string used for the google OAuth2 flow.
export AUTHOMATIC_SALT='H39bfLCqLbrYrFyiJIxkK0uf12rlzvgjgo9FqOnttPXIdAAuyQ'
# The DynamoDB table name for storage.
export DYNAMODB_TABLE='confidant-production'
# Set the gevent resolver to ares; see:
#   https://github.com/surfly/gevent/issues/468
export GEVENT_RESOLVER='ares'
# The client id and consumer secret from the google developer console.
export GOOGLE_OAUTH_CLIENT_ID='<Our Value>'
export GOOGLE_OAUTH_CONSUMER_SECRET='<Our Value>'
# The KMS key used for at-rest encryption in DynamoDB.
#export KMS_MASTER_KEY='confidant-production'
# The Redis server used for sessions.
export REDIS_URL='redis://localhost:6381'
# A long randomly generated string for CSRF protection.
export SESSION_SECRET='aBVmJA3zv6zWGjrYto135hkdox6mW2kOu7UaXIHK8ztJvT8w5O'



Can anyone please help us to install Confidant.

Thanks
Geo

Ryan Lane

unread,
Nov 10, 2015, 2:09:32 PM11/10/15
to confidant-users
Seems I only tested the docs well enough for docker. The Ubuntu docker image has requests installed, which hid this error from me. I've fixed this issue in https://github.com/lyft/confidant/pull/37. If you use the latest master things should work correctly.

I'm going to spend some time soon to get the unit tests running in travis so that we can catch some of the more obvious issues like this.

- Ryan

Geo P.C.

unread,
Nov 11, 2015, 12:16:07 AM11/11/15
to Ryan Lane, confidant-users
Thanks Ryan

We again done same manual steps by cloning latest repository on another machine but getting the same error.

We are doing in an Ubuntu 14.04 machine that hosted in our Dedicated server (Not an Amazon AWS Server)

For checking confidant we also tried through Docker we done the following steps:

Installed docker apt-get installed docker-engine

docker pull lyft/confidant

vi /root/my_config

# The region our service is running in.
export AWS_DEFAULT_REGION='us-east-1'
# The IAM role name of the confidant server.
export AUTH_CONTEXT='confidant-production'
# The KMS key used for auth.
export AUTH_KEY='authnz-production'
# A long randomly generated string used for the google OAuth2 flow.
export AUTHOMATIC_SALT='H39bfLCqLbrYrFyiJIxkK0uf12rlzvgjgo9FqOnttPXIdAAuyQ'
# The DynamoDB table name for storage.
export DYNAMODB_TABLE='confidant-production'
# Set the gevent resolver to ares; see:
#   https://github.com/surfly/gevent/issues/468
#export GEVENT_RESOLVER='ares'

# The client id and consumer secret from the google developer console.
export GOOGLE_OAUTH_CLIENT_ID='<Our value>'
export GOOGLE_OAUTH_CONSUMER_SECRET='<Our value>'

# The KMS key used for at-rest encryption in DynamoDB.
#export KMS_MASTER_KEY='confidant-production'
# The Redis server used for sessions.
export REDIS_URL='redis://localhost:6381'
# A long randomly generated string for CSRF protection.
export SESSION_SECRET='aBVmJA3zv6zWGjrYto135hkdox6mW2kOu7UaXIHK8ztJvT8w5O'


When the run the command to run we are getting the follwing error:

root@confidant:~# docker run -t lyft/confidant --env-file /root/my_config
exec: "--env-file": executable file not found in $PATH
Error response from daemon: Cannot start container 81728fac606bc67d5f7dfb0c0a8c5632542a462beaacca465268b80dae8ade77: [8] System error: exec: "--env-file": executable file not found in $PATH


We are new to docker please let me know anything need to configure for environment variable? Can you please help us.

Thanks
Geo




--
You received this message because you are subscribed to a topic in the Google Groups "confidant-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confidant-users/plqowo6L5I8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to confidant-use...@googlegroups.com.
To post to this group, send email to confida...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confidant-users/eedc1dca-d430-446e-a462-8d886358bd70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ryan Lane

unread,
Nov 11, 2015, 1:35:07 AM11/11/15
to confidant-users, rl...@lyft.com
Can you tell me how the virtualenv instructions failed this time? I just tested it against master following the instructions and it worked without issue. I updated requirements.txt, so you'll need to ensure you re-run the following step in your virtualenv: pip install -r requirements.txt

As for the docker instructions, a couple things:

1. The docs were slightly off. I've updated them, but the arguments to the docker run command were out of order. It should be:

docker run --env-file /root/my_config -t lyft/confidant

2. If you're using docker, you have to change the formatting of your environment file, since docker environment file format is slightly different than bash. I've added some docs on how the formatting is different. Please see: http://lyft.github.io/confidant/basics/configuration/#docker-vs-bash

- Ryan
To unsubscribe from this group and all its topics, send an email to confidant-users+unsubscribe@googlegroups.com.
To post to this group, send email to confidant-users@googlegroups.com.

Geo P.C.

unread,
Nov 11, 2015, 7:59:36 AM11/11/15
to Ryan Lane, confidant-users

We tried and is now able to run. But while accessing we are getting an Internal Server Error.

root@confidant:~# docker run --env-file /root/my_config -t lyft/confidant
[2015-11-11 12:22:34 +0000] [1] [INFO] Starting gunicorn 19.3.0
[2015-11-11 12:22:34 +0000] [1] [INFO] Listening at: http://0.0.0.0:80 (1)
[2015-11-11 12:22:34 +0000] [1] [INFO] Using worker: gevent
[2015-11-11 12:22:34 +0000] [12] [INFO] Booting worker with pid: 12
[2015-11-11 12:22:34 +0000] [15] [INFO] Booting worker with pid: 15
172.17.0.1 - - [11/Nov/2015:12:24:01 +0000] "GET / HTTP/1.1" 500 291 "-" "Wget/1.15 (linux-gnu)"


root@confidant:~# wget http://172.17.0.2
--2015-11-11 07:52:09--  http://172.17.0.2/
Connecting to 172.17.0.2:80... connected.
HTTP request sent, awaiting response... 500 INTERNAL SERVER ERROR
2015-11-11 07:52:09 ERROR 500: INTERNAL SERVER ERROR.
Note: IP of Docker is 172.17.0.2


We also tried it by running as  follows:

root@confidant:~docker run -p 80:80 --env-file /root/my_config -t lyft/confidant
[2015-11-11 12:53:11 +0000] [1] [INFO] Starting gunicorn 19.3.0
[2015-11-11 12:53:11 +0000] [1] [INFO] Listening at: http://0.0.0.0:80 (1)
[2015-11-11 12:53:11 +0000] [1] [INFO] Using worker: gevent
[2015-11-11 12:53:11 +0000] [11] [INFO] Booting worker with pid: 11
[2015-11-11 12:53:11 +0000] [14] [INFO] Booting worker with pid: 14
118.257.190.135 - - [11/Nov/2015:12:53:18 +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"


Then when accessing server where we installed docker also getting the following error:

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.


Can you please help me.



To unsubscribe from this group and all its topics, send an email to confidant-use...@googlegroups.com.
To post to this group, send email to confida...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "confidant-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confidant-users/plqowo6L5I8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to confidant-use...@googlegroups.com.
To post to this group, send email to confida...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confidant-users/5499b93a-6f4a-429b-bce7-98f9d46dc900%40googlegroups.com.

Geo P.C.

unread,
Nov 11, 2015, 7:59:53 AM11/11/15
to Ryan Lane, confidant-users
To unsubscribe from this group and all its topics, send an email to confidant-use...@googlegroups.com.
To post to this group, send email to confida...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "confidant-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confidant-users/plqowo6L5I8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to confidant-use...@googlegroups.com.
To post to this group, send email to confida...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confidant-users/5499b93a-6f4a-429b-bce7-98f9d46dc900%40googlegroups.com.

Ryan Lane

unread,
Nov 11, 2015, 6:28:41 PM11/11/15
to confidant-users, rl...@lyft.com
Hey, sorry you're running into so much trouble! I've just pushed a newer image into docker for confidant. It fixes some logging so that you can more easily see stacktraces and error logs. Can you do a pull of lyft/confidant, run it again and see where it's failing?
To unsubscribe from this group and all its topics, send an email to confidant-users+unsubscribe@googlegroups.com.
To post to this group, send email to confidant-users@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "confidant-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confidant-users/plqowo6L5I8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to confidant-users+unsubscribe@googlegroups.com.
To post to this group, send email to confidant-users@googlegroups.com.

Geo P.C.

unread,
Nov 11, 2015, 11:56:16 PM11/11/15
to Ryan Lane, confidant-users
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

# Set the gevent resolver to ares; see:
#   https://github.com/surfly/gevent/issues/468
GEVENT_RESOLVER=ares'

# The client id and consumer secret from the google developer console.
GOOGLE_OAUTH_CLIENT_ID=14646461-562mprj049a3k03je0ak07glh3nb9frk.apps.googleusercontent.com
GOOGLE_OAUTH_CONSUMER_SECRET=nOgbhkbkbkbkk69UHwQFhiN

# 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





Thanks & Regards
Geo P.C.
http://pcgeo.blogspot.in/

To unsubscribe from this group and all its topics, send an email to confidant-use...@googlegroups.com.
To post to this group, send email to confida...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "confidant-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confidant-users/plqowo6L5I8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to confidant-use...@googlegroups.com.
To post to this group, send email to confida...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "confidant-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confidant-users/plqowo6L5I8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to confidant-use...@googlegroups.com.
To post to this group, send email to confida...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confidant-users/297475e5-b893-481d-b48a-f74e0b5ed28b%40googlegroups.com.

Ryan Lane

unread,
Nov 12, 2015, 12:03:40 AM11/12/15
to confidant-users, rl...@lyft.com
You have a typo:

GEVENT_RESOLVER=ares'

It should be:

GEVENT_RESOLVER=ares

Also, it seems you posted your google secret accidentally, you should probably rotate that now!
To unsubscribe from this group and all its topics, send an email to confidant-users+unsubscribe@googlegroups.com.
To post to this group, send email to confidant-users@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "confidant-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confidant-users/plqowo6L5I8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to confidant-users+unsubscribe@googlegroups.com.
To post to this group, send email to confidant-users@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "confidant-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confidant-users/plqowo6L5I8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to confidant-users+unsubscribe@googlegroups.com.
To post to this group, send email to confidant-users@googlegroups.com.

Geo P.C.

unread,
Nov 12, 2015, 12:31:07 AM11/12/15
to Ryan Lane, confidant-users
Thanks regenerated Google client id and secret. Corrected it and able to start but still getting Internal Server Error.

Please let me know we can simply install Docker in our Physical Box and that is with out AWS.

Also in environment variable we created as per the following assumptions can you please check it:


# The region our service is running in.
AWS_DEFAULT_REGION=us-east-1  (Provided a sample value)
# The IAM role name of the confidant server.
AUTH_CONTEXT=confidant-production (Provided a sample value)

# The KMS key used for auth.
AUTH_KEY=authnz-production (Provided a sample value)

# A long randomly generated string used for the google OAuth2 flow.
AUTHOMATIC_SALT=H39bfLCqLbrYrFyiJIxkK0uf12rlzvgjgo9FqOnttPXIdAAuyQ (Provided sample value copied from confidant site)

# The DynamoDB table name for storage.
DYNAMODB_TABLE=confidant-production (Provided a sample value)
# Set the gevent resolver to ares; see:
#   https://github.com/surfly/gevent/issues/468
GEVENT_RESOLVER=ares
# The client id and consumer secret from the google developer console.
GOOGLE_OAUTH_CLIENT_ID=<Our Id> (From google created it)
GOOGLE_OAUTH_CONSUMER_SECRET=<Our key> (From google created it)

# 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 (Provided sample value copied from confidant site)

# A long randomly generated string for CSRF protection.
SESSION_SECRET=aBVmJA3zv6zWGjrYto135hkdox6mW2kOu7UaXIHK8ztJvT8w5O (Provided sample value copied from confidant site)

# The IP address to listen on.
HOST=0.0.0.0
# The port to listen on.
PORT=80




Also one more thing we noted is with following configuring only its gives Internal Server Error:

AWS_DEFAULT_REGION=us-east-1
HOST=0.0.0.0
PORT=80



Can you please help me. Also please let me know when we up confidant and then we can configure AWS right?

Skype: geopcgeo


To unsubscribe from this group and all its topics, send an email to confidant-use...@googlegroups.com.
To post to this group, send email to confida...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "confidant-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confidant-users/plqowo6L5I8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to confidant-use...@googlegroups.com.
To post to this group, send email to confida...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "confidant-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confidant-users/plqowo6L5I8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to confidant-use...@googlegroups.com.
To post to this group, send email to confida...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "confidant-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confidant-users/plqowo6L5I8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to confidant-use...@googlegroups.com.
To post to this group, send email to confida...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confidant-users/75133a5b-6eb4-423a-89ed-c77771f26211%40googlegroups.com.

Ryan Lane

unread,
Nov 12, 2015, 2:04:21 AM11/12/15
to confidant-users, rl...@lyft.com
For anyone that was having a similar problem, I chatted with Geo and we enabled the debug logs, which gave us stacktraces. It turns out that confidant couldn't connect to redis. Geo was just trying to try out Confidant, so we switched him to the quickstart:


Skype: geopcgeo


To unsubscribe from this group and all its topics, send an email to confidant-users+unsubscribe@googlegroups.com.
To post to this group, send email to confidant-users@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "confidant-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confidant-users/plqowo6L5I8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to confidant-users+unsubscribe@googlegroups.com.
To post to this group, send email to confidant-users@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "confidant-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confidant-users/plqowo6L5I8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to confidant-users+unsubscribe@googlegroups.com.
To post to this group, send email to confidant-users@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "confidant-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confidant-users/plqowo6L5I8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to confidant-users+unsubscribe@googlegroups.com.
To post to this group, send email to confidant-users@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages