Closed CyberKaizen closed 1 year ago
You might try having a look at the container logs for iris-web, using docker logs
.
Ex. sudo docker logs iris-web
I know in the past, the app might time out waiting for the DB if it is not ready, etc. Maybe you are experiencing something similar?
This is the output I got from that command:
db:5432 - accepting connections
Running iriswebapp ...
[2022-09-19 22:18:15 +0000] [8] [INFO] Starting gunicorn 20.1.0
[2022-09-19 22:18:15 +0000] [8] [INFO] Listening at: http://0.0.0.0:8000 (8)
[2022-09-19 22:18:15 +0000] [8] [INFO] Using worker: eventlet
[2022-09-19 22:18:15 +0000] [11] [INFO] Booting worker with pid: 11
[2022-09-19 22:18:16 +0000] [11] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/opt/venv/lib/python3.9/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
worker.init_process()
File "/opt/venv/lib/python3.9/site-packages/gunicorn/workers/geventlet.py", line 134, in init_process
super().init_process()
File "/opt/venv/lib/python3.9/site-packages/gunicorn/workers/base.py", line 134, in init_process
self.load_wsgi()
File "/opt/venv/lib/python3.9/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
self.wsgi = self.app.wsgi()
File "/opt/venv/lib/python3.9/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/opt/venv/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
return self.load_wsgiapp()
File "/opt/venv/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
File "/opt/venv/lib/python3.9/site-packages/gunicorn/util.py", line 359, 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 "
Thanks! Let me see if I can replicate it. We recently pulled in some changes, so maybe there is something that needs adjusting. Thanks again for testing!
I've made some recent changes to the configuration. Please try again using a fresh install, or by removing all directories/docker volumes/images, and let me know if you run into the same issue.
Thanks, I'll try it out and get back to you.
Please re-open this issue if you still have problems.
Following the instructions in the README, all services are setup and reachable except for the IRIS web app.
I've spent about an hour troubleshooting and was unable to identify what was causing it not to be accessible.
Using curl from the same VM in which the services is hosted causes a 502 regardless of using the loopback address or assigned IP of the system.
I also checked the docker containers related to it to make sure they are up and functional and did not find any issues there.
Any advice?