mercury icon indicating copy to clipboard operation
mercury copied to clipboard

Waiting for worker... (Vanilla Docker-Compose Install)

Open mikep11 opened this issue 1 year ago • 14 comments

The demo notebooks are stuck "Waiting for worker ..."

image

This is a brand-new install, followed all the instructions.

.env file:

NOTEBOOKS_PATH=../mercury-deploy-demo/ DJANGO_SUPERUSER_USERNAME=adminusername DJANGO_SUPERUSER_PASSWORD=astrongpassword [email protected] ALLOWED_HOSTS=[static, public user ipv4],[static, public server ipv4],0.0.0.0 SECRET_KEY="******************************************" DEBUG=False SERVE_STATIC=False WELCOME=/app/notebooks/welcome.md TIME_ZONE=US/Eastern DJANGO_LOG_LEVEL=INFO MERCURY_VERBOSE=0 ACCOUNT_EMAIL_VERIFICATION=none

Looking at Issue #391, I implemented the changes recommended by @mariliaribeiro here. No change.

I saw some issues with a number of files containing references to port 8000 vice 9000. I swapped all to port 9000 using grep -rl :8000 . | xargs sed -i 's/:8000/:9000/g'. No change in results. No change.

Results from celery status: ConnectionRefusedError: [Errno 111] Connection refused

Results from django-errors.log: [Blank file]

I'm not sure where to find any more answers describing what is going on. Are there other logs that I can pull that would assist in troubleshooting?

mikep11 avatar Feb 12 '24 22:02 mikep11

Hi @mikep11,

do you make any changes in the dockerfile? is your project on github?

pplonski avatar Feb 15 '24 10:02 pplonski

No, I've made no changes. The project is on a private server.

Docker version 20.10.24+dfsg1, build 297e128 docker-compose version 1.29.2, build unknown docker-py version: 5.0.3 CPython version: 3.11.2 OpenSSL version: OpenSSL 3.0.11 19 Sep 2023

mikep11 avatar Feb 15 '24 15:02 mikep11

Hi @mikep11,

There must be some bug in our deployment code. Have you managed to run Mercury locally?

pplonski avatar Feb 16 '24 12:02 pplonski

When I get a terminal in the Mercury docker image, it seems to run without error:

Version: 2.3.7 Performing system checks...

System check identified no issues (0 silenced). February 16, 2024 - 13:28:08 Django version 4.2.2, using settings 'server.settings' Starting ASGI/Daphne version 4.0.0 development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C.

However, it is a headless server, so I can't test this instance.

manage.py test results in the same errors as #416.

mikep11 avatar Feb 16 '24 13:02 mikep11

hey, can you check logs of mercury?? does it say it sends requests to 127.0.0.1:8000:9000?? cause this same problem happened to me and I got this error.

codinggeeks06 avatar Feb 21 '24 05:02 codinggeeks06

Hi @codinggeeks06,

I will check but don't have time right now.

pplonski avatar Feb 21 '24 08:02 pplonski

Hi @codinggeeks06, which logs should I check? I ran grep -r :8000:9000 on both the /app and /var/log with no results. /app/django-errors.log and /app/mercury/django-errors.log are both blank.

mikep11 avatar Feb 21 '24 12:02 mikep11

Having this same issue. :+1:

bernardo-jac avatar Apr 19 '24 09:04 bernardo-jac