# Chef Compliance Setup Button Does Not Work

**URL:** <https://discourse.chef.io/t/chef-compliance-setup-button-does-not-work/7948>\
**Category:** Chef Infra (archive)\
**Created:** [March 9, 2016, 2:22pm UTC](https://discourse.chef.io/t/chef-compliance-setup-button-does-not-work/7948 "2016-03-09T14:22:55Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/victor/32/1259_2.png) [@Victor](https://discourse.chef.io/u/Victor)\
**Post date:** [March 9, 2016, 2:22pm UTC](https://discourse.chef.io/t/chef-compliance-setup-button-does-not-work/7948/1 "2016-03-09T14:22:55Z")

</div>

I installed chef-compliance\_0.14.5-1\_amd64.deb on Ubuntu Trusty. I ran  
"chef-compliance-ctl reconfigure". But the “Setup Chef Compliance” button doesn’t do anything  
when clicked (this is right after the previous step). My server is behind proxy with restricted Internet  
access. Does the setup need Internet access? I don’t see the Compliance install page [https://docs.chef.io/install\_compliance.html](https://docs.chef.io/install_compliance.html)  
mention any proxy settings.

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/victor/32/1259_2.png) [@Victor](https://discourse.chef.io/u/Victor)\
**Post date:** [March 10, 2016, 3:31pm UTC](https://discourse.chef.io/t/chef-compliance-setup-button-does-not-work/7948/2 "2016-03-10T15:31:37Z")

</div>

I tried Chef Compliance 0.15.13. This time, the setup button worked and took me to the page to create an admin account. After I did that and clicked next button, it says “setup failed”. On the bottom of the page, there’s ‘error 404 page not found’. Behind the scenes, was it trying to reach the Internet? My computer is behind firewall/proxy with restricted Internet access.

I also tried on a computer that doesn’t go through a proxy to reach the Internet. I was able to set up Chef Compliance and run it without problems.

In Chef documentation, can info be added to describe how to install when there’s no Internet access? That means to pre-download packages, etc.

---

<div class="post-metadata">

**Author:** ![apop](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@apop](https://discourse.chef.io/u/apop)\
**Post date:** [March 11, 2016, 11:33am UTC](https://discourse.chef.io/t/chef-compliance-setup-button-does-not-work/7948/3 "2016-03-11T11:33:20Z")

</div>

Victor, thank you for taking the time to describe the issue.

Installing and using Chef Compliance behind the firewall is an important use-case for us. I was not able to reproduce the issue using version 0.15.13. Can you provide more details to help track this down? Would be good to know:

1. Browser name and version you are using.

2. URL of the HTTPS request that returned 404. You can capture that by loading the browser’s `Network` inspector while going through the Compliance web setup:

```auto
Firefox Menu > Developer > Network
Chrome Menu > More Tools > Developer Tools

```

Thank you,  
Alex

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/victor/32/1259_2.png) [@Victor](https://discourse.chef.io/u/Victor)\
**Post date:** [March 14, 2016, 3:52pm UTC](https://discourse.chef.io/t/chef-compliance-setup-button-does-not-work/7948/4 "2016-03-14T15:52:41Z")

</div>

Alex, I used IE 11.0.9600.17914, Firefox 44.0.2. I ended up using command line to create an ID/pw successfully. I was able to log in and scan my nodes now.

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/victor/32/1259_2.png) [@Victor](https://discourse.chef.io/u/Victor)\
**Post date:** [March 16, 2016, 5:48pm UTC](https://discourse.chef.io/t/chef-compliance-setup-button-does-not-work/7948/5 "2016-03-16T17:48:29Z")

</div>

Alex, my Compliance server was working and was able to scan a node. But today when I tried to scan again, it failed.

Error message:  
Connectivity Report says:  
Failed to verify connectivity to sshPassword://my\_user\_name@my\_IP:0 using login password : exit status 1

---

<div class="post-metadata">

**Author:** ![apop](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@apop](https://discourse.chef.io/u/apop)\
**Post date:** [March 18, 2016, 2:45pm UTC](https://discourse.chef.io/t/chef-compliance-setup-button-does-not-work/7948/6 "2016-03-18T14:45:51Z")

</div>

Hi Victor,

If you have access to the server running Chef Compliance, please run these two commands from the shell to test ssh connectivity. Replace hostname, username and password:

```auto
[root@ap-chef-compliance ~]# ssh root@192.168.56.50 whoami
root@192.168.56.50's password:
root

[root@ap-chef-compliance ~]# echo '{"backend":"ssh","host":"192.168.56.50","user":"root","password":"REDACTED","profiles_path":"/etc/chef-compliance/compliance-profiles"}' | /opt/chef-compliance/embedded/bin/inspec detect --json-config=-
{"name":null,"family":"centos","release":"6.6","arch":null}

```

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/victor/32/1259_2.png) [@Victor](https://discourse.chef.io/u/Victor)\
**Post date:** [March 18, 2016, 4:15pm UTC](https://discourse.chef.io/t/chef-compliance-setup-button-does-not-work/7948/7 "2016-03-18T16:15:50Z")

</div>

Alex, I can scan CentOS and Ubuntu servers without issues.

My problem now is Compliance can’t connect/scan my RHEL7.2 VM.  
From my compliance server, I can run ssh root@myRHEL-IP whoami successfully.  
For your 2nd echo command, I ran it with my rhel7.2 node’s IP, changed Jason-config to {“name”:null,“family”:“rhel”,“release”:“7.2”,“arch”:null}. It gives the following error:  
/opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/inspec-0.15.0/lib/utils/base\_cli.rb:103:in `read': No such file or directory @ rb_sysopen - -arch:null (Errno::ENOENT) from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/inspec-0.15.0/lib/utils/base_cli.rb:103:in`read\_config’  
from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/inspec-0.15.0/lib/utils/base\_cli.rb:95:in `options_json' from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/inspec-0.15.0/lib/utils/base_cli.rb:90:in`opts’  
from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/inspec-0.15.0/lib/utils/base\_cli.rb:76:in `diagnose' from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/inspec-0.15.0/bin/inspec:115:in`detect’  
from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run' from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in`invoke\_command’  
from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch' from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/base.rb:440:in`start’  
from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/inspec-0.15.0/bin/inspec:165:in `<top (required)>' from /opt/chef-compliance/embedded/bin/inspec:22:in`load’  
from /opt/chef-compliance/embedded/bin/inspec:22:in `’

---

<div class="post-metadata">

**Author:** ![apop](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@apop](https://discourse.chef.io/u/apop)\
**Post date:** [March 18, 2016, 5:31pm UTC](https://discourse.chef.io/t/chef-compliance-setup-button-does-not-work/7948/8 "2016-03-18T17:31:22Z")

</div>

Thanks for the additional details. I’ll try to reproduce and get back to you.

---

<div class="post-metadata">

**Author:** ![apop](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@apop](https://discourse.chef.io/u/apop)\
**Post date:** [March 21, 2016, 12:25pm UTC](https://discourse.chef.io/t/chef-compliance-setup-button-does-not-work/7948/9 "2016-03-21T12:25:25Z")

</div>

Hi Victor,

To clarify, `{"name":null,"family":"rhel","release":"7.2","arch":null}` is the output you should get back when you run the command:

```auto
echo '{"backend":"ssh","host":"192.168.56.51","user":"youruser","password":"yourpass","sudo":true,"profiles_path":"/var/opt/chef-compliance/core/runtime/compliance-profiles"}' | /opt/chef-compliance/embedded/bin/inspec detect --json-config=-

```

This will either return the json detect output or a stack trace with the error details.

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/victor/32/1259_2.png) [@Victor](https://discourse.chef.io/u/Victor)\
**Post date:** [March 21, 2016, 3:17pm UTC](https://discourse.chef.io/t/chef-compliance-setup-button-does-not-work/7948/10 "2016-03-21T15:17:45Z")

</div>

Alex, turns out the issue was rhel has requiretty on by default. After I set !requiretty, Chef Compliance can connect and scan it now. Thanks for the command you provided above, which led to this setting.

---

<div class="post-metadata">

**Author:** ![apop](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@apop](https://discourse.chef.io/u/apop)\
**Post date:** [March 21, 2016, 4:21pm UTC](https://discourse.chef.io/t/chef-compliance-setup-button-does-not-work/7948/11 "2016-03-21T16:21:03Z")

</div>

I’m glad you figured it out. Based on your experience, we are going to increase the verbosity of the error message for failed connections.

Thank you,  
Alex
