Having trouble creating opensrf users during the configuration stage in the command line. The error I am getting is as follows: /usr/sbin/ejabberdctl: line 428: 4052 Segmentation fault $EXEC_CMD "$CMD"
Asked
Active
Viewed 1,457 times
2 Answers
9
This seems to be related to AppArmor. There's a comment on bugs.launchpad.net which resolved the issue for me, I quote:
To solve the error, I opened the apparmor configuration file:
nano /etc/apparmor.d/usr.sbin.ejabberdctl
Found the string:
/bin/su r,
And changed it by adding m:
/bin/su rm,
Restarted apparmor:
sudo service apparmor restart
Credit : Viacheslav Hapon

Alexandre Bourlier
- 3,972
- 4
- 44
- 76

yerforkferchips
- 1,965
- 1
- 19
- 27
-
Thank for giving a solution – Sabinmon ks Oct 24 '17 at 17:51
-
You're welcome :) Would be nice of you if you could accept the answer and give an upvote! – yerforkferchips Oct 25 '17 at 18:56
4
The answer given by yerforkferchips is working, BUT if you are facing this problem, it means you are running ejabberd 16.XX which has other known bugs you will encounter.
I would recommend updating to the lastest version, otherwise you might waste precious days as I just did.

Alexandre Bourlier
- 3,972
- 4
- 44
- 76