# Timed Out Waiting for Jupyter (Was working, nothing changed)

**URL:** <https://discourse.openondemand.org/t/timed-out-waiting-for-jupyter-was-working-nothing-changed/3309>\
**Category:** Get Help\
**Created:** [February 29, 2024, 5:51pm UTC](https://discourse.openondemand.org/t/timed-out-waiting-for-jupyter-was-working-nothing-changed/3309 "2024-02-29T17:51:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![walidabualafia](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/walidabualafia/32/1962_2.png) [@walidabualafia](https://discourse.openondemand.org/u/walidabualafia)\
**Post date:** [February 29, 2024, 5:51pm UTC](https://discourse.openondemand.org/t/timed-out-waiting-for-jupyter-was-working-nothing-changed/3309/1 "2024-02-29T17:51:05Z")

</div>

Hi folks,

Out jupyter instance stopped connecting. It now keeps timing out, and cannot find the port.

This is my output.log:

```auto
Script starting...
Waiting for Jupyter Notebook server to open port 10570...
TIMING - Starting wait at: Thu Feb 29 11:47:55 CST 2024
TIMING - Starting main script at: Thu Feb 29 11:47:55 CST 2024
jupyter version '5.7.1' loaded
Please do not load this module. It is designed for Open OnDemand.
Currently Loaded Modulefiles:
 1) jupyter/py-3.8  
TIMING - Starting jupyter at: Thu Feb 29 11:47:56 CST 2024
+ jupyter notebook --config=/home/wabuala/ondemand/data/sys/dashboard/batch_connect/sys/jupyter/output/51c67153-5f46-49d9-902c-3d061bc32af1/config.py
Timed out waiting for Jupyter Notebook server to open port 10570!
TIMING - Wait ended at: Thu Feb 29 11:48:56 CST 2024
Cleaning up...
/home/wabuala/ondemand/data/sys/dashboard/batch_connect/sys/jupyter/output/51c67153-5f46-49d9-902c-3d061bc32af1/script.sh: line 28: 1569923 Terminated jupyter notebook --config="${CONFIG_FILE}"

```

Nothing has changed. It was working perfectly 2 hours ago. What could be going on here? 😟

Issue is only affecting Jupyter. I can get RStudio, Shell, and Desktop to spawn.

Thanks!

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [February 29, 2024, 5:57pm UTC](https://discourse.openondemand.org/t/timed-out-waiting-for-jupyter-was-working-nothing-changed/3309/2 "2024-02-29T17:57:25Z")

</div>

It’s not clear to me what could be happening given Jupyter doesn’t even log anything. It should be printing something to `stdout` right after you issue the command, but I see nothing there.

I would get a desktop and try to replicate the issue interactively (or ssh to the compute node while the Jupyter job is active). You can use the command `jupyter notebook --config=/home/wabuala/ondemand/data/sys/dashboard/batch_connect/sys/jupyter/output/51c67153-5f46-49d9-902c-3d061bc32af1/config.py` directly or try to run the shell scripts in that same directory as `config.py`.

---

<div class="post-metadata">

**Author:** ![walidabualafia](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/walidabualafia/32/1962_2.png) [@walidabualafia](https://discourse.openondemand.org/u/walidabualafia)\
**Post date:** [February 29, 2024, 6:19pm UTC](https://discourse.openondemand.org/t/timed-out-waiting-for-jupyter-was-working-nothing-changed/3309/3 "2024-02-29T18:19:30Z")

</div>

> [@jeff.ohrstrom](#):
>
> jupyter notebook --config=/home/wabuala/ondemand/data/sys/dashboard/batch\_connect/sys/jupyter/output/51c67153-5f46-49d9-902c-3d061bc32af1/config.py

Hi @jeff.ohrstrom ,

I just tested in an HPC Desktop, I attached the logs as screenshots below.

When I visit the link, I am getting this:

```auto
Failed to connect to noderome254:10570

```

Logs:

 ![Screenshot 2024-02-29 at 12.17.48](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/e/e7510f96ff75569e690ee06198174c4c1664d9dc.jpeg)

 ![Screenshot 2024-02-29 at 12.17.58](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/1/1f24e47d3d848a5ae27a9625056a52e75eb153fb.jpeg)

 ![Screenshot 2024-02-29 at 12.18.07](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/e/eabbdbe828d16ff25397c6bfe6a0e3af176c73b5.jpeg)

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [February 29, 2024, 6:42pm UTC](https://discourse.openondemand.org/t/timed-out-waiting-for-jupyter-was-working-nothing-changed/3309/4 "2024-02-29T18:42:31Z")

</div>

> [@walidabualafia](#):
>
> `Failed to connect to noderome254:10570`

You probably need to use `localhost` instead of the node name. I see some errors in the output, but I’d ask how long it took for it to start printing that stuff out.

> [@walidabualafia](#):
>
> Nothing has changed. It was working perfectly 2 hours ago. What could be going on here? 😟

I suspect something has changed. I’d advise you to think/ask your colleagues if anything has. Also note that Jupyter because it’s Python, may recognize the python packages you have installed in your own HOME under `~/.local/lib/<python version>`.

---

<div class="post-metadata">

**Author:** ![walidabualafia](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/walidabualafia/32/1962_2.png) [@walidabualafia](https://discourse.openondemand.org/u/walidabualafia)\
**Post date:** [February 29, 2024, 10:07pm UTC](https://discourse.openondemand.org/t/timed-out-waiting-for-jupyter-was-working-nothing-changed/3309/5 "2024-02-29T22:07:05Z")

</div>

@jeff.ohrstrom

I prematurely posted this. There was an issue on the storage side, slowing down the execution of the script. I increased the timeout and it’s working. Apologies for that, and thanks for your support! 😄

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [August 27, 2024, 10:08pm UTC](https://discourse.openondemand.org/t/timed-out-waiting-for-jupyter-was-working-nothing-changed/3309/6 "2024-08-27T22:08:06Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
