Indra k | 21 Aug 06:22 2014

reg -chef windows to windows

Hi all,

     I have a chef server setup in my ubuntu 12.04, i ve my workstation in windows server 2008 and my target node is also windows,

       So how can i connect that windows node from workstation?
        I enable knife-windows gem in my workstation,then add  winrm in that  target node windows i can able to bootstrap a machine from workstation.Samewise  i need to do this winrm enable,configuration at all from my workstation of windows  itself.how can i do this?
          

Thanks,
Indra

Florin Andrei | 20 Aug 22:07 2014

list of cloud providers supported by Chef?

According to this page...

http://www.getchef.com/solutions/cloud-management/

..."Chef is integrated with all major cloud providers including Amazon 
EC2, VMWare, IBM Smartcloud, Rackspace, OpenStack, Windows Azure, HP 
Cloud, Google Compute Engine, Joyent Cloud and others."

What does "and others" mean? Where can I find a list of all cloud 
providers that Chef is integrated with? (along with documentation for 
each supported provider)

Thanks.

--

-- 
Florin Andrei
http://florin.myip.org/

Carlos Camacho | 20 Aug 14:16 2014

NOT_IF and ONLY_IF validation problem.

Hello!

Im runing this simple recipe block to create a web app in IIS

powershell_script "create_site_my_site" do
    code "New-webapppool -name 'My_Web_App'; New-Website -Name
'My_Web_App' -applicationpool 'My_Web_App' -Port '80' -IPAddress *
-PhysicalPath 'c:\webs\My_Web_App'  "
    action :run
    not_if "get-website | where-object { $_.name -eq  'My_Web_App' }"
end

The problem here its that the NOT_IF part its allways True

PS C:\Users\carlos>
PS C:\Users\carlos> get-website | where-object { $_.name -eq 'asdfasdfasdf' }
PS C:\Users\carlos> echo $lastexitcode
1
PS C:\Users\carlos> get-website | where-object { $_.name -eq 'My_Web_App' }

Name               ID    State          Physical Path                  Bindings
----                   --     -----             -------------
                --------
My_Web_App  6     Stopped      c:\webs\My_Web_App       http *:80:

                https *:443:

PS C:\Users\carlos.camacho> echo $lastexitcode
1

Now, my question is about how to return True or False in the NOT_IF
depending on my code return value ??

Thanks.

Rilindo Foster | 20 Aug 05:08 2014

Chef 12 Server Changes

Has there been details to what to expect from Chef 12 Server, such as breaking changes or architecture updates? I about to finish consolidating our current Chef environment (which should be done by next mont),  so I am trying to decide whether to move to the latest Chef 11 release or bypass it and wait until Chef 12 is release in October.

- Rilindo
Douglas Garstang | 19 Aug 18:56 2014
Picon

Writing a Start Handler

I'm trying to write a start handler. I've managed to get

start_handlers << Chef::Reporting::StartHandler.new()

into the client.rb file. Obviously, I need to change the details. Now, I'm reading http://docs.getchef.com/handlers.html and under the 'Reporting' section it talks about how to install the handler, but it doesn't say where the start_handler.rb file goes.

Does it go in a cookbook? This would seem to be a problem to me as the handler needs to be deployed before chef runs.

Doug
subscription | 19 Aug 13:35 2014

How to manage databases with chef?

What are some best practices for coordinating cookbooks on several different servers? In my example, I have an application (owncloud) that also needs to create a database on another (MySQL) server. I do not want to allow remote root access to that MySQL server.

 

So the process should be something along the lines of:

 

-          On owncloud server: chef-client install owncloud binaries and somehow communicates with chef-client on the database server

-          On db server: create owncloud database and a user to access this database and communicates the user name and password back.

-          On owncloud server: continue owncloud configuration

 

How is this type of scenario best handled in chef?

 

Thanks!

 

Vladimir Skubriev | 19 Aug 08:27 2014

I want to search nodes with i5 cpu unit, but unfortunately.

Why I cannot search with two wildcards ?

I want to search nodes with i5 cpu unit, but unfortunately.

$ knife search -i node "model_name:Intel*i5*"
0 items found.

This is what's saved on server:

model_name:
Intel(R) Core(TM) i5-2300 CPU <at> 2.80GHz

Thank you.

--
Faithfully yours,

CVision Lab System Administrator
Vladimir Skubriev

Nathen Harvey | 19 Aug 00:16 2014

Re: Re: Poor man's reporting.

Sorry, are you asking how to write custom ruby code without having to read any ruby?

I'm afraid that's not a path toward anything like success.   

There are a number of handlers available on the Supermarket and GitHub that you might be able to configure without needing to write much more than some configuration. 

Of course, hosted Chef and Enterprise Chef running on premise both include reporting features out-of-the-box, too. 

If you truly want a "poor man's solution," that's customized exactly as you like, it's going to require an investment. 

Research and try some of the available solutions to see if they suit your needs. If not, you'll likely have to read and experiment with some ruby. 

Good luck!
--
Nathen Harvey

On Aug 18, 2014, at 5:25 PM, Douglas Garstang <doug.garstang <at> gmail.com> wrote:

Nathan,

Can a handler be configured to call a URL when there's no failure? Would like to record the start time. Also, do handlers have to be email, or can I use a GET to a URL instead upon failure?

Code... ruby... oh...  Are there any good docs on handlers that don't involve reading ruby code?

Doug.



On Mon, Aug 18, 2014 at 2:20 PM, Nathen Harvey <nharvey <at> getchef.com> wrote:
Chef Handlers are absolutely what you want.

Might be best to start with an existing handler and read through that code.  I find that the code can sometimes be even more informative than docs.

There are a couple of handlers listed on the Supermarket including the Chef Elapsed Time Handler.

Good luck!
Nathen


On Mon, Aug 18, 2014 at 5:17 PM, Douglas Garstang <doug.garstang <at> gmail.com> wrote:
I was trying to implement a poor mans chef reporting. I had the idea of putting this in a recipe to be run first in the run list:

response = Net::HTTP.get_response(URI.parse("http://server?action=start&host=#{node.fqdn}"))

....  and then putting this in a recipe to be run at the end of the run list:

response = Net::HTTP.get_response(URI.parse("http://server?action=end&host=#{node.fqdn}"))

I would then write a simple web service that would listen and put entries into a database. I noticed however that the URL to be called at the end of the run is executed before resources that were notified with 'delayed' were run, since they always run at the end of a chef run.

So... is there a way to execute something categorically at the end of a chef run? I've tried reading the handler docs but I just can't follow them.

Doug




--
Regards,

Douglas Garstang
http://www.linkedin.com/in/garstang
Email: doug.garstang <at> gmail.com
Cell: +1-805-340-5627
Douglas Garstang | 18 Aug 23:17 2014
Picon

Poor man's reporting.

I was trying to implement a poor mans chef reporting. I had the idea of putting this in a recipe to be run first in the run list:

response = Net::HTTP.get_response(URI.parse("http://server?action=start&host=#{node.fqdn}"))

....  and then putting this in a recipe to be run at the end of the run list:

response = Net::HTTP.get_response(URI.parse("http://server?action=end&host=#{node.fqdn}"))

I would then write a simple web service that would listen and put entries into a database. I noticed however that the URL to be called at the end of the run is executed before resources that were notified with 'delayed' were run, since they always run at the end of a chef run.

So... is there a way to execute something categorically at the end of a chef run? I've tried reading the handler docs but I just can't follow them.

Doug
Chris Patti | 18 Aug 23:11 2014
Picon

Another chef-metal question - has anyone gotten 'metal execute' to work?

I can't seem to make it go for even very simple recipes.  Here's the recipe, my invocation, and the output I get:


Thanks for any clues!
-Chris


--
Christopher Patti - Geek At Large | GTalk: cpatti <at> gmail.com | AIM: chrisfeohpatti | P: (260) 54PATTI
"Technology challenges art, art inspires technology." - John Lasseter, Pixar
Wright, Jordan M. | 18 Aug 17:13 2014
Picon

Webui 500 error

I just build a new server on centos 6.5 with chef-server-11.1.3-1.el6.x86_64.rpm. When trying to log into the webui, I get “We're sorry, but something went wrong.” Looking into /var/log/chef-server/chef-server-webui/current I found the attached error log. I noticed there is a 11.1.4-1 release, I upgraded to that version but the results are still the same. What would be causing this and how to I fix it?

 

Thanks,

Jordan

 

2014-08-18_14:48:55.10333 Started POST "/users/login_exec" for 127.0.0.1 at 2014-08-18 10:48:55 -0400

2014-08-18_14:48:55.14341 Processing by UsersController#login_exec as HTML

2014-08-18_14:48:55.14352   Parameters: {"utf8"=>"", "authenticity_token"=>"1N8UheAJ9/+KsxMYzohGyKuq2+kWPq+qDN0aMD+ZW80=", "name"=>"admin", "commit"=>"login", "password"=>"[FILTERED]"}

2014-08-18_14:48:55.16591 [2014-08-18T10:48:55-04:00] ERROR: 401 "Unauthorized"

2014-08-18_14:48:55.16594 /opt/chef-server/embedded/lib/ruby/1.9.1/net/http.rb:2633:in `error!'

2014-08-18_14:48:55.16594 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/chef-11.4.0/lib/chef/rest.rb:199:in `block in raw_http_request'

2014-08-18_14:48:55.16595 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/chef-11.4.0/lib/chef/rest.rb:280:in `retriable_rest_request'

2014-08-18_14:48:55.16595 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/chef-11.4.0/lib/chef/rest.rb:164:in `raw_http_request'

2014-08-18_14:48:55.16596 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/chef-11.4.0/lib/chef/rest.rb:158:in `api_request'

2014-08-18_14:48:55.16596 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/chef-11.4.0/lib/chef/rest.rb:99:in `get'

2014-08-18_14:48:55.16597 /opt/chef-server/embedded/service/chef-server-webui/lib/chef_server/rest_client.rb:48:in `block (2 levels) in <class:RestClient>'

2014-08-18_14:48:55.16597 /opt/chef-server/embedded/service/chef-server-webui/app/models/user.rb:175:in `load'

2014-08-18_14:48:55.16598 /opt/chef-server/embedded/service/chef-server-webui/app/models/user.rb:157:in `authenticate'

2014-08-18_14:48:55.16598 /opt/chef-server/embedded/service/chef-server-webui/app/controllers/users_controller.rb:124:in `login_exec'

2014-08-18_14:48:55.16599 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/implicit_render.rb:4:in `send_action'

2014-08-18_14:48:55.16600 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/base.rb:167:in `process_action'

2014-08-18_14:48:55.16600 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/rendering.rb:10:in `process_action'

2014-08-18_14:48:55.16601 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/callbacks.rb:18:in `block in process_action'

2014-08-18_14:48:55.16601 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:415:in `block in _run__3886544328416850265__process_action__3851871119317117551__callbacks'

2014-08-18_14:48:55.16602 /opt/chef-server/embedded/service/chef-server-webui/app/controllers/application_controller.rb:31:in `call'

2014-08-18_14:48:55.16602 /opt/chef-server/embedded/service/chef-server-webui/app/controllers/application_controller.rb:31:in `block in <class:ApplicationController>'

2014-08-18_14:48:55.16603 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_79'

2014-08-18_14:48:55.16604 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:403:in `_run__3886544328416850265__process_action__3851871119317117551__callbacks'

2014-08-18_14:48:55.16604 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in `__run_callback'

2014-08-18_14:48:55.16605 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'

2014-08-18_14:48:55.16605 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:81:in `run_callbacks'

2014-08-18_14:48:55.16606 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/callbacks.rb:17:in `process_action'

2014-08-18_14:48:55.16608 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/rescue.rb:29:in `process_action'

2014-08-18_14:48:55.16609 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'

2014-08-18_14:48:55.16609 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/notifications.rb:123:in `block in instrument'

2014-08-18_14:48:55.16610 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/notifications/instrumenter.rb:20:in `instrument'

2014-08-18_14:48:55.16610 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/notifications.rb:123:in `instrument'

2014-08-18_14:48:55.16611 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:29:in `process_action'

2014-08-18_14:48:55.16611 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'

2014-08-18_14:48:55.16612 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/base.rb:121:in `process'

2014-08-18_14:48:55.16612 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/rendering.rb:45:in `process'

2014-08-18_14:48:55.16613 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal.rb:203:in `dispatch'

2014-08-18_14:48:55.16613 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'

2014-08-18_14:48:55.16614 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal.rb:246:in `block in action'

2014-08-18_14:48:55.16614 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:73:in `call'

2014-08-18_14:48:55.16615 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'

2014-08-18_14:48:55.16615 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:36:in `call'

2014-08-18_14:48:55.16616 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'

2014-08-18_14:48:55.16616 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'

2014-08-18_14:48:55.16617 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'

2014-08-18_14:48:55.16617 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:608:in `call'

2014-08-18_14:48:55.16618 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'

2014-08-18_14:48:55.16618 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call'

2014-08-18_14:48:55.16619 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rack-1.4.5/lib/rack/conditionalget.rb:35:in `call'

2014-08-18_14:48:55.16619 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/head.rb:14:in `call'

2014-08-18_14:48:55.16620 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/params_parser.rb:21:in `call'

2014-08-18_14:48:55.16620 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/flash.rb:242:in `call'

2014-08-18_14:48:55.16620 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context'

2014-08-18_14:48:55.16621 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call'

2014-08-18_14:48:55.16622 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/cookies.rb:341:in `call'

2014-08-18_14:48:55.16623 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'

2014-08-18_14:48:55.16623 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in `_run__4009718171392740137__call__127571606666271097__callbacks'

2014-08-18_14:48:55.16624 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in `__run_callback'

2014-08-18_14:48:55.16624 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'

2014-08-18_14:48:55.16624 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:81:in `run_callbacks'

2014-08-18_14:48:55.16625 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/callbacks.rb:27:in `call'

2014-08-18_14:48:55.16626 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'

2014-08-18_14:48:55.16626 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'

2014-08-18_14:48:55.16627 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'

2014-08-18_14:48:55.16627 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/railties-3.2.18/lib/rails/rack/logger.rb:32:in `call_app'

2014-08-18_14:48:55.16628 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/railties-3.2.18/lib/rails/rack/logger.rb:18:in `call'

2014-08-18_14:48:55.16628 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/request_id.rb:22:in `call'

2014-08-18_14:48:55.16628 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'

2014-08-18_14:48:55.16629 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'

2014-08-18_14:48:55.16630 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/cache/strategy/local_cache.rb:72:in `call'

2014-08-18_14:48:55.16630 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'

2014-08-18_14:48:55.16631 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/static.rb:63:in `call'

2014-08-18_14:48:55.16631 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rack-ssl-1.3.4/lib/rack/ssl.rb:27:in `call'

2014-08-18_14:48:55.16631 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'

2014-08-18_14:48:55.16632 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:143:in `pass'

2014-08-18_14:48:55.16632 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:155:in `invalidate'

2014-08-18_14:48:55.16633 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:71:in `call!'

2014-08-18_14:48:55.16633 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'

2014-08-18_14:48:55.16634 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/railties-3.2.18/lib/rails/engine.rb:484:in `call'

2014-08-18_14:48:55.16634 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/railties-3.2.18/lib/rails/application.rb:231:in `call'

2014-08-18_14:48:55.16637 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/unicorn-2.0.1/lib/unicorn/http_server.rb:510:in `process_client'

2014-08-18_14:48:55.16637 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/unicorn-2.0.1/lib/unicorn/http_server.rb:585:in `block in worker_loop'

2014-08-18_14:48:55.16638 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/unicorn-2.0.1/lib/unicorn/http_server.rb:583:in `each'

2014-08-18_14:48:55.16639 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/unicorn-2.0.1/lib/unicorn/http_server.rb:583:in `worker_loop'

2014-08-18_14:48:55.16639 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/unicorn-2.0.1/lib/unicorn/http_server.rb:473:in `block (2 levels) in spawn_missing_workers'

2014-08-18_14:48:55.16640 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/unicorn-2.0.1/lib/unicorn/http_server.rb:470:in `fork'

2014-08-18_14:48:55.16640 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/unicorn-2.0.1/lib/unicorn/http_server.rb:470:in `block in spawn_missing_workers'

2014-08-18_14:48:55.16641 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/unicorn-2.0.1/lib/unicorn/http_server.rb:466:in `each'

2014-08-18_14:48:55.16642 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/unicorn-2.0.1/lib/unicorn/http_server.rb:466:in `spawn_missing_workers'

2014-08-18_14:48:55.16642 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/unicorn-2.0.1/lib/unicorn/http_server.rb:480:in `maintain_worker_count'

2014-08-18_14:48:55.16643 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/unicorn-2.0.1/lib/unicorn/http_server.rb:163:in `start'

2014-08-18_14:48:55.16643 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/unicorn-2.0.1/lib/unicorn.rb:13:in `run'

2014-08-18_14:48:55.16643 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/unicorn-2.0.1/bin/unicorn:120:in `<top (required)>'

2014-08-18_14:48:55.16644 /opt/chef-server/embedded/service/gem/ruby/1.9.1/bin/unicorn:23:in `load'

2014-08-18_14:48:55.16644 /opt/chef-server/embedded/service/gem/ruby/1.9.1/bin/unicorn:23:in `<main>'

2014-08-18_14:48:55.20903   Rendered shared/http_status/unauthorized.html.haml within layouts/application (3.5ms)

2014-08-18_14:48:55.46861 Compiled chef.js  (0ms)  (pid 8891)

2014-08-18_14:48:55.50788 Compiled application.js  (18ms)  (pid 8891)

2014-08-18_14:48:59.79230 Completed 500 Internal Server Error in 4648.6ms

2014-08-18_14:48:59.79941

2014-08-18_14:48:59.79942 ActionView::Template::Error (undefined method `each' for nil:NilClass):

2014-08-18_14:48:59.79942     15:           %select{:name => 'environment-select', :onchange => 'jump(this)', :size => 1, :class => 'title-select'}

2014-08-18_14:48:59.79942     16:             - current_env = session[:environment]

2014-08-18_14:48:59.79943     17:             %option{:value => environment_select_url('_none'), :selected => current_env == nil} None

2014-08-18_14:48:59.79943     18:             - <at> environments.each do |env|

2014-08-18_14:48:59.79943     19:               %option{:value => environment_select_path(env), :selected => current_env == env}= env

2014-08-18_14:48:59.79943     20:         #user-navigation

2014-08-18_14:48:59.79944     21:           %ul

2014-08-18_14:48:59.79944   app/views/layouts/application.html.haml:18:in `_app_views_layouts_application_html_haml___1175579261485805108_32807200'

2014-08-18_14:48:59.79944   app/controllers/application_controller.rb:59:in `block in <class:ApplicationController>'

2014-08-18_14:48:59.79944

2014-08-18_14:48:59.79944


Gmane