Skip to content

Docker ivy command stalls with a mounted volume #1114

Open
@JWDobken

Description

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"}, {}, {}, {})

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions