Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Sep 2020 22:37:03 +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-0uRKcj7U5z@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-249936-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-249936-21822@https.bugs.freebsd.org/bugzilla/>

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

--- Comment #4 from Leonardo M. Ram=C3=A9 <leonardo.rame@informemedico.com.=
ar> ---
No, same issue:

$ jupyter notebook --ip=3D192.168.1.102=20
[I 19:32:22.764 NotebookApp] Serving notebooks from local directory:
/usr/home/jupyter
[I 19:32:22.764 NotebookApp] Jupyter Notebook 6.1.4 is running at:
[I 19:32:22.764 NotebookApp] http://192.168.1.102:8888/
[I 19:32:22.764 NotebookApp] Use Control-C to stop this server and shut down
all kernels (twice to skip confirmation).
[W 19:32:22.767 NotebookApp] No web browser found: could not locate runnable
browser.
[W 19:32:24.910 NotebookApp] 404 GET
/api/kernels/12feb62d-d6f6-40ba-941b-baccd16304b1/channels?session_id=3D555=
d9586b20746e984b2f63194384499
(192.168.0.110): Kernel does not exist: 12feb62d-d6f6-40ba-941b-baccd16304b1
[W 19:32:24.930 NotebookApp] 404 GET
/api/kernels/12feb62d-d6f6-40ba-941b-baccd16304b1/channels?session_id=3D555=
d9586b20746e984b2f63194384499
(192.168.0.110) 21.16ms referer=3DNone

Important: my network is as this:

1. Client: 192.168.0.110
2. Host: 192.168.0.111
3. Jail: 192.168.1.102

Host routes port 8888 to jail using a pf rule.

My /etc/pf.conf:

# vim: set ft=3Dpf
# /etc/pf.conf

#Declare the interfaces, Public IP, private subnet,
EXT_IF0 =3D "re0"
EXT_IF1 =3D "lo1"

IP_PUB=3D"192.168.0.111"
NET_JAIL=3D"192.168.1.0/24"
LAN_IP=3D"192.168.0.1"
PSQL_JAIL_IP=3D"192.168.1.101"
JUPYTERLAB_JAIL_IP=3D"192.168.1.102"
nat pass on $EXT_IF1 from $NET_JAIL to any -> $LAN_IP
nat pass on $EXT_IF0 from $NET_JAIL to any -> $IP_PUB=20
# PostgreSql Jail
rdr on $EXT_IF0 proto tcp from any to $IP_PUB port 5432 -> $PSQL_JAIL_IP
rdr on lo0 proto tcp from any to 127.0.0.1 port 5432 -> $PSQL_JAIL_IP
# JupyterLab Jail
rdr on $EXT_IF0 proto tcp from any to $IP_PUB port 8888 -> $JUPYTERLAB_JAIL_

--=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-0uRKcj7U5z>