chef-server icon indicating copy to clipboard operation
chef-server copied to clipboard

Server Crash when Viewing Role in UI with Dependency Mismatch

Open mbamber opened this issue 6 years ago • 2 comments

Chef Server Version

12.4.1

Platform Details

Running on Ubuntu 16.04 on AWS

Scenario:

Viewing a role via the web UI causes the chef server to crash if the role contains a version mismatch.

i.e. If I try and view role my-role, which contains [email protected] and [email protected], but [email protected] itself requires [email protected] then the server will crash trying to display this information.

I know this may be down to how we use Chef, and obviously the version mismatch is our fault and we have since fixed this, but I feel like the server shouldn't completely fail in this situation, and should instead just show an error in the UI.

mbamber avatar Apr 01 '19 16:04 mbamber

Thank you for reporting this issue.

What version of manage do you have installed? What exactly happens during the crash? Does the manage interface crash? Is it limited to the web frontend or does the API also go down? Does the server backend restart after?

markan avatar Apr 04 '19 01:04 markan

Hi @markan

Sorry for the delay in getting back to you about this.

$ cat /opt/opscode/version-manifest.txt | grep -i chef-server
chef-server 12.4.1

I can't really explain what happens in more detail other than the web interface completely freezes and just shows the spinning chef logo. It's both the frontend and the API that crashes as I cant interact with the server using knife.

No the server doesn't restart automatically.

mbamber avatar Apr 08 '19 08:04 mbamber