installed ejabberd package post-installation script subprocess returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ejabberd (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
On an empty just installed ubuntu 18.04 `apt install ejabberd` fails.
Relevant apt log:
Setting up erlang-p1-cache-tab (1.0.12-2) ...
Setting up erlang-p1-xml (1.1.28-1) ...
Setting up erlang-p1-eimp (1.0.2-2) ...
Setting up erlang-p1-xmpp (1.1.19-1) ...
Setting up ejabberd (18.01-2) ...
Creating config file /etc/ejabberd/
Created symlink /etc/systemd/
Job for ejabberd.service failed because the control process exited with error code.
See "systemctl status ejabberd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript ejabberd, action "start" failed.
● ejabberd.service - A distributed, fault-tolerant Jabber/XMPP server
Loaded: loaded (/lib/systemd/
Active: activating (auto-restart) (Result: exit-code) since Wed 2019-02-13 01:16:29 UTC; 17ms ago
Docs: https:/
Process: 1588 ExecStart=/bin/sh -c /usr/sbin/
dpkg: error processing package ejabberd (--configure):
installed ejabberd package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for systemd (237-3ubuntu10.11) ...
Processing triggers for ufw (0.35-5) ...
Errors were encountered while processing:
ejabberd
E: Sub-process /usr/bin/dpkg returned an error code (1)
W: Operation was interrupted before it could finish
Systemctl status:
● ejabberd.service - A distributed, fault-tolerant Jabber/XMPP server
Loaded: loaded (/lib/systemd/
Active: activating (start) since Wed 2019-02-13 01:22:17 UTC; 23s ago
Docs: https:/
Cntrl PID: 10571 (sh)
Tasks: 52 (limit: 4915)
CGroup: /system.
├─10571 /bin/sh -c /usr/sbin/
├─10591 /usr/lib/
├─10592 /bin/sh /usr/sbin/
├─10610 erl_child_setup 65536
├─10639 /usr/lib/
├─10640 /usr/lib/
├─10641 /usr/lib/
├─10642 /usr/lib/
├─10643 /usr/lib/
├─10644 /usr/lib/
├─10645 sh -s disksup
├─10647 /usr/lib/
├─10648 inet_gethost 4
├─10649 inet_gethost 4
├─10650 /bin/sh -c inotifywait $0 $@ & PID=$!; read a; kill $PID -m -e modify -e close_write -e moved_to -e create -e delete -e attrib --quiet -r /etc/ejabberd
├─10651 inotifywait -m -e modify -e close_write -e moved_to -e create -e delete -e attrib --quiet -r /etc/ejabberd
└─11122 sleep 2
Feb 13 01:22:17 unified-monkey systemd[1]: ejabberd.service: Scheduled restart job, restart counter is at 6.
Feb 13 01:22:17 unified-monkey systemd[1]: Stopped A distributed, fault-tolerant Jabber/XMPP server.
Feb 13 01:22:17 unified-monkey systemd[1]: ejabberd.service: Failed to reset devices.list: Operation not permitted
Feb 13 01:22:17 unified-monkey systemd[1]: Starting A distributed, fault-tolerant Jabber/XMPP server...
tags: | added: bionic |
It looks like it only happens inside linux containers (lxc) :-(