Alrighty. Looks like this should be the last issue. I’m getting this error when I log in:
Permission denied @ dir_s_mkdir - /var/www/ood/apps/sys/dashboard/tmp/cache>
What should the permissions be for that directory?
Alrighty. Looks like this should be the last issue. I’m getting this error when I log in:
Permission denied @ dir_s_mkdir - /var/www/ood/apps/sys/dashboard/tmp/cache>
What should the permissions be for that directory?
It should not be trying to make that directory.
What does a similar grep
return here?
[johrstrom rpm()] grep cache_store /var/www/ood/apps/sys/dashboard/config/environments/production.rb
config.cache_store = :memory_store
Also what’s in your /etc/ood/config/apps/dashboard/*env*
file(s)? It appears to be launching in development mode instead of production.
[root@login1 ood]# grep cache_store /var/www/ood/apps/sys/dashboard/config/environments/production.rb
config.cache_store = :memory_store
I may have accidentally removed this directory.
Do you have a full stack trace in /var/log/ondemand-nginx/$USER/error.log
?
This is what I see:
FATAL "ActionView::Template::Error (Permission denied @ dir_s_mkdir - /var/www/ood/apps/sys/dashboard/tmp/cache):\n 1: <%- content_for :head do -%>\n 2: <%= javascript_include_tag 'dashboard', nonce: true %>\n 3: <%= javascript_include_tag 'pinned_apps', nonce: true %>\n 4: <%- end -%>\n 5: <%= render partial: 'shared/welcome' unless @user_configuration.disable_dashboard_welcome_message%>\n \napp/views/dashboard/index.html.erb:2\napp/views/dashboard/index.html.erb:1"
I’ve restored /etc/ood/config/apps/dashboard from our old image.
Well I’m a bit stumped. You shouldn’t be trying to make that directory if you’re booting the application in production mode. I imagine it’s very hard/impossible to change the mode in which the app boots from production to another environment, like test or development, so … I’m at a bit of a loss.
You didn’t copy over/update/change the files in /opt/ood
did you?
Turns out that yum reinstall doesn’t remove and recreate the directories. I had to uninstall, delete the directories, and then install. Everything seems to be working now.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.