{"action":"created","issue":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/879","repository_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server","labels_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/879/labels{/name}","comments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/879/comments","events_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/879/events","html_url":"https://github.com/rabbitmq/rabbitmq-server/issues/879","id":164444113,"number":879,"title":"Mac standalone package is being built incorrectly (3.6.2+, 3.7 nightlies)","user":{"login":"nextdayflight","id":295474,"avatar_url":"https://avatars.githubusercontent.com/u/295474?v=3","gravatar_id":"","url":"https://api.github.com/users/nextdayflight","html_url":"https://github.com/nextdayflight","followers_url":"https://api.github.com/users/nextdayflight/followers","following_url":"https://api.github.com/users/nextdayflight/following{/other_user}","gists_url":"https://api.github.com/users/nextdayflight/gists{/gist_id}","starred_url":"https://api.github.com/users/nextdayflight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nextdayflight/subscriptions","organizations_url":"https://api.github.com/users/nextdayflight/orgs","repos_url":"https://api.github.com/users/nextdayflight/repos","events_url":"https://api.github.com/users/nextdayflight/events{/privacy}","received_events_url":"https://api.github.com/users/nextdayflight/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-08T01:52:12Z","updated_at":"2016-07-08T11:15:27Z","closed_at":"2016-07-08T11:15:27Z","body":"It seems that the Mac standalone packages have changed in the way they are being built. It looks like the provided crypto library is being linked against a custom OpenSSL build in `/usr/local/opt` which doesn't exist on a vanilla OS X install.\r\n\r\n```sh\r\n$ tar -Jxvf rabbitmq-server-mac-standalone-3.6.2.tar.xz\r\n$ ./rabbitmq_server-3.6.2/sbin/rabbitmq-server\r\n```\r\ngives:\r\n\r\n```sh\r\nBOOT FAILED\r\n===========\r\n\r\nError description:\r\n   {could_not_start,rabbit,\r\n       {undef,\r\n           [{crypto,hash,[sha256,<<\"}���guest\">>],[]},\r\n            {rabbit_password,hash,2,\r\n                [{file,\"src/rabbit_password.erl\"},{line,34}]},\r\n            {rabbit_auth_backend_internal,add_user,2,\r\n                [{file,\"src/rabbit_auth_backend_internal.erl\"},{line,177}]},\r\n            {rabbit,insert_default_data,0,\r\n                [{file,\"src/rabbit.erl\"},{line,673}]},\r\n            {rabbit_boot_steps,'-run_step/2-lc$^1/1-1-',1,\r\n                [{file,\"src/rabbit_boot_steps.erl\"},{line,49}]},\r\n            {rabbit_boot_steps,run_step,2,\r\n                [{file,\"src/rabbit_boot_steps.erl\"},{line,49}]},\r\n            {rabbit_boot_steps,'-run_boot_steps/1-lc$^0/1-0-',1,\r\n                [{file,\"src/rabbit_boot_steps.erl\"},{line,26}]},\r\n            {rabbit_boot_steps,run_boot_steps,1,\r\n                [{file,\"src/rabbit_boot_steps.erl\"},{line,26}]}]}}\r\n\r\nLog files (may contain more information):\r\n   /Users/mattm/tmp/rabbitmq_server-3.6.2/var/log/rabbitmq/rabbit@michalowski.log\r\n   /Users/mattm/tmp/rabbitmq_server-3.6.2/var/log/rabbitmq/rabbit@michalowski-sasl.log\r\n\r\n{\"init terminating in do_boot\",{could_not_start,rabbit,{undef,[{crypto,hash,[sha256,<<9 bytes>>],[]},{rabbit_password,hash,2,[{file,\"src/rabbit_password.erl\"},{line,34}]},{rabbit_auth_backend_internal,add_user,2,[{file,\"src/rabbit_auth_backend_internal.erl\"},{line,177}]},{rabbit,insert_default_data,0,[{file,\"src/rabbit.erl\"},{line,673}]},{rabbit_boot_steps,'-run_step/2-lc$^1/1-1-',1,[{file,\"src/rabbit_boot_steps.erl\"},{line,49}]},{rabbit_boot_steps,run_step,2,[{file,\"src/rabbit_boot_steps.erl\"},{line,49}]},{rabbit_boot_steps,'-run_boot_steps/1-lc$^0/1-0-',1,[{file,\"src/rabbit_boot_steps.erl\"},{line,26}]},{rabbit_boot_steps,run_boot_steps,1,[{file,\"src/rabbit_boot_steps.erl\"},{line,26}]}]}}}\r\n\r\nCrash dump was written to: erl_crash.dump\r\ninit terminating in do_boot ()\r\n```\r\n\r\nLooking the log:\r\n```sh\r\n=ERROR REPORT==== 8-Jul-2016::11:34:20 ===\r\nUnable to load crypto library. Failed with error:\r\n\"load_failed, Failed to load NIF library: 'dlopen(/Users/mattm/tmp/rabbitmq_server-3.6.2/erts-6.4/bin/../../lib/crypto-3.5/priv/lib/crypto.so, 2): Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib\r\n  Referenced from: /Users/mattm/tmp/rabbitmq_server-3.6.2/lib/crypto-3.5/priv/lib/crypto.so\r\n  Reason: image not found'\"\r\nOpenSSL might not be installed on this system.\r\n\r\n=WARNING REPORT==== 8-Jul-2016::11:34:20 ===\r\nThe on_load function for module crypto returned {error,\r\n  {load_failed,\r\n    \"Failed to load NIF library: 'dlopen(/Users/mattm/tmp/rabbitmq_server-3.6.2/erts-6.4/bin/../../lib/crypto-3.5/priv/lib/crypto.so, 2): \r\nLibrary not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib\\n  \r\nReferenced from: /Users/mattm/tmp/rabbitmq_server-3.6.2/lib/crypto-3.5/priv/lib/crypto.so\\n  \r\nReason: image not found'\"}}\r\n```\r\n\r\nFurther inspection:\r\n```sh\r\n$ otool -L lib/crypto-3.5/priv/lib/crypto.so\r\nlib/crypto-3.5/priv/lib/crypto.so:\r\n\t/usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)\r\n\t/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1225.1.1)\r\n```\r\n\r\nContrast this with the 3.6.1 standalone package:\r\n```sh\r\n$ otool -L lib/crypto-3.5/priv/lib/crypto.so\r\nlib/crypto-3.5/priv/lib/crypto.so:\r\n\t/usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)\r\n\t/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/comments/231335517","html_url":"https://github.com/rabbitmq/rabbitmq-server/issues/879#issuecomment-231335517","issue_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/879","id":231335517,"user":{"login":"michaelklishin","id":1090,"avatar_url":"https://avatars.githubusercontent.com/u/1090?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelklishin","html_url":"https://github.com/michaelklishin","followers_url":"https://api.github.com/users/michaelklishin/followers","following_url":"https://api.github.com/users/michaelklishin/following{/other_user}","gists_url":"https://api.github.com/users/michaelklishin/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelklishin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelklishin/subscriptions","organizations_url":"https://api.github.com/users/michaelklishin/orgs","repos_url":"https://api.github.com/users/michaelklishin/repos","events_url":"https://api.github.com/users/michaelklishin/events{/privacy}","received_events_url":"https://api.github.com/users/michaelklishin/received_events","type":"User","site_admin":false},"created_at":"2016-07-08T11:15:27Z","updated_at":"2016-07-08T11:15:27Z","body":"Have you seen [3.6.2 release notes](https://github.com/rabbitmq/rabbitmq-server/releases/tag/rabbitmq_v3_6_2)?"}}
{"actor":{"display_login":"michaelklishin"}}