Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding nero example #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

adding nero example #37

wants to merge 1 commit into from

Conversation

vsoch
Copy link
Owner

@vsoch vsoch commented Sep 22, 2020

This will add connecting to nero to the forward util! Currently, all seems okay up to the port forwarding (it works for me to see the screen I need to login/enter the token for).

nero-jupyter

However the token echoed to the stderr file doesn't actually work (I get "invalid credentials"). Strangely, the stderr file is done as such because it reports that a module is not installed.

$ ssh nero cat /home/vsochat/forward-util/py3-jupyter.sbatch.err
[I 22:46:27.494 LabApp] The port 8888 is already in use, trying another port.
[I 22:46:27.495 LabApp] The port 8889 is already in use, trying another port.
[I 22:46:28.889 LabApp] JupyterLab extension loaded from /share/sw/open/anaconda/3/lib/python3.6/site-packages/jupyterlab
[I 22:46:28.889 LabApp] JupyterLab application directory is /share/sw/open/anaconda/3/share/jupyter/lab
[W 22:46:28.892 LabApp] Error loading server extension nbrsessionproxy
    Traceback (most recent call last):
      File "/home/vsochat/.local/lib/python3.6/site-packages/notebook/notebookapp.py", line 1942, in init_server_extensions
        mod = importlib.import_module(modulename)
      File "/share/sw/open/anaconda/3/lib/python3.6/importlib/__init__.py", line 126, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 994, in _gcd_import
      File "<frozen importlib._bootstrap>", line 971, in _find_and_load
      File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
    ModuleNotFoundError: No module named 'nbrsessionproxy'
[I 22:46:28.933 LabApp] Serving notebooks from local directory: /
[I 22:46:28.933 LabApp] Jupyter Notebook 6.1.4 is running at:
[I 22:46:28.933 LabApp] http://slurm-gpu-compute-dell-dt4nd:8890/?token=e2188d455555555555555555555555555
[I 22:46:28.933 LabApp]  or http://127.0.0.1:8890/?token=e2188d4555555555555555555555555555555555555
[I 22:46:28.933 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 22:46:29.072 LabApp] No web browser found: could not locate runnable browser.
[C 22:46:29.072 LabApp] 
    
    To access the notebook, open this file in a browser:
        file:///home/vsochat/.local/share/jupyter/runtime/nbserver-20551-open.html
    Or copy and paste one of these URLs:
        http://slurm-gpu-compute-dell-dt4nd:8890/?token=e2188d46d4555555555555555555555555555
     or http://127.0.0.1:8890/?token=e2188d4555555555555555555555555555555555

However, I indeed have installed this with pip after adding it to the path (see the .sbatch file added in this PR). I'm not sure if that error is related. It seems like the token it's showing me in the terminal output is not the one that the interface hints at. The port is also slightly different.

@vmeau @nsoderquist and @willthelaw - as soon as we can figure out this last issue forward will make it very easy to start these sessions! Let me know if there is something I'm missing for the above. I think we could figure out the bug above, or another approach would be to figure out how to make a password login (via some setting in the user jupyter config file). Thanks for taking a look!

Signed-off-by: vsoch vsochat@stanford.edu

Signed-off-by: vsoch <vsochat@stanford.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant