Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Sep 2020 12:36:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 249936] www/py-notebook: not working in jail, "Kernel starting,  please wait..."
Message-ID:  <bug-249936-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249936

            Bug ID: 249936
           Summary: www/py-notebook: not working in jail, "Kernel
                    starting, please wait..."
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: python@FreeBSD.org
          Reporter: leonardo.rame@informemedico.com.ar
             Flags: maintainer-feedback?(python@FreeBSD.org)
          Assignee: python@FreeBSD.org

Hi, I'm trying to run py37-notebook-6.0.3_2 on a FreeBSD 12.1 Jail. I've be=
en
trying to make it work since more than a week ago without success.

I installed it first using `pkg install` and when I found this problem I tr=
ied
with `pip3 install ....`, but both methods ends with the same problem.

After installing and making some changes in the config file
`/home/jupyter/.jupyter/jupyter_notebook_config.py` I can open it from a web
browser. The changes are these:

c.NotebookApp.ip =3D'*'
c.NotebookApp.open_browser =3D False
c.NotebookApp.notebook_dir  =3D '/tmp'
c.NotebookApp.port =3D 8888

I can point from another machine using `http://192.168.0.111:8888`, and get
this:

So everything seems to be working...until I try do execute a simple calc li=
ke
`1+1` or `print("hello world")`. When I do that and press <kbd>ctrl+r</kbd>
there's a `Kernel starting, please wait...`, and after a while, in the serv=
er's
console there's this:

[I 16:23:09.145 NotebookApp] Creating new notebook in=20
/usr/local/lib/python3.7/site-packages/jupyter_client/connect.py:164:
RuntimeWarning: Failed to set sticky bit on
'/usr/home/jupyter/.local/share/jupyter/runtime/kernel-67e1b082-cc4e-4b25-b=
5a5-a38d13fd717f.json':
[Errno 79] Inappropriate file type or format:
'/usr/home/jupyter/.local/share/jupyter/runtime/kernel-67e1b082-cc4e-4b25-b=
5a5-a38d13fd717f.json'
Probably not a big deal, but runtime files may be cleaned up periodically.
  RuntimeWarning,
[I 16:23:10.143 NotebookApp] Kernel started:
67e1b082-cc4e-4b25-b5a5-a38d13fd717f
[W 16:23:10.192 NotebookApp] 404 GET
/nbextensions/widgets/notebook/js/extension.js?v=3D20200926161340 (192.168.=
0.110)
0.99ms
referer=3Dhttp://192.168.0.111:8888/notebooks/Untitled4.ipynb?kernel_name=
=3Dpython3
/usr/local/lib/python3.7/site-packages/jupyter_client/connect.py:164:
RuntimeWarning: Failed to set sticky bit on
'/usr/home/jupyter/.local/share/jupyter/runtime/kernel-67e1b082-cc4e-4b25-b=
5a5-a38d13fd717f.json':
[Errno 79] Inappropriate file type or format:
'/usr/home/jupyter/.local/share/jupyter/runtime/kernel-67e1b082-cc4e-4b25-b=
5a5-a38d13fd717f.json'
Probably not a big deal, but runtime files may be cleaned up periodically.
  RuntimeWarning,
[I 16:23:17.731 NotebookApp] Saving file at /Untitled3.ipynb
[W 16:23:31.238 NotebookApp] Replacing stale connection:
67e1b082-cc4e-4b25-b5a5-a38d13fd717f:f20bd23a2dc0450c8f9db79d7eb82a33
[W 16:23:54.305 NotebookApp] Replacing stale connection:
67e1b082-cc4e-4b25-b5a5-a38d13fd717f:f20bd23a2dc0450c8f9db79d7eb82a33
[W 16:24:10.227 NotebookApp] Timeout waiting for kernel_info reply from
67e1b082-cc4e-4b25-b5a5-a38d13fd717f
[I 16:24:10.234 NotebookApp] Starting buffering for
67e1b082-cc4e-4b25-b5a5-a38d13fd717f:f20bd23a2dc0450c8f9db79d7eb82a33
[I 16:24:10.235 NotebookApp] Restoring connection for
67e1b082-cc4e-4b25-b5a5-a38d13fd717f:f20bd23a2dc0450c8f9db79d7eb82a33


[jupyter@jupyterlab ~]$ jupyter --version
jupyter core     : 4.6.3
jupyter-notebook : 6.0.3
qtconsole        : not installed
ipython          : 7.16.1
ipykernel        : 5.3.0
jupyter client   : 6.1.3
jupyter lab      : not installed
nbconvert        : 5.6.1
ipywidgets       : not installed
nbformat         : 5.0.7
traitlets        : 4.3.3

By searching on the web I found others have a similar issue with `tornado 6=
`,
but this installation is running `py37-tornado-5.1.1` which is installed
automatically by `pkg install notebook`.

Can anyone help me with this?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-249936-21822>