Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logrotate Error on Ubuntu 14.04 #283

rudijs opened this issue Jul 12, 2015 · 4 comments


None yet
3 participants
Copy link

commented Jul 12, 2015


I'm using this cookbook to install RabbitMQ on Ubuntu 14.04

I'm getting this error emailed to my from the server:

logrotate_script: 2: logrotate_script: /etc/init.d/rabbitmq-server: not found
error: error running shared postrotate script for '/var/log/rabbitmq/*.log '
run-parts: /etc/cron.daily/logrotate exited with return code 1

The logrotate configuration at etc/logrotate.d/rabbitmq-server is:

/var/log/rabbitmq/*.log {
        rotate 20
            /etc/init.d/rabbitmq-server rotate-logs > /dev/null

There is no file /etc/init.d/rabbitmq-server which is causing the error.

I think the postrotate command should be: rabbitmqctl rotate_logs

Looks like it's related to the package install rather than this cookbook I think?

If so, should I make a simple custom rabbitmq logrotate recipe or is there something in the current cookbook I can use?



This comment has been minimized.

Copy link

commented Aug 28, 2015

I'm not sure to be honest. It seems we still use Upstart. We need to get this fixed 😿


This comment has been minimized.

Copy link

commented Oct 21, 2015

Is this still an issue?


This comment has been minimized.

Copy link

commented Oct 22, 2015

@jjasghar Hi, I'm not sure to be honest.

My workflow has changed, I use the docker coobook to manage my rabbitmq instances.

I guess we can close it and re-open if someone else has issues.

@rudijs rudijs closed this Oct 22, 2015


This comment has been minimized.

Copy link

commented Feb 11, 2016

Yes still an issue - when removing the init.d script we should also be changing the logrotate conf for rabbitmq-server as the one installed by the deb package points to the init.d script to call a rotate_logs command.

I've just submitted a pull request #341 which should resolve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.