Error on user login on 64 bit machine

I have 2 servers, one a test server running Fedora Core 4, and another a production server running Fedora Core 4 64 bit. I've installed the newest version of ejabberd on the test machine and it worked fine. I install the newest version on the 64 bit machine and when I try to login it fails, and in the log:

** When State == wait_for_auth
**      Data  == {state,#Port<0.296>,
                        <0.706.0>,
                        gen_tcp,
                        "1593443958",
                        undefined,
                        c2s,
                        c2s_shaper,
                        false,
                        false,
                        false,
                        [],
                        false,
                        undefined,
                        [],
                        "myhost.com",
                        [],
                        {0,nil},
                        {0,nil},
                        {0,nil},
                        {0,nil},
                        undefined,
                        undefined,
                        undefined,
                        false,
                        none,
                        []}
** Reason for termination = 
** {badarg,[{ets,lookup,[crypto_server_table,port]},
            {crypto,control,2},
            {sha,sha,1},
            {ejabberd_auth_internal,check_password,5},
            {ejabberd_c2s,wait_for_auth,2},
            {gen_fsm,handle_msg,7},
            {proc_lib,init_p,5}]}

I'd seen some info on another badarg error that mentioned the cfg file, so I reinstalled with a fresh one and made no changes to it, except changing the listen port, and I keep getting the same result. I used the linux .bin installer on both machines. I first used the erlang that come with the .bin installer on the 64 bit machine, then before the reinstall I used yum install erlang to install the latest erlang package. Openssl is installed(thought probably not used at this point).

The binery installer is for

The binary installer is for Linux i386. Why don't you simply compile ejabberd from sources?

On Ubuntu-AMD64 I got OpenSSL, Expat, an Erlang from APT, and compiled ejabberd from sources. It works perfectly.

Compiling failed

I get this error:

./ejabberd_s2s_in.erl:33: can't find include lib "ssl/pkix/PKIX1Explicit88.hrl"
./ejabberd_s2s_in.erl:34: can't find include lib "ssl/pkix/PKIX1Implicit88.hrl"
./ejabberd_s2s_in.erl:556: undefined macro ''id-at-commonName''
./ejabberd_s2s_in.erl:250: function get_cert_domains/1 undefined

when I try to compile. I have Expat, Openssl, and Erlang installed and updated. The cofigure step goes fine, I get that error part way through compilation when I run make.

Common error message

If you are using SVN, you must do 'autoconf' before './configure'.

If you are using the stable ejabberd-1.0.0.tar.gz make sure to have openssl 0.9.7g or newer, including the development files. If you compiled Erlang from sources you may need to recompile it once OpenSSL is updated to a recent version.

If you use Erlang R10B-8 or older, update to R10B-9. If you use R9C, don't worry.

R10B-8.2?

Is R10B-8.2 ok? That's what Fedora Core 4 yum wants to install.

Re: R10B-8.2?

James Bowery wrote:

Is R10B-8.2 ok? That's what Fedora Core 4 yum wants to install.

Not if you want version 1.0.0: "This release requires Erlang/OTP R9C or higher." (see ejabberd 1.0.0 release announcement).

R10B > R9C

R10B is higher than R9C, isn't it? At least it looks like that on the download page.

Re: R10B > R9C

legoscia wrote:

R10B is higher than R9C, isn't it? At least it looks like that on the download page.

Oops, I was indeed wrong.

Re: Error on user login on 64 bit machine

Brad789 wrote:

I have 2 servers, one a test server running Fedora Core 4, and another a production server running Fedora Core 4 64 bit.

What did you use to install on Fedora Core 4 32-bit?

My yum repositories don't seem to contain ejabberd and don't even supply an erlang recent enough to compile ejabberd 1.0.0.

Re: Error on user login on 64 bit machine

James Bowery wrote:

What did you use to install on Fedora Core 4 32-bit?

Never mind. I see at the end of your message you said: "I used the linux .bin installer on both machines."

Syndicate content