Daily logrotate error

I get the following error emailed to me daily. I never had this issue before I moved to a new server. It doesn’t seem to affect anything, I assume it just keeps old log files from being removed. Does anyone have an idea as to what might cause this? Thanks.

/etc/cron.daily/logrotate: error: error running shared postrotate script for '/var/log/nginx/*.log ’ run-parts: /etc/cron.daily/logrotate exited with return code 1

For anyone else experiencing this error you can follow the instructions here to fix it. https://www.digitalocean.com/community/questions/got-an-email-from-my-server-about-a-failed-cron-job

It’s weird that didn’t fix it for me. I have tried this https://github.com/EasyEngine/easyengine/issues/719 though (the permissions fix) and that seems to have worked…