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

Issue with 127.0.0.1 when on wifi or no network connection, it works on lan connection #621

Open
hosseinahm opened this issue Jun 25, 2024 · 0 comments

Comments

@hosseinahm
Copy link

When I'm on wifi or no network connection, I get following log error during spinning up docker compose. It is working fine if I have a wired connection. (ubunto focal)

annotator_workers | [2024-06-25 00:38:23,620: INFO/MainProcess] celery@ee5f28caaa69 ready.
annotator_webclient | [2024-06-25 00:38:40 +0000] [11] [ERROR] Exception in worker process
annotator_webclient | Traceback (most recent call last):
annotator_webclient | File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
annotator_webclient | worker.init_process()
annotator_webclient | File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/geventlet.py", line 102, in init_process
annotator_webclient | super(EventletWorker, self).init_process()
annotator_webclient | File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/base.py", line 129, in init_process
annotator_webclient | self.load_wsgi()
annotator_webclient | File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
annotator_webclient | self.wsgi = self.app.wsgi()
annotator_webclient | File "/usr/local/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
annotator_webclient | self.callable = self.load()
annotator_webclient | File "/usr/local/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
annotator_webclient | return self.load_wsgiapp()
annotator_webclient | File "/usr/local/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
annotator_webclient | return util.import_app(self.app_uri)
annotator_webclient | File "/usr/local/lib/python3.6/site-packages/gunicorn/util.py", line 350, in import_app
annotator_webclient | import(module)
annotator_webclient | File "/workspace/webserver/init.py", line 63, in
annotator_webclient | app = create_app()
annotator_webclient | File "/workspace/webserver/init.py", line 57, in create_app
annotator_webclient | ImageModel.objects.update(annotating=[])
annotator_webclient | File "/usr/local/lib/python3.6/site-packages/mongoengine/queryset/manager.py", line 37, in get
annotator_webclient | queryset = queryset_class(owner, owner._get_collection())
annotator_webclient | File "/usr/local/lib/python3.6/site-packages/mongoengine/document.py", line 208, in _get_collection
annotator_webclient | db.client.is_primary:
annotator_webclient | File "/usr/local/lib/python3.6/site-packages/pymongo/mongo_client.py", line 857, in is_primary
annotator_webclient | return self._server_property('is_writable')
annotator_webclient | File "/usr/local/lib/python3.6/site-packages/pymongo/mongo_client.py", line 689, in _server_property
annotator_webclient | writable_server_selector)
annotator_webclient | File "/usr/local/lib/python3.6/site-packages/pymongo/topology.py", line 224, in select_server
annotator_webclient | address))
annotator_webclient | File "/usr/local/lib/python3.6/site-packages/pymongo/topology.py", line 183, in select_servers
annotator_webclient | selector, server_timeout, address)
annotator_webclient | File "/usr/local/lib/python3.6/site-packages/pymongo/topology.py", line 199, in _select_servers_loop
annotator_webclient | self._error_message(selector))
annotator_webclient | pymongo.errors.ServerSelectionTimeoutError: No servers found yet
annotator_webclient | [2024-06-25 00:38:40 +0000] [11] [INFO] Worker exiting (pid: 11)
annotator_webclient | [2024-06-25 00:38:41 +0000] [7] [INFO] Shutting down: Master
annotator_webclient | [2024-06-25 00:38:41 +0000] [7] [INFO] Reason: Worker failed to boot.

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