Logrotate error - Seafile pro 6.1.7


I keep getting repeated notifications from cron daemon regarding an error with logrotate:

title: Cron root@sea test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )

logrotate_script: line 1: ${cat /opt/seafile/pids/ccnet.pid}: bad substitution
error: error running shared postrotate script for '/opt/seafile/logs/ccnet.log ā€™
run-parts: /etc/cron.daily/logrotate exited with return code 1

This started happening with one installation of seafile but now occurs daily with both installations I have going. I used the seafile_debian installation script on both installs.

I have manually runned the script yesterday using:

logrotate /etc/logrotate.d/seafile

And received no error message. I did not use the --force option.

I have checked and the logrotate script seems right and according to the instructions on the website found here:


All logs and pids are in their correct folder exept for the controller.pid.

I have noticed a new update to the debian/ubuntu package of logrotate (received on my linux mint pc yesterday) so Iā€™m tempted to think that it is related? The second server only started sending the cron daemon notifications since yesterday when I updated the server.

Thanks in advance.

Apparently there should be normal parentheses around the cat command, not curly braces.