Code Monkey home page Code Monkey logo

Comments (5)

imagineLife avatar imagineLife commented on June 4, 2024 1

ah @mathbunnyru you're correct - I will figure out why that specific port comes with some unexpected behavior for me!

Thanks for the quick debugging feedback :)

from docker-stacks.

mathbunnyru avatar mathbunnyru commented on June 4, 2024

Could you please try running our image without volume mount?
And then create a file and run it as you did in your example.

Chances are the volume mount creates issues, not the image itself.

from docker-stacks.

imagineLife avatar imagineLife commented on June 4, 2024

hi @mathbunnyru thanks for the suggestion to try without the volume mount, TL;DR seems like the same experience :/
The bottom of this copy-paste cli output is the beginning of the infinitely repeating api requests from the browser:

Jakes-4:big-site Jake$ docker run -it --name jp -p 8080:8888 quay.io/jupyter/tensorflow-notebook
Entered start.sh with args: start-notebook.py
Running hooks in: /usr/local/bin/start-notebook.d as uid: 1000 gid: 100
Done running hooks in: /usr/local/bin/start-notebook.d
Running hooks in: /usr/local/bin/before-notebook.d as uid: 1000 gid: 100
Sourcing shell script: /usr/local/bin/before-notebook.d/10activate-conda-env.sh
Done running hooks in: /usr/local/bin/before-notebook.d
Executing the command: start-notebook.py
Executing: jupyter lab
[I 2024-02-08 14:42:25.997 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2024-02-08 14:42:26.001 ServerApp] jupyter_server_mathjax | extension was successfully linked.
[I 2024-02-08 14:42:26.004 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2024-02-08 14:42:26.008 ServerApp] jupyterlab | extension was successfully linked.
[I 2024-02-08 14:42:26.008 ServerApp] jupyterlab_git | extension was successfully linked.
[I 2024-02-08 14:42:26.010 ServerApp] nbclassic | extension was successfully linked.
[I 2024-02-08 14:42:26.011 ServerApp] nbdime | extension was successfully linked.
[I 2024-02-08 14:42:26.014 ServerApp] notebook | extension was successfully linked.
[I 2024-02-08 14:42:26.015 ServerApp] Writing Jupyter server cookie secret to /home/jovyan/.local/share/jupyter/runtime/jupyter_cookie_secret
[I 2024-02-08 14:42:26.219 ServerApp] notebook_shim | extension was successfully linked.
[I 2024-02-08 14:42:26.232 ServerApp] notebook_shim | extension was successfully loaded.
[I 2024-02-08 14:42:26.234 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2024-02-08 14:42:26.234 ServerApp] jupyter_server_mathjax | extension was successfully loaded.
[I 2024-02-08 14:42:26.235 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2024-02-08 14:42:26.236 LabApp] JupyterLab extension loaded from /opt/conda/lib/python3.11/site-packages/jupyterlab
[I 2024-02-08 14:42:26.236 LabApp] JupyterLab application directory is /opt/conda/share/jupyter/lab
[I 2024-02-08 14:42:26.237 LabApp] Extension Manager is 'pypi'.
[I 2024-02-08 14:42:26.246 ServerApp] jupyterlab | extension was successfully loaded.
[I 2024-02-08 14:42:26.249 ServerApp] jupyterlab_git | extension was successfully loaded.

  _   _          _      _
 | | | |_ __  __| |__ _| |_ ___
 | |_| | '_ \/ _` / _` |  _/ -_)
  \___/| .__/\__,_\__,_|\__\___|
       |_|
                                                                           
Read the migration plan to Notebook 7 to learn about the new features and the actions to take if you are using extensions.

https://jupyter-notebook.readthedocs.io/en/latest/migrate_to_notebook7.html

Please note that updating to Notebook 7 might break some of your extensions.

[I 2024-02-08 14:42:26.252 ServerApp] nbclassic | extension was successfully loaded.
[I 2024-02-08 14:42:26.290 ServerApp] nbdime | extension was successfully loaded.
[I 2024-02-08 14:42:26.292 ServerApp] notebook | extension was successfully loaded.
[I 2024-02-08 14:42:26.293 ServerApp] Serving notebooks from local directory: /home/jovyan
[I 2024-02-08 14:42:26.293 ServerApp] Jupyter Server 2.12.5 is running at:
[I 2024-02-08 14:42:26.293 ServerApp] http://278316584f80:8888/lab?token=826fdf77a1a869d159b704fe190eed72efb24c35bea55265
[I 2024-02-08 14:42:26.293 ServerApp]     http://127.0.0.1:8888/lab?token=826fdf77a1a869d159b704fe190eed72efb24c35bea55265
[I 2024-02-08 14:42:26.293 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2024-02-08 14:42:26.295 ServerApp] 
    
    To access the server, open this file in a browser:
        file:///home/jovyan/.local/share/jupyter/runtime/jpserver-7-open.html
    Or copy and paste one of these URLs:
        http://278316584f80:8888/lab?token=826fdf77a1a869d159b704fe190eed72efb24c35bea55265
        http://127.0.0.1:8888/lab?token=826fdf77a1a869d159b704fe190eed72efb24c35bea55265
[I 2024-02-08 14:42:26.653 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
[I 2024-02-08 14:42:36.196 ServerApp] 302 GET /?token=[secret] (@192.168.65.1) 1.09ms
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[I 2024-02-08 14:42:39.545 LabApp] Build is up to date
[I 2024-02-08 14:42:43.251 ServerApp] Creating new notebook in /work
[I 2024-02-08 14:42:43.342 ServerApp] Writing notebook-signing key to /home/jovyan/.local/share/jupyter/notebook_secret
[I 2024-02-08 14:42:44.032 ServerApp] Kernel started: 6d57bc9c-2bdb-4063-9f39-b5dacd8610d7
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[I 2024-02-08 14:42:44.883 ServerApp] Connecting to kernel 6d57bc9c-2bdb-4063-9f39-b5dacd8610d7.
[I 2024-02-08 14:42:44.885 ServerApp] Connecting to kernel 6d57bc9c-2bdb-4063-9f39-b5dacd8610d7.
[W 2024-02-08 14:42:44.896 ServerApp] Got events for closed stream <zmq.eventloop.zmqstream.ZMQStream object at 0xffff8f7a8dd0>
[I 2024-02-08 14:42:44.906 ServerApp] Starting buffering for 6d57bc9c-2bdb-4063-9f39-b5dacd8610d7:155b8e60-6d6f-4495-a120-be6d08d9feb2
[I 2024-02-08 14:42:44.907 ServerApp] Connecting to kernel 6d57bc9c-2bdb-4063-9f39-b5dacd8610d7.
[I 2024-02-08 14:42:44.908 ServerApp] Discarding 2 buffered messages for 6d57bc9c-2bdb-4063-9f39-b5dacd8610d7:155b8e60-6d6f-4495-a120-be6d08d9feb2
[W 2024-02-08 14:42:44.909 ServerApp] Got events for closed stream <zmq.eventloop.zmqstream.ZMQStream object at 0xffff8f75aad0>
[W 2024-02-08 14:42:44.909 ServerApp] Got events for closed stream <zmq.eventloop.zmqstream.ZMQStream object at 0xffff8f75aad0>
[I 2024-02-08 14:42:44.917 ServerApp] Starting buffering for 6d57bc9c-2bdb-4063-9f39-b5dacd8610d7:cb98ff81-09dd-463a-8c7b-64cdb0b493a8
[I 2024-02-08 14:42:44.922 ServerApp] Connecting to kernel 6d57bc9c-2bdb-4063-9f39-b5dacd8610d7.
[I 2024-02-08 14:42:44.923 ServerApp] Discarding 3 buffered messages for 6d57bc9c-2bdb-4063-9f39-b5dacd8610d7:cb98ff81-09dd-463a-8c7b-64cdb0b493a8
[I 2024-02-08 14:42:44.940 ServerApp] Starting buffering for 6d57bc9c-2bdb-4063-9f39-b5dacd8610d7:155b8e60-6d6f-4495-a120-be6d08d9feb2
[I 2024-02-08 14:42:44.943 ServerApp] Connecting to kernel 6d57bc9c-2bdb-4063-9f39-b5dacd8610d7.

I get the same 2 error dialogues, Error Starting Kernel with subtext Missing property 'id', followed by the Select Kernel dialogue

from docker-stacks.

imagineLife avatar imagineLife commented on June 4, 2024

Working Discovery
Exposing the same port, 8888, to the host removes the errors.
I can even mount a volume. 👍

docker run -it --name jp -p 8888:8888 -v /Users/<me>/Documents/<my-docs>:/home/jovyan/work quay.io/jupyter/tensorflow-notebook

Is this an expected requirement/restriction, to be required to expose the exact same port that runs "internally" in the container to the host machine like that? The docs seem to explain that the port can be changed between the container and the host

from docker-stacks.

mathbunnyru avatar mathbunnyru commented on June 4, 2024

There is no such limit. Docker container doesn’t know which port it forwards to.
Is there a chance you have a browser tab, which tries to reload the page?
It can also be vs code.

from docker-stacks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.