# Jupiter interactive app LHA

**URL:** <https://discourse.openondemand.org/t/jupiter-interactive-app-lha/2154>\
**Category:** Get Help\
**Created:** [July 3, 2022, 10:45pm UTC](https://discourse.openondemand.org/t/jupiter-interactive-app-lha/2154 "2022-07-03T22:45:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mstobar](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/mstobar/32/1181_2.png) [@mstobar](https://discourse.openondemand.org/u/mstobar)\
**Post date:** [July 3, 2022, 10:45pm UTC](https://discourse.openondemand.org/t/jupiter-interactive-app-lha/2154/1 "2022-07-03T22:45:50Z")

</div>

Hello everyone! I am a newbie here. I’ve managed to install Open OnDemand with Dex LDAP authentication, and now I’m trying to run Jupyter using this tutorial:

[https://osc.github.io/ood-documentation/latest/app-development/tutorials-interactive-apps/add-jupyter.html](https://osc.github.io/ood-documentation/latest/app-development/tutorials-interactive-apps/add-jupyter.html)

Some details:

- Resource manager: LinuxHost Adapter
- Host based authentication working between OOD node and target host
- Singularity Jupyter image tested working on target host

I’ve reached the end of the tutorial, but Jupyter doesn’t appear to be running.

This is what I do:

- Interactive Apps menu
- Jupyter Notebook
- Account: myusername, Queue: blank, Number of hours: 1 Number of nodes: 1
- Click on Launch
- I see the message “Session was successfully created” and a “card” with information: Jupyter Notebook [https://ood.laboratorio/pun/sys/dashboard/batch\_connect/sys/jupyter/session\_contexts/new](https://ood.laboratorio/pun/sys/dashboard/batch_connect/sys/jupyter/session_contexts/new)) (launched-by-ondemand-e636b9f6-8dbc-4754-be09-8ce60dc8f7e7@theia) …

But nothing more, no Jupyter web interface is available. On the compute node, I don’t see any ports open, nevertheless, I see OOD node logging in.  
No relevant information on /var/log/ondemand-nginx/user/error.log either.  
I don’t know how to continue from here, can anyone give me some hint?

---

<div class="post-metadata">

**Author:** ![liu-shaobo](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/liu-shaobo/32/1152_2.png) [@liu-shaobo](https://discourse.openondemand.org/u/liu-shaobo)\
**Post date:** [July 4, 2022, 10:30am UTC](https://discourse.openondemand.org/t/jupiter-interactive-app-lha/2154/2 "2022-07-04T10:30:44Z")

</div>

Look at the output.log file in the $HOME/ondemand/data/sys/dashboard/batch\_connect/sys/bc\_jupyter directory

---

<div class="post-metadata">

**Author:** ![mstobar](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/mstobar/32/1181_2.png) [@mstobar](https://discourse.openondemand.org/u/mstobar)\
**Post date:** [July 4, 2022, 1:50pm UTC](https://discourse.openondemand.org/t/jupiter-interactive-app-lha/2154/3 "2022-07-04T13:50:10Z")

</div>

Thanks for your response Liu. I don’t have that file/directory:

$ ls $HOME/ondemand/data/sys/dashboard/batch\_connect/sys/jupyter/  
context.json output

$ ls $HOME/ondemand/data/sys/dashboard/batch\_connect/sys/jupyter/output/  
3ea6ae52-e19e-4058-8f9a-4643d043a359 6198c968-4350-416c-bfac-c857d1f9e8b7 da7a315e-2251-433d-b312-c3cde94db838  
588be745-be2f-4427-9a0e-23052b9da49f d2c16b8f-1a6a-43d1-b8c5-cab46ad3dc69

$ ls $HOME/ondemand/data/sys/dashboard/batch\_connect/sys/jupyter/output/3ea6ae52-e19e-4058-8f9a-4643d043a359/  
after.sh before.sh job\_script\_content.sh job\_script\_options.json script.sh user\_defined\_context.json

Cluster file: /etc/ood/config/clusters.d/jupyter.yml

Thanks for your help

---

<div class="post-metadata">

**Author:** ![liu-shaobo](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/liu-shaobo/32/1152_2.png) [@liu-shaobo](https://discourse.openondemand.org/u/liu-shaobo)\
**Post date:** [July 4, 2022, 2:26pm UTC](https://discourse.openondemand.org/t/jupiter-interactive-app-lha/2154/4 "2022-07-04T14:26:33Z")

</div>

View the contents of the following files  
bc\_example\_jupyter/  
├── form.yml  
├── manifest.yml  
├── submit.yml.erb  
├── template  
│ ├── before.sh.erb  
│ └── script.sh.erb  
└── view.html.erb

---

<div class="post-metadata">

**Author:** ![mstobar](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/mstobar/32/1181_2.png) [@mstobar](https://discourse.openondemand.org/u/mstobar)\
**Post date:** [July 4, 2022, 7:52pm UTC](https://discourse.openondemand.org/t/jupiter-interactive-app-lha/2154/5 "2022-07-04T19:52:30Z")

</div>

The files are based on [GitHub - OSC/bc\_example\_jupyter: Batch Connect - Example Jupyter Notebook Server](https://github.com/OSC/bc_example_jupyter)  
Only form.yml has a change:  
cluster: “jupyter” (this is correct)

manifest.yml, submit.yml.erb, before.sh.erb, script.sh.erb, view.html.erb without changes

---

<div class="post-metadata">

**Author:** ![liu-shaobo](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/liu-shaobo/32/1152_2.png) [@liu-shaobo](https://discourse.openondemand.org/u/liu-shaobo)\
**Post date:** [July 5, 2022, 2:04am UTC](https://discourse.openondemand.org/t/jupiter-interactive-app-lha/2154/6 "2022-07-05T02:04:37Z")

</div>

What is the file content of submit.yml.erb and script.sh.erb？

---

<div class="post-metadata">

**Author:** ![mstobar](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/mstobar/32/1181_2.png) [@mstobar](https://discourse.openondemand.org/u/mstobar)\
**Post date:** [July 5, 2022, 11:48pm UTC](https://discourse.openondemand.org/t/jupiter-interactive-app-lha/2154/7 "2022-07-05T23:48:52Z")

</div>

submit.yml.erb

```auto
# Job submission configuration file
#
---

#
# Configure the content of the job script for the batch job here
# @see http://www.rubydoc.info/gems/ood_core/OodCore/BatchConnect/Template
#
batch_connect:
  # We use the basic web server template for generating the job script
  #
  # @note Do not change this unless you know what you are doing!
  template: "basic"

  # You can override the command used to query the hostname of the compute node
  # here
  #
  # @note It is **highly** recommended this be set in the global cluster
  # configuration file so that all apps can take advantage of it by default
  #
  #set_host: "host=$(hostname -A | awk '{print $2}')"

#
# Configure the job script submission parameters for the batch job here
# @see http://www.rubydoc.info/gems/ood_core/OodCore/Job/Script
#
#script:
# queue_name: "queue1"
# accounting_id: "account1"
# email_on_started: true
# native: # ... array of command line arguments ...

```

```auto
#!/usr/bin/env bash

# Benchmark info
echo "TIMING - Starting main script at: $(date)"

# Set working directory to home directory
cd "${HOME}"

#
# Start Jupyter Notebook Server
#

<%- unless context.modules.blank? -%>
# Purge the module environment to avoid conflicts
module purge

# Load the require modules
module load <%= context.modules %>

# List loaded modules
module list
<%- end -%>

# Benchmark info
echo "TIMING - Starting jupyter at: $(date)"

# Launch the Jupyter Notebook Server
set -x
jupyter notebook --config="${CONFIG_FILE}" <%= context.extra_jupyter_args %>

```

---

<div class="post-metadata">

**Author:** ![liu-shaobo](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/liu-shaobo/32/1152_2.png) [@liu-shaobo](https://discourse.openondemand.org/u/liu-shaobo)\
**Post date:** [July 6, 2022, 3:12am UTC](https://discourse.openondemand.org/t/jupiter-interactive-app-lha/2154/8 "2022-07-06T03:12:19Z")

</div>

My file contents

```auto
---
batch_connect:
  template: "basic"
script:
  native:
    - "-N"
    - "<%= bc_num_slots.blank? ? 1 : bc_num_slots.to_i %>"

```

```auto
---
cluster: "linux"
attributes:
  modules: "python/3.8"
  extra_jupyter_args: ""
form:
  - modules
  - extra_jupyter_args
  - bc_account
  - bc_queue
  - bc_num_hours
  - bc_num_slots
  - bc_email_on_started

```

---

<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:** [January 2, 2023, 3:12am UTC](https://discourse.openondemand.org/t/jupiter-interactive-app-lha/2154/9 "2023-01-02T03:12:40Z")

</div>

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