# Updating 3.1.7 to 3.1.10 Shell app terminates after 2 min

**URL:** <https://discourse.openondemand.org/t/updating-3-1-7-to-3-1-10-shell-app-terminates-after-2-min/3971>\
**Category:** Get Help\
**Created:** [January 17, 2025, 9:46pm UTC](https://discourse.openondemand.org/t/updating-3-1-7-to-3-1-10-shell-app-terminates-after-2-min/3971 "2025-01-17T21:46:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kami-sloth](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/kami-sloth/32/1100_2.png) [@kami-sloth](https://discourse.openondemand.org/u/kami-sloth)\
**Post date:** [January 17, 2025, 9:46pm UTC](https://discourse.openondemand.org/t/updating-3-1-7-to-3-1-10-shell-app-terminates-after-2-min/3971/1 "2025-01-17T21:46:49Z")

</div>

Good Afternoon All,  
We recently were forced to upgrade our instance of OOD from 3.1.7 to 3.1.10 and now our users are experiencing issues with the OOD shell app where it terminates the connection after 2 min. I think this is related to: [3.1.9 seems to break the Shell app due to CSRF token issue · Issue #3894 · OSC/ondemand · GitHub](https://github.com/OSC/ondemand/issues/3894)

That said, it is unclear how to fix this. We are running the following:  
OS: Rocky Linux 9.5 (5.14.0-162.6.1.el9\_1.x86\_64)  
Httpd: httpd-2.4.62-1.el9.x86\_64  
OOD: ondemand-3.1.10-1.el9.x86\_64

Is this issue related to the above bug? Or am I just missing a new config somewhere?

Thanks for any direction.

---

<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:** [January 22, 2025, 4:17pm UTC](https://discourse.openondemand.org/t/updating-3-1-7-to-3-1-10-shell-app-terminates-after-2-min/3971/2 "2025-01-22T16:17:13Z")

</div>

> [@kami-sloth](#):
>
> Or am I just missing a new config somewhere?

Hi, sorry for the delay - Yes you are missing a new configuration. You can find more here.

[https://osc.github.io/ood-documentation/latest/customizations.html#enable-and-configure-shell-ping-pong](https://osc.github.io/ood-documentation/latest/customizations.html#enable-and-configure-shell-ping-pong)

---

<div class="post-metadata">

**Author:** ![kami-sloth](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/kami-sloth/32/1100_2.png) [@kami-sloth](https://discourse.openondemand.org/u/kami-sloth)\
**Post date:** [January 23, 2025, 6:31pm UTC](https://discourse.openondemand.org/t/updating-3-1-7-to-3-1-10-shell-app-terminates-after-2-min/3971/3 "2025-01-23T18:31:47Z")

</div>

Appreciated and no worries about he delay, I implemented the following:  
/etc/ood/config/apps/shell/env

```auto
# /etc/ood/config/apps/shell/env

#needed for shell app to not log you out every 2 minutes
OOD_SHELL_INACTIVE_TIMEOUT_MS=1200000
OOD_SHELL_MAX_DURATION_MS=3600000
# OOD_SHELL_PING_PONG=false

```

However, it is not taking affect. I tried running the ‘update\_ood\_portal’ ‘systemctl restart httpd’ and ‘restart web server’ in OOD but no dice. I read through the docs as well and couldn’t see anything else to try. Thoughts?

---

<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:** [January 23, 2025, 7:00pm UTC](https://discourse.openondemand.org/t/updating-3-1-7-to-3-1-10-shell-app-terminates-after-2-min/3971/4 "2025-01-23T19:00:19Z")

</div>

This is the default - i.e., commented out means ping pong is not enabled.

`# OOD_SHELL_PING_PONG=false`

The docs say

```auto
Setting OOD_SHELL_PING_PONG to anything will enable ping pongs.
Removing it or commenting it out will disable ping pongs
(it's disabled by default).

```

So you should likely set it to `true` or similar, a value of `false` would work, but is likely confusing.  
`OOD_SHELL_PING_PONG=true`

---

<div class="post-metadata">

**Author:** ![kami-sloth](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/kami-sloth/32/1100_2.png) [@kami-sloth](https://discourse.openondemand.org/u/kami-sloth)\
**Post date:** [January 24, 2025, 5:40pm UTC](https://discourse.openondemand.org/t/updating-3-1-7-to-3-1-10-shell-app-terminates-after-2-min/3971/5 "2025-01-24T17:40:57Z")

</div>

That makes sense now. Sorry Iw as confused about what that ENV var did. I set it to true and that fixed my issue. 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:** [July 23, 2025, 5:41pm UTC](https://discourse.openondemand.org/t/updating-3-1-7-to-3-1-10-shell-app-terminates-after-2-min/3971/6 "2025-07-23T17:41:29Z")

</div>

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