Starting ejabberd with systemctl "hangs" on Ubuntu 22.04 with apparmor profile

Bug #1970791 reported by Jason Stephenson
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
ejabberd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When starting or restarting ejabberd with systemctl on Ubuntu 22.04, the systemctl command hangs until there is a tiemout.

Ejabberd seems to start just fine but fails to notify systemd that it has started. While ejabberd is running man log messages such as the folloing go to /var/log/syslog:

pr 28 15:13:23 devjam kernel: [23209.114137] audit: type=1400 audit(1651173203.101:2332): apparmor="ALLOWED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/ejabberdctl" name="run/systemd/notify" pid=29578 comm="5_scheduler" requested_mask="w" denied_mask="w" fsuid=115 ouid=0

Disabling the apparmor profile for usr.sbin.ejabberdctl seems to resolve this.

Revision history for this message
Sami hulkko (sahulkko) wrote :

Same issue with error on ejabberd log:
2022-06-01 09:14:31.218448+03:00 [error] <0.356.0>@ejabberd_systemd:handle_info/2:135 Cannot ping watchdog: {badmatch,{error,eacces}}

That seems to be erlang notifier access right to notify systemd.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ejabberd (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.