# Vncserver: The HOME environment variable is not set

**URL:** <https://discourse.openondemand.org/t/vncserver-the-home-environment-variable-is-not-set/2967>\
**Category:** Get Help\
**Created:** [September 15, 2023, 1:53pm UTC](https://discourse.openondemand.org/t/vncserver-the-home-environment-variable-is-not-set/2967 "2023-09-15T13:53:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![maestro7879](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/maestro7879/32/1865_2.png) [@maestro7879](https://discourse.openondemand.org/u/maestro7879)\
**Post date:** [September 15, 2023, 1:53pm UTC](https://discourse.openondemand.org/t/vncserver-the-home-environment-variable-is-not-set/2967/1 "2023-09-15T13:53:55Z")

</div>

Receiving the above when attempting to start an Interactive Desktop.

slurmd.log  
[2023-09-15T13:45:17.384] error: Failed to get current user environment variables  
[2023-09-15T13:45:17.384] error: \_get\_user\_env: Unable to get user’s local environment, running only with passed environment  
[2023-09-15T13:45:17.384] Launching batch job 25 for UID 1001

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:** [September 15, 2023, 1:59pm UTC](https://discourse.openondemand.org/t/vncserver-the-home-environment-variable-is-not-set/2967/2 "2023-09-15T13:59:43Z")

</div>

Since that’s coming from a Slurm deamon it’s a little out of our wheelhouse.

Do you get errors like that when running jobs that you’d issue from the command line? I.e., do you get the same errors without OnDemand?

---

<div class="post-metadata">

**Author:** ![maestro7879](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/maestro7879/32/1865_2.png) [@maestro7879](https://discourse.openondemand.org/u/maestro7879)\
**Post date:** [September 15, 2023, 7:20pm UTC](https://discourse.openondemand.org/t/vncserver-the-home-environment-variable-is-not-set/2967/3 "2023-09-15T19:20:12Z")

</div>

User wasn’t created on compute node.  
Fixed the user replication to compute nodes. Thanks.

---

<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:** [March 13, 2024, 7:21pm UTC](https://discourse.openondemand.org/t/vncserver-the-home-environment-variable-is-not-set/2967/4 "2024-03-13T19:21:08Z")

</div>

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