Install chef server 12 error

OS: RHEL 6.5

Following the instructions for RHEL located here:

https://docs.chef.io/install_server.html

This is the RPM that I downloaded (as per instructions)

chef-server-core-12.11.1-1.el6.x86_64.rpm

Install command:

sudo yum -y localinstall chef-server-core-12.11.1-1.el6.x86_64.rpm

Install went fine. Moved on to the next part of the instructions where it tells me to do a chef-server-ctl reconfigure. That went well. If you need the output of that, let me know. (there’s a lot)

Now, next step is to create the admin user, and that keeps failing. Here’s the output of that.

[user@host ~]$ sudo chef-server-ctl user-create admusr Admin User admin@host.com password
ERROR: The object you are looking for could not be found
Response: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /users/ was not found on this server.</p>
<hr>
<address>Apache/2.2.15 (Red Hat) Server at 127.0.0.1 Port 443</address>
</body></html>
[user@host ~]$ sudo chef-server-ctl user-create admusr Admin User "admin@host.com" password
ERROR: The object you are looking for could not be found
Response: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /users/ was not found on this server.</p>
<hr>
<address>Apache/2.2.15 (Red Hat) Server at 127.0.0.1 Port 443</address>
</body></html>
[user@host ~]$ 

Not sure why the failure is happening. Also, this is the first time chef has been installed on this machine. Anyone got any suggestions?

Shut down the apache server running on your chef-server, it prevents chef-server's nginx to listen on the port 443, hence you're asking apache which has no clue of what to do with chef-server commands.

so will I be able to run a webserver on the same server as the chef server instance? Should I somehow tell chef to listen on a different port?

You can, but that’s usually not recommended You’ll be on your own if you end up on a corner case not handled when using non-default ports.

The changes have to be done in /etc/opscode/chef-server.rb, documentation is here: https://docs.chef.io/config_rb_server_optional_settings.html

so the chef server should be dedicated and only serving up cookbooks?

Or, could I run my httpd server but have its default ports be something different?

The chef-server is intended to be an appliance, if you wish to mix it with another service on the same machine you’ll have to know what you’re doing.

If you’re starting with it, get a VM to have it on its own to get an overview before going this path.

all I have are VMs.