Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1524199 - ejabberd does not start
Summary: ejabberd does not start
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ejabberd
Version: rawhide
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Randy Barlow
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-10 17:42 UTC by Randy Barlow
Modified: 2017-12-28 02:47 UTC (History)
5 users (show)

Fixed In Version: ejabberd-17.09-2.fc28 ejabberd-17.09-2.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-28 02:47:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Randy Barlow 2017-12-10 17:42:34 UTC
I believe the problem is that ejabberdctl has changed in two ways: The first is that it uses $1 in the case statement at the end to determine which command you are running. The old invocation worked with arguments first and then the command, but now the command (such as start or stop) must be the first positional argument. This needs to be fixed in the systemd unit file.

After fixing that locally, I found another problem. When invoked with sudo, ejabberdctl uses su to switch to the ejabberd user. This would be fine, except that the ejabberd user's shell is set to nologin so this fails. The unit file runs the script as ejabberd so that not necessarily a problem there, but it would affect using ejabberdctl on the command line to manage the server. This is fixed by inserting a -s /bin/sh in the su line in exec_cmd().

I also found a third issue, which is that the new mod_avatar module seems to be enabled by default, but ejabberd is not built with graphics support. I must have failed to notice that it was enabled in the default config, so I will alter the config to switch that off. IIRC, we need to package a new dependency in order to make mod_avatar work. We can do that, but i haven't had the time so far.

Comment 1 Fedora Update System 2017-12-11 16:38:46 UTC
ejabberd-17.09-2.fc27 erlang-cache_tab-1.0.11-1.fc27 erlang-esip-1.0.16-1.fc27 erlang-fast_tls-1.0.16-1.fc27 erlang-fast_xml-1.1.24-1.fc27 erlang-fast_yaml-1.0.11-1.fc27 erlang-iconv-1.0.6-1.fc27 erlang-p1_oauth2-0.6.2-1.fc27 erlang-p1_utils-1.0.10-1.fc27 erlang-stringprep-1.0.10-1.fc27 erlang-stun-1.0.15-1.fc27 erlang-xmpp-1.1.15-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-bb746cfd77

Comment 2 Fedora Update System 2017-12-11 16:40:19 UTC
ejabberd-17.09-2.fc27 erlang-cache_tab-1.0.11-1.fc27 erlang-esip-1.0.16-1.fc27 erlang-fast_tls-1.0.16-1.fc27 erlang-fast_xml-1.1.24-1.fc27 erlang-fast_yaml-1.0.11-1.fc27 erlang-iconv-1.0.6-1.fc27 erlang-p1_oauth2-0.6.2-1.fc27 erlang-p1_utils-1.0.10-1.fc27 erlang-stringprep-1.0.10-1.fc27 erlang-stun-1.0.15-1.fc27 erlang-xmpp-1.1.15-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-bb746cfd77

Comment 3 Fabrice Bellet 2017-12-11 21:45:26 UTC
This new update works for me, thanks for fixing it!

Comment 4 Fedora Update System 2017-12-12 15:59:14 UTC
ejabberd-17.09-2.fc27, erlang-cache_tab-1.0.11-1.fc27, erlang-esip-1.0.16-1.fc27, erlang-fast_tls-1.0.16-1.fc27, erlang-fast_xml-1.1.24-1.fc27, erlang-fast_yaml-1.0.11-1.fc27, erlang-iconv-1.0.6-1.fc27, erlang-p1_oauth2-0.6.2-1.fc27, erlang-p1_utils-1.0.10-1.fc27, erlang-stringprep-1.0.10-1.fc27, erlang-stun-1.0.15-1.fc27, erlang-xmpp-1.1.15-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-bb746cfd77

Comment 5 Fedora Update System 2017-12-28 02:47:41 UTC
ejabberd-17.09-2.fc27, erlang-cache_tab-1.0.11-1.fc27, erlang-esip-1.0.16-1.fc27, erlang-fast_tls-1.0.16-1.fc27, erlang-fast_xml-1.1.24-1.fc27, erlang-fast_yaml-1.0.11-1.fc27, erlang-iconv-1.0.6-1.fc27, erlang-p1_oauth2-0.6.2-1.fc27, erlang-p1_utils-1.0.10-1.fc27, erlang-stringprep-1.0.10-1.fc27, erlang-stun-1.0.15-1.fc27, erlang-xmpp-1.1.15-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.