ejabberd-vagrant-dev
ejabberd-vagrant-dev copied to clipboard
Can't run the Test in a clean Setup
I'm trying to setup the dev environment to make some changes on ejabberd (and test them). Unfortunately the tests are failing.
I'm using Mac OS X 10.11 as a host, virtual box as the provider, and checked out tag 16.2.0 of ejabberd. The required databases (MySQL, PostgreSQL, etc.) seams to be running.
Should the current setup work out of the box, or is there something that needs to be done by hand?
I setup the vagrant box as described in the README:
ulimit -n 4096
vagrant up --provider=virtualbox
vagrant provision
And in the vagrant box (with vagrant ssh):
./autogen.sh && ./configure --enable-mysql --enable-pgsql --enable-riak --enable-sqlite --enable-elixir --enable-tools
make
make test
After this, I get the error:
*************************************************************************
/usr/local/lib/erlang/bin/escript rebar skip_deps=true ct
==> ejabberd (ct)
ERROR: grep -e 'TEST COMPLETE' -e '{error,make_failed}' /projects/ejabberd/logs/raw.log failed with error: 1 and output:
ERROR: ct failed while processing /projects/ejabberd: rebar_abort
make: *** [test] Error 1
With the error log:
=INFO REPORT==== 16-Mar-2016::20:59:42 ===
LDIF tree loaded, ready to accept connections20:59:43.214 [info] Application lager started on node '[email protected]'
20:59:43.250 [info] Application crypto started on node '[email protected]'
20:59:43.327 [info] Application sasl started on node '[email protected]'
20:59:43.417 [info] Application asn1 started on node '[email protected]'
20:59:43.417 [info] Application public_key started on node '[email protected]'
20:59:43.587 [info] Application ssl started on node '[email protected]'
20:59:43.663 [info] Application fast_yaml started on node '[email protected]'
20:59:43.814 [info] Application fast_tls started on node '[email protected]'
20:59:43.879 [info] Application fast_xml started on node '[email protected]'
20:59:43.913 [info] Application stringprep started on node '[email protected]'
20:59:43.957 [info] Application ezlib started on node '[email protected]'
20:59:43.981 [info] Application cache_tab started on node '[email protected]'
20:59:45.145 [info] Application mnesia started on node '[email protected]'
20:59:47.769 [info] Application inets started on node '[email protected]'
20:59:52.245 [info] Application p1_mysql started on node '[email protected]'
20:59:52.346 [info] Application p1_pgsql started on node '[email protected]'
20:59:52.425 [info] Application sqlite3 started on node '[email protected]'
20:59:52.676 [info] Application protobuffs started on node '[email protected]'
20:59:52.676 [info] Application riak_pb started on node '[email protected]'
20:59:52.676 [info] Application riakc started on node '[email protected]'
20:59:52.716 [info] Cleaning SQL SM table...
20:59:52.723 [error] SQL query 'delete from sm where node='[email protected]'' failed: "#42S02Table 'ejabberd_test.sm' doesn't exist"
20:59:52.723 [error] failed to clean 'sm' table: {error,"#42S02Table 'ejabberd_test.sm' doesn't exist"}
20:59:52.749 [error] CRASH REPORT Process <0.569.0> with 1 neighbours exited with reason: call to undefined function eredis:start_link("localhost", 6379, 0, [], 1000, 1000) in gen_server:init_it/6 line 330
20:59:52.750 [info] FQDN used to check DIGEST-MD5 SASL authentication: vagrant.vm
20:59:52.814 [info] LDAP connection on localhost:1389
20:59:52.815 [info] LDAP connection on localhost:1389
20:59:52.941 [critical] Problem starting the module mod_adhoc for host <<"extauth.localhost">>
options: []
error: badarg
[{ejabberd_sm,register_iq_handler,5,[{file,"src/ejabberd_sm.erl"},{line,310}]},
{mod_adhoc,start,2,[{file,"src/mod_adhoc.erl"},{line,53}]},
{gen_mod,start_module,3,[{file,"src/gen_mod.erl"},{line,98}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1336}]},
{ejabberd_app,start,2,[{file,"src/ejabberd_app.erl"},{line,74}]},
{application_master,start_it_old,4,
[{file,"application_master.erl"},{line,272}]}]
20:59:52.941 [critical] ejabberd initialization was aborted because a module start failed.
Crash dump was written to: erl_crash.dump
Problem starting the module mod_adhoc for host <<"extauth.localhost">>
options: []
error: badarg
[{ejabberd_sm,register_iq_handler,5,[{file,"src/ejabberd_sm.erl"},{line,310}]},
{mod_adhoc,start,2