# Linux host adapter issues

**URL:** <https://discourse.openondemand.org/t/linux-host-adapter-issues/2889>\
**Category:** Get Help\
**Created:** [August 8, 2023, 2:41pm UTC](https://discourse.openondemand.org/t/linux-host-adapter-issues/2889 "2023-08-08T14:41:35Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![bmx](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/bmx/32/1774_2.png) [@bmx](https://discourse.openondemand.org/u/bmx)\
**Post date:** [August 8, 2023, 7:32pm UTC](https://discourse.openondemand.org/t/linux-host-adapter-issues/2889/3 "2023-08-08T19:32:50Z")

</div>

It is the entire file; it was generated using the Ansible vars that I included. I will attach the files tomorrow, for better context.

**Update** : Attaching the file and some more information.

[ood.yml](https://discourse.openondemand.org/uploads/short-url/y3pGfL98fRfmeQsdEtx5cFk5zIK.yml) (3.6 KB)

After manually modifying the file as seen [here](https://discourse.openondemand.org/t/linux-host-adapter-errors/886/3) I do not see the “undefined method” issue, however I see that it is trying to connect using Slurm.

Logs **/var/log/ondemand-nginx/bcasano/error.log**

```shell
App 126174 output: [2023-08-09 09:50:19 +0200] INFO "method=POST path=/pun/sys/dashboard/batch_connect/sys/bc_desktop/tenanta/session_contexts format=html controller=BatchConnect::SessionContextsController action=create status=302 duration=19996.50 view=0.00 location=https://ood-tenanta.leomed.ethz.ch/pun/sys/dashboard/batch_connect/sessions"
App 126174 output: [2023-08-09 09:50:20 +0200] INFO "execve = [{}, \"ssh\", \"-t\", \"-p\", \"22\", \"-o\", \"BatchMode=yes\", \"-o\", \"UserKnownHostsFile=/dev/null\", \"-o\", \"StrictHostKeyChecking=no\", \"bcasano@login-tenanta-01\", \"tmux\", \"list-panes\", \"-aF\", \"\\\\#\\\\{session_name\\\\},\\\\#\\\\{session_created\\\\},\\\\#\\\\{pane_pid\\\\}\"]"
App 126174 output: [2023-08-09 09:50:21 +0200] ERROR "157 is not a valid LinuxHost adapter id because it is missing the '@'."
App 126174 output: [2023-08-09 09:50:21 +0200] INFO "method=GET path=/pun/sys/dashboard/batch_connect/sessions format=html controller=BatchConnect::SessionsController action=index status=200 duration=1733.13 view=28.24"

```

Reviewing the session output logs **/cluster/home/bcasano/ondemand/data/sys/dashboard/batch\_connect/sys/bc\_desktop/tenanta/output/79d6b124-9a6c-43d6-b81f-4f52ccb1b740** I see the job is trying to connect to a different host.

**connection.yml**

```yaml
host: compute-tenanta-01
port: 5902
password: SOMEPASSWORD
display: 2
websocket: 21984
spassword: SOMEOTHERPASSWORD

```

**output.log**

```shell
Setting VNC password...
Starting VNC server...

Desktop 'TurboVNC: compute-tenanta-01:2 (bcasano)' started on display compute-tenanta-01:2

Log file is vnc.log
Successfully started VNC server on compute-tenanta-01:5902...
Script starting...
Starting websocket server...
/cluster/home/bcasano/ondemand/data/sys/dashboard/batch_connect/sys/bc_desktop/tenanta/output/79d6b124-9a6c-43d6-b81f-4f52ccb1b740/script.sh: line 7: module: command not found
Launching desktop 'xfce'...
WebSocket server settings:
  - Listen on :21984
  - No SSL/TLS support (no cert file)
  - Backgrounding (daemon)
Scanning VNC log file for user authentications...
Generating connection YAML file...
/usr/bin/iceauth: creating new authority file /run/user/528867/ICEauthority

(xfce4-session:1546229): xfce4-session-WARNING **: 12:47:36.326: xfsm_manager_load_session: Something wrong with /cluster/home/bcasano/.cache/sessions/xfce4-session-compute-tenanta-01:2, Does it exist? Permissions issue?

```

The `line 7: module: command not found` error seems to be because it’s running the default script from `/var/www/ood/apps/sys/bc_desktop/template/script.sh.erb`.

Just in case, I removed `slurm-client` package from the host but I’m still seeing the same behavior.

Please, let me know if you need any other logs or something. I get the impression this might be a problem with my Ansible YAML configurations but I’m unable to see it.

---

_[View the full topic](https://discourse.openondemand.org/t/linux-host-adapter-issues/2889)._
