Aguido Horatio Davis | 3 Aug 2004 02:39
Picon
Favicon

CVS ejabberd crash report

G'day,

I'm running a current Gentoo Linux on a vanilla Intel machine. I have 
just checked out ejabberd from CVS. The configure && make  && make 
install proceeded without error. When as root from /etc/ejabberd I type 
the command:

	erl -pa /var/lib/ejabberd/ebin -sname ejabberd -s ejabberd

I get a lot of Erlang output, and then the following:

=CRASH REPORT==== 3-Aug-2004::10:33:45 ===
   crasher:
     pid: <0.39.0>
     registered_name: []
     error_info: "invalid return value from 
ejabberd_app:start(normal,[]) -> {'EXIT',\"unknown POSIX error\"}"
     initial_call: {application_master,init,
                                      [<0.5.0>,
                                       <0.38.0>,
                                       {appl_data,
                                           ejabberd,
                                           [ejabberd,
                                            ejabberd_sup,
                                            ejabberd_auth,
                                            ejabberd_router,
                                            ejabberd_sm,
                                            ejabberd_s2s,
                                            ejabberd_local,
                                            ejabberd_listeners,
(Continue reading)

Alexey Shchepin | 3 Aug 2004 15:22

Re: CVS ejabberd crash report

Hello, Aguido!

On Tue, 3 Aug 2004 10:39:29 +1000, you said:

 AHD> G'day, I'm running a current Gentoo Linux on a vanilla Intel
 AHD> machine. I have just checked out ejabberd from CVS. The
 AHD> configure && make && make install proceeded without error. When
 AHD> as root from /etc/ejabberd I type the command:

 AHD> 	erl -pa /var/lib/ejabberd/ebin -sname ejabberd -s ejabberd

 AHD> I get a lot of Erlang output, and then the following:

 AHD> =CRASH REPORT==== 3-Aug-2004::10:33:45 ===

Are there any other error messages above this "crash report"?  If no,
try to run

erl -pa /var/lib/ejabberd/ebin -sname ejabberd

(without "-s ejabberd"), and then enter

(ejabberd <at> yourhost)1> ejabberd_app:start(normal, []).

and you should see backtrace of error in the end of output.

[...]

 AHD> {'EXIT',\"unknown POSIX error\"}" type: temporary

(Continue reading)

Martin Galoneas | 4 Aug 2004 11:50
Picon

Ejabberd & LDAP

Alexey Shchepin wrote:
> Hello, Martin!
> 
> On Fri, 23 Jul 2004 10:18:48 -0500, you said:
> 
> [...]
> 
>  MG> In order to give you the maximum of information, I copy the output in
>  MG> Erlang (instead of a copy of the ejabberd.log file)
> 
> Thanks for this output, it seems I understand what cause this bug.  Please, try
> latest ejabberd CVS version, I hope I fixed it at last :)
>

Since you updated the CVS version, i have made many tests and it seems you fixed my problem :)
I know how hard it is to track bugs and will help you again if I can.

thx a lot
Martin
--

-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm

Dmitry | 4 Aug 2004 12:12
Picon

migrating jabberd2 to ejabberd

Good day.

IMHO where are a lot of problems in developing jabberd2.. some bugs is not
fixed a mounths.. there is not progress.
So, i decide to migrate to ejabberd.
One of my server is on windows platform and i have downloaded ejabberd
binaries for windows.
Where is some questions:
1. is somewhere docs about migration from jabberd2 (mysql dbms) to ejabberd
(mnesia)? i think such doc will be usefull not only for me.
2. do you planning storing data via mysql or other popular dbms?
3. Is where script (php prefered) to retrieve some information (amount of
online users, list of them and other) for website?

First of all, i am interested in transfering exist users from mysql to
ejabberd db.

Thanks.
Dmitry

sgolovan | 4 Aug 2004 12:26
Picon
Favicon

Re: migrating jabberd2 to ejabberd

Hello Dmitry

Ср, 04.08.2004 14:12:35 you wrote:
>
D> Good day.
D> 
D> IMHO where are a lot of problems in developing jabberd2.. some bugs is not
D> fixed a mounths.. there is not progress.
D> So, i decide to migrate to ejabberd.
D> One of my server is on windows platform and i have downloaded ejabberd
D> binaries for windows.
D> Where is some questions:
D> 1. is somewhere docs about migration from jabberd2 (mysql dbms) to ejabberd
D> (mnesia)? i think such doc will be usefull not only for me.

I didn't see any such docs... ejabberd supports only database conversion for
jabberd-1.4 spool files.

D> 2. do you planning storing data via mysql or other popular dbms?
D> 3. Is where script (php prefered) to retrieve some information (amount of
D> online users, list of them and other) for website?

There is a maintenance web-interface for ejabberd. I didn't see any other
useful web scripts.

D> 
D> First of all, i am interested in transfering exist users from mysql to
D> ejabberd db.

I don't expect it to be a very complicated task. But for now you have to
(Continue reading)

Mickaël Rémond | 4 Aug 2004 12:51

Re: migrating jabberd2 to ejabberd

On Wed, 4 Aug 2004 14:12:35 +0400, Dmitry <demon_irc <at> mail.ru> wrote:

> Good day.
>
> IMHO where are a lot of problems in developing jabberd2.. some bugs is  
> not
> fixed a mounths.. there is not progress.
> So, i decide to migrate to ejabberd.
> One of my server is on windows platform and i have downloaded ejabberd
> binaries for windows.
> Where is some questions:
> 1. is somewhere docs about migration from jabberd2 (mysql dbms) to  
> ejabberd
> (mnesia)? i think such doc will be usefull not only for me.

 From what I know this does not exist, but if someone can write an export  
 from jabberd2 MYSQL to an XML format, you could find help here for import  
in Mnesia (From me or other).

> 3. Is where script (php prefered) to retrieve some information (amount of
> online users, list of them and other) for website?

I have build web integration in Erlang on my own site and could share the  
code. See:

http://metafrog.erlang--projects.org/

You could also use a Jabber client library (or simple socket connection)  
and use the admin user to gather administrative information from the  
server using the XMPP protocol. You can use tkabber debug XML console to  
(Continue reading)

Dmitry | 4 Aug 2004 13:34
Picon

Re: migrating jabberd2 to ejabberd


----- Original Message ----- 
From: <sgolovan <at> nm.ru>
To: <ejabberd <at> jabber.ru>
Sent: Wednesday, August 04, 2004 2:26 PM
Subject: Re: [ejabberd] migrating jabberd2 to ejabberd

> D>
> D> First of all, i am interested in transfering exist users from mysql to
> D> ejabberd db.
>
> I don't expect it to be a very complicated task. But for now you have to
> write scripts by yourself...
>
> Just some hints:
> 1) look at src/jd2ejd.erl to find how to add info to ejabberd database;
> 2) look at rpc manual page to find how to call the functions remotely;

I don't know erlang and haven't time to learn it enougth to write own code.
If i shall not find any _exists_ decisions i simply write php (why not?)
code translating data from some mysql tables (authreg, vcard, rosters..) to
text file in .dump format of ejabberd db.

> --
> Sergei Golovan

Dmitry Serov.

Bastian Hoyer | 4 Aug 2004 13:54
Picon

Hi all / some questions ;)

Hi,

we are currently using jabberd2 but I think to change to ejabberd when we
have to move to our new server soon.

I tried it today and it works but I'm not familar with erlang so I have to
ask a few questions ;)

1.
I start the server with the snippet from the documentation:

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\"

but after that there is some type of console and I can't just simply start
it into the background.. I run it in a screen now but I guess there is an
other solution ?

2.
I tried to run the ejabberdctl tool but it crashes instantly:

:~/ejabberd/tools # ./ejabberdctl
{"init terminating in
do_boot",{undef,[{ejabberd_ctl,start,[]},{init,start_it,1},{init,start_em,1}
]}}
(Continue reading)

Bastian Hoyer | 4 Aug 2004 13:56
Picon

question regarding mod_irc


I forgot a small question ;)

Is it possible to connect to a password protected irc server on an non
standard port ? 
I fear I don't have time to look into erlang the next weeks :(

Bastian

Alexey Shchepin | 4 Aug 2004 14:23

Re: Hi all / some questions ;)

Hello, Bastian!

On Wed, 4 Aug 2004 13:54:18 +0200, you said:

 BH> Hi, we are currently using jabberd2 but I think to change to
 BH> ejabberd when we have to move to our new server soon.

 BH> I tried it today and it works but I'm not familar with erlang so
 BH> I have to ask a few questions ;)

 BH> 1.  I start the server with the snippet from the documentation:

 BH> erl -pa /var/lib/ejabberd/ebin \ -sname ejabberd \ -s ejabberd \
 BH> -ejabberd config \"/etc/ejabberd/ejabberd.cfg\" \ log_path
 BH> \"/var/log/ejabberd/ejabberd.log\" \ -sasl sasl_error_logger
 BH> \{file,\"/var/log/ejabberd/sasl.log\"\} \ -mnesia dir
 BH> \"/var/lib/ejabberd/spool\"

 BH> but after that there is some type of console and I can't just
 BH> simply start it into the background.. I run it in a screen now
 BH> but I guess there is an other solution ?

Just add an -detached option :)

 BH> 2.  I tried to run the ejabberdctl tool but it crashes instantly:

 BH> :~/ejabberd/tools # ./ejabberdctl {"init terminating in
 BH> do_boot",{undef,[{ejabberd_ctl,start,[]},{init,start_it,1},{init,start_em,1}
 BH> ]}}

(Continue reading)


Gmane