GNU bug report logs - #49355
[guix-jupyter] timeout issue running the kernel

Previous Next

Package: guix;

Reported by: Domagoj Stolfa <ds815 <at> gmx.com>

Date: Sat, 3 Jul 2021 15:31:02 UTC

Severity: normal

Done: Domagoj Stolfa <ds815 <at> gmx.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49355 in the body.
You can then email your comments to 49355 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#49355; Package guix. (Sat, 03 Jul 2021 15:31:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Domagoj Stolfa <ds815 <at> gmx.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 03 Jul 2021 15:31:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Domagoj Stolfa <ds815 <at> gmx.com>
To: bug-guix <at> gnu.org
Subject: [guix-jupyter] timeout issue running the kernel
Date: Sat, 3 Jul 2021 16:30:36 +0100
[Message part 1 (text/plain, inline)]
Hello:

I've been trying to set up a Jupyter environment with the Guix kernel inside a
guix environment using:

`guix environment --ad-hoc guix-jupyter jupyter -- jupyter notebook`.

Jupyter starts up fine, but when I create an empty notebook with the Guix kernel
it spams Nudge messages in the console, followed by a crash:

```
[W 16:25:40.117 NotebookApp] Nudge: attempt 120 on kernel 14569df8-e4d1-4847-ae1f-c68e13feeed8
[E 16:25:40.479 NotebookApp] Uncaught exception GET /api/kernels/14569df8-e4d1-4847-ae1f-c68e13feeed8/channels?session_id=05319f9c28b3455cad1b9f4fcf9e0e41 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/api/kernels/14569df8-e4d1-4847-ae1f-c68e13feeed8/channels?session_id=05319f9c28b3455cad1b9f4fcf9e0e41', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/gnu/store/zkjmzfd8li7p7yaihm9rs617vqq9n5qh-python-tornado-6.1/lib/python3.8/site-packages/tornado/websocket.py", line 956, in _accept_connection
        await open_result
    tornado.util.TimeoutError: Timeout
```

Attempting to run anything in the notebook such as

`;;guix environment matplotlib-env <- python-ipykernel python-numpy python-matplotlib`

simply does nothing. I'm not sure if this is an issue with me misconfiguring
something or if it's actually a bug, but I haven't been able to chase it down
as I don't really understand the internals of Jupyter all that well.

Adding `python-ipykernel` and using a Python kernel works fine.

--
Domagoj
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#49355; Package guix. (Mon, 05 Jul 2021 20:55:02 GMT) Full text and rfc822 format available.

Message #8 received at 49355 <at> debbugs.gnu.org (full text, mbox):

From: Domagoj Stolfa <ds815 <at> gmx.com>
To: 49355 <at> debbugs.gnu.org
Subject: [guix-jupyter] timeout issue running the kernel
Date: Mon, 5 Jul 2021 21:54:17 +0100
[Message part 1 (text/plain, inline)]
Having done some time-machining, I can confirm that
68c9e0a56e008f19427bd213cf5b24bdd8fe5922 is a good commit. The guix kernel
works fine on it. I don't however yet know which commit caused the regression,
but if nobody finds it until I have more time to bisect, I'll report back.

--
Domagoj
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#49355; Package guix. (Tue, 06 Jul 2021 01:33:02 GMT) Full text and rfc822 format available.

Message #11 received at 49355 <at> debbugs.gnu.org (full text, mbox):

From: Domagoj Stolfa <ds815 <at> gmx.com>
To: 49355 <at> debbugs.gnu.org
Subject: [guix-jupyter] timeout issue running the kernel
Date: Tue, 6 Jul 2021 02:31:55 +0100
[Message part 1 (text/plain, inline)]
After a very painful bisect with various issues appearing in jupyter (unrelated
to this one), I've identified the first good commit and the first bad commit.

The commit range which caused the problem is between

95f25c9b13e22603c35f3acd9048fbd1c8671925

and

9e7f09cbec40257619e57edfdd700c775e96833d

which is a series of commits by Ricardo updating a bunch of python stuff,
including jupyter. My suspicion is that the update to jupyter-core from 4.4.0 to
4.7.1 (2a12cbaaab970bcab09002e952e062da0274f0b6) caused jupyter-core to no
longer agree with the guix kernel. I haven't diagnosed further.

The first good commit is 85788dd64d5c54ff52f19c8bb6c8c522ed581b2c and the first
bad commit I was able to actually get jupyter to work on is
9e7f09cbec40257619e57edfdd700c775e96833d.

--
Domagoj
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#49355; Package guix. (Tue, 06 Jul 2021 15:50:01 GMT) Full text and rfc822 format available.

Message #14 received at 49355 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Domagoj Stolfa <ds815 <at> gmx.com>
Cc: 49355 <at> debbugs.gnu.org
Subject: Re: bug#49355: [guix-jupyter] timeout issue running the kernel
Date: Tue, 06 Jul 2021 17:48:55 +0200
Hi,

Domagoj Stolfa <ds815 <at> gmx.com> skribis:

> After a very painful bisect with various issues appearing in jupyter (unrelated
> to this one), I've identified the first good commit and the first bad commit.
>
> The commit range which caused the problem is between
>
> 95f25c9b13e22603c35f3acd9048fbd1c8671925
>
> and
>
> 9e7f09cbec40257619e57edfdd700c775e96833d
>
> which is a series of commits by Ricardo updating a bunch of python stuff,
> including jupyter. My suspicion is that the update to jupyter-core from 4.4.0 to
> 4.7.1 (2a12cbaaab970bcab09002e952e062da0274f0b6) caused jupyter-core to no
> longer agree with the guix kernel. I haven't diagnosed further.
>
> The first good commit is 85788dd64d5c54ff52f19c8bb6c8c522ed581b2c and the first
> bad commit I was able to actually get jupyter to work on is
> 9e7f09cbec40257619e57edfdd700c775e96833d.

Thanks for bisecting!

I believe this is fixed by
<https://gitlab.inria.fr/guix-hpc/guix-kernel/-/commit/bc81615c11b67abe6533d7e076cf152d06618866>.

You should be able to try it out by running:

  guix environment --ad-hoc jupyter guix-jupyter \
    --with-branch=guix-jupyter=master -- \
    jupyter notebook --debug --no-browser

Hmm now that I re-test it seems to be unreliable.  Perhaps I’m missing
something else.

Let me know if it works for you!

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#49355; Package guix. (Tue, 06 Jul 2021 16:13:02 GMT) Full text and rfc822 format available.

Message #17 received at 49355 <at> debbugs.gnu.org (full text, mbox):

From: Domagoj Stolfa <ds815 <at> gmx.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 49355 <at> debbugs.gnu.org
Subject: Re: bug#49355: [guix-jupyter] timeout issue running the kernel
Date: Tue, 6 Jul 2021 17:12:18 +0100
[Message part 1 (text/plain, inline)]
Hi:

> Let me know if it works for you!

Thanks for the quick fix!

So far it has worked well -- I haven't yet run into any unreliable behaviour,
but my notebooks are extremely simple at the moment, at most simply plotting
some stuff with matplotlib!

--
Domagoj
[signature.asc (application/pgp-signature, inline)]

bug closed, send any further explanations to 49355 <at> debbugs.gnu.org and Domagoj Stolfa <ds815 <at> gmx.com> Request was from Domagoj Stolfa <ds815 <at> gmx.com> to control <at> debbugs.gnu.org. (Thu, 08 Jul 2021 16:43:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 06 Aug 2021 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 234 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.