Project

General

Profile

Actions

Bug #2437

closed

Puppet classes page: clicking on any class name - results in a "Permission denied " error.

Added by Alexander Chuzhoy almost 11 years ago. Updated almost 11 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Here's what I have in the production log:
Started GET "/puppetclasses/art_rpm/edit" for 10.35.0.100 at Mon Apr 29 10:49:54 +0300 2013
Processing by PuppetclassesController#edit as HTML
Parameters: {"id"=>"art_rpm"}
Rendered lookup_keys/_fields.html.erb (13.9ms)
Rendered puppetclasses/_form.html.erb (227.6ms)
Rendered puppetclasses/edit.html.erb within layouts/application (228.2ms)
Operation FAILED: Permission denied - /usr/share/foreman/tmp/cache/BA3/A60/.permissions_check.70177308094900.29007.8507
Rendered home/_topbar.rhtml (3.8ms)
Rendered common/500.rhtml within layouts/application (19.6ms)
Completed 500 Internal Server Error in 267ms (Views: 20.7ms | ActiveRecord: 6.8ms)

Trace log:
Errno::EACCES
Permission denied - /usr/share/foreman/tmp/cache/BA3/A60/.permissions_check.70177308094900.29007.8507
app/models/setting.rb:33:in `[]'
app/models/lookup_key.rb:79:in `path'
app/views/lookup_keys/_fields.html.erb:28:in `_app_views_lookup_keys__fields_html_erb___858563639_70177243548000_1140172'
app/helpers/lookup_keys_helper.rb:22:in `new_child_fields_template'
app/helpers/lookup_keys_helper.rb:21:in `new_child_fields_template'
app/helpers/lookup_keys_helper.rb:20:in `new_child_fields_template'
app/views/puppetclasses/_form.html.erb:82:in `_app_views_puppetclasses__form_html_erb___257536581_70177242015720_1049150'
app/helpers/layout_helper.rb:190:in `form_for'
app/views/puppetclasses/_form.html.erb:3:in `_app_views_puppetclasses__form_html_erb___257536581_70177242015720_1049150'
app/views/puppetclasses/edit.html.erb:3:in `_app_views_puppetclasses_edit_html_erb___242584342_70177242027540_0'
lib/foreman/thread_session.rb:31:in `clear_thread'

Actions #1

Updated by Dominic Cleal almost 11 years ago

  • Status changed from New to Feedback

This looks like a filesystem permissions issue. Perhaps if you've run one of Foreman's rake tasks or similar as root it's created files in tmp/ that are root-owned. Try doing a "chown -R foreman:foreman ~foreman/tmp/".

Actions #2

Updated by Alexander Chuzhoy almost 11 years ago

yes.
chown -R foreman.foreman /usr/share/foreman/tmp did the trick.

Apparently, some file had a wrong owner under some directory...
Thanks.

Actions #3

Updated by Ohad Levy almost 11 years ago

  • Status changed from Feedback to Rejected
  • Priority changed from High to Normal
Actions

Also available in: Atom PDF