Search code examples
ejabberd

The error I am getting is as follows: /usr/sbin/ejabberdctl: line 428: 4052 Segmentation fault $EXEC_CMD "$CMD"


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"


Solution

  • 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