{"action":"created","issue":{"url":"https://api.github.com/repos/hw-cookbooks/runit/issues/74","labels_url":"https://api.github.com/repos/hw-cookbooks/runit/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/hw-cookbooks/runit/issues/74/comments","events_url":"https://api.github.com/repos/hw-cookbooks/runit/issues/74/events","html_url":"https://github.com/hw-cookbooks/runit/issues/74","id":49735281,"number":74,"title":"\"private-chef-ctl reconfigure\" fails with centos7","user":{"login":"redhatromero","id":7432467,"avatar_url":"https://avatars.githubusercontent.com/u/7432467?v=3","gravatar_id":"","url":"https://api.github.com/users/redhatromero","html_url":"https://github.com/redhatromero","followers_url":"https://api.github.com/users/redhatromero/followers","following_url":"https://api.github.com/users/redhatromero/following{/other_user}","gists_url":"https://api.github.com/users/redhatromero/gists{/gist_id}","starred_url":"https://api.github.com/users/redhatromero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redhatromero/subscriptions","organizations_url":"https://api.github.com/users/redhatromero/orgs","repos_url":"https://api.github.com/users/redhatromero/repos","events_url":"https://api.github.com/users/redhatromero/events{/privacy}","received_events_url":"https://api.github.com/users/redhatromero/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hw-cookbooks/runit/labels/question","name":"question","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2014-11-21T18:58:48Z","updated_at":"2015-06-10T23:39:59Z","closed_at":null,"body":"Stuck with rabbitmq failing....\r\n\r\nBefore I get into the details, a couple of things I needed to do on a fresh Centos 7 install:\r\n\r\n1. I had only done a base install, but \"private-chef-ctl reconfigure\" failed until I installed httpd, then ran a system update and rebooted.\r\n2. I was then getting a hanging behavior here:\r\n```\r\n* link[/opt/opscode/init/couchdb] action create\r\n    - create symlink at /opt/opscode/init/couchdb to /opt/opscode/embedded/bin/sv\r\n    - configure service runit_service[couchdb]\r\n* link[/opt/opscode/service/couchdb] action create\r\n    - create symlink at /opt/opscode/service/couchdb to /opt/opscode/sv/couchdb\r\n```\r\n3. After some digging, it became apparent that I was missing the \"erlang\" package, which was not available at the CentOS 7 repository. I added the EPEL 7 repo file, then installed \"erlang\".... that seemed to get me past this portion.\r\n4. Now I'm stuck here:\r\n\r\n```text\r\nRecipe: private-chef::rabbitmq\r\n  * runit_service[rabbitmq] action enableRecipe: <Dynamically Defined Resource>\r\n  * directory[/opt/opscode/sv/rabbitmq] action create (up to date)\r\n  * template[/opt/opscode/sv/rabbitmq/run] action create (up to date)\r\n  * directory[/opt/opscode/sv/rabbitmq/log] action create (up to date)\r\n  * directory[/opt/opscode/sv/rabbitmq/log/main] action create (up to date)\r\n  * template[/opt/opscode/sv/rabbitmq/log/run] action create (up to date)\r\n  * template[/opt/opscode/sv/rabbitmq/log/config] action create (up to date)\r\n  * link[/opt/opscode/init/rabbitmq] action create (up to date)\r\n\r\n    - configure service runit_service[rabbitmq]\r\n\r\nRecipe: private-chef::rabbitmq\r\n  * execute[/opt/opscode/bin/private-chef-ctl start rabbitmq] action run\r\n================================================================================\r\nError executing action `run` on resource 'execute[/opt/opscode/bin/private-chef-ctl start rabbitmq]'\r\n================================================================================\r\n\r\n\r\nMixlib::ShellOut::ShellCommandFailed\r\n------------------------------------\r\nExpected process to exit with [0], but received '1'\r\n---- Begin output of /opt/opscode/bin/private-chef-ctl start rabbitmq ----\r\nSTDOUT: warning: rabbitmq: unable to open supervise/ok: file does not exist\r\nSTDERR:\r\n---- End output of /opt/opscode/bin/private-chef-ctl start rabbitmq ----\r\nRan /opt/opscode/bin/private-chef-ctl start rabbitmq returned 1\r\n\r\n\r\nResource Declaration:\r\n---------------------\r\n# In /opt/opscode/embedded/cookbooks/private-chef/recipes/rabbitmq.rb\r\n\r\n 79:   execute \"#{opc_ctl} start rabbitmq\" do\r\n 80:     retries 20\r\n 81:   end\r\n 82:\r\n\r\n\r\n\r\nCompiled Resource:\r\n------------------\r\n# Declared in /opt/opscode/embedded/cookbooks/private-chef/recipes/rabbitmq.rb:79:in `from_file'\r\n\r\nexecute(\"/opt/opscode/bin/private-chef-ctl start rabbitmq\") do\r\n  action \"run\"\r\n  retries 0\r\n  retry_delay 2\r\n  command \"/opt/opscode/bin/private-chef-ctl start rabbitmq\"\r\n  backup 5\r\n  returns 0\r\n  cookbook_name :\"private-chef\"\r\n  recipe_name \"rabbitmq\"\r\nend\r\n\r\nRunning handlers:\r\n[2014-11-21T12:15:45-05:00] ERROR: Running exception handlers\r\nRunning handlers complete\r\n\r\n[2014-11-21T12:15:45-05:00] ERROR: Exception handlers complete\r\n[2014-11-21T12:15:45-05:00] FATAL: Stacktrace dumped to /opt/opscode/embedded/cookbooks/cache/chef-stacktrace.out\r\nChef Client failed. 2 resources updated in 51.528969427 seconds\r\n[2014-11-21T12:15:45-05:00] ERROR: execute[/opt/opscode/bin/private-chef-ctl start rabbitmq] (private-chef::rabbitmq line 79) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'\r\n---- Begin output of /opt/opscode/bin/private-chef-ctl start rabbitmq ----\r\nSTDOUT: warning: rabbitmq: unable to open supervise/ok: file does not exist\r\nSTDERR:\r\n---- End output of /opt/opscode/bin/private-chef-ctl start rabbitmq ----\r\nRan /opt/opscode/bin/private-chef-ctl start rabbitmq returned 1\r\n[2014-11-21T12:15:45-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)\r\n```\r\n\r\n5. I installed \"librabbitmq\", \"librabbitmq-devel\", and \"rabbitmq-server\", rebooted, then reinstalled \"private-chef (11.1.6). Ditched this version and downloaded 12, since I am getting to the same place.\r\n\r\n6. Version 12 is the same.... hangs here:\r\n```\r\n* directory[/opt/opscode/sv/rabbitmq/log/main] action create\r\n    - create new directory /opt/opscode/sv/rabbitmq/log/main\r\n    - change mode from '' to '0755'\r\n\r\n  * template[/opt/opscode/sv/rabbitmq/log/run] action create\r\n    - create new file /opt/opscode/sv/rabbitmq/log/run\r\n    - update content in file /opt/opscode/sv/rabbitmq/log/run from none to 0e09b8\r\n        --- /opt/opscode/sv/rabbitmq/log/run\t2014-11-21 13:07:03.303442999 -0500\r\n        +++ /tmp/chef-rendered-template20141121-1933-1l5gq9c\t2014-11-21 13:07:03.305442999 -0500\r\n        @@ -1 +1,4 @@\r\n        +#!/bin/sh\r\n        +exec chpst -U opscode -u opscode \\\r\n        +  svlogd -tt /var/log/opscode/rabbitmq\r\n    - change mode from '' to '0755'\r\n\r\n  * template[/opt/opscode/sv/rabbitmq/log/config] action create\r\n    - create new file /opt/opscode/sv/rabbitmq/log/config\r\n    - update content in file /opt/opscode/sv/rabbitmq/log/config from none to e3b0c4\r\n        (no diff)\r\n    - change mode from '' to '0644'\r\n\r\n  * link[/opt/opscode/init/rabbitmq] action create\r\n    - create symlink at /opt/opscode/init/rabbitmq to /opt/opscode/embedded/bin/sv\r\n\r\n\r\n    - configure service runit_service[rabbitmq]  * link[/opt/opscode/service/rabbitmq] action create\r\n    - create symlink at /opt/opscode/service/rabbitmq to /opt/opscode/sv/rabbitmq\r\n```\r\n\r\nJust hangs right here....\r\n"},"comment":{"url":"https://api.github.com/repos/hw-cookbooks/runit/issues/comments/110946980","html_url":"https://github.com/hw-cookbooks/runit/issues/74#issuecomment-110946980","issue_url":"https://api.github.com/repos/hw-cookbooks/runit/issues/74","id":110946980,"user":{"login":"marcusl33beach","id":3777153,"avatar_url":"https://avatars.githubusercontent.com/u/3777153?v=3","gravatar_id":"","url":"https://api.github.com/users/marcusl33beach","html_url":"https://github.com/marcusl33beach","followers_url":"https://api.github.com/users/marcusl33beach/followers","following_url":"https://api.github.com/users/marcusl33beach/following{/other_user}","gists_url":"https://api.github.com/users/marcusl33beach/gists{/gist_id}","starred_url":"https://api.github.com/users/marcusl33beach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcusl33beach/subscriptions","organizations_url":"https://api.github.com/users/marcusl33beach/orgs","repos_url":"https://api.github.com/users/marcusl33beach/repos","events_url":"https://api.github.com/users/marcusl33beach/events{/privacy}","received_events_url":"https://api.github.com/users/marcusl33beach/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T23:39:59Z","updated_at":"2015-06-10T23:39:59Z","body":"Just tried install chef on CentOS7 and ran into the same issue. Has there been any progress on this ?"}}