[chef] Re: Re: Webui 500 error


Chronological Thread 
  • From: DV < >
  • To: " " < >
  • Subject: [chef] Re: Re: Webui 500 error
  • Date: Mon, 18 Aug 2014 17:38:13 -0700

Someone else emailed with the same problem on Aug 10. Below is the email thread.​





On Sun, Aug 10, 2014 at 6:19 PM, idzzy < " target="_blank"> > wrote:
Hello,

Although I applied the patch and chef-server reconfigure, chef-server restart and also deleted cookies, still there is same error msg.
Anyway I will wait next release. 

Thank you so much.

idzzy

On August 10, 2014 at 12:17:57 PM, Nathan L Smith ( " target="_blank"> ) wrote:

I'm not able to reproduce this (though, like I said, I have seen it before), so I'm not sure how to correct it. I'd start with deleting cookies for the site and restarting the Chef server and webui.

If you're feeling brave, you could go in to /opt/chef-server/embedded/service/chef-server-webui/app/controllers/users_controller.rb and apply this patch: https://github.com/opscode/chef-server-webui/commit/8b256f8a458da0c61b6149a4fa9b8fc6977af704.patch, then restart chef-server-webui.

The next release of open source Chef server contains some security updates and will be coming very soon, so doing this may be able to get you by for a short period of time.

Hope that helps.


On Fri, Aug 8, 2014 at 5:07 AM, idzzy < " target="_blank"> > wrote:
Hello,

Sure. Understood about the error message.

Currently I cannot login and pass authentication.
Is there any way to avoid this phenomenon in version(11.1)? How can I login to chef-server webui?

Thank you.

idzzy



On August 8, 2014 at 11:33:59 AM, Nathan L Smith ( " target="_blank"> ) wrote:
I had seen this before in my development environment but not in production. I've got a pull request open that should fix it: https://github.com/opscode/chef-server-webui/pull/33

We'll be doing a release soon with some security updates, so this fix should also ship with that next release.

Thanks for reporting it!


On Wed, Aug 6, 2014 at 1:28 AM, idzzy < " target="_blank"> > wrote:
Hello,

When I access to chef-server webui, it’s displayed "We're sorry, but something went wrong”.

And output following log in /var/log/chef-server/chef-server-webui/current
---------------------------------------------------------------------
2014-08-06_06:08:10.53840 ActionView::Template::Error (undefined method `each' for nil:NilClass):
2014-08-06_06:08:10.53840     15:           %select{:name => 'environment-select', : 'jump(this)', :size => 1, :class => 'title-select'}
2014-08-06_06:08:10.53840     16:             - current_env = session[:environment]
2014-08-06_06:08:10.53841     17:             %option{:value => environment_select_url('_none'), :selected => current_env == nil} None
2014-08-06_06:08:10.53841     18:             - @environments.each do |env|
2014-08-06_06:08:10.53841     19:               %option{:value => environment_select_path(env), :selected => current_env == env}= env
2014-08-06_06:08:10.53841     20:         #user-navigation
2014-08-06_06:08:10.53841     21:           %ul
2014-08-06_06:08:10.53842   app/views/layouts/application.html.haml:18:in `_app_views_layouts_application_html_haml___4543768237136703618_28923760'
2014-08-06_06:08:10.53842   app/controllers/application_controller.rb:59:in `block in <class:ApplicationController>’
---------------------------------------------------------------------


This phenomenon seems to be similar these cases.

Base on above cases I have already tried to modify like this 3 patterns and did "chef-server reconfigure".

/etc/chef-server/chef-server.rb
    chef_server_webui['cookie_domain'] = ‘'
    chef_server_webui['cookie_domain'] = ‘.mydoman'
    chef_server_webui['cookie_domain'] = ‘mydomain’

But still displaying same error message and cannot access chef-server webui.

How can I fix this issue?

Thank you.

idzzy



--



--



-- 
Best regards, Dmitriy V.



Archive powered by MHonArc 2.6.16.

§