Bug#516718: Freshly installed ejabberd fails to start

2014-02-04 Thread Paul Boddie
Some additional information describing Erlang problems with User Mode Linux 
(in 2.6.32.49, so a long time ago) and a response indicating that futex 
support in UML may be deficient for the purposes of running ejabberd:

https://www.mail-archive.com/user-mode-linux-
u...@lists.sourceforge.net/msg07180.html

https://www.mail-archive.com/user-mode-linux-
u...@lists.sourceforge.net/msg07188.html

So, I suppose my problem really is down to UML and not ejabberd.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#516718: Freshly installed ejabberd fails to start

2014-02-02 Thread Paul Boddie
Just tested this with ejabberd from jessie (2.1.11-1).

It seems like the problem may be threading/SMP-related:

http://erlang.org/pipermail/erlang-questions/2011-May/058249.html
http://erlang.org/pipermail/erlang-questions/2012-April/065957.html

Maybe my User Mode Linux installation is not able to provide the necessary 
information to the Erlang virtual machine when configured to use system 
threads.

And perhaps this is a distinct bug from the one originally reported (even 
though the directory ownership problem did exist in 2.1.10-4+deb7u1). If so, 
I'll gladly see it renamed or split into another bug, if appropriate.

Paul


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#516718: Freshly installed ejabberd fails to start

2014-01-31 Thread Paul Boddie
Package: ejabberd
Version: 2.1.10-4+deb7u1
Followup-For: Bug #516718

Dear Maintainer,

I have experienced this or a related problem today when installing ejabberd. At 
the setup stage, the following is shown:

Setting up ejabberd (2.1.10-4+deb7u1) ...
adduser: Warning: The home directory `/var/lib/ejabberd' does not belong to the 
user you are currently creating.
Generating SSL certificate /etc/ejabberd/ejabberd.pem...

Creating config file /etc/ejabberd/ejabberd.cfg with new version
Starting jabber server: ejabberdFailed to set thread main status: Invalid 
argument (22)
Aborted

The latter message is repeated over and over, with only Ctrl-Z usable to stop 
the process (for subsequent manual termination).

Running "dpkg --configure -a" just repeats the same problem:

Setting up ejabberd (2.1.10-4+deb7u1) ...
Starting jabber server: ejabberdFailed to set thread main status: Invalid 
argument (22)
Aborted
Failed to set thread main status: Invalid argument (22)
Aborted

Performing an "apt-get remove" successfully removes the package (the error loop 
above does not occur - the script just gives up), and an "apt-get install" 
repeats the situation, albeit without the warning about /var/lib/ejabberd.

I'm running this system under User Mode Linux, but this doesn't usually cause 
problems with other network-related software.

With a broken package, it does seem to be possible to invoke the daemon 
manually using the command from the init script, and as pointed out in another 
bug (#709754), an epmd daemon gets started, but the package state does not seem 
to be fixable.

I hope this provides useful information. It's rare to see a Debian package fail 
in this way.

Paul

-- System Information:
Debian Release: 7.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.52
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages ejabberd depends on:
ii  adduser3.113+nmu3
ii  debconf [debconf-2.0]  1.5.49
ii  erlang-asn11:15.b.1-dfsg-4
ii  erlang-base [erlang-abi-15.b]  1:15.b.1-dfsg-4
ii  erlang-crypto  1:15.b.1-dfsg-4
ii  erlang-inets   1:15.b.1-dfsg-4
ii  erlang-mnesia  1:15.b.1-dfsg-4
ii  erlang-odbc1:15.b.1-dfsg-4
ii  erlang-public-key  1:15.b.1-dfsg-4
ii  erlang-ssl 1:15.b.1-dfsg-4
ii  erlang-syntax-tools1:15.b.1-dfsg-4
ii  libc6  2.13-38
ii  libexpat1  2.1.0-1+deb7u1
ii  libpam0g   1.1.3-7.1
ii  libssl1.0.01.0.1e-2+deb7u3
ii  openssl1.0.1e-2+deb7u3
ii  ucf3.0025+nmu3
ii  zlib1g 1:1.2.7.dfsg-13

ejabberd recommends no packages.

Versions of packages ejabberd suggests:
pn  imagemagick | graphicsmagick-imagemagick-compat  
ii  libunix-syslog-perl  1.1-2+b2


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#516718: Freshly installed ejabberd fails to start

2010-05-21 Thread Konstantin Khomoutov
On Fri, 21 May 2010 12:20:13 +0200
hennr  wrote:

> It seems that ejabberd does not start on KVM based VMs.
> ejabberd starts without any problems on the host (lenny + some
> backports packages) and on various other Debian lenny machines I have
> access to.
> 
> Killing beam and don't having anything using port 5222 does not solve
> the problem.
> 
> Any other ideas?

As I have no idea how to test ejabberd with KVM (never used any
hard-core virtualization solutions with Linux), my proposition is as
follows.

Assuming you have a working setting in which you can reliably
reproduce your problem, please do these steps:
1) Ensure the network side is OK, that is, at least nothing listens on
   tcp/5222 and tcp/5269, and that ejabberd is stopped (no beam or
   beam.smp processes are running).
2) Delete the contents of /var/log/ejabberd.
3) Start ejabberd.
4) If it fails to start, see if it dropped an Erlang
   crash dump. If it did, gzip anything found in /var/log/ejabberd
   after the crash and stash it away.
5) Cleanup after crash, that is, repeat steps 1 and 2.
6) Try starting ejabberd using
   # /etc/init.d/ejabberd live
   This will run it in foreground. If ejabberd crashes, scroll its
   terminal output until you see a crash error message and copy
   a handful of lines from it.

In any case, after reproducing a crash post the collected data here.
Then I'll try to analyze the data and possibly request more info
about your setup.

In other words, let's do a clean start with your problem.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#516718: Freshly installed ejabberd fails to start

2010-05-07 Thread Konstantin Khomoutov
On Thu, 06 May 2010 22:33:40 +0200
hennr  wrote:

> I'm having the same issue one a 32 bit VM running on an 64 bit host.
> The problem occurs on lenny and also if I install ejabberd and all
> deps from the squeeze repo into that lenny install.
[...]
> I attached the only log that gets created after a failed start.

Please re-send the crash dump (it's not a log file) but this time
compress it first (by doing `gzip -9 erl_crash.dump` to get
erl_crash.dump.gz) -- the file was interpreted as ASCII when you sent
it and it became mangled so I can't load it into the debugging tool.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#516718: Freshly installed ejabberd fails to start

2009-06-23 Thread Oliver Kurz
Package: ejabberd
Version: 2.0.1-6+lenny1
Followup-For: Bug #516718

Hi,
it looks like I have the same problem as described in the bug.
Reinstalling with

apt-get remove --purge erlang-base erlang-nox libsctp1 lksctp-tools
apt-get install --reinstall ejabberd

output is:
--

Setting up erlang-nox (1:12.b.3-dfsg-4) ...
Setting up ejabberd (2.0.1-6+lenny1) ...
adduser: Warning: The home directory `/var/lib/ejabberd' does not belong to the 
user you are currently creating.
Generating SSL certificate /etc/ejabberd/ejabberd.pem...

Creating config file /etc/ejabberd/ejabberd.cfg with new version
Starting jabber server: 
ejabberd failed.
-
So the reinstlall also does not help. The problem appears using just an empty 
config. After install, ejabberd is trying
to start automatically but fails. At least it says so even if the server seems 
to be running.
calling:
ps aux | egrep -e '(beam|epmd)'
gives the result:
-
ejabberd 31372  0.0  0.1   1760   240 ?S18:53   0:00 
/usr/lib/erlang/erts-5.6.3/bin/epmd -daemon
ejabberd 31389  0.0  1.4  31048  1908 ?Sl   18:53   0:00 
/usr/lib/erlang/erts-5.6.3/bin/beam -K false -P 25 -- -root /usr/lib/erlang 
-progname erl -- -home 
/var/lib/ejabberd -sname ejabberd -pa /usr/lib/ejabberd/ebin -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" -smp 
disable -noshell -noshell -noinput
-

Cheers,
Oliver

-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.18-6-xen-vserver-amd64 (SMP w/1 CPU core)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=ANSI_X3.4-1968) 
(ignored: LC_ALL set to POSIX)
Shell: /bin/sh linked to /bin/bash

Versions of packages ejabberd depends on:
ii  adduser3.110 add and remove users and groups
ii  debconf [debconf-2.0]  1.5.24Debian configuration management sy
ii  erlang-base [erlang-ab 1:12.b.3-dfsg-4   Concurrent, real-time, distributed
ii  erlang-nox 1:12.b.3-dfsg-4   Concurrent, real-time, distributed
ii  libc6  2.7-18GNU C Library: Shared libraries
ii  libexpat1  2.0.1-4   XML parsing C library - runtime li
ii  libpam0g   1.0.1-5   Pluggable Authentication Modules l
ii  libssl0.9.80.9.8g-15 SSL shared libraries
ii  openssl0.9.8g-15 Secure Socket Layer (SSL) binary a
ii  ucf3.0016Update Configuration File: preserv
ii  zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime

ejabberd recommends no packages.

Versions of packages ejabberd suggests:
pn  libunix-syslog-perl(no description available)

-- debconf information:
  ejabberd/nomatch:
  ejabberd/user:
  ejabberd/hostname: localhost



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#516718: Freshly installed ejabberd fails to start

2009-06-16 Thread Arnaud Jamet
Bonjour,

J'ai eu le même souci sur une debian lenny et votre solution a fonctionné!

Voilà simplement ce que j'ai fait:

apt-get remove --purge erlang-base erlang-nox libsctp1 lksctp-tools

apt-get install --reinstall ejabberd

Cordialement,

Arnaud Jamet


Bug#516718: Freshly installed ejabberd fails to start

2009-02-23 Thread Saku Ytti
Package: ejabberd
Version: freshly installed ejabberd fails to start
Severity: normal

[r...@hotelli.ip.fi ~]# ls -la /etc/ejab*
zsh: no matches found: /etc/ejab*
[1 r...@hotelli.ip.fi ~]# ps aux|grep -i ejab
[1 r...@hotelli.ip.fi ~]# apt-get install ejabberd
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Suggested packages:
  libunix-syslog-perl
The following NEW packages will be installed
  ejabberd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1209kB of archives.
After this operation, 3445kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package ejabberd.
(Reading database ... 50514 files and directories currently installed.)
Unpacking ejabberd (from .../ejabberd_2.0.3-2_amd64.deb) ...
Processing triggers for man-db ...
Setting up ejabberd (2.0.3-2) ...
adduser: Warning: The home directory `/var/lib/ejabberd' does not belong to the 
user you are currently creating.
Generating SSL certificate /etc/ejabberd/ejabberd.pem...

Creating config file /etc/ejabberd/ejabberd.cfg with new version
Starting jabber server: ejabberd.
Starting jabber server: 
ejabberd failed.
[r...@hotelli.ip.fi ~]# sh -x /etc/init.d/ejabberd start

+ ctl status
+ action=status
+ su ejabberd -c '/usr/sbin/ejabberdctl status'
+ test 3 = 1
+ echo -n .
.++ expr 59 + 1
+ cnt=60
+ '[' 60 -ge 60 ']'
+ echo -n ' failed'
 failed+ break
+ '[' 0 -eq 0 ']'
+ echo .
.
+ exit 0
[r...@hotelli.ip.fi ~]# 


I just hit enter on the questions during apt-get install, so localhost and no 
admin
user, just to keep it simple. I do have backup up real config, which broke down
during dist-upgrade, but didn't want to have it here to add complexity to the 
issue.



-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.18-6-xen-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ejabberd depends on:
ii  adduser3.110 add and remove users and groups
ii  debconf [debconf-2.0]  1.5.25Debian configuration management sy
pn  erlang-abi-11.b.3  (no description available)
pn  erlang-nox (no description available)
ii  libc6  2.9-3 GNU C Library: Shared libraries
ii  libexpat1  2.0.1-4   XML parsing C library - runtime li
ii  libpam0g   1.0.1-5   Pluggable Authentication Modules l
ii  libssl0.9.80.9.8g-15 SSL shared libraries
ii  openssl0.9.8g-15 Secure Socket Layer (SSL) binary a
ii  ucf3.0016Update Configuration File: preserv
ii  zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime

ejabberd recommends no packages.

Versions of packages ejabberd suggests:
pn  libunix-syslog-perl(no description available)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org