Problems running ejabberd

i have a suse 9.1 box, installed with ejabberd 0.9.8 with erlang otp-r10b, compile, make an install with no mayor problems, now when i try to run ejabberd with

/usr/local/erlang/otp-r10b/otp_src_R10B-8/bin/./erl -pa /var/lib/ejabberd/ebin/ -sname ejabberd -s ejabberd -ejabberd config \"/etc/ejabberd/ejabberd.cfg\" log_path \"/var/log/ejabberd/ejabberd.log\" -sasl sasl_error_logger \{file,\"/var/log/ejabberd/sasl.log\"\} -mnesia dir \"/var/lib/ejabberd/spool\"

i get this error

=ERROR REPORT==== 1-Dec-2005::11:49:42 ===
** Generic server crypto_server terminating
** Last message in was {'EXIT',#Port<0.275>,normal}
** When Server state == {#Port<0.275>,[]}
** Reason for termination ==
** {port_died,normal}
sh: line 1: exec: crypto_drv: not found
sh: line 1: exec: crypto_drv: not found

=ERROR REPORT==== 1-Dec-2005::11:49:42 ===
** Generic server crypto_server terminating
** Last message in was {'EXIT',#Port<0.277>,normal}
** When Server state == {#Port<0.277>,[]}
** Reason for termination ==
** {port_died,normal}

=INFO REPORT==== 1-Dec-2005::11:49:42 ===
application: crypto
exited: shutdown
type: temporary

=INFO REPORT==== 1-Dec-2005::11:49:43 ===
application: ejabberd
exited: "invalid return value from ejabberd_app:start(normal,[]) -> {'EXIT',\n {function_clause,\n [{lists,\n foreach,\n [#Fun,\n undefined]},\n {ejabberd_app,start,2},\n {application_master,start_it_old,4}]}}"
type: temporary

i assume that i need install or something this "crypto_drv", but how?? thanks in advance for any response, and sorry for my english, its really poor :-(

install openssl and recompile

'Crypto' is a library included in Erlang/OTP. If you don't have the requirements (OpenSSL, I guess) the compilation of Erlang will success but you will not have the library.

Since ejabberd requires it, make sure Erlang includes it, and it is available. You may need to install OpenSSL or related packages, then compile Erlang and ejabberd.

Check if the Crypto library is available:

$ erl
Erlang (BEAM) emulator version 5.4.10 [source] [hipe]

Eshell V5.4.10  (abort with ^G)
1> crypto:start().
ok
2> q().
ok
3> 
$

You may need to install

You may need to install OpenSSL or related packages, then compile Erlang and ejabberd.

The development package of OpenSSL is what you need for sure.

--
sander

New Error

so, the interesting thing its after checked with crypto:start i dont get the error crypto_drv... now i get this:

=INFO REPORT==== 2-Dec-2005::09:00:56 ===
application: ejabberd
exited: "invalid return value from ejabberd_app:start(normal,[]) -> {'EXIT',\n {function_clause,\n [{lists,\n foreach,\n [#Fun,\n undefined]},\n {ejabberd_app,start,2},\n {application_master,start_it_old,4}]}}"
type: temporary

=ERROR REPORT==== 2-Dec-2005::09:00:56 ===
Mnesia(ejabberd@mail): ** ERROR ** mnesia_controller got unexpected info: {'EXIT',
<0.216.0>,
killed}

so... with ejabberdctl ejabberd@mail status i get "started" now im gonna see if works even with the errors...

i've checked with

i've checked with crypto:start() and this is what i get

Eshell V5.4.10 (abort with ^G)
1> crypto:start().
ok
2> q().
ok
3> mail:~ #

so i guess the crypto its installed, besides,

rpm -ivh openssl-devel-0.9.7d-15.i586.rpm
Preparing... ########################################### [100%]
package openssl-devel-0.9.7d-15 is already installed

im sure that i've installed all packages before compiling erlang, and with:

locate crypto_drv
/usr/local/erlang/otp-r10b/otp_src_R10B-8/lib/crypto/c_src/crypto_drv.c
/usr/local/erlang/otp-r10b/otp_src_R10B-8/lib/crypto/priv/lib/i686-pc-linux-gnu/crypto_drv.so
/usr/local/erlang/otp-r10b/otp_src_R10B-8/lib/crypto/priv/obj/i686-pc-linux-gnu/crypto_drv.o
/usr/local/lib/erlang/lib/crypto-1.4/priv/lib/crypto_drv.so
/usr/local/lib/erlang/lib/crypto-1.4/priv/obj/crypto_drv.o

so its posible that some path its incorrect?

Syndicate content