Open nzjc opened 4 months ago
The issue states that it is not able to connect to mongoDB, could you please send docker ps command output, to make sure that mongo DB works properly
@Vadims06 no mongodb spawns, all I see in docker ps before it dies is
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4ffc731621d5 vadims06/topolograph:latest "gunicorn -w 4 --bin…" 18 seconds ago Up 17 seconds 5000/tcp naughty_maxwell
However, I ran your container on a linux host and it all worked fine - so perhaps it's just something screwy with Windows?
I am seeing similar errors on a Ubuntu 22.4.04 system:
emoore@dockboxerm1:~$ docker run vadims06/topolograph:latest
[2024-08-19 14:14:34 +0000] [1] [INFO] Starting gunicorn 20.0.4
[2024-08-19 14:14:34 +0000] [1] [INFO] Listening at: http://0.0.0.0:5000 (1)
[2024-08-19 14:14:34 +0000] [1] [INFO] Using worker: sync
[2024-08-19 14:14:34 +0000] [7] [INFO] Booting worker with pid: 7
[2024-08-19 14:14:34 +0000] [8] [INFO] Booting worker with pid: 8
[2024-08-19 14:14:35 +0000] [9] [INFO] Booting worker with pid: 9
[2024-08-19 14:14:35 +0000] [10] [INFO] Booting worker with pid: 10
[2024-08-19 14:14:41 +0000] [1] [INFO] Handling signal: winch
[2024-08-19 14:15:08 +0000] [7] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/usr/local/lib/python3.9/site-packages/gunicorn/workers/base.py", line 119, in init_process
self.load_wsgi()
File "/usr/local/lib/python3.9/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python3.9/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
return self.load_wsgiapp()
File "/usr/local/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python3.9/site-packages/gunicorn/util.py", line 358, in import_app
mod = importlib.import_module(module)
File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/gunicorn", line 8, in
I'm fairly new to docker, so I may have missed something obvious.
ERM
Indeed, the same issue pymongo Connection refused
. Does docker-compose pull work as well?
docker compose pull works for me.
ERM
I'm using the latest (4.32) Docker Desktop for Windows 10, using WSL2 as the VM backend.
Try to run the container (pulled from this repo this morning -2.39) and it fails to launch, log below.
Hopefully it's just me doing something silly.