# Nginx crashes for a user

**URL:** <https://discourse.openondemand.org/t/nginx-crashes-for-a-user/2187>\
**Category:** Get Help\
**Tags:** ondemand2, question\
**Created:** [July 14, 2022, 7:33pm UTC](https://discourse.openondemand.org/t/nginx-crashes-for-a-user/2187 "2022-07-14T19:33:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsand](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/rsand/32/743_2.png) [@rsand](https://discourse.openondemand.org/u/rsand)\
**Post date:** [July 14, 2022, 7:33pm UTC](https://discourse.openondemand.org/t/nginx-crashes-for-a-user/2187/1 "2022-07-14T19:33:19Z")

</div>

I have a user who when he closes the tab on an interactive desktop and deletes the session gets a long list of errors starting with:

#\<ActionView::Template::Error: No such file or directory - /var/www/ood/apps/sys/7cfd9a6d-afcc-4145-bcc4-e373d42d2a95\>

As you can see that it is looking for the users session directory not in his home directory but in the /var/www/ood/apps/sys application directory. This doesn’t always happen to them and they seem to be the only one it happens to. There is nothing unusual in the /var/log/ondemand\_nginx/user/error.log file and only some missing font errors in the vnc.log file for the session. Is there something else I should look at to see why this is happening?

---

<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:** [July 14, 2022, 7:48pm UTC](https://discourse.openondemand.org/t/nginx-crashes-for-a-user/2187/2 "2022-07-14T19:48:01Z")

</div>

It’s a transitory error - meaning it just happens sometimes. Could happen to anyone. It can be safely ignored and the user should just try to delete the session again.

> <https://github.com/OSC/ondemand/issues/659>
>
> I got the following error today when I chose "Delete" for an interactive Jupyter… app on apps-dev.awesim.org:
> 
> #\<ActionView::Template::Error: No such file or directory - /var/www/ood/apps/sys/741bc00a-39ad-46c3-a05b-e3d9dacdad54\>
>     
> /opt/rh/rh-ruby25/root/usr/share/ruby/open3.rb:199:in \`spawn'
> /opt/rh/rh-ruby25/root/usr/share/ruby/open3.rb:199:in \`popen\_run'
> /opt/rh/rh-ruby25/root/usr/share/ruby/open3.rb:95:in \`popen3'
> /opt/rh/rh-ruby25/root/usr/share/ruby/open3.rb:258:in \`capture3'
> /var/www/ood/apps/sys/dashboard/config/initializers/open3\_extensions.rb:4:in \`capture3'
> /var/www/ood/apps/sys/dashboard/app/apps/ood\_app.rb:267:in \`version\_from\_git'
> /var/www/ood/apps/sys/dashboard/app/apps/ood\_app.rb:260:in \`version'
> /var/www/ood/apps/sys/dashboard/app/models/batch\_connect/app.rb:238:in \`version'
> /var/www/ood/apps/sys/dashboard/app/views/batch\_connect/session\_contexts/new.html.erb:71:in \`\_app\_views\_batch\_connect\_session\_contexts\_new\_html\_erb\_\_\_3154491720144088897\_70277781750520'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionview-5.2.4.3/lib/action\_view/template.rb:159:in \`block in render'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/activesupport-5.2.4.3/lib/active\_support/notifications.rb:170:in \`instrument'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionview-5.2.4.3/lib/action\_view/template.rb:354:in \`instrument\_render\_template'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionview-5.2.4.3/lib/action\_view/template.rb:157:in \`render'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionview-5.2.4.3/lib/action\_view/renderer/template\_renderer.rb:54:in \`block (2 levels) in render\_template'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionview-5.2.4.3/lib/action\_view/renderer/abstract\_renderer.rb:44:in \`block in instrument'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/activesupport-5.2.4.3/lib/active\_support/notifications.rb:170:in \`instrument'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionview-5.2.4.3/lib/action\_view/renderer/abstract\_renderer.rb:43:in \`instrument'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionview-5.2.4.3/lib/action\_view/renderer/template\_renderer.rb:53:in \`block in render\_template'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionview-5.2.4.3/lib/action\_view/renderer/template\_renderer.rb:61:in \`render\_with\_layout'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionview-5.2.4.3/lib/action\_view/renderer/template\_renderer.rb:52:in \`render\_template'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionview-5.2.4.3/lib/action\_view/renderer/template\_renderer.rb:16:in \`render'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionview-5.2.4.3/lib/action\_view/renderer/renderer.rb:44:in \`render\_template'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionview-5.2.4.3/lib/action\_view/renderer/renderer.rb:25:in \`render'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionview-5.2.4.3/lib/action\_view/rendering.rb:103:in \`\_render\_template'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_controller/metal/streaming.rb:219:in \`\_render\_template'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionview-5.2.4.3/lib/action\_view/rendering.rb:84:in \`render\_to\_body'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_controller/metal/rendering.rb:52:in \`render\_to\_body'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_controller/metal/renderers.rb:142:in \`render\_to\_body'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/abstract\_controller/rendering.rb:25:in \`render'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_controller/metal/rendering.rb:36:in \`render'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_controller/metal/instrumentation.rb:46:in \`block (2 levels) in render'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/activesupport-5.2.4.3/lib/active\_support/core\_ext/benchmark.rb:14:in \`block in ms'
> /opt/rh/rh-ruby25/root/usr/share/ruby/benchmark.rb:308:in \`realtime'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/activesupport-5.2.4.3/lib/active\_support/core\_ext/benchmark.rb:14:in \`ms'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_controller/metal/instrumentation.rb:46:in \`block in render'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_controller/metal/instrumentation.rb:87:in \`cleanup\_view\_runtime'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_controller/metal/instrumentation.rb:45:in \`render'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_controller/metal/implicit\_render.rb:35:in \`default\_render'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_controller/metal/basic\_implicit\_render.rb:6:in \`block in send\_action'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_controller/metal/basic\_implicit\_render.rb:6:in \`tap'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_controller/metal/basic\_implicit\_render.rb:6:in \`send\_action'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/abstract\_controller/base.rb:194:in \`process\_action'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_controller/metal/rendering.rb:30:in \`process\_action'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/abstract\_controller/callbacks.rb:42:in \`block in process\_action'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/activesupport-5.2.4.3/lib/active\_support/callbacks.rb:132:in \`run\_callbacks'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/abstract\_controller/callbacks.rb:41:in \`process\_action'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_controller/metal/rescue.rb:22:in \`process\_action'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_controller/metal/instrumentation.rb:34:in \`block in process\_action'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/activesupport-5.2.4.3/lib/active\_support/notifications.rb:168:in \`block in instrument'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/activesupport-5.2.4.3/lib/active\_support/notifications/instrumenter.rb:23:in \`instrument'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/activesupport-5.2.4.3/lib/active\_support/notifications.rb:168:in \`instrument'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_controller/metal/instrumentation.rb:32:in \`process\_action'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_controller/metal/params\_wrapper.rb:256:in \`process\_action'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/abstract\_controller/base.rb:134:in \`process'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionview-5.2.4.3/lib/action\_view/rendering.rb:32:in \`process'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_controller/metal.rb:191:in \`dispatch'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_controller/metal.rb:252:in \`dispatch'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_dispatch/routing/route\_set.rb:52:in \`dispatch'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_dispatch/routing/route\_set.rb:34:in \`serve'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_dispatch/journey/router.rb:52:in \`block in serve'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_dispatch/journey/router.rb:35:in \`each'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_dispatch/journey/router.rb:35:in \`serve'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_dispatch/routing/route\_set.rb:840:in \`call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/rack-2.2.3/lib/rack/tempfile\_reaper.rb:15:in \`call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/rack-2.2.3/lib/rack/etag.rb:27:in \`call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/rack-2.2.3/lib/rack/conditional\_get.rb:27:in \`call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/rack-2.2.3/lib/rack/head.rb:12:in \`call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_dispatch/http/content\_security\_policy.rb:18:in \`call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:266:in \`context'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:260:in \`call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_dispatch/middleware/cookies.rb:670:in \`call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_dispatch/middleware/callbacks.rb:28:in \`block in call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/activesupport-5.2.4.3/lib/active\_support/callbacks.rb:98:in \`run\_callbacks'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_dispatch/middleware/callbacks.rb:26:in \`call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_dispatch/middleware/debug\_exceptions.rb:61:in \`call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_dispatch/middleware/show\_exceptions.rb:33:in \`call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/lograge-0.11.2/lib/lograge/rails\_ext/rack/logger.rb:15:in \`call\_app'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/railties-5.2.4.3/lib/rails/rack/logger.rb:26:in \`block in call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/activesupport-5.2.4.3/lib/active\_support/tagged\_logging.rb:71:in \`block in tagged'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/activesupport-5.2.4.3/lib/active\_support/tagged\_logging.rb:28:in \`tagged'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/activesupport-5.2.4.3/lib/active\_support/tagged\_logging.rb:71:in \`tagged'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/railties-5.2.4.3/lib/rails/rack/logger.rb:26:in \`call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_dispatch/middleware/remote\_ip.rb:81:in \`call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/request\_store-1.5.0/lib/request\_store/middleware.rb:19:in \`call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_dispatch/middleware/request\_id.rb:27:in \`call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/rack-2.2.3/lib/rack/method\_override.rb:24:in \`call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/rack-2.2.3/lib/rack/runtime.rb:22:in \`call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/activesupport-5.2.4.3/lib/active\_support/cache/strategy/local\_cache\_middleware.rb:29:in \`call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_dispatch/middleware/executor.rb:14:in \`call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/actionpack-5.2.4.3/lib/action\_dispatch/middleware/static.rb:127:in \`call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/rack-2.2.3/lib/rack/sendfile.rb:110:in \`call'
> /opt/ood/ondemand/root/usr/share/gems/2.5/ondemand/1.8.8/gems/railties-5.2.4.3/lib/rails/engine.rb:524:in \`call'
> /opt/rh/ondemand/root/usr/share/ruby/vendor\_ruby/phusion\_passenger/rack/thread\_handler\_extension.rb:97:in \`process\_request'
> /opt/rh/ondemand/root/usr/share/ruby/vendor\_ruby/phusion\_passenger/request\_handler/thread\_handler.rb:149:in \`accept\_and\_process\_next\_request'
> /opt/rh/ondemand/root/usr/share/ruby/vendor\_ruby/phusion\_passenger/request\_handler/thread\_handler.rb:110:in \`main\_loop'
> /opt/rh/ondemand/root/usr/share/ruby/vendor\_ruby/phusion\_passenger/request\_handler.rb:415:in \`block (3 levels) in start\_threads'
> /opt/rh/ondemand/root/usr/share/ruby/vendor\_ruby/phusion\_passenger/utils.rb:113:in \`block in create\_thread\_and\_abort\_on\_exception'URL: \`https://apps-dev.awesim.org/pun/sys/dashboard/batch\_connect/sessions/741bc00a-39ad-46c3-a05b-e3d9dacdad54\`Screenshot:!\[\](https://user-images.githubusercontent.com/739622/91850941-624ab200-ec2c-11ea-8051-0d3c8df6b31d.png)TIME: around 8:22 AM
> 
> ┆Issue is synchronized with this \[Asana task\](https://app.asana.com/0/1201735133575781/1201737585830654) by \[Unito\](https://www.unito.io)

---

<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:** [January 10, 2023, 7:48pm UTC](https://discourse.openondemand.org/t/nginx-crashes-for-a-user/2187/3 "2023-01-10T19:48:58Z")

</div>

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