Erlang/OTP Forums

Author Message

<  Ejabberd mailing list  ~  Problem with user connections on Ubuntu 6.10, ejabberd 1.1.1

Guest
Posted: Fri Oct 27, 2006 11:47 am Reply with quote
Guest
I had a functional ejabberd server running on Ubuntu 6.06 Dapper
Drake, and recently upgraded the distribution to 6.10 Edgy Eft. In
the following log extracts, "mydomain.org" has been used where my
fully qualified domain name would be.

Now, whenever a user attempts to connect, the connection attempt
fails and I see the following in /var/log/ejabberd/ejabberd.log:

=INFO REPORT==== 2006-10-27 12:42:25 ===
I(<0.2653.0>:ejabberd_listener:90): (#Port<0.3675>) Accepted
connection {{64,53,181,95},5344} -> {{10,200,1,50},5222}

=ERROR REPORT==== 2006-10-27 12:42:26 ===
** State machine <0.3176.0> terminating
** Last event in was {xmlstreamelement,
{xmlelement,"response",
[{"xmlns",
"urn:ietf:params:xml:ns:xmpp-
sasl"}],
[{xmlcdata,

<<"dXNlcm5hbWU9IlllbmRvciIscmVhbG09Imd1aWxkZW5zdGVybi5keW5kbnMub3JnIixub
25jZT0iMjA3NDAyMTE2OSIsY25vbmNlPSIzZWU4ZTVlZDExNjE5NDkzNDU1OTUyZTM5YiIsb
mM9MDAwMDAwMDEscW9wPWF1dGgsZGlnZXN0LXVyaT0ieG1wcC9ndWlsZGVuc3Rlcm4uZHluZ
G5zLm9yZyIscmVzcG9uc2U9MTVhOTEzMGVmZGYzMDMyYzY0YmM3ZmZlYWRhOGIzY2MsY2hhc
nNldD11dGYtOA==">>}]}}
** When State == wait_for_sasl_response
** Data == {state,{tlssock,#Port<0.3675>,#Port<0.3677>},
<0.3177.0>,
tls,
"4262668089",
{sasl_state,"jabber",
"mydomain.org",
[],
#Fun<ejabberd_c2s.1.114093548>,
#Fun<ejabberd_c2s.2.66069937>,
cyrsasl_digest,
{state,
3,
"2074021169",
undefined,
undefined,
#Fun<ejabberd_c2s.
1.114093548>}},
c2s,
c2s_shaper,
false,
true,
false,
true,
[{certfile,"/etc/ssl/certs/ejabberd.pem"}],
false,
undefined,
[],
"mydomain.org",
[],
undefined,
{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},
{cyrsasl_digest,response,6},
{cyrsasl_digest,mech_step,2},
{cyrsasl,server_step,2},
{ejabberd_c2s,wait_for_sasl_response,2},
{gen_fsm,handle_msg,7},
{proc_lib,init_p,5}]}

And I see the following in /var/log/ejabberd/sasl.log:

=CRASH REPORT==== 27-Oct-2006::12:45:10 ===
crasher:
pid: <0.3183.0>
registered_name: []
error_info: {badarg,[{ets,lookup,[crypto_server_table,port]},
{crypto,control,2},
{sha,sha,1},
{ejabberd_auth_internal,check_password,5},
{lists,any,2},
{ejabberd_c2s,wait_for_auth,2},
{gen_fsm,handle_msg,7},
{proc_lib,init_p,5}]}
initial_call: {gen,init_it,
[gen_fsm,
<0.2645.0>,
<0.2645.0>,
ejabberd_c2s,
[{gen_tcp,#Port<0.3681>},
[{access,c2s},
starttls,
{certfile,"/etc/ssl/certs/ejabberd.pem"},
{shaper,c2s_shaper}]],
[]]}
ancestors: [ejabberd_c2s_sup,ejabberd_sup,<0.2446.0>]
messages: []
links: [<0.2645.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 1597
stack_size: 21
reductions: 1334
neighbours:

=SUPERVISOR REPORT==== 27-Oct-2006::12:45:10 ===
Supervisor: {local,ejabberd_c2s_sup}
Context: child_terminated
Reason: {badarg,[{ets,lookup,[crypto_server_table,port]},
{crypto,control,2},
{sha,sha,1},
{ejabberd_auth_internal,check_password,5},
{lists,any,2},
{ejabberd_c2s,wait_for_auth,2},
{gen_fsm,handle_msg,7},
{proc_lib,init_p,5}]}
Offender: [{pid,<0.3183.0>},
{name,undefined},
{mfa,{ejabberd_c2s,start_link,
[{gen_tcp,#Port<0.3681>},
[{access,c2s},
starttls,
{certfile,
"/etc/ssl/certs/
ejabberd.pem"},
{shaper,c2s_shaper}]]}},
{restart_type,temporary},
{shutdown,brutal_kill},
{child_type,worker}]



_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Fri Oct 27, 2006 12:15 pm Reply with quote
Guest
Peter Whysall <peter.whysall@ntlworld.com> writes:

> ** Reason for termination =
> ** {badarg,[{ets,lookup,[crypto_server_table,port]},
> {crypto,control,2},
> {cyrsasl_digest,response,6},
> {cyrsasl_digest,mech_step,2},
> {cyrsasl,server_step,2},
> {ejabberd_c2s,wait_for_sasl_response,2},
> {gen_fsm,handle_msg,7},
> {proc_lib,init_p,5}]}

It seems the crypto server wasn't started correctly. What do you get
if you type

crypto:start().

at the Erlang prompt?

--
Magnus
JID: legoscia@jabber.cd.chalmers.se

_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Fri Oct 27, 2006 1:30 pm Reply with quote
Guest
On 27 Oct 2006, at 13:13, Magnus Henoch wrote:

> Peter Whysall <peter.whysall@ntlworld.com> writes:
>
>> ** Reason for termination =
>> ** {badarg,[{ets,lookup,[crypto_server_table,port]},
>> {crypto,control,2},
>> {cyrsasl_digest,response,6},
>> {cyrsasl_digest,mech_step,2},
>> {cyrsasl,server_step,2},
>> {ejabberd_c2s,wait_for_sasl_response,2},
>> {gen_fsm,handle_msg,7},
>> {proc_lib,init_p,5}]}
>
> It seems the crypto server wasn't started correctly. What do you get
> if you type
>
> crypto:start().
>
> at the Erlang prompt?

Not very much, it would seem:

peter@odin:~$ erl
Erlang (BEAM) emulator version 5.5.1 [source] [async-threads:0]
[kernel-poll:false]

Eshell V5.5.1 (abort with ^G)
1> crypto:start()
1>

Regards

Peter.
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Fri Oct 27, 2006 2:36 pm Reply with quote
Guest
Peter Whysall <peter.whysall@ntlworld.com> writes:

> 1> crypto:start()

The period at the end is important; that's what tells Erlang that you
have completed typing the command Wink

--
Magnus
JID: legoscia@jabber.cd.chalmers.se

_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Fri Oct 27, 2006 2:44 pm Reply with quote
Guest
On 27 Oct 2006, at 15:29, Magnus Henoch wrote:

> Peter Whysall <peter.whysall@ntlworld.com> writes:
>
>> 1> crypto:start()
>
> The period at the end is important; that's what tells Erlang that you
> have completed typing the command Wink

Oops. I'll read more carefully next time.

Oh dear, I appear to have a rather broken thing:

I get this:

1> crypto:start().
sh: line 0: exec: crypto_drv: not found
ok
2>

Then a large number of these:

=ERROR REPORT==== 27-Oct-2006::15:40:45 ===
** Generic server crypto_server terminating
** Last message in was {'EXIT',#Port<0.97>,normal}
** When Server state == {#Port<0.97>,[]}
** Reason for termination ==
** {port_died,normal}
sh: line 0: exec: crypto_drv: not found

Then one of these:

=INFO REPORT==== 27-Oct-2006::15:40:45 ===
application: crypto
exited: shutdown
type: temporary

And then we return to the prompt.

Regards

Peter.
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Fri Oct 27, 2006 4:27 pm Reply with quote
Guest
Peter Whysall schreef:
<snip>
> I get this:
>
> 1> crypto:start().
> sh: line 0: exec: crypto_drv: not found
> ok
> 2>
>
> Then a large number of these:
>
> =ERROR REPORT==== 27-Oct-2006::15:40:45 ===
> ** Generic server crypto_server terminating
> ** Last message in was {'EXIT',#Port<0.97>,normal}
> ** When Server state == {#Port<0.97>,[]}
> ** Reason for termination ==
> ** {port_died,normal}
> sh: line 0: exec: crypto_drv: not found
>
> Then one of these:
>
> =INFO REPORT==== 27-Oct-2006::15:40:45 ===
> application: crypto
> exited: shutdown
> type: temporary

http://ubuntuforums.org/showthread.php?t=281773&highlight=ejabberd

--
Mvg, Sander Devrieze.
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Fri Oct 27, 2006 4:55 pm Reply with quote
Guest
Peter Whysall <peter.whysall@ntlworld.com> writes:

> 1> crypto:start().
> sh: line 0: exec: crypto_drv: not found
> ok
> 2>
>
> Then a large number of these:
>
> =ERROR REPORT==== 27-Oct-2006::15:40:45 ===
> ** Generic server crypto_server terminating
> ** Last message in was {'EXIT',#Port<0.97>,normal}
> ** When Server state == {#Port<0.97>,[]}
> ** Reason for termination ==
> ** {port_died,normal}
> sh: line 0: exec: crypto_drv: not found
>
> Then one of these:
>
> =INFO REPORT==== 27-Oct-2006::15:40:45 ===
> application: crypto
> exited: shutdown
> type: temporary
>
> And then we return to the prompt.

I found this on the forums: http://ejabberd.jabber.ru/node/521
According to that thread, the problem might be that your Erlang was
compiled without OpenSSL support. Did you compile it yourself, or use
a package?

--
Magnus
JID: legoscia@jabber.cd.chalmers.se

_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Sat Oct 28, 2006 3:02 am Reply with quote
Guest
On 27 Oct 2006, at 17:00, Magnus Henoch wrote:

> Peter Whysall <peter.whysall@ntlworld.com> writes:
>
>> 1> crypto:start().
>> sh: line 0: exec: crypto_drv: not found
>> ok
>> 2>
>>
>> Then a large number of these:
>>
>> =ERROR REPORT==== 27-Oct-2006::15:40:45 ===
>> ** Generic server crypto_server terminating
>> ** Last message in was {'EXIT',#Port<0.97>,normal}
>> ** When Server state == {#Port<0.97>,[]}
>> ** Reason for termination ==
>> ** {port_died,normal}
>> sh: line 0: exec: crypto_drv: not found
>>
>> Then one of these:
>>
>> =INFO REPORT==== 27-Oct-2006::15:40:45 ===
>> application: crypto
>> exited: shutdown
>> type: temporary
>>
>> And then we return to the prompt.
>
> I found this on the forums: http://ejabberd.jabber.ru/node/521
> According to that thread, the problem might be that your Erlang was
> compiled without OpenSSL support. Did you compile it yourself, or use
> a package?

I'm using the package provided by Ubuntu Linux 6.10. I also appear to
have the crypto_drv file on my filesystem:

peter@odin:~$ locate crypto_drv
/usr/lib/erlang/lib/crypto-1.5/priv/lib/crypto_drv.so

Regards

Peter
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Thu Nov 02, 2006 3:25 pm Reply with quote
Guest
> Peter Whysall schreef:
> <snip>
>> I get this:
>>
>> 1> crypto:start().
>> sh: line 0: exec: crypto_drv: not found
>> ok
>> 2>
>>
>> Then a large number of these:
>>
>> =ERROR REPORT==== 27-Oct-2006::15:40:45 ===
>> ** Generic server crypto_server terminating
>> ** Last message in was {'EXIT',#Port<0.97>,normal}
>> ** When Server state == {#Port<0.97>,[]}
>> ** Reason for termination ==
>> ** {port_died,normal}
>> sh: line 0: exec: crypto_drv: not found
>>
>> Then one of these:
>>
>> =INFO REPORT==== 27-Oct-2006::15:40:45 ===
>> application: crypto
>> exited: shutdown
>> type: temporary
>
> http://ubuntuforums.org/showthread.php?t=281773&highlight=ejabberd
>
> --
> Mvg, Sander Devrieze.

Is there a workaround for this, short of rolling back to the previous
version of Erlang? My jabber server is dead until I resolve this issue.

Thanks

Peter.

_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Thu Nov 02, 2006 7:01 pm Reply with quote
Guest
Peter Whysall schreef:
<snip>
>> http://ubuntuforums.org/showthread.php?t=281773&highlight=ejabberd

> Is there a workaround for this, short of rolling back to the previous
> version of Erlang? My jabber server is dead until I resolve this issue.

No idea, I think you best contact the Ubuntu package maintainer.

--
Mvg, Sander Devrieze.
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Thu Nov 02, 2006 7:48 pm Reply with quote
Guest
Hello,

the workaround is to use your own erlang and not the package provided by Ubuntu.
Contacting the maintainer of the package is also a good idea.

--
Mickael Remond
http://www.process-one.net/

_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Fri Nov 03, 2006 6:03 am Reply with quote
Guest
On 2 Nov 2006, at 19:47, Mickael Remond wrote:

> Hello,
>
> the workaround is to use your own erlang and not the package
> provided by Ubuntu.

I have just tried this with the latest source tarball from the Erlang
website. I get the same error. I built the software via the usual
configure/make/sudo make install route. Is there a way of debugging
erlang's environment or startup configuration?

> Contacting the maintainer of the package is also a good idea.

I will do this.

Regards

Peter.
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Fri Nov 03, 2006 6:51 am Reply with quote
Guest
On 11/3/06, Peter Whysall <peter.whysall@ntlworld.com> wrote:
>
> On 2 Nov 2006, at 19:47, Mickael Remond wrote:
>
> > Contacting the maintainer of the package is also a good idea.
>
> I will do this.

I would say that erlang is essentially unmaintained in Ubuntu. It just
contains rebuilt Debian packages, and I didn't see real reaction to
bugreports there.

--
Sergei Golovan
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum