Skip to content

Instantly share code, notes, and snippets.

@ntalbott
Created August 27, 2012 22:46
Show Gist options
  • Save ntalbott/3493052 to your computer and use it in GitHub Desktop.
Save ntalbott/3493052 to your computer and use it in GitHub Desktop.
Riak error
ntalbott@joshua:~/git/spreedly$ vendor/riak/rel/riak/bin/riak console
Exec: /Users/ntalbott/git/spreedly/vendor/riak/rel/riak/erts-5.8.4/bin/erlexec -boot /Users/ntalbott/git/spreedly/vendor/riak/rel/riak/releases/1.1.1/riak -embedded -config /Users/ntalbott/git/spreedly/vendor/riak/rel/riak/etc/app.config -pa ./lib/basho-patches -args_file /Users/ntalbott/git/spreedly/vendor/riak/rel/riak/etc/vm.args -- console
Root: /Users/ntalbott/git/spreedly/vendor/riak/rel/riak
Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:64] [hipe] [kernel-poll:true]
=INFO REPORT==== 27-Aug-2012::18:39:50 ===
alarm_handler: {set,{{disk_almost_full,"55879602"},[]}}
=INFO REPORT==== 27-Aug-2012::18:39:50 ===
alarm_handler: {set,{system_memory_high_watermark,[]}}
** ./lib/basho-patches/etop_txt.beam hides /Users/ntalbott/git/spreedly/vendor/riak/rel/riak/lib/observer-0.9.9/ebin/etop_txt.beam
** /Users/ntalbott/git/spreedly/vendor/riak/rel/riak/lib/observer-0.9.9/ebin/etop_txt.beam hides /Users/ntalbott/git/spreedly/vendor/riak/rel/riak/lib/basho-patches/etop_txt.beam
** Found 2 name clashes in code paths
18:39:51.143 [info] Application lager started on node '[email protected]'
18:39:51.218 [info] Application riak_core started on node '[email protected]'
18:39:51.221 [info] Application riak_control started on node '[email protected]'
18:39:51.221 [info] Application basho_metrics started on node '[email protected]'
18:39:51.223 [info] Application cluster_info started on node '[email protected]'
18:39:51.229 [info] Application merge_index started on node '[email protected]'
18:39:51.244 [info] Waiting for application riak_pipe to start (0 seconds).
18:39:51.245 [info] Application riak_pipe started on node '[email protected]'
18:39:51.268 [info] Application inets started on node '[email protected]'
18:39:51.271 [info] Application mochiweb started on node '[email protected]'
18:39:51.278 [error] Error loading "erlang_js_drv": "dlopen(/Users/ntalbott/git/spreedly/vendor/riak/rel/riak/lib/erlang_js-1.0.1/priv/erlang_js_drv.so, 2): Symbol not found: _begin_request\n Referenced from: /Users/ntalbott/git/spreedly/vendor/riak/rel/riak/lib/erlang_js-1.0.1/priv/erlang_js_drv.so\n Expected in: flat namespace\n in /Users/ntalbott/git/spreedly/vendor/riak/rel/riak/lib/erlang_js-1.0.1/priv/erlang_js_drv.so"
18:39:51.279 [error] CRASH REPORT Process erlang_js_sup with 0 neighbours crashed with reason: bad return value: {error,{load_error,"Failed to load spidermonkey_drv.so"}}
18:39:51.280 [error] CRASH REPORT Process <0.235.0> with 0 neighbours crashed with reason: bad return value: {error,{load_error,"Failed to load spidermonkey_drv.so"}} in erlang_js:start(normal, [])
18:39:51.281 [info] Application erlang_js exited with reason: bad return value: {error,{load_error,"Failed to load spidermonkey_drv.so"}} in erlang_js:start(normal, [])
=INFO REPORT==== 27-Aug-2012::18:39:51 ===
alarm_handler: {clear,system_memory_high_watermark}
=INFO REPORT==== 27-Aug-2012::18:39:51 ===
alarm_handler: {clear,{disk_almost_full,"55879602"}}
{"Kernel pid terminated",application_controller,"{application_start_failure,erlang_js,{{bad_return_value,{error,{load_error,[70,97,105,108,101,100,32,116,111,32,108,111,97,100,32,115,112,105,100,101,114,109,111,110,107,101,121,95,100,114,118,46,115,111]}}},{erlang_js,start,[normal,[]]}}}"}
Crash dump was written to: ./log/erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,erlang_js,{{bad_return_value,{error,{load_error,[70,97,105,108,101,100,32,116,111,32,108,111,97,100,32,115,112,105,100,101,
@ntalbott
Copy link
Author

If you're seeing this error on OS X:

Symbol not found: _begin_request

The issue is that you're compiling with llvm-gcc rather than gcc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment