Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize with unreachable server #33

Open
rcmachado opened this issue Jan 17, 2013 · 0 comments
Open

Initialize with unreachable server #33

rcmachado opened this issue Jan 17, 2013 · 0 comments

Comments

@rcmachado
Copy link

When we specify an invalid server to connect, mongotor raises the following exception when initializing:

Traceback (most recent call last):¬
  2 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102034]   File "/data/sites/euatleta_api/virtualenv/bin/torneira", line 8, in <module>¬
  3 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102096]     load_entry_point('torneira==0.3.2', 'console_scripts', 'torneira')()¬
  4 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102131]   File "/data/sites/euatleta_api/virtualenv/lib/python2.7/site-packages/torneira/runner/__init__.py", line 23, in run¬
  5 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102163]     main.start()¬
  6 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102182]   File "/data/sites/euatleta_api/virtualenv/lib/python2.7/site-packages/torneira/runner/main.py", line 28, in start¬
  7 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102210]     exec("import %s as settings" % os.path.splitext(os.path.basename(options.settings_file))[0])¬
  8 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102230]   File "<string>", line 1, in <module>¬
  9 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102338]   File "/data/sites/euatleta_api/euatleta_api/api/settings.py", line 2, in <module>¬
 10 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102363]     from api.settings_base import *¬
 11 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102383]   File "/data/sites/euatleta_api/euatleta_api/api/../api/settings_base.py", line 2, in <module>¬
 12 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102408]     from core.settings import *¬
 13 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102427]   File "/data/sites/euatleta_api/virtualenv/lib/python2.7/site-packages/core/settings.py", line 36, in <module>¬
 14 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102456]     maxusage=300)¬
 15 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102475]   File "/data/sites/euatleta_api/virtualenv/lib/python2.7/site-packages/mongotor/database.py", line 133, in connect¬
 16 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102519]     database.init(addresses, dbname, read_preference, **kwargs)¬
 17 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102539]   File "/data/sites/euatleta_api/virtualenv/lib/python2.7/site-packages/mongotor/database.py", line 59, in init¬
 18 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102573]     node = Node(host, port, self, self._pool_kwargs)¬
 19 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102593]   File "/data/sites/euatleta_api/virtualenv/lib/python2.7/site-packages/mongotor/node.py", line 51, in __init__¬
 20 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102626]     **self.pool_kargs)¬
 21 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102646]   File "/data/sites/euatleta_api/virtualenv/lib/python2.7/site-packages/mongotor/pool.py", line 58, in __init__¬
 22 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102678]     conn = self._create_connection()¬
 23 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102697]   File "/data/sites/euatleta_api/virtualenv/lib/python2.7/site-packages/mongotor/pool.py", line 68, in _create_connection¬
 24 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102728]     autoreconnect=self._autoreconnect)¬
 25 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102747]   File "/data/sites/euatleta_api/virtualenv/lib/python2.7/site-packages/mongotor/connection.py", line 41, in __init__¬
 26 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102777]     self._connect()¬
 27 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102795]   File "/data/sites/euatleta_api/virtualenv/lib/python2.7/site-packages/mongotor/connection.py", line 57, in _connect¬
 28 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102824]     raise InterfaceError(error)¬
 29 Jan 17 16:09:32 ip-10-252-106-45 kernel: [10385360.102852] mongotor.errors.InterfaceError: [Errno 99] Cannot assign requested address¬
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant