[chef] Re: Re: chef services user


Chronological Thread 
  • From: Mark Rechler < >
  • To:
  • Subject: [chef] Re: Re: chef services user
  • Date: Thu, 7 Apr 2011 17:14:43 -0400

Hi Dan,

Appreciate the help. I have tried changing the permissions and even ownership (chef:root) for the pem files (webui and validation) to be very liberal (a+rw) which did not help. The following is the only thing that really appears in the logs (no errors):

merb : chef-server-webui : worker (port 4040) ~ 

merb : chef-server-webui : worker (port 4040) ~ Started request handling: Thu Apr 07 14:07:53 -0700 2011
merb : chef-server-webui : worker (port 4040) ~ Params: {"name"=>"admin", "action"=>"login_exec", "controller"=>"users", "password"=>"[FILTERED]", "form_submit"=>"login"}
merb : chef-server-webui : worker (port 4040) ~ {:dispatch_time=>0.034691, :action_time=>0.033662, :after_filters_time=>2.9e-05, :before_filters_time=>5.8e-05}
merb : chef-server-webui : worker (port 4040) ~
-----------------------------------------------------------------------------------------
merb : chef-server (api) : worker (port 4000) ~ 

merb : chef-server (api) : worker (port 4000) ~ Started request handling: Thu Apr 07 14:07:53 -0700 2011
merb : chef-server (api) : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"show", "id"=>"admin", "controller"=>"users"}
merb : chef-server (api) : worker (port 4000) ~ {:action_time=>0.013155, :after_filters_time=>2.6e-05, :before_filters_time=>0.007762, :dispatch_time=>0.013818}
merb : chef-server (api) : worker (port 4000) ~

Thanks again,
Mark

On Thu, Apr 7, 2011 at 5:03 PM, Daniel DeLeo < "> > wrote:

On Thursday, April 7, 2011 at 1:24 PM, " target="_blank"> wrote:

I have just freshly installed chef on centos 5.4 via gems. After running the
server bootstrap I found the webui to be unresponsive(ie. can't login) when
running as the chef user. When running the webui as root however, everything
works normally. Is there a way to actually have the webui run as chef? Also if
not, do all chef related services need to run as root?

Thanks,
Mark
The webui is stateless and doesn't need to do anything with the underlying system. Perhaps you could include the error message from the webui's logs?

I imagine the webui server is unable to read the /etc/chef/webui.pem key when you're running as non-root, so chmod/chowning that file should resolve the issue.

HTH,

-- 
Dan DeLeo





Archive powered by MHonArc 2.6.16.

§