# Bad variable replaced in view.html.erb file leading to render/cache issue

**URL:** <https://discourse.openondemand.org/t/bad-variable-replaced-in-view-html-erb-file-leading-to-render-cache-issue/444>\
**Category:** Get Help\
**Created:** [July 24, 2019, 3:55am UTC](https://discourse.openondemand.org/t/bad-variable-replaced-in-view-html-erb-file-leading-to-render-cache-issue/444 "2019-07-24T03:55:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsettlag](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/rsettlag/32/78_2.png) [@rsettlag](https://discourse.openondemand.org/u/rsettlag)\
**Post date:** [July 24, 2019, 3:55am UTC](https://discourse.openondemand.org/t/bad-variable-replaced-in-view-html-erb-file-leading-to-render-cache-issue/444/1 "2019-07-24T03:55:57Z")

</div>

Hi,

Well, I thought I would be clever and replace a variable in the view.html.erb file

\<input type=“hidden” name=“password” value="\<%= password %\>"\>

With

\<input type=“hidden” name=“password” value="\<%= RSTUDIO\_PASSWORD %\>"\>

So I get the error below. After about 5 min, a couple of server restarts, the error doesn’t clear. What do I have to flush to get rid of this? The erb file is currently fixed.

# Internal Server Error

Please try again in a few moments. If you continue to see this error, please [contact support](https://ondemand-preprod.it.vt.edu/pun/sys/dashboard/batch_connect/sessions).

### Details:

#\<ActionView::Template::Error: uninitialized constant ActionView::CompiledTemplates::RSTUDIO\_PASSWORD\>

(erb):3:in `block in \_app\_views\_batch\_connect\_sessions\_connections\_\_custom\_html\_erb\_\_757312693295938920\_69865772776040’

/opt/rh/rh-ruby24/root/usr/share/ruby/erb.rb:896:in `eval’

/opt/rh/rh-ruby24/root/usr/share/ruby/erb.rb:896:in `result’

/var/www/ood/apps/sys/dashboard/app/views/batch\_connect/sessions/connections/\_custom.html.erb:1:in `\_app\_views\_batch\_connect\_sessions\_connections\_\_custom\_html\_erb\_\_757312693295938920\_69865772776040’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/template.rb:145:in `block in render’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/notifications.rb:166:in `instrument’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/template.rb:333:in `instrument’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/template.rb:143:in `render’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/partial\_renderer.rb:339:in `render\_partial’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/partial\_renderer.rb:310:in `block in render’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/abstract\_renderer.rb:39:in `block in instrument’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/notifications.rb:166:in `instrument’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/abstract\_renderer.rb:39:in `instrument’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/partial\_renderer.rb:309:in `render’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/renderer.rb:51:in `render\_partial’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/renderer.rb:25:in `render’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/rendering\_helper.rb:32:in `render’

/var/www/ood/apps/sys/dashboard/app/helpers/batch\_connect/sessions\_helper.rb:180:in `block (2 levels) in connection\_tabs’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/capture\_helper.rb:38:in `block in capture’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/capture\_helper.rb:202:in `with\_output\_buffer’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/capture\_helper.rb:38:in `capture’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/tag\_helper.rb:106:in `content\_tag’

/var/www/ood/apps/sys/dashboard/app/helpers/batch\_connect/sessions\_helper.rb:179:in `block in connection\_tabs’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/capture\_helper.rb:38:in `block in capture’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/capture\_helper.rb:202:in `with\_output\_buffer’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/capture\_helper.rb:38:in `capture’

/var/www/ood/apps/sys/dashboard/app/helpers/batch\_connect/sessions\_helper.rb:175:in `connection\_tabs’

/var/www/ood/apps/sys/dashboard/app/views/batch\_connect/sessions/\_panel.html.erb:24:in `block (2 levels) in \_app\_views\_batch\_connect\_sessions\_\_panel\_html\_erb\_\_\_1075420490425318006\_69865773898220’

/var/www/ood/apps/sys/dashboard/app/helpers/batch\_connect/sessions\_helper.rb:47:in `block (2 levels) in session\_view’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/capture\_helper.rb:38:in `block in capture’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/capture\_helper.rb:202:in `with\_output\_buffer’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/capture\_helper.rb:38:in `capture’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/tag\_helper.rb:106:in `content\_tag’

/var/www/ood/apps/sys/dashboard/app/helpers/batch\_connect/sessions\_helper.rb:47:in `block in session\_view’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/capture\_helper.rb:38:in `block in capture’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/capture\_helper.rb:202:in `with\_output\_buffer’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/capture\_helper.rb:38:in `capture’

/var/www/ood/apps/sys/dashboard/app/helpers/batch\_connect/sessions\_helper.rb:37:in `session\_view’

/var/www/ood/apps/sys/dashboard/app/views/batch\_connect/sessions/\_panel.html.erb:2:in `block in \_app\_views\_batch\_connect\_sessions\_\_panel\_html\_erb\_\_\_1075420490425318006\_69865773898220’

/var/www/ood/apps/sys/dashboard/app/helpers/batch\_connect/sessions\_helper.rb:30:in `block (2 levels) in session\_panel’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/capture\_helper.rb:38:in `block in capture’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/capture\_helper.rb:202:in `with\_output\_buffer’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/capture\_helper.rb:38:in `capture’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/tag\_helper.rb:106:in `content\_tag’

/var/www/ood/apps/sys/dashboard/app/helpers/batch\_connect/sessions\_helper.rb:29:in `block in session\_panel’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/capture\_helper.rb:38:in `block in capture’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/capture\_helper.rb:202:in `with\_output\_buffer’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/capture\_helper.rb:38:in `capture’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/tag\_helper.rb:106:in `content\_tag’

/var/www/ood/apps/sys/dashboard/app/helpers/batch\_connect/sessions\_helper.rb:3:in `session\_panel’

/var/www/ood/apps/sys/dashboard/app/views/batch\_connect/sessions/\_panel.html.erb:1:in `\_app\_views\_batch\_connect\_sessions\_\_panel\_html\_erb\_\_\_1075420490425318006\_69865773898220’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/template.rb:145:in `block in render’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/notifications.rb:166:in `instrument’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/template.rb:333:in `instrument’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/template.rb:143:in `render’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/partial\_renderer.rb:436:in `block in collection\_with\_template’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/partial\_renderer.rb:432:in `map’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/partial\_renderer.rb:432:in `collection\_with\_template’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/partial\_renderer.rb:324:in `render\_collection’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/partial\_renderer.rb:306:in `block in render’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/abstract\_renderer.rb:39:in `block in instrument’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/notifications.rb:166:in `instrument’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/abstract\_renderer.rb:39:in `instrument’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/partial\_renderer.rb:305:in `render’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/renderer.rb:51:in `render\_partial’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/renderer.rb:25:in `render’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/helpers/rendering\_helper.rb:32:in `render’

/var/www/ood/apps/sys/dashboard/app/views/batch\_connect/sessions/index.html.erb:37:in `\_app\_views\_batch\_connect\_sessions\_index\_html\_erb\_\_3455343159316458256\_17210040’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/template.rb:145:in `block in render’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/notifications.rb:166:in `instrument’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/template.rb:333:in `instrument’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/template.rb:143:in `render’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/template\_renderer.rb:54:in `block (2 levels) in render\_template’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/abstract\_renderer.rb:39:in `block in instrument’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/notifications.rb:166:in `instrument’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/abstract\_renderer.rb:39:in `instrument’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/template\_renderer.rb:53:in `block in render\_template’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/template\_renderer.rb:61:in `render\_with\_layout’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/template\_renderer.rb:52:in `render\_template’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/template\_renderer.rb:14:in `render’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/renderer.rb:46:in `render\_template’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/renderer/renderer.rb:27:in `render’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/rendering.rb:100:in `\_render\_template’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_controller/metal/streaming.rb:217:in `\_render\_template’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/rendering.rb:83:in `render\_to\_body’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_controller/metal/rendering.rb:32:in `render\_to\_body’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_controller/metal/renderers.rb:37:in `render\_to\_body’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/abstract\_controller/rendering.rb:25:in `render’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_controller/metal/rendering.rb:16:in `render’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_controller/metal/instrumentation.rb:44:in `block (2 levels) in render’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/core\_ext/benchmark.rb:12:in `block in ms’

/opt/rh/rh-ruby24/root/usr/share/ruby/benchmark.rb:308:in `realtime’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/core\_ext/benchmark.rb:12:in `ms’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_controller/metal/instrumentation.rb:44:in `block in render’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_controller/metal/instrumentation.rb:87:in `cleanup\_view\_runtime’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_controller/metal/instrumentation.rb:43:in `render’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_controller/metal/implicit\_render.rb:10:in `default\_render’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_controller/metal/implicit\_render.rb:5:in `send\_action’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/abstract\_controller/base.rb:198:in `process\_action’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_controller/metal/rendering.rb:10:in `process\_action’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/abstract\_controller/callbacks.rb:20:in `block in process\_action’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/callbacks.rb:117:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/callbacks.rb:555:in `block (2 levels) in compile’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/callbacks.rb:505:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/callbacks.rb:92:in ` **run\_callbacks** ’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/callbacks.rb:778:in `\_run\_process\_action\_callbacks’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/callbacks.rb:81:in `run\_callbacks’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/abstract\_controller/callbacks.rb:19:in `process\_action’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_controller/metal/rescue.rb:29:in `process\_action’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_controller/metal/instrumentation.rb:32:in `block in process\_action’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/notifications.rb:164:in `block in instrument’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/notifications/instrumenter.rb:20:in `instrument’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/notifications.rb:164:in `instrument’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_controller/metal/instrumentation.rb:30:in `process\_action’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_controller/metal/params\_wrapper.rb:250:in `process\_action’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/abstract\_controller/base.rb:137:in `process’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionview-4.2.11/lib/action\_view/rendering.rb:30:in `process’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_controller/metal.rb:196:in `dispatch’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_controller/metal/rack\_delegation.rb:13:in `dispatch’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_controller/metal.rb:237:in `block in action’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_dispatch/routing/route\_set.rb:74:in `dispatch’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_dispatch/routing/route\_set.rb:43:in `serve’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_dispatch/journey/router.rb:43:in `block in serve’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_dispatch/journey/router.rb:30:in `each’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_dispatch/journey/router.rb:30:in `serve’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_dispatch/routing/route\_set.rb:817:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/rack-1.6.11/lib/rack/etag.rb:24:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/rack-1.6.11/lib/rack/conditionalget.rb:25:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/rack-1.6.11/lib/rack/head.rb:13:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_dispatch/middleware/params\_parser.rb:27:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_dispatch/middleware/flash.rb:260:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/rack-1.6.11/lib/rack/session/abstract/id.rb:225:in `context’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/rack-1.6.11/lib/rack/session/abstract/id.rb:220:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_dispatch/middleware/cookies.rb:560:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_dispatch/middleware/callbacks.rb:29:in `block in call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/callbacks.rb:88:in ` **run\_callbacks** ’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/callbacks.rb:778:in `\_run\_call\_callbacks’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/callbacks.rb:81:in `run\_callbacks’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_dispatch/middleware/callbacks.rb:27:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_dispatch/middleware/remote\_ip.rb:78:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_dispatch/middleware/debug\_exceptions.rb:17:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_dispatch/middleware/show\_exceptions.rb:30:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/lograge-0.10.0/lib/lograge/rails\_ext/rack/logger.rb:15:in `call\_app’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/railties-4.2.11/lib/rails/rack/logger.rb:20:in `block in call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/tagged\_logging.rb:68:in `block in tagged’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/tagged\_logging.rb:26:in `tagged’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/tagged\_logging.rb:68:in `tagged’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/railties-4.2.11/lib/rails/rack/logger.rb:20:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/request\_store-1.4.1/lib/request\_store/middleware.rb:19:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_dispatch/middleware/request\_id.rb:21:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/rack-1.6.11/lib/rack/methodoverride.rb:22:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/rack-1.6.11/lib/rack/runtime.rb:18:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active\_support/cache/strategy/local\_cache\_middleware.rb:28:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action\_dispatch/middleware/static.rb:120:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/rack-1.6.11/lib/rack/sendfile.rb:113:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/railties-4.2.11/lib/rails/engine.rb:518:in `call’

/var/www/ood/apps/sys/dashboard/vendor/bundle/ruby/2.4.0/gems/railties-4.2.11/lib/rails/application.rb:165:in `call’

/usr/share/ruby/vendor\_ruby/phusion\_passenger/rack/thread\_handler\_extension.rb:97:in `process\_request’

/usr/share/ruby/vendor\_ruby/phusion\_passenger/request\_handler/thread\_handler.rb:149:in `accept\_and\_process\_next\_request’

/usr/share/ruby/vendor\_ruby/phusion\_passenger/request\_handler/thread\_handler.rb:110:in `main\_loop’

/usr/share/ruby/vendor\_ruby/phusion\_passenger/request\_handler.rb:415:in `block (3 levels) in start\_threads’

/usr/share/ruby/vendor\_ruby/phusion\_passenger/utils.rb:113:in `block in create\_thread\_and\_abort\_on\_exception’

---

<div class="post-metadata">

**Author:** ![rsettlag](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/rsettlag/32/78_2.png) [@rsettlag](https://discourse.openondemand.org/u/rsettlag)\
**Post date:** [July 24, 2019, 10:14am UTC](https://discourse.openondemand.org/t/bad-variable-replaced-in-view-html-erb-file-leading-to-render-cache-issue/444/2 "2019-07-24T10:14:51Z")

</div>

Update: the issue seems to have cleared itself sometime overnight.

This is now a question: would this issue have effected other users use of OOD?

---

<div class="post-metadata">

**Author:** ![efranz](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/efranz/32/27_2.png) [@efranz](https://discourse.openondemand.org/u/efranz)\
**Post date:** [July 24, 2019, 2:05pm UTC](https://discourse.openondemand.org/t/bad-variable-replaced-in-view-html-erb-file-leading-to-render-cache-issue/444/3 "2019-07-24T14:05:00Z")

</div>

So it appears that if the rendering of the view.html.erb results in an exception that exception is unhanded - thus the crash. I’m not sure what you mean by “the issue seems to have cleared itself sometime overnight”. Did you revert the functionality?

---

<div class="post-metadata">

**Author:** ![rsettlag](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/rsettlag/32/78_2.png) [@rsettlag](https://discourse.openondemand.org/u/rsettlag)\
**Post date:** [July 24, 2019, 2:07pm UTC](https://discourse.openondemand.org/t/bad-variable-replaced-in-view-html-erb-file-leading-to-render-cache-issue/444/4 "2019-07-24T14:07:52Z")

</div>

What I mean is that last night I was not able to get past the crash. Restarting the web server, logging out, refreshing, etc all landed me back on the same crash screen even though I had reverted to the proper view.html.erb form. When I started back up this morning, I was able to get back to a proper session.

---

<div class="post-metadata">

**Author:** ![efranz](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/efranz/32/27_2.png) [@efranz](https://discourse.openondemand.org/u/efranz)\
**Post date:** [July 24, 2019, 2:23pm UTC](https://discourse.openondemand.org/t/bad-variable-replaced-in-view-html-erb-file-leading-to-render-cache-issue/444/5 "2019-07-24T14:23:50Z")

</div>

When you say “Restarting the web server” do you mean restarting Apache or restarting your PUN by selecting “Restart Web Server” from the dropdown in the dashboard?

---

<div class="post-metadata">

**Author:** ![rsettlag](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/rsettlag/32/78_2.png) [@rsettlag](https://discourse.openondemand.org/u/rsettlag)\
**Post date:** [July 24, 2019, 7:03pm UTC](https://discourse.openondemand.org/t/bad-variable-replaced-in-view-html-erb-file-leading-to-render-cache-issue/444/6 "2019-07-24T19:03:40Z")

</div>

Just the dropdown. We (I) don’t have enough privs to do an Apache restart.

---

<div class="post-metadata">

**Author:** ![westburg.2](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@westburg.2](https://discourse.openondemand.org/u/westburg.2)\
**Post date:** [May 26, 2022, 3:20pm UTC](https://discourse.openondemand.org/t/bad-variable-replaced-in-view-html-erb-file-leading-to-render-cache-issue/444/7 "2022-05-26T15:20:17Z")

</div>


