The "endscript" line needs to be removed from /etc/logrotate.d/samba.
*** This bug has been marked as a duplicate of 233474 ***