{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef/issues/3505","labels_url":"https://api.github.com/repos/chef/chef/issues/3505/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/3505/comments","events_url":"https://api.github.com/repos/chef/chef/issues/3505/events","html_url":"https://github.com/chef/chef/issues/3505","id":86315317,"number":3505,"title":"Chef 12.3.0-1 on Solaris 10 sun4u fails where 11.18.0-1 worked","user":{"login":"jblaine","id":438740,"avatar_url":"https://avatars.githubusercontent.com/u/438740?v=3","gravatar_id":"","url":"https://api.github.com/users/jblaine","html_url":"https://github.com/jblaine","followers_url":"https://api.github.com/users/jblaine/followers","following_url":"https://api.github.com/users/jblaine/following{/other_user}","gists_url":"https://api.github.com/users/jblaine/gists{/gist_id}","starred_url":"https://api.github.com/users/jblaine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jblaine/subscriptions","organizations_url":"https://api.github.com/users/jblaine/orgs","repos_url":"https://api.github.com/users/jblaine/repos","events_url":"https://api.github.com/users/jblaine/events{/privacy}","received_events_url":"https://api.github.com/users/jblaine/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef/chef/labels/Solaris","name":"Solaris","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2015-06-08T20:18:42Z","updated_at":"2015-09-16T18:27:17Z","closed_at":null,"body":"Chef 11.18.0-1 worked fine on this host: `SunOS babylon 5.10 Generic_142900-12 sun4u sparc SUNW,Sun-Fire-V240`\r\n\r\nI ran `pkgrm chef` and confirmed /opt/chef no longer even exists. Then installed the only Solaris 10 SPARC package available from chef.io:\r\n\r\n```\r\npkgadd -d chef-12.3.0-1.sun4v.solaris chef\r\n\r\nProcessing package instance <chef> from </tmp/chef-12.3.0-1.sun4v.solaris>\r\n\r\nchef(sparc) 12.3.0-1\r\n...\r\nInstallation of <chef> was successful.\r\n```\r\n\r\n```\r\n/:babylon # which chef-client\r\n/usr/bin/chef-client\r\n/:babylon # ls -ld /usr/bin/chef-client\r\nlrwxrwxrwx   1 root     other         25 Jun  8 16:08 /usr/bin/chef-client -> /opt/chef/bin/chef-client\r\n/:babylon #\r\n/:babylon # chef-client\r\n/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ffi-yajl-2.1.0/lib/ffi_yajl/map_library_name.rb:90:in `dlopen_yajl_library': cannot find yajl library for platform (RuntimeError)\r\n        from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ffi-yajl-2.1.0/lib/ffi_yajl/ext.rb:34:in `<module:FFI_Yajl>'\r\n        from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ffi-yajl-2.1.0/lib/ffi_yajl/ext.rb:30:in `<top (required)>'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ffi-yajl-2.1.0/lib/ffi_yajl.rb:45:in `<top (required)>'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.2.1/lib/chef_zero/endpoints/rest_list_endpoint.rb:1:in `<top (required)>'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.2.1/lib/chef_zero/server.rb:39:in `<top (required)>'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/apps/chef/lib/chef/http/socketless_chef_zero_client.rb:46:in `<top (required)>'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/apps/chef/lib/chef/http.rb:28:in `<top (required)>'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/apps/chef/lib/chef/rest.rb:24:in `<top (required)>'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/apps/chef/lib/chef/search/query.rb:21:in `<top (required)>'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/apps/chef/lib/chef/dsl/data_query.rb:19:in `<top (required)>'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/apps/chef/lib/chef/mixin/language.rb:20:in `<top (required)>'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/apps/chef/lib/chef/dsl/platform_introspection.rb:259:in `<top (required)>'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/apps/chef/lib/chef/resource.rb:21:in `<top (required)>'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/apps/chef/lib/chef/resource/file.rb:20:in `<top (required)>'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/apps/chef/lib/chef/provider/file.rb:22:in `<top (required)>'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/apps/chef/lib/chef/provider/cookbook_file.rb:19:in `<top (required)>'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/apps/chef/lib/chef/providers.rb:21:in `<top (required)>'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/apps/chef/lib/chef.rb:25:in `<top (required)>'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n        from /opt/chef/embedded/apps/chef/bin/chef-client:23:in `<top (required)>'\r\n        from /usr/bin/chef-client:51:in `load'\r\n        from /usr/bin/chef-client:51:in `<main>'\r\n```\r\n\r\n```\r\n/:babylon # find /opt/chef -name libyajl.so\r\n/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/libyajl2-1.2.0/ext/libyajl2/libyajl.so\r\n/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/libyajl2-1.2.0/lib/libyajl2/vendored-libyajl2/lib/libyajl.so\r\n/:babylon #\r\n```\r\n\r\nOn a whim, I set `LD_LIBRARY_PATH` and it gets further\r\n```\r\n/:babylon # LD_LIBRARY_PATH=/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/libyajl2-1.2.0/lib/libyajl2/vendored-libyajl2/lib chef-client\r\n[2015-06-08T16:10:45-04:00] INFO: Forking chef instance to converge...\r\nStarting Chef Client, version 12.3.0\r\n[2015-06-08T16:10:46-04:00] INFO: *** Chef 12.3.0 ***\r\n[2015-06-08T16:10:46-04:00] INFO: Chef-client pid: 29041\r\n[2015-06-08T16:10:57-04:00] INFO: Run List is [role[rcf-advanced-sunos-base]]\r\n[2015-06-08T16:10:57-04:00] INFO: Run List expands to [blah blah blah...]\r\n[2015-06-08T16:10:57-04:00] INFO: Starting Chef Run for babylon.our.org\r\n[2015-06-08T16:10:57-04:00] INFO: Running start handlers\r\n[2015-06-08T16:10:57-04:00] INFO: Start handlers complete.\r\n...\r\nSynchronizing Cookbooks:\r\n  - mitre-location\r\n  - rcf-chef-handlers\r\n  - chef_handler\r\n  - graphite_handler\r\n[2015-06-08T16:11:04-04:00] INFO: Storing updated cookbooks/our-certs/files/default/OUR-BA-Root.crt in the cache.\r\nld.so.1: ruby: fatal: relocation error: file /opt/chef/embedded/lib/libruby.so.2: symbol utimensat: referenced symbol not found\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/chef/chef/issues/comments/140833474","html_url":"https://github.com/chef/chef/issues/3505#issuecomment-140833474","issue_url":"https://api.github.com/repos/chef/chef/issues/3505","id":140833474,"user":{"login":"MarkGibbons","id":3452840,"avatar_url":"https://avatars.githubusercontent.com/u/3452840?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkGibbons","html_url":"https://github.com/MarkGibbons","followers_url":"https://api.github.com/users/MarkGibbons/followers","following_url":"https://api.github.com/users/MarkGibbons/following{/other_user}","gists_url":"https://api.github.com/users/MarkGibbons/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkGibbons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkGibbons/subscriptions","organizations_url":"https://api.github.com/users/MarkGibbons/orgs","repos_url":"https://api.github.com/users/MarkGibbons/repos","events_url":"https://api.github.com/users/MarkGibbons/events{/privacy}","received_events_url":"https://api.github.com/users/MarkGibbons/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T18:27:17Z","updated_at":"2015-09-16T18:27:17Z","body":"I've got the same issue on a server running u6.  It was built as u6 originally.  I can test a fix when you have one.\r\n\r\nthanks,\r\n  Mark"}}