[Bug 249936] www/py-notebook: not working in jail, "Kernel starting, please wait..."

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Sep 27 22:37:03 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249936

--- Comment #4 from Leonardo M. Ramé <leonardo.rame at informemedico.com.ar> ---
No, same issue:

$ jupyter notebook --ip=192.168.1.102 
[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=555d9586b20746e984b2f63194384499
(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=555d9586b20746e984b2f63194384499
(192.168.0.110) 21.16ms referer=None

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=pf
# /etc/pf.conf

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

IP_PUB="192.168.0.111"
NET_JAIL="192.168.1.0/24"
LAN_IP="192.168.0.1"
PSQL_JAIL_IP="192.168.1.101"
JUPYTERLAB_JAIL_IP="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 
# 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_

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


More information about the freebsd-python mailing list