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

Docker ivy command stalls with a mounted volume #1114

Open
JWDobken opened this issue May 6, 2023 · 0 comments
Open

Docker ivy command stalls with a mounted volume #1114

JWDobken opened this issue May 6, 2023 · 0 comments

Comments

@JWDobken
Copy link

JWDobken commented May 6, 2023

Running the almond docker container with a volume mount to an empty local notebooks folder:

docker run -it --rm -v ${PWD}/notebooks:/home/jovyan/notebooks -p 8888:8888 almondsh/almond:0.13.11

Then in the Scala notebook whenever I run:

import $ivy.`org.apache.spark::spark-sql:3.3.2`

The Ammonite interpreter takes several minutes

INFO AmmInterpreter Creating Ammonite interpreter
[W 2023-05-06 05:29:57.057 ServerApp] Timeout waiting for kernel_info reply from ff331c33-03e8-40a7-896a-f44772bcc6cd
[I 2023-05-06 05:29:57.060 ServerApp] Connecting to kernel ff331c33-03e8-40a7-896a-f44772bcc6cd.
[W 2023-05-06 05:29:58.739 ServerApp] Replacing stale connection: ff331c33-03e8-40a7-896a-f44772bcc6cd:eeb1c70b-3788-4efa-a0ea-0e11562cac75
[W 2023-05-06 05:30:01.599 ServerApp] Nudge: attempt 10 on kernel ff331c33-03e8-40a7-896a-f44772bcc6cd
[W 2023-05-06 05:30:06.647 ServerApp] Nudge: attempt 20 on kernel ff331c33-03e8-40a7-896a-f44772bcc6cd
[W 2023-05-06 05:30:11.684 ServerApp] Nudge: attempt 30 on kernel ff331c33-03e8-40a7-896a-f44772bcc6cd
[W 2023-05-06 05:30:16.730 ServerApp] Nudge: attempt 40 on kernel ff331c33-03e8-40a7-896a-f44772bcc6cd
[W 2023-05-06 05:30:17.418 ServerApp] Timeout waiting for kernel_info reply from ff331c33-03e8-40a7-896a-f44772bcc6cd
I 2023-05-06 05:32:54.284 ServerApp] Connecting to kernel ff331c33-03e8-40a7-896a-f44772bcc6cd.
[W 2023-05-06 05:32:56.624 ServerApp] Replacing stale connection: ff331c33-03e8-40a7-896a-f44772bcc6cd:f89de419-9f58-443e-9290-59fcdc1568c0
[W 2023-05-06 05:32:58.097 ServerApp] Nudge: attempt 60 on kernel ff331c33-03e8-40a7-896a-f44772bcc6cd
[W 2023-05-06 05:32:58.820 ServerApp] Nudge: attempt 10 on kernel ff331c33-03e8-40a7-896a-f44772bcc6cd
[W 2023-05-06 05:32:59.261 ServerApp] Nudge: attempt 110 on kernel ff331c33-03e8-40a7-896a-f44772bcc6cd
[W 2023-05-06 05:33:03.140 ServerApp] Nudge: attempt 70 on kernel ff331c33-03e8-40a7-896a-f44772bcc6cd
[W 2023-05-06 05:33:03.857 ServerApp] Nudge: attempt 20 on kernel ff331c33-03e8-40a7-896a-f44772bcc6cd
[W 2023-05-06 05:33:04.296 ServerApp] Nudge: attempt 120 on kernel ff331c33-03e8-40a7-896a-f44772bcc6cd
[E 2023-05-06 05:33:04.355 ServerApp] Uncaught exception GET /api/kernels/ff331c33-03e8-40a7-896a-f44772bcc6cd/channels?session_id=eeb1c70b-3788-4efa-a0ea-0e11562cac75 (10.4.0.1)
    HTTPServerRequest(protocol='http', host='127.0.0.1:8888', method='GET', uri='/api/kernels/ff331c33-03e8-40a7-896a-f44772bcc6cd/channels?session_id=eeb1c70b-3788-4efa-a0ea-0e11562cac75', version='HTTP/1.1', remote_ip='10.4.0.1')
    Traceback (most recent call last):
      File "/opt/conda/lib/python3.10/site-packages/tornado/websocket.py", line 939, in _accept_connection
        await open_result
      File "/opt/conda/lib/python3.10/site-packages/jupyter_server/services/kernels/websocket.py", line 73, in open
        await self.connection.connect()

I have tried with either Scala version 2.12, 2.13 and 3.2. I really can't explain how this mount affects the behavior.

Also, if relevant, I get many warnings:

WARN Kernel Ignoring unhandled message on Control:
Message(Vector(ArraySeq(0, -119, -122, 9, 6)), {"msg_id": "e99bd75b-5b13-494f-9b20-416f806af9a3_8_37", "msg_type": "kernel_info_request", "username": "username", "session": "e99bd75b-5b13-494f-9b20-416f806af9a3", "date": "2023-05-06T06:30:50.147656Z", "version": "5.3"}, {}, {}, {})
@JWDobken JWDobken changed the title Docker ivy command stalls Docker ivy command stalls with a mounted volume May 6, 2023
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