2

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"

Sabinmon ks
  • 635
  • 1
  • 7
  • 20

2 Answers2

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
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