https://bugzilla.redhat.com/show_bug.cgi?id=1148444
Bug ID: 1148444 Summary: logrotation fails Product: Fedora EPEL Version: epel7 Component: rabbitmq-server Assignee: lemenkov@gmail.com Reporter: Jan.van.Eldik@cern.ch QA Contact: extras-qa@fedoraproject.org CC: erlang@lists.fedoraproject.org, hubert.plociniczak@gmail.com, jeckersb@redhat.com, josh@fornwall.com, lemenkov@gmail.com, rjones@redhat.com, s@shk.io
Description of problem:
Logrotation fails 100% because of old-style post-rotate command
Version-Release number of selected component (if applicable):
rabbitmq-server-3.1.5-7.el7.noarch
How reproducible:
100%
Steps to Reproduce:
[root@jcentos7-01 tmp]# logrotate -f /etc/logrotate.conf The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl. error: error running shared postrotate script for '/var/log/rabbitmq/*.log '
[root@jcentos7-01 tmp]# cat /etc/logrotate.d/rabbitmq-server /var/log/rabbitmq/*.log { weekly missingok rotate 20 compress delaycompress notifempty sharedscripts postrotate /sbin/service rabbitmq-server rotate-logs > /dev/null endscript }
[root@jcentos7-01 tmp]# /sbin/service rabbitmq-server rotate-logs > /dev/null The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl. [root@jcentos7-01 tmp]# echo $? 2
https://bugzilla.redhat.com/show_bug.cgi?id=1148444
Phillip Smith fukawi2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fukawi2@gmail.com
--- Comment #1 from Phillip Smith fukawi2@gmail.com --- Looking at the init script from 6, the logroate script should be updated to call:
postrotate /usr/sbin/rabbitmqctl -q rotate_logs endscript
https://bugzilla.redhat.com/show_bug.cgi?id=1148444
Matthias Saou matthias@saou.eu changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |matthias@saou.eu
--- Comment #2 from Matthias Saou matthias@saou.eu --- I just bumped into this one too. It also affects the current Fedora package (3.4.3-2), and using the "/usr/sbin/rabbitmqctl -q rotate_logs" as suggested above seems to work fine, as it's silent by default.
https://bugzilla.redhat.com/show_bug.cgi?id=1148444
Konrad Mosoń mosonkonrad@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mosonkonrad@gmail.com
--- Comment #3 from Konrad Mosoń mosonkonrad@gmail.com --- What about this bug? It's still here after 10 months…
https://bugzilla.redhat.com/show_bug.cgi?id=1148444
John Eckersberg jeckersb@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|lemenkov@gmail.com |jeckersb@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1148444
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |MODIFIED
https://bugzilla.redhat.com/show_bug.cgi?id=1148444
--- Comment #4 from Fedora Update System updates@fedoraproject.org --- rabbitmq-server-3.3.5-5.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/rabbitmq-server-3.3.5-5.el7
https://bugzilla.redhat.com/show_bug.cgi?id=1148444
--- Comment #5 from Fedora Update System updates@fedoraproject.org --- rabbitmq-server-3.5.4-2.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/rabbitmq-server-3.5.4-2.fc22
https://bugzilla.redhat.com/show_bug.cgi?id=1148444
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #6 from Fedora Update System updates@fedoraproject.org --- Package rabbitmq-server-3.3.5-5.el7: * should fix your issue, * was pushed to the Fedora EPEL 7 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing rabbitmq-server-3.3.5-5.el7' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-7568/rabbitmq-serve... then log in and leave karma (feedback).
https://bugzilla.redhat.com/show_bug.cgi?id=1148444
--- Comment #7 from Fedora Update System updates@fedoraproject.org --- rabbitmq-server-3.5.4-2.fc23 has been submitted as an update for Fedora 23. https://admin.fedoraproject.org/updates/rabbitmq-server-3.5.4-2.fc23
https://bugzilla.redhat.com/show_bug.cgi?id=1148444
Jon Schlueter jschluet@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |1252842
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1252842 [Bug 1252842] rabbitmq logrotate conf is wrong and doesn't close the rotated files
https://bugzilla.redhat.com/show_bug.cgi?id=1148444
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version| |rabbitmq-server-3.5.4-2.fc2 | |3 Resolution|--- |ERRATA Last Closed| |2015-08-19 04:06:37
--- Comment #8 from Fedora Update System updates@fedoraproject.org --- rabbitmq-server-3.5.4-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1148444
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version|rabbitmq-server-3.5.4-2.fc2 |rabbitmq-server-3.5.4-2.fc2 |3 |2
--- Comment #9 from Fedora Update System updates@fedoraproject.org --- rabbitmq-server-3.5.4-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1148444
--- Comment #10 from Fedora Update System updates@fedoraproject.org --- rabbitmq-server-3.3.5-5.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1148444
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version|rabbitmq-server-3.5.4-2.fc2 |3.3.5-5.el7 |2 | Resolution|ERRATA |NEXTRELEASE
https://bugzilla.redhat.com/show_bug.cgi?id=1148444
Chris Hudson chhudson@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |1267718
https://bugzilla.redhat.com/show_bug.cgi?id=1148444
Peter Lemenkov plemenko@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bwong@fastmail.fm
--- Comment #11 from Peter Lemenkov plemenko@redhat.com --- *** Bug 1197421 has been marked as a duplicate of this bug. ***
erlang@lists.fedoraproject.org