FS#18206 - [ejabberd] postrotate script fails
Attached to Project:
Community Packages
Opened by Jonathan Liu (net147) - Sunday, 07 February 2010, 11:58 GMT
Last edited by Dan Griffiths (Ghost1227) - Sunday, 07 February 2010, 18:29 GMT
Opened by Jonathan Liu (net147) - Sunday, 07 February 2010, 11:58 GMT
Last edited by Dan Griffiths (Ghost1227) - Sunday, 07 February 2010, 18:29 GMT
|
Details
Description:
When rotating the ejabberd log I get an email fron daily cron: error: error running shared postrotate script for '/var/log/ejabberd/ejabberd.log ' The is caused by the following in /etc/logrotate.d/ejabberd: postrotate ejabberdctl --node ejabberd@localhost reopen-log > /dev/null This should be: postrotate ejabberdctl --node ejabberd reopen-log > /dev/null The latest version of erlang seems to have issues with @localhost so you just omit it and it will handle it properly. For example if the server hostname is myserver, it will connect to ejabberd@myserver. This can be checked with "ejabberdctl --node ejabberd status" which will print out the "The node ejabberd@myserver is started with status: started" if ejabberd is running. Additional info: * dcron 4.4-1 * ejabberd 2.1.2-1 * erlang R13B03-1 * logrotate 3.7.8-1 Steps to reproduce: * Install ejabberd * Wait some days for the log to rotate * Alternatively, just run "ejabberdctl --node ejabberd@localhost reopen-log" as root to see the error |
This task depends upon
Closed by Dan Griffiths (Ghost1227)
Sunday, 07 February 2010, 18:29 GMT
Reason for closing: Implemented
Sunday, 07 February 2010, 18:29 GMT
Reason for closing: Implemented
Comment by Jonathan Liu (net147) -
Sunday, 07 February 2010, 11:59 GMT
This issue also applies to ejabberd 2.1.2-2.