Hi Lonnie Thanks for that. Interestingly the certs directory was not actually there. I must have accidentally deleted it. Once I created it and restarted XMPP all was fine. Do you think its worth checking that the certs directory is there and creating it if not?
Thanks for your help. Regards Michael Knill -----Original Message----- From: Lonnie Abelbeck <li...@lonnie.abelbeck.com> Reply-To: AstLinux List <astlinux-users@lists.sourceforge.net> Date: Monday, 8 May 2017 at 12:32 pm To: AstLinux List <astlinux-users@lists.sourceforge.net> Subject: Re: [Astlinux-users] I cant start XMPP On May 7, 2017, at 8:59 PM, Michael Knill <michael.kn...@ipcsolutions.com.au> wrote: > Im getting this: > May 8 11:57:14 1222-IBC-APP1 user.info prosody: XMPP SSL configuration > error, failed to start. > May 8 11:57:14 1222-IBC-APP1 user.info prosody: Try generating an Asterisk > SIP-TLS Server Certificate, which XMPP will use by default. > > So I go to the SIP TLS page and create new and it still wont start! > > Any ideas? What can I check? > > Regards > Michael Knill That error is generated from the /etc/init.d/prosody script, when the function gen_xmpp_config() returns non-zero, in particularly this code snippet: -- cert="${XMPP_CERT:-/etc/prosody/certs/server.crt}" key="${XMPP_KEY:-/etc/prosody/certs/server.key}" if [ ! -f "$cert" ] || [ ! -f "$key" ]; then return 1 fi if [ "$(stat -c '%U:%G' "$cert")" != "prosody:prosody" -o "$(stat -c '%U:%G' "$key")" != "prosody:prosody" ]; then return 1 fi -- My guess is the /mnt/kd/prosody/certs/server.crt and /mnt/kd/prosody/certs/server.key files exist but may not be prosody:prosody user/group. If that is the case, one solution is to remove those server.* file and restart XMPP. Or, -- chown prosody:prosody /mnt/kd/prosody/certs/server.crt chown prosody:prosody /mnt/kd/prosody/certs/server.key -- Lonnie ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org.