Hello, i'm trying to install Chef Infra Server Core on CentOS 8, the install is working fine. But When I go to add a user to chef to administer it get the following
`[user@automation01 accepted_licenses]$ sudo chef-server-ctl user-create admin admin admin ` `chefadmin@example.net` ` --prompt-for-password -s ` `https://10.150.10.105`
`Please enter the user's password:`
`ERROR: Connection refused connecting to ` `https://127.0.0.1/users/` `, retry 1/5`
ERROR: Connection refused connecting to `https://127.0.0.1/users/` `, retry 2/5`
I tried editing my /etc/opscode/pivotal.rb and changing the IP address but that didn't help.
I have that feeling that you made typo and you put ` (back tick) instead of ' (tick). Also, I do not think so that you have to declare the -s part if the Chef server installed locally.
So actually I can't communicate to the server via http or https. I can't telnet to it at all. I only have Chef Server Core installed and having this problem. I have since destroyed the server and installed on CentOS 7 latest. Same issue. I don't understand why this isn't working.
[ameyer@automation001 ~]$ sudo chef-server-ctl user-create admin admin admin chefadmin@caprica.space --prompt-for-password -f /etc/chef/admin.pem
Please enter the user's password:
ERROR: Connection refused connecting to https://127.0.0.1/users/, retry 1/5
ERROR: Connection refused connecting to https://127.0.0.1/users/, retry 2/5
ERROR: Connection refused connecting to https://127.0.0.1/users/, retry 3/5
ERROR: Connection refused connecting to https://127.0.0.1/users/, retry 4/5
ERROR: Connection refused connecting to https://127.0.0.1/users/, retry 5/5
ERROR: Network Error: Connection refused - Connection refused connecting to https://127.0.0.1/users/, giving up
Check your knife configuration and network settings
[ameyer@automation001 ~]$
Feb 17 23:39:10 automation001 abrt-hook-ccpp: Process 53653 (nginx) of user 0 killed by SIGILL - ignoring (repeated crash)
Feb 17 23:39:11 automation001 kernel: traps: nginx[53657] trap invalid opcode ip:7f8149e1c0ae sp:7ffd72332670 error:0 in libluajit-5.1.so.2.1.0[7f8149e13000+a0000]
Feb 17 23:39:12 automation001 abrt-hook-ccpp: Process 53657 (nginx) of user 0 killed by SIGILL - ignoring (repeated crash)
Feb 17 23:39:13 automation001 kernel: traps: nginx[53659] trap invalid opcode ip:7fe2b98f80ae sp:7ffcb306bdb0 error:0 in libluajit-5.1.so.2.1.0[7fe2b98ef000+a0000]
Feb 17 23:39:13 automation001 abrt-hook-ccpp: Process 53659 (nginx) of user 0 killed by SIGILL - ignoring (repeated crash)
Feb 17 23:39:15 automation001 kernel: traps: nginx[53661] trap invalid opcode ip:7fa680e940ae sp:7ffda6e721a0 error:0 in libluajit-5.1.so.2.1.0[7fa680e8b000+a0000]
Feb 17 23:39:15 automation001 abrt-hook-ccpp: Process 53661 (nginx) of user 0 killed by SIGILL - ignoring (repeated crash)
Feb 17 23:39:16 automation001 kernel: traps: nginx[53664] trap invalid opcode ip:7f45ac8870ae sp:7ffc65f26760 error:0 in libluajit-5.1.so.2.1.0[7f45ac87e000+a0000]
Feb 17 23:39:16 automation001 abrt-hook-ccpp: Process 53664 (nginx) of user 0 killed by SIGILL - dumping core
Feb 17 23:39:17 automation001 abrt-server: Package 'chef-server-core' isn't signed with proper key
Feb 17 23:39:17 automation001 abrt-server: 'post-create' on '/var/spool/abrt/ccpp-2020-02-17-23:39:16-53664' exited with 1
Feb 17 23:39:17 automation001 abrt-server: Deleting problem directory '/var/spool/abrt/ccpp-2020-02-17-23:39:16-53664'
Feb 17 23:39:18 automation001 kernel: traps: nginx[53669] trap invalid opcode ip:7fa3591a10ae sp:7ffcdaa499f0 error:0 in libluajit-5.1.so.2.1.0[7fa359198000+a0000]
Feb 17 23:39:18 automation001 abrt-hook-ccpp: Process 53669 (nginx) of user 0 killed by SIGILL - ignoring (repeated crash)
Feb 17 23:39:19 automation001 kernel: traps: nginx[53672] trap invalid opcode ip:7f10f8b940ae sp:7ffc49dd2230 error:0 in libluajit-5.1.so.2.1.0[7f10f8b8b000+a0000]
Feb 17 23:39:19 automation001 abrt-hook-ccpp: Process 53672 (nginx) of user 0 killed by SIGILL - ignoring (repeated crash)
Feb 17 23:39:21 automation001 kernel: traps: nginx[53676] trap invalid opcode ip:7f9f60f2a0ae sp:7ffe0fcc6090 error:0 in libluajit-5.1.so.2.1.0[7f9f60f21000+a0000]
Feb 17 23:39:21 automation001 abrt-hook-ccpp: Process 53676 (nginx) of user 0 killed by SIGILL - ignoring (repeated crash)
Feb 17 23:39:23 automation001 kernel: traps: nginx[53678] trap invalid opcode ip:7f7fb46ec0ae sp:7ffe485c0600 error:0 in libluajit-5.1.so.2.1.0[7f7fb46e3000+a0000]
Feb 17 23:39:23 automation001 abrt-hook-ccpp: Process 53678 (nginx) of user 0 killed by SIGILL - ignoring (repeated crash)
Feb 17 23:39:24 automation001 kernel: traps: nginx[53682] trap invalid opcode ip:7f3ae84b40ae sp:7ffd4e5017d0 error:0 in libluajit-5.1.so.2.1.0[7f3ae84ab000+a0000]
Feb 17 23:39:24 automation001 abrt-hook-ccpp: Process 53682 (nginx) of user 0 killed by SIGILL - ignoring (repeated crash)
So I installed chef-server-core on CentOS 7. The latest stable.
I didn't make any changes to /etc/opscode/chef-server.rb
I then ran sudo chef-server-ctl reconfigure.
After that I tried to create a user and an organization. That's when I received the error can't connect.
Please don't rush to answer, please try running chef-server-ctl gather-logs and check the content of the files in this tarball for errors. Share them here with 5 lines of context (up and down) around the error after redacting keys/sensible informations.
Alternatively you can check in /var/log/opscode/* directories what's out of line. First check the status of the server with chef-server-ctl status, if one service is marked down, it has something to be fixed first.
Yes. The server has properly configured DNS. I do have it set up with a FQDN. I can do the reconfigure but I have done 2 fresh builds and both turn out this way. That's what is frustrating. I've even tried doing a chef-server-ctl upgrade and still nothing.
From your first post above your command shows a remote call to the chef core server. I always do my commands on the chef server itself but I understand you're trying to do it remotely. When I do make remote calls to the chef server the calls have to be made via hostname or fqdn (whichever is configured in your dns server and whichever you configured during your installation). I see you're doing a remote call via IP. In my experience that doesn't usually work because the chef server configuration requires a hostname/fqdn during install. Just my two cents.
Actually I was trying to do that on the chef server itself. I just wanted to use the actual IP instead of the loopback. I was trying any and all ways to find out why it wouldn't work.
When I ssh into the chef server as root, here is what I run. chef-server-ctl user-create username first last e-mail 'password' -f username.pem. Although, this won't work for you yet until you fix the nginx issue. From what I have found, the nginx issue not starting could be due to permission issue of certain directories. Did you install chef server via the root account?