Erlang/OTP Forums

Author Message

<  Ejabberd mailing list  ~  Enabling verbose logging on Debian / Failing S2S with certai

Guest
Posted: Mon Jan 22, 2007 12:35 am Reply with quote
Guest
Guys, I'm really at a loss with this. Some people try to subscribe to me
and I don't get the request.

I'll have to revert back to jabberd if it stays like this for much
longer. :/

On Mon, 2007-01-01 at 20:01 +0000, Alex Jones wrote:
> Hi list
>
> Does anybody know how I can enable verbose logging in Debian? The FAQ
> says that I need to recompile ejabberd... surely there is an easier
> way? :/
>
> I need to debug something in ejabberd, as my server is failing to S2S
> communicate with at least the servers operating on jabber.ru and
> desrt.ca. The current logs just read:
>
> =INFO REPORT==== 2007-01-01 14:59:26 ===
> I(<0.6382.0>:ejabberd_s2s_out:106): started: {"weej.com",
> "conference.jabber.ru",
> {new,"3782444651"}}
>
> =INFO REPORT==== 2007-01-01 15:00:35 ===
> I(<0.6384.0>:ejabberd_s2s_out:106): started: {"weej.com",
> "desrt.ca",
> {new,"1709113412"}}
>
> =INFO REPORT==== 2007-01-01 15:00:35 ===
> I(<0.6384.0>:ejabberd_s2s_out:662): terminated: normal
>
> Any help would be much appreciated.
>
> Thanks!

_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Mon Jan 22, 2007 7:55 am Reply with quote
Guest
Hello,
Le 22 janv. 07
Guest
Posted: Mon Jan 22, 2007 7:13 pm Reply with quote
Guest
Yes, connections to other (working) servers are open, and my SRV records
are in place.

S2S does actually work with some servers. Specifically though, I can't
talk to jabber.ru and desrt.ca.

The problem is that the logging just gives no hints at all. I am using
Debian and would rather not mess around trying to recompile the package
- is there really no other way to turn on more verbose logging?

On Mon, 2007-01-22 at 08:55 +0100, Mickaël Rémond wrote:
> Hello,
>
> Le 22 janv. 07 à 01:35, Alex Jones a écrit :
>
> > Guys, I'm really at a loss with this. Some people try to subscribe
> > to me
> > and I don't get the request.
>
>
> That's probably because the S2S connection cannot be established. Is
> the connection open on port 5269 ?
> Did you configure Erlang properly to support DNS SRV like explained
> in http://ejabberd.jabber.ru/fix-dns-srv ?
>
> --
> Mickaël Rémond
> http://www.process-one.net/
>
>
>
>
> _______________________________________________
> ejabberd mailing list
> ejabberd@jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd

_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Mon Jan 22, 2007 8:55 pm Reply with quote
Guest
Hello,
Le 22 janv. 07
Guest
Posted: Mon Jan 22, 2007 9:28 pm Reply with quote
Guest
Hi Mickaël

On Mon, 2007-01-22 at 21:54 +0100, Mickaël Rémond wrote:
> Hello,
>
> Le 22 janv. 07 à 20:12, Alex Jones a écrit :
>
> > Yes, connections to other (working) servers are open, and my SRV
> > records
> > are in place.
>
>
> Yours are in place, yes but in the link that I send you it explains
> how to set up Erlang to resolv others SRV record. From what I
> understand of your problem, this is the solution.

Sorry, I obviously jumped to the wrong conclusion. I took a look at the
page you linked me, and it turns out that Debian already seem to package
ejabberd with an /etc/ejabberd/inetrc that is exactly as that page
describes. Also, the stock command line used to start it is:

/usr/lib/erlang/erts-5.5.2/bin/beam -- -root /usr/lib/erlang -progname
erl -- -home /var/lib/ejabberd -sname ejabberd -s ejabberd -kernel
inetrc "/etc/ejabberd/inetrc" -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" -noshell -noshell -noinput

So it seems this isn't the problem. Incidentally, my communications with
GMail are absolutely fine.

> > S2S does actually work with some servers. Specifically though, I
> > can't
> > talk to jabber.ru and desrt.ca.
>
>
> Yes, probably with servers that do not use SRV.

alex@spark:~$ dig +short _xmpp-server._tcp.jabber.ru SRV
0 0 5269 jabber.ru.
alex@spark:~$ dig +short _xmpp-server._tcp.desrt.ca SRV
10 1 5269 copacetic.desrt.ca.

These both seem to be OK!

> > The problem is that the logging just gives no hints at all. I am
> > using
> > Debian and would rather not mess around trying to recompile the
> > package
> > - is there really no other way to turn on more verbose logging?
>
>
> As I said, this have been implemented in the SVN version. In this
> version you have to recompile to turn on debugging. In the new version
> the logging is fully dynamic, with a nice logging code that do not
> impact performance when turned off.

Ah, this is good to hear! Smile Maybe in absolute desperation I shall have
to grab a copy of that.

So, any other ideas? I recognise that it's a bit of a pain to have to do
my sysadmin for me especially as the Debian packagers are probably doing
their own thing, but it's extremely appreciated.

This is ejabberd 1.1.2, BTW.

Thanks again
--
Alex Jones <alex@weej.com>

_______________________________________________
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