# No modules loaded issue on dev environment

**URL:** <https://discourse.openondemand.org/t/no-modules-loaded-issue-on-dev-environment/2900>\
**Category:** Get Help\
**Tags:** question\
**Created:** [August 14, 2023, 11:22pm UTC](https://discourse.openondemand.org/t/no-modules-loaded-issue-on-dev-environment/2900 "2023-08-14T23:22:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenny](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/kenny/32/1688_2.png) [@Kenny](https://discourse.openondemand.org/u/Kenny)\
**Post date:** [August 14, 2023, 11:22pm UTC](https://discourse.openondemand.org/t/no-modules-loaded-issue-on-dev-environment/2900/1 "2023-08-14T23:22:44Z")

</div>

Hello everyone,  
I’m currently working on deploying IGV within our Open OnDemand 3.0.1 environment. However, I’ve encountered some issues with the modules not being loaded. I would greatly appreciate it if someone could provide assistance with this matter. I’ll be attaching the YAML files and output in my next replies.

Thank you.

This is form.yml

```auto
---
cluster: "slurm"
attributes:
  bc_num_hours:
    value: 1

  bc_num_slots:
    label: Number of CPU
    value: 1
    min: 1
    max: 24
    step: 1

  bc_num_mems:
    widget: "number_field"
    label: Memory per CPU (GB)
    value: 4
    min: 1
    max: 128
    step: 1

  bc_partition:
    widget: select
    label: Partition
    options:
      - ["compute", "compute"]

  modules:
     widget: select
     label: "igv 2.16.2"
     help: "This defines the version of igv you want to load."
     options:
       - ["2.16.2", "igv/IGV_2.16.2"]

form:
  - modules
  - bc_num_hours
  - bc_partition
  - bc_num_slots
  - bc_num_mems
  - bc_email_on_started

```

---

<div class="post-metadata">

**Author:** ![Kenny](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/kenny/32/1688_2.png) [@Kenny](https://discourse.openondemand.org/u/Kenny)\
**Post date:** [August 14, 2023, 11:23pm UTC](https://discourse.openondemand.org/t/no-modules-loaded-issue-on-dev-environment/2900/2 "2023-08-14T23:23:30Z")

</div>

submit.yml.erb

```auto
---
batch_connect:
  template: "vnc"
script:
  native:
    - "-N 1"
    - "-n <%= bc_num_slots.blank? ? 1 : bc_num_slots.to_i %>"
    - "--mem-per-cpu=<%= bc_num_mems.blank? ? 4 : bc_num_mems.to_i %>G"
    - "--partition=<%= bc_partition %>"
    - "--time=<%= bc_num_hours.blank? ? 1 : bc_num_hours.to_i %>:00:00"
    - "--job-name=ood-igv"

```

---

<div class="post-metadata">

**Author:** ![Kenny](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/kenny/32/1688_2.png) [@Kenny](https://discourse.openondemand.org/u/Kenny)\
**Post date:** [August 14, 2023, 11:24pm UTC](https://discourse.openondemand.org/t/no-modules-loaded-issue-on-dev-environment/2900/3 "2023-08-14T23:24:35Z")

</div>

template/script.sh.erb

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

# Clean the environment
module reset

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

#
# Launch Xfce Window Manager and Panel
#

(
  export SEND_256_COLORS_TO_REMOTE=1
  export XDG_CONFIG_HOME="<%= session.staged_root.join("config") %>"
  export XDG_DATA_HOME="<%= session.staged_root.join("share") %>"
  export XDG_CACHE_HOME="$(mktemp -d)"
  module restore
  set -x
  xfwm4 --compositor=off --daemon --sm-client-disable
  xsetroot -solid "#D3D3D3"
  xfsettingsd --sm-client-disable
  xfce4-panel --sm-client-disable
) &

#
# Start your GUI app
#

# Load the required environment
module load <%= context.modules %>
module list
set -x

# Launch your GUI app
#EXECUTE_COMMAND_TO_LAUNCH_GUI_APP
igvtools_gui.command &
igv.sh

```

---

<div class="post-metadata">

**Author:** ![Kenny](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/kenny/32/1688_2.png) [@Kenny](https://discourse.openondemand.org/u/Kenny)\
**Post date:** [August 14, 2023, 11:25pm UTC](https://discourse.openondemand.org/t/no-modules-loaded-issue-on-dev-environment/2900/4 "2023-08-14T23:25:15Z")

</div>

output

```auto
Setting VNC password...
Starting VNC server...

Desktop 'TurboVNC: appliance-compute-0.novalocal:1 (kenny)' started on display appliance-compute-0.novalocal:1

Log file is vnc.log
Successfully started VNC server on appliance-compute-0:5901...
Script starting...
Starting websocket server...
The system default contains no modules
  (env var: LMOD_SYSTEM_DEFAULT_MODULES is empty)
  No changes in loaded modules

The system default contains no modules
  (env var: LMOD_SYSTEM_DEFAULT_MODULES is empty)
  No changes in loaded modules

++ xfwm4 --compositor=off --daemon --sm-client-disable
xfwm4: Unknown option --daemon.
Type "xfwm4 --help" for usage.
++ xsetroot -solid '#D3D3D3'
++ xfsettingsd --sm-client-disable
Lmod has detected the following error: The following module(s) are unknown:
"igv/IGV_2.16.2"

Please check the spelling or version number. Also try "module spider ..."
It is also possible your cache file is out-of-date; it may help to try:
  $ module --ignore_cache load "igv/IGV_2.16.2"

Also make sure that all modulefiles written in TCL start with the string
#%Module

No modules loaded
++ igv.sh
++ igvtools_gui.command
/home/kenny/ondemand/data/sys/dashboard/batch_connect/dev/igv/output/e8d1ac34-743e-4ad0-ad89-af8c610364e2/script.sh: line 81: igvtools_gui.command: command not found
/home/kenny/ondemand/data/sys/dashboard/batch_connect/dev/igv/output/e8d1ac34-743e-4ad0-ad89-af8c610364e2/script.sh: line 82: igv.sh: command not found
WebSocket server settings:
  - Listen on :63028
  - No SSL/TLS support (no cert file)
  - Backgrounding (daemon)
Scanning VNC log file for user authentications...
Generating connection YAML file...
Cleaning up...
Killing Xvnc process ID 246405
++ xfce4-panel --sm-client-disable
Unable to init server: Could not connect: Connection refused
xfce4-panel: Cannot open display: .
Type "xfce4-panel --help" for usage.

```

---

<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:** [February 10, 2024, 11:25pm UTC](https://discourse.openondemand.org/t/no-modules-loaded-issue-on-dev-environment/2900/5 "2024-02-10T23:25:29Z")

</div>

Closed on February 10, 2024, 11:25pm UTC

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