-
Notifications
You must be signed in to change notification settings - Fork 255
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
Worker is closed for computation longer than 1 minute #228
Comments
Hi @Benjamin3381, Thank you for reporting the issue. I will need few details from you to be able to reproduce the problem. What operating system are you using? How have you installed
Please attach the verbose output. Thank you! |
Thank you @Benjamin3381, could you please attach output from few lines above and from the beginning. The worker is starting, but it is switched off because ping/pong timed out - I don't know why, yet ... |
Hi, I have the same problem when trying to run the demo in google colab. I enabled custom widgets,
and get the port as:
I see a "waiting for worker" message. Hovering over the worker icon gives me a session id but "worker: unknown". The websocket is disconnected After a few min the runtime crashes and I have to reinstall mercury |
Thank you for reporting the issue. I didn't test Mercury Server on Google Colab. However, Mercury Widgets should work in Colab. I treat Colab as a place for developing notebooks. Then notebooks-apps should be served outside notebook IDE (Colab in this case). What do you think? What is your use case? We are working on the Mercury Cloud service. You will be able to set up a website with a custom URL address with a few clicks. Notebook deployment will be as easy as file upload. There will be a free plan for quick tests :) |
Hi, we are testing different dashboarding solutions for our group and like the modularity of mercury. I was hoping to be able to test it on colab. I also tried installing mercury locally via conda forge but I ran into errors when trying to run the demo. I'm on windows 10.
|
Thank you for logs. Maybe you have updated
The latest version of What library do you plan to use for visualizations? What requirements do you have for dashboards? Do you need authentication? |
Hi, now the demo starts successfully with pyopenssl 23.0.0, but I still have the "waiting for worker..." problem. The websocket is connected and the worker is queued. Ideally, we are seeking a modular solution so that anyone can write a notebook with any python libraries (for starters matplotlib is enough) and then add the results to an interactive dashboard -- mercury looks like a good candidate wrt to those needs. However, it needs to work with data stored on Google Drive - I am not familiar with the authentication needs for that outside of Colab, but hopefully it can done with a jupyter extension. The purpose is mainly to document and compare results between many versions of numerical models (with visual and tabular output), and accessory documentation/annotation. And for non python users, the option to upload and arrange static text/image files would be a plus. |
Thank you for checking this. Could you please run the server with a verbose flag:
and attach the output. There might still be some issues. Sounds like a challenging project. You can access Google Drive in Python with PyDrive2 package, so it should work. We are working on the Mercury Cloud version - you set up the website with a few clicks, add users, and upload files, would you like to test it when ready? |
I got to the bitter end of getting my mercury notebook to run on heroku but I also get a waiting for worker prompt and then just a white screen. I do think something is disconnecting and crashing. I got my application to work once but if it runs too long it does seem to simply give me a white screen with no other error message |
Hi @nagatushar, Please provide steps to reproduce or output logs, so I can fix the issue. To get logs from the server please start
We are working on a cloud version to make deployment easier. I hope to make it available this week. |
sounds like heroku has a 30 second limit which may be why I am having issues. Is there any way around this? |
Hi @pplonski I don't have the worker problem any longer. However, when I try to execute bambi Bayesian Model the app restarts. Specifically when I run the model.fit line import bambi as bmb
model=bmb.Model('y ~ x', df2[['y', 'x']])
results = model.fit(chains=4,cores=1) I was cheking out the promp and I got this: DJ INFO 2023-03-28 21:13:47,017 runserver WebSocket HANDSHAKING /ws/client/6/68dd59bc-5c3b-4d5b-8fbd-bb9f68603f31/ [127.0.0.1:62016]
DJ INFO 2023-03-28 21:13:47,042 runserver WebSocket CONNECT /ws/client/6/68dd59bc-5c3b-4d5b-8fbd-bb9f68603f31/ [127.0.0.1:62016]
NB 2023-03-28 21:13:47,236 Exception when check if worker id=319 is stale
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\mercury\apps\nbworker\db.py", line 132, in is_worker_stale
self.worker = Worker.objects.get(pk=self.worker_id)
File "C:\Users\user\AppData\Roaming\Python\Python39\site-packages\django\db\models\manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "C:\Users\user\AppData\Roaming\Python\Python39\site-packages\django\db\models\query.py", line 435, in get
raise self.model.DoesNotExist(
apps.ws.models.Worker.DoesNotExist: Worker matching query does not exist.
DJ INFO 2023-03-28 21:13:47,251 runserver WebSocket DISCONNECT /ws/worker/6/68dd59bc-5c3b-4d5b-8fbd-bb9f68603f31/319/ [127.0.0.1:51534] |
Hi @nagatushar, The 30 seconds limit sounds strange ... The Mercury Cloud should be available soon for testing. The developer version is already running at https://cloud.runmercury.com (you can create account and upload notebooks but it is developer version and I do many fixes there ...) but I will need ~2 weeks to polish it. Alternative is docker-compose deployment on AWS, GCP or Azure. |
HI @Benjamin3381, Thank you for reporting the issue. Apologize for problems! There is a bug, for long running jobs, that worker is closed after 1 minute ... not sure if this is connected with @nagatushar issue? I will fix it! I will do my best to have fix this week @aplonska Thank you! |
I fixed the issue. When the job was long (> 1 min) there was no update about worker status. I will release the new version later today. |
I'll review it when the app updates! I will show you what I've been up to :) thank you |
Version |
Thak you @pplonski Just a last question. I dont know what happened but after I uppgraded mercury I got this error:
|
You got old tables migration in database. Please run
It will clean local database. |
Hi... very cool app!
I've got a problem. It strats ok but when I try to run my app (in windows) it seems the worker loses connection and the screen freezes with the message Waiting for worker below the run button. Same problem when I try to download pdf from demo dashes.
The text was updated successfully, but these errors were encountered: