{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef-server/issues/83","labels_url":"https://api.github.com/repos/chef/chef-server/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef-server/issues/83/comments","events_url":"https://api.github.com/repos/chef/chef-server/issues/83/events","html_url":"https://github.com/chef/chef-server/issues/83","id":56659287,"number":83,"title":"chef server 12.0.2 fresh setup failed on CentOS 6.6","user":{"login":"illidanpc","id":10827367,"avatar_url":"https://avatars.githubusercontent.com/u/10827367?v=3","gravatar_id":"","url":"https://api.github.com/users/illidanpc","html_url":"https://github.com/illidanpc","followers_url":"https://api.github.com/users/illidanpc/followers","following_url":"https://api.github.com/users/illidanpc/following{/other_user}","gists_url":"https://api.github.com/users/illidanpc/gists{/gist_id}","starred_url":"https://api.github.com/users/illidanpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/illidanpc/subscriptions","organizations_url":"https://api.github.com/users/illidanpc/orgs","repos_url":"https://api.github.com/users/illidanpc/repos","events_url":"https://api.github.com/users/illidanpc/events{/privacy}","received_events_url":"https://api.github.com/users/illidanpc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef/chef-server/labels/chef-manage","name":"chef-manage","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-02-05T11:38:32Z","updated_at":"2015-07-09T00:24:44Z","closed_at":null,"body":"Hello guys, \r\nI am a fresh bird in chef world. Today is my second time to setup chef server 12.0.2 on linux. Last time on RedHat 5.5 is also crased with similar issues.\r\n\r\nHere are my steps. I followed the official document. \r\n1. Setup a CentOS 6.6 x86_64 on Virtual box 3.20 with 1 core , 3 GB RAM and 40G storage. \r\n2. Upload the newest file chef-server-core-12.0.2-1.x86_64.rpm.\r\n3. rpm -Uvh chef-server-core-12.0.2-1.x86_64.rpm //successfully\r\n4.chef-server-ctl reconfigure \r\n// First warning : the ffi-yajl and yajl-ruby gems have incompatible C libyajl libs and should not be loaded in the same Ruby VM\r\nThe result is good .\r\nRunning handlers:\r\nRunning handlers complete\r\n\r\nChef Client finished, 46/394 resources updated in 23.49545599 seconds\r\nopscode Reconfigured!\r\n\r\n5. Adding administrator user and organization. //successfully \r\n6. Adding Chef manager.\r\nchef-server-ctl install opscode-manage  //failed \r\n\r\n```\r\n[root@chefser chef]# chef-server-ctl install opscode-manage\r\nthe ffi-yajl and yajl-ruby gems have incompatible C libyajl libs and should not be loaded in the same Ruby VM\r\nfalling back to ffi which might work (or might not, no promises)\r\nthe ffi-yajl and yajl-ruby gems have incompatible C libyajl libs and should not be loaded in the same Ruby VM\r\nfalling back to ffi which might work (or might not, no promises)\r\nStarting Chef Client, version 11.12.2\r\nCompiling Cookbooks...\r\nConverging 3 resources\r\nRecipe: private-chef::add_ons_wrapper\r\n  * ruby_block[addon_install_notification_opscode-manage] action nothing (skipped due to action :nothing)\r\nRecipe: private-chef::add_ons_remote\r\n  * yum_repository[chef-stable] action createRecipe: <Dynamically Defined Resource>\r\n  * template[/etc/yum.repos.d/chef-stable.repo] action create\r\n    - create new file /etc/yum.repos.d/chef-stable.repo\r\n    - update content in file /etc/yum.repos.d/chef-stable.repo from none to c6e6e2\r\n        --- /etc/yum.repos.d/chef-stable.repo   2015-02-05 19:16:55.378546813 +0800\r\n        +++ /tmp/chef-rendered-template20150205-27804-1askjpb   2015-02-05 19:16:55.386546813 +0800\r\n        @@ -1 +1,12 @@\r\n        +# This file was generated by Chef\r\n        +# Do NOT modify this file by hand.\r\n        +\r\n        +[chef-stable]\r\n        +name=Chef Stable Repo\r\n        +baseurl=https://packagecloud.io/chef/stable/el/6/$basearch\r\n        +enabled=1\r\n        +gpgcheck=1\r\n        +gpgkey=file:///opt/opscode/embedded/keys/packages-chef-io-public.key\r\n        +sslcacert=/etc/pki/tls/certs/ca-bundle.crt\r\n        +sslverify=1\r\n    - change mode from '' to '0644'\r\n    - restore selinux security context\r\n\r\n  * execute[yum-makecache-chef-stable] action run\r\n    - execute yum -q makecache --disablerepo=* --enablerepo=chef-stable\r\n\r\n  * ruby_block[yum-cache-reload-chef-stable] action create\r\n    - execute the ruby block yum-cache-reload-chef-stable\r\n\r\n  * execute[yum-makecache-chef-stable] action nothing (skipped due to action :nothing)\r\n  * ruby_block[yum-cache-reload-chef-stable] action nothing (skipped due to action :nothing)\r\n\r\n\r\nRecipe: private-chef::add_ons_remote\r\n  * package[opscode-manage] action install\r\n================================================================================\r\nError executing action `install` on resource 'package[opscode-manage]'\r\n================================================================================\r\n\r\n\r\nChef::Exceptions::Exec\r\n----------------------\r\n returned 1, expected 0\r\n\r\n\r\nResource Declaration:\r\n---------------------\r\n# In /opt/opscode/embedded/cookbooks/private-chef/recipes/add_ons_remote.rb\r\n\r\n 48:   package pkg do\r\n 49:     notifies :create, \"ruby_block[addon_install_notification_#{pkg}]\", :immediate\r\n 50:   end\r\n 51: end\r\n\r\n\r\n\r\nCompiled Resource:\r\n------------------\r\n# Declared in /opt/opscode/embedded/cookbooks/private-chef/recipes/add_ons_remote.rb:48:in `block in from_file'\r\n\r\npackage(\"opscode-manage\") do\r\n  action :install\r\n  retries 0\r\n  retry_delay 2\r\n  guard_interpreter :default\r\n  package_name \"opscode-manage\"\r\n  version \"1.9.0-1\"\r\n  cookbook_name :\"private-chef\"\r\n  recipe_name \"add_ons_remote\"\r\nend\r\n\r\n\r\n\r\n\r\nRunning handlers:\r\n  - #<Class:0x000000026c8930>::AddonInstallHandler\r\nRunning handlers complete\r\n\r\n[2015-02-05T19:18:15+08:00] FATAL: Stacktrace dumped to /opt/opscode/embedded/cookbooks/cache/chef-stacktrace.out\r\nChef Client failed. 4 resources updated in 81.956794839 seconds\r\n[2015-02-05T19:18:15+08:00] FATAL: Chef::Exceptions::Exec: package[opscode-manage] (private-chef::add_ons_remote line 48) had an error: Chef::Exceptions::Exec:  returned 1, expected 0\r\n\r\n\r\n\r\nThe out file is below.\r\nGenerated at 2015-02-05 19:18:15 +0800\r\nChef::Exceptions::Exec: package[opscode-manage] (private-chef::add_ons_remote line 48) had an error: Chef::Exceptions::Exec:  returned 1, expected 0\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/mixin/command.rb:158:in `handle_command_failures'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/provider/package/yum.rb:1019:in `yum_command'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/provider/package/yum.rb:1134:in `install_package'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/provider/package.rb:82:in `block in action_install'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/mixin/why_run.rb:52:in `call'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/mixin/why_run.rb:52:in `add_action'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/provider.rb:155:in `converge_by'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/provider/package.rb:80:in `action_install'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/provider.rb:120:in `run_action'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/resource.rb:637:in `run_action'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/runner.rb:49:in `run_action'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/runner.rb:81:in `block (2 levels) in converge'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/runner.rb:81:in `each'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/runner.rb:81:in `block in converge'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/resource_collection.rb:98:in `block in execute_each_resource'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/resource_collection.rb:96:in `execute_each_resource'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/runner.rb:80:in `converge'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/client.rb:345:in `converge'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/client.rb:431:in `do_run'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/client.rb:227:in `run'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/application.rb:217:in `run_chef_client'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/application/solo.rb:221:in `block in run_application'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/application/solo.rb:213:in `loop'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/application/solo.rb:213:in `run_application'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/lib/chef/application.rb:67:in `run'\r\n/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-11.12.2/bin/chef-solo:25:in `<top (required)>'\r\n/opt/opscode/embedded/bin/chef-solo:23:in `load'\r\n/opt/opscode/embedded/bin/chef-solo:23:in `<main>'\r\n~\r\n```\r\n\r\n\r\nIs it means my network has someproblem to login packagecloud ?\r\n\r\nHow can I resolved these 2 issues.\r\n1.  the ffi-yajl and yajl-ruby gems have incompatible C libyajl libs and should not be loaded in the same Ruby VM\r\n2. running failed in chef manage\r\n\r\nThanks.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/chef/chef-server/issues/comments/119768887","html_url":"https://github.com/chef/chef-server/issues/83#issuecomment-119768887","issue_url":"https://api.github.com/repos/chef/chef-server/issues/83","id":119768887,"user":{"login":"brookegravitt","id":1420174,"avatar_url":"https://avatars.githubusercontent.com/u/1420174?v=3","gravatar_id":"","url":"https://api.github.com/users/brookegravitt","html_url":"https://github.com/brookegravitt","followers_url":"https://api.github.com/users/brookegravitt/followers","following_url":"https://api.github.com/users/brookegravitt/following{/other_user}","gists_url":"https://api.github.com/users/brookegravitt/gists{/gist_id}","starred_url":"https://api.github.com/users/brookegravitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brookegravitt/subscriptions","organizations_url":"https://api.github.com/users/brookegravitt/orgs","repos_url":"https://api.github.com/users/brookegravitt/repos","events_url":"https://api.github.com/users/brookegravitt/events{/privacy}","received_events_url":"https://api.github.com/users/brookegravitt/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T00:24:43Z","updated_at":"2015-07-09T00:24:43Z","body":"@Roviluca your workaround worked for me as well. Thanks!"}}