Project

General

Profile

Redmine 2.2.0 - ActionView::Template::Error (Permission denied - /opt/redmine/tmp/cache/900)

Added by Kevin van der Burgt almost 12 years ago

Hi,

I've installed redmine 2.2.0 on my debian installation. But there is some strange things about it.
When ik want to go to the page:

i got the following error message's in my error log's:

ActionView::Template::Error (Permission denied - /opt/redmine/tmp/cache/900):
16: <p><%= f.text_field :firstname, :required => true %></p>
17: <p><%= f.text_field :lastname, :required => true %></p>
18: <p><%= f.text_field :mail, :required => true %></p>
19: <p><%= f.select :language, lang_options_for_select %></p>
20: <% if Setting.openid? %>
21: <p><%= f.text_field :identity_url %></p>
22: <% end %>
lib/redmine/i18n.rb:95:in `languages_options'
app/helpers/application_helper.rb:974:in `lang_options_for_select'
app/views/my/account.html.erb:19:in `_app_views_my_account_html_erb__1061435779__627696218'
app/helpers/application_helper.rb:989:in `labelled_form_for'
app/views/my/account.html.erb:9:in `_app_views_my_account_html_erb__1061435779__627696218'

Whats the problem? Do i have to chmod /opt/redmine/ ?

What i already did:

chown -R root:root /opt/redmine/

But that didn't work.


Replies (8)

RE: Redmine 2.2.0 - ActionView::Template::Error (Permission denied - /opt/redmine/tmp/cache/900) - Added by Jon Z. almost 12 years ago

I'm having the same issue. I followed the directions in the install guide (step 8) but it still didn't work. I even verified the permissions available to production.log (since it is getting properly updated and made sure the same existed on tmp but still it doesn't work.

RE: Redmine 2.2.0 - ActionView::Template::Error (Permission denied - /opt/redmine/tmp/cache/900) - Added by Jan Niggemann (redmine.org team member) almost 12 years ago

Jon Z. wrote:

I'm having the same issue. I followed the directions in the install guide (step 8) but it still didn't work. I even verified the permissions available to production.log (since it is getting properly updated and made sure the same existed on tmp but still it doesn't work.

OK, if it's really the very same issue the OP has than it's not about file system permissions...
You're not using SELinux or AppArmor, aren't you?
Do you have plugins installed? Which ones?

RE: Redmine 2.2.0 - ActionView::Template::Error (Permission denied - /opt/redmine/tmp/cache/900) - Added by Jon Z. almost 12 years ago

I managed to resolve it (it was permissions) once I added the www-data user to the permissions for those folders & files in the guide you linked to, it worked fine. I'm using the Redmine Turnkey Linux virtual appliance in case anyone else that is updating their appliance happens to come across this thread.

RE: Redmine 2.2.0 - ActionView::Template::Error (Permission denied - /opt/redmine/tmp/cache/900) - Added by Kevin van der Burgt almost 12 years ago

Jon Z. wrote:

I managed to resolve it (it was permissions) once I added the www-data user to the permissions for those folders & files in the guide you linked to, it worked fine. I'm using the Redmine Turnkey Linux virtual appliance in case anyone else that is updating their appliance happens to come across this thread.

Yes, that was my problem also. Ruby was executed by 'nobody' user.

RE: Redmine 2.2.0 - ActionView::Template::Error (Permission denied - /opt/redmine/tmp/cache/900) - Added by Jan Niggemann (redmine.org team member) almost 12 years ago

Some passenger config options for reference

PassengerUser <username>
If user switching support is enabled [whihc it is by default], then Phusion Passenger will by default run the web application as the owner of the file config/environment.rb (for Rails apps) or config.ru (for Rack apps).

PassengerDefaultUser <username>
Phusion Passenger enables user switching support by default. This configuration option allows one to specify the user that applications must run as, if user switching fails or is disabled.

RE: Redmine 2.2.0 - ActionView::Template::Error (Permission denied - /opt/redmine/tmp/cache/900) - Added by Jeff W about 10 years ago

Hi, Guys, I'm facing the same problem now, I'm using Centos 7, doesn't matter I changed the owner to apache.apache, nobody.nobody, or root, I even disabled SELinux, , the error is insistence. Has any idea? My ruby version is ruby 2.1.4p265.

    (1-8/8)