Saturday, November 28, 2020

Prosody no PID file option

When we are trying to start prosody service using "prosodyctl" command, then this service is failed to start with displaying an error message. The error message is "There is no pidfile option in the configuration file". Just like the below:-


Although we have confirmed that our pidfile option is available in our prosody configuration file. In spite of that this error message is saying that the pidfile is not available. If we have configured any virtual host into our prosody configuration file and that virtual host entry is located on top of the pid file location then this error message will have appeared.

To resolve this issue just move the virtual host entry under the pid file location entry. Just open the prosody configuration file from the below location:-

/etc/prosody/prosody.cfg.lua

Then locate the "pid" configuration option. Just looks like the below entry:-


Just move your "virtual host" settings under this "pidfile" option. Now run the prosody service. Hopefully this time the service will run without any error.


No comments:

Post a Comment