# Error: no HOME environment variable for single user

**URL:** <https://discourse.openondemand.org/t/error-no-home-environment-variable-for-single-user/2681>\
**Category:** Get Help\
**Created:** [May 4, 2023, 5:45pm UTC](https://discourse.openondemand.org/t/error-no-home-environment-variable-for-single-user/2681 "2023-05-04T17:45:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![brad.traver](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@brad.traver](https://discourse.openondemand.org/u/brad.traver)\
**Post date:** [May 4, 2023, 5:45pm UTC](https://discourse.openondemand.org/t/error-no-home-environment-variable-for-single-user/2681/1 "2023-05-04T17:45:18Z")

</div>

I have one user who keeps getting the following errors with interactive apps in OnDemand 3.0.0:

```auto
Error: no HOME environment variable
vncserver: The HOME environment variable is not set.

```

Following the information provided in [this post](https://discourse.openondemand.org/t/error-no-home-environment-variable/1816/12), it did not resolve the issue. I recreated the user’s account which also didn’t resolve the issue. I manually set the HOME environment variable in their .bashrc and in the submission script of our test app, neither of which resolved the issue. I am completely stumped.

---

<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:** [May 4, 2023, 5:52pm UTC](https://discourse.openondemand.org/t/error-no-home-environment-variable-for-single-user/2681/2 "2023-05-04T17:52:26Z")

</div>

If it’s only 1 user, yes I would look at their `~/.bashrc` and/or `~/.profile` and/or any other file they may be using (other shell profile if they use say zsh or something other than bash).

What type of scheduler are you using?

---

<div class="post-metadata">

**Author:** ![brad.traver](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@brad.traver](https://discourse.openondemand.org/u/brad.traver)\
**Post date:** [May 4, 2023, 5:53pm UTC](https://discourse.openondemand.org/t/error-no-home-environment-variable-for-single-user/2681/3 "2023-05-04T17:53:09Z")

</div>

We’re using Slurm. I’ll check their .profile as I haven’t checked that yet.

---

<div class="post-metadata">

**Author:** ![brad.traver](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@brad.traver](https://discourse.openondemand.org/u/brad.traver)\
**Post date:** [May 4, 2023, 5:54pm UTC](https://discourse.openondemand.org/t/error-no-home-environment-variable-for-single-user/2681/4 "2023-05-04T17:54:40Z")

</div>

Turns out there is no .profile. We’re using RHEL 7.9.

---

<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:** [May 4, 2023, 6:17pm UTC](https://discourse.openondemand.org/t/error-no-home-environment-variable-for-single-user/2681/5 "2023-05-04T18:17:31Z")

</div>

Is bash their login shell?

---

<div class="post-metadata">

**Author:** ![brad.traver](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@brad.traver](https://discourse.openondemand.org/u/brad.traver)\
**Post date:** [May 4, 2023, 6:19pm UTC](https://discourse.openondemand.org/t/error-no-home-environment-variable-for-single-user/2681/6 "2023-05-04T18:19:16Z")

</div>

Yes it is.

```auto
echo $SHELL
/bin/bash

```

---

<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:** [October 31, 2023, 6:19pm UTC](https://discourse.openondemand.org/t/error-no-home-environment-variable-for-single-user/2681/7 "2023-10-31T18:19:38Z")

</div>

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