Error 500 after apt-get


#1

After running apt-get update && apt-get upgrade I have a fire in the kitchen. I do have ldap enabled and it has been working up to this point. Now I seem to be having an auth failure.

root@phpdchef01:/home/wayneboaz# chef-server-ctl tail nginx
==> /var/log/opscode/nginx/internal-chef.error.log <==

Preformatted text ==> /var/log/opscode/nginx/access.log <==
127.0.0.1 - - [13/Apr/2018:15:43:58 -0700] “POST /authenticate_user HTTP/1.1” 502 “0.003” 179 “-” “Chef Manage/11.16.2 (ruby-2.3.5-p376; ohai-7.4.1; x86_64-linux; +http://opscode.com)” “127.0.0.1:8000” “502” “0.000” “11.16.2” “algorithm=sha1;version=1.0;” “pivotal” “2018-04-13T22:43:58Z” “LhQqtiORRyKKTj2OBuBXrRzSAgk=” 1123
10.64.142.15 - - [13/Apr/2018:15:43:58 -0700] “POST /login HTTP/1.1” 500 “0.041” 7880 “https://phpdchef01.my.company.org/login” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36” “127.0.0.1:9462” “500” “0.041” “-” “-” “-” “-” “-” 1117 Preformatted text

Followed by many upstream connection failures: Connection refused.

Ideas? Suggestions?

Wayne


#2

Unattended upgrades have given me issues before. Try running ‘chef-server-ctl reconfigure’ to resync everything.


#3

Did that first thing and it didn’t help.


#4

I see. I’m actually just here to learn, so I’ll have to defer to someone more experienced.

I will say that the log output you provided doesn’t look particularly useful at first glance, as it’s just evidence that Nginx received your request but had an error communicating with the gateway.

You need to know what upstream services are failing and why.

Hope that helps you decide on your next step!