我是第一次设置Puppet Dashboard。我让它与Apache中的乘客模块一起运行。
sudo rake RAILS_ENV=production reports:import
当我运行此命令时,任务在仪表板中显示为失败。
630个新的失败任务
每个失败的详细信息如下所示:
Importing report 201212270754.yaml at 2012-12-27 09:21 UTC
Permission denied - /var/lib/puppet/reports/rb-db1/201212270754.yaml
Backtrace
/usr/share/puppet-dashboard/app/models/report.rb:86:in `read'
/usr/share/puppet-dashboard/app/models/report.rb:86:in `create_from_yaml_file'
报告文件由puppet:puppet拥有,默认为640。
我在report目录上运行了chmod a + rw,但我仍然遇到同样的错误。
关于我在这里做错了什么的想法?
答案 0 :(得分:0)
如果您以root身份而不是puppet-dashboard用户身份运行puppet-dashboard服务器,您将看到此错误。我的系统使用来自puppetlabs的puppet-dashboard-1.2.23-1.el6.noarch rpm在centos 6.4上使用/ usr / share / puppet-dashboard / script / server。
答案 1 :(得分:0)
[root@hadoop01 puppet-dashboard]# cat /etc/sysconfig/puppet-dashboard
#
# path to where you installed puppet dashboard
#
DASHBOARD_HOME=/usr/share/puppet-dashboard
#DASHBOARD_USER=puppet-dashboard
DASHBOARD_USER=root
DASHBOARD_RUBY=/usr/bin/ruby
DASHBOARD_ENVIRONMENT=production
DASHBOARD_IFACE=0.0.0.0
DASHBOARD_PORT=3000
如上所述编辑文件,然后运行命令
/etc/init.d/puppet-dashboard restart && /etc/init.d/puppet-dashboard-workers restart
我的puppet-dashboard版本是1.2.23