Error start of ejabberd 15.06 with module cberl

When i execute command ejabberdctl live with module cberl (https://github.com/chitika/cberl)

11:24:43.645 [info] Application jiffy started on node ejabberd@xmpp5
11:24:43.663 [error] The on_load function for module cberl_nif returned {error,{load_failed,"Failed to load NIF library: '/lib/ejabberd/ebin/cberl/priv/cberl_drv.so: cannot open shared object file: No such file or directory'"}}
11:24:43.663 [error] CRASH REPORT Process <0.446.0> with 0 neighbours exited with reason: call to undefined function cberl_nif:new() in gen_server:init_it/6 line 330
11:24:43.664 [error] Supervisor {<0.445.0>,poolboy_sup} had child cberl_worker started with {cberl_worker,start_link,undefined} at <0.446.0> exit with reason call to undefined function cberl_nif:new() in context child_terminated
11:24:43.664 [error] CRASH REPORT Process <0.444.0> with 0 neighbours exited with reason: no match of right hand value {error,{undef,[{cberl_nif,new,[],[]},{cberl_worker,init,1,[{file,"src/cberl_worker.erl"},{line,49}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}} in poolboy:new_worker/1 line 275 in gen_server:init_it/6 line 330
11:24:43.666 [error] gen_server <0.445.0> terminated with reason: no match of right hand value {error,{undef,[{cberl_nif,new,[],[]},{cberl_worker,init,1,[{file,"src/cberl_worker.erl"},{line,49}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}} in poolboy:new_worker/1 line 275
11:24:43.667 [error] CRASH REPORT Process <0.445.0> with 0 neighbours exited with reason: no match of right hand value {error,{undef,[{cberl_nif,new,[],[]},{cberl_worker,init,1,[{file,"src/cberl_worker.erl"},{line,49}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}} in poolboy:new_worker/1 line 275 in gen_server:terminate/7 line 804
11:24:43.670 [error] The on_load function for module cberl_nif returned {error,{load_failed,"Failed to load NIF library: '/lib/ejabberd/ebin/cberl/priv/cberl_drv.so: cannot open shared object file: No such file or directory'"}}
11:24:43.670 [error] CRASH REPORT Process <0.451.0> with 0 neighbours exited with reason: call to undefined function cberl_nif:new() in gen_server:init_it/6 line 330
11:24:43.670 [error] Supervisor {<0.450.0>,poolboy_sup} had child cberl_worker started with {cberl_worker,start_link,undefined} at <0.451.0> exit with reason call to undefined function cberl_nif:new() in context child_terminated
11:24:43.670 [error] CRASH REPORT Process <0.449.0> with 0 neighbours exited with reason: no match of right hand value {error,{undef,[{cberl_nif,new,[],[]},{cberl_worker,init,1,[{file,"src/cberl_worker.erl"},{line,49}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}} in poolboy:new_worker/1 line 275 in gen_server:init_it/6 line 330
11:24:43.673 [error] gen_server <0.450.0> terminated with reason: no match of right hand value {error,{undef,[{cberl_nif,new,[],[]},{cberl_worker,init,1,[{file,"src/cberl_worker.erl"},{line,49}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}} in poolboy:new_worker/1 line 275
11:24:43.673 [error] CRASH REPORT Process <0.450.0> with 0 neighbours exited with reason: no match of right hand value {error,{undef,[{cberl_nif,new,[],[]},{cberl_worker,init,1,[{file,"src/cberl_worker.erl"},{line,49}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}} in poolboy:new_worker/1 line 275 in gen_server:terminate/7 line 804
11:24:43.779 [error] The on_load function for module cberl_nif returned {error,{load_failed,"Failed to load NIF library: '/lib/ejabberd/ebin/cberl/priv/cberl_drv.so: cannot open shared object file: No such file or directory'"}}
11:24:43.779 [error] CRASH REPORT Process <0.456.0> with 0 neighbours exited with reason: call to undefined function cberl_nif:new() in gen_server:init_it/6 line 330
11:24:43.779 [error] Supervisor {<0.455.0>,poolboy_sup} had child cberl_worker started with {cberl_worker,start_link,undefined} at <0.456.0> exit with reason call to undefined function cberl_nif:new() in context child_terminated
11:24:43.780 [error] CRASH REPORT Process <0.454.0> with 0 neighbours exited with reason: no match of right hand value {error,{undef,[{cberl_nif,new,[],[]},{cberl_worker,init,1,[{file,"src/cberl_worker.erl"},{line,49}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}} in poolboy:new_worker/1 line 275 in gen_server:init_it/6 line 330
11:24:43.782 [warning] module 'mod_buhphone_utility' doesn't export mod_opt_type/1
11:24:43.784 [error] gen_server <0.455.0> terminated with reason: no match of right hand value {error,{undef,[{cberl_nif,new,[],[]},{cberl_worker,init,1,[{file,"src/cberl_worker.erl"},{line,49}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}} in poolboy:new_worker/1 line 275
11:24:43.784 [error] CRASH REPORT Process <0.455.0> with 0 neighbours exited with reason: no match of right hand value {error,{undef,[{cberl_nif,new,[],[]},{cberl_worker,init,1,[{file,"src/cberl_worker.erl"},{line,49}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}} in poolboy:new_worker/1 line 275 in gen_server:terminate/7 line 804
11:24:43.785 [error] The on_load function for module cberl_nif returned {error,{load_failed,"Failed to load NIF library: '/lib/ejabberd/ebin/cberl/priv/cberl_drv.so: cannot open shared object file: No such file or directory'"}}
11:24:43.785 [error] CRASH REPORT Process <0.461.0> with 0 neighbours exited with reason: call to undefined function cberl_nif:new() in gen_server:init_it/6 line 330
11:24:43.785 [error] Supervisor {<0.460.0>,poolboy_sup} had child cberl_worker started with {cberl_worker,start_link,undefined} at <0.461.0> exit with reason call to undefined function cberl_nif:new() in context child_terminated
11:24:43.785 [error] CRASH REPORT Process <0.459.0> with 0 neighbours exited with reason: no match of right hand value {error,{undef,[{cberl_nif,new,[],[]},{cberl_worker,init,1,[{file,"src/cberl_worker.erl"},{line,49}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}} in poolboy:new_worker/1 line 275 in gen_server:init_it/6 line 330
11:24:43.789 [error] gen_server <0.460.0> terminated with reason: no match of right hand value {error,{undef,[{cberl_nif,new,[],[]},{cberl_worker,init,1,[{file,"src/cberl_worker.erl"},{line,49}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}} in poolboy:new_worker/1 line 275
11:24:43.789 [error] CRASH REPORT Process <0.460.0> with 0 neighbours exited with reason: no match of right hand value {error,{undef,[{cberl_nif,new,[],[]},{cberl_worker,init,1,[{file,"src/cberl_worker.erl"},{line,49}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}} in poolboy:new_worker/1 line 275 in gen_server:terminate/7 line 804
11:24:43.790 [error] The on_load function for module cberl_nif returned {error,{load_failed,"Failed to load NIF library: '/lib/ejabberd/ebin/cberl/priv/cberl_drv.so: cannot open shared object file: No such file or directory'"}}
11:24:43.790 [error] CRASH REPORT Process <0.466.0> with 0 neighbours exited with reason: call to undefined function cberl_nif:new() in gen_server:init_it/6 line 330
11:24:43.790 [error] Supervisor {<0.465.0>,poolboy_sup} had child cberl_worker started with {cberl_worker,start_link,undefined} at <0.466.0> exit with reason call to undefined function cberl_nif:new() in context child_terminated
11:24:43.791 [error] CRASH REPORT Process <0.464.0> with 0 neighbours exited with reason: no match of right hand value {error,{undef,[{cberl_nif,new,[],[]},{cberl_worker,init,1,[{file,"src/cberl_worker.erl"},{line,49}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}} in poolboy:new_worker/1 line 275 in gen_server:init_it/6 line 330
11:24:43.794 [error] gen_server <0.465.0> terminated with reason: no match of right hand value {error,{undef,[{cberl_nif,new,[],[]},{cberl_worker,init,1,[{file,"src/cberl_worker.erl"},{line,49}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}} in poolboy:new_worker/1 line 275
11:24:43.794 [error] CRASH REPORT Process <0.465.0> with 0 neighbours exited with reason: no match of right hand value {error,{undef,[{cberl_nif,new,[],[]},{cberl_worker,init,1,[{file,"src/cberl_worker.erl"},{line,49}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}} in poolboy:new_worker/1 line 275 in gen_server:terminate/7 line 804
11:24:43.794 [error] CRASH REPORT Process <0.471.0> with 0 neighbours exited with reason: call to undefined function cberl_nif:new() in gen_server:init_it/6 line 330
11:24:43.794 [error] The on_load function for module cberl_nif returned {error,{load_failed,"Failed to load NIF library: '/lib/ejabberd/ebin/cberl/priv/cberl_drv.so: cannot open shared object file: No such file or directory'"}}
11:24:43.795 [error] Supervisor {<0.470.0>,poolboy_sup} had child cberl_worker started with {cberl_worker,start_link,undefined} at <0.471.0> exit with reason call to undefined function cberl_nif:new() in context child_terminated
11:24:43.795 [error] CRASH REPORT Process <0.469.0> with 0 neighbours exited with reason: no match of right hand value {error,{undef,[{cberl_nif,new,[],[]},{cberl_worker,init,1,[{file,"src/cberl_worker.erl"},{line,49}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}} in poolboy:new_worker/1 line 275 in gen_server:init_it/6 line 330
11:24:43.798 [error] gen_server <0.470.0> terminated with reason: no match of right hand value {error,{undef,[{cberl_nif,new,[],[]},{cberl_worker,init,1,[{file,"src/cberl_worker.erl"},{line,49}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}} in poolboy:new_worker/1 line 275
11:24:43.798 [error] CRASH REPORT Process <0.470.0> with 0 neighbours exited with reason: no match of right hand value {error,{undef,[{cberl_nif,new,[],[]},{cberl_worker,init,1,[{file,"src/cberl_worker.erl"},{line,49}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}} in poolboy:new_worker/1 line 275 in gen_server:terminate/7 line 804

What's the problem?

You have an environment setup

You have an environment setup issue. cberl_nif module cannot be found.

When i used ejabberd 14.07, I

When i used ejabberd 14.07, I had no such trouble. The file cberl_nif.beam is in /lib/ejabberd/ebin
-rw-r--r-- 1 ejabberd ejabberd 352 Jul 2 08:53 cberl.app
-rw-r--r-- 1 ejabberd ejabberd 944 Jul 2 08:52 cberl_app.beam
-rw-r--r-- 1 ejabberd ejabberd 16K Jul 2 08:52 cberl.beam
-rw-r--r-- 1 ejabberd ejabberd 1.6K Jul 2 08:52 cberl_nif.beam
-rw-r--r-- 1 ejabberd ejabberd 1.1K Jul 2 08:52 cberl_sup.beam
-rw-r--r-- 1 ejabberd ejabberd 2.9K Jul 2 08:52 cberl_transcoder.beam
-rw-r--r-- 1 ejabberd ejabberd 9.7K Jul 2 08:52 cberl_worker.beam
What is wrong with the environment?
The search path has changed?

I created

I created /lib/ejabberd/ebin/cberl/priv/ and copied the file there cberl_drv.so. There was a new problem :
"The on_load function for module cberl_nif returned {error,{load_failed,"Failed to load NIF library /lib/ejabberd/ebin/cberl/priv/cberl_drv: 'libcouchbase.so.2: cannot open shared object file: No such file or directory'"}}"

the search path has changed?

the search path has changed?

No idea what you mean, but I

No idea what you mean, but I do not think this is a problem related to ejabberd, no ?

When i used ejabberd 14.07,

When i used ejabberd 14.07, It's worked with no problem

Well, maybe, but this is

Well, maybe, but this is relating to custom code. You need probably to adapt your custom code to new release. Check path, etc. I am afraid I cannot help as this is highly dependant on your own environment.

I execute "ldconfig", it

I execute "ldconfig", it worked.

Syndicate content