[chef] Re: RE: Re: Webui 500 error


Chronological Thread 
  • From: Mark Mzyk < >
  • To:
  • Subject: [chef] Re: RE: Re: Webui 500 error
  • Date: Thu, 21 Aug 2014 11:00:47 -0400

Hi Jordan,

You may be running into this bug: https://github.com/opscode/chef-server-webui/pull/33 which we thought that change would fix, but it appears not. We have so far not been able to consistently reproduce it to know if any changes we apply will fix it.

Could you also try using a different browser, if you haven't already? I've observed behavior where newer versions of Chrome don't like something in the webui and will prevent logins without giving any indication why. I have yet to track down why this is or why this is inconsistent (possibly related to the above bug). Safari and Firefox have worked fine for me (I haven't tested IE). I know this isn't an ideal solution, but it might get you around the issue while we look for a fix.

If you can provide any further information that might help us track this down we'd appreciate it. I don't believe that this is a configuration error on your part. Feel free to open an issue against the Chef GitHub repository and tag it with the chef-server tag if you discover more information. We can use that as a central place to track what information we have.

Sorry about this issue causing you trouble.

Mark Mzyk

" type="cite">
" photoname="Wright, Jordan M." src="jpg2sdG1cSPHT.jpg" name="compose-unknown-contact.jpg" height="25px" width="25px">
August 19, 2014 at 12:34 PM
I did run `sudo chef-server-ctl reconfigure`. I also completely removed chef and reinstalled it to no avail.

I did not see any errors in erchef logs. In /var/logs/chef-server/postgresql/current I found the following.

2014-08-19_15:04:06.73597 ERROR: relation "changes" does not exist at character 50
2014-08-19_15:04:06.73598 STATEMENT:
2014-08-19_15:04:06.73599 SELECT change_id
2014-08-19_15:04:06.73599 FROM changes
2014-08-19_15:04:06.73599 WHERE project = $1
2014-08-19_15:04:06.73599 ORDER BY committed_at DESC
2014-08-19_15:04:06.73600 LIMIT 1
2014-08-19_15:04:06.73600 OFFSET COALESCE($2, 0)
2014-08-19_15:04:06.73600

Jordan

-----Original Message-----
From: Daniel DeLeo [ ">mailto: ] On Behalf Of Daniel DeLeo
Sent: Monday, August 18, 2014 7:01 PM
To: ">
Subject: [chef] Re: Webui 500 error


Looks like a configuration error. Did you run the `sudo chef-server-ctl reconfigure` step? There might be more helpful info in the erchef (API service) log.

--
Daniel DeLeo

" photoname="Daniel DeLeo" src="jpgUn2qBgN2UB.jpg" name="postbox-contact.jpg" height="25px" width="25px">
August 18, 2014 at 7:00 PM


Looks like a configuration error. Did you run the `sudo chef-server-ctl reconfigure` step? There might be more helpful info in the erchef (API service) log.

--
Daniel DeLeo

" photoname="Wright, Jordan M." src="jpg2sdG1cSPHT.jpg" name="compose-unknown-contact.jpg" height="25px" width="25px">
August 18, 2014 at 11:13 AM

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', : '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:             - @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




Archive powered by MHonArc 2.6.16.

§