Hi
I updated my ClearOS for 2 days ago and after this I get this email every night
my ClearOS is 6.6.0
I have rebooted but this did not help
Anacron job 'cron.daily' on bloknet.lan
/etc/cron.daily/logrotate:
error: z-push:1 lines must begin with a keyword or a filename (possibly in double quotes)
error: z-push:2 unexpected text
error: z-push:3 unexpected text
error: z-push:4 unexpected text
error: z-push:5 unexpected text
error: z-push:6 unexpected text
error: z-push:7 unexpected text
error: z-push:8, unexpected text after {
error: z-push:8 lines must begin with a keyword or a filename (possibly in double quotes)
error: z-push:9 lines must begin with a keyword or a filename (possibly in double quotes)
error: z-push:10 lines must begin with a keyword or a filename (possibly in double quotes)
are there any solutions to this
I updated my ClearOS for 2 days ago and after this I get this email every night
my ClearOS is 6.6.0
I have rebooted but this did not help
Anacron job 'cron.daily' on bloknet.lan
/etc/cron.daily/logrotate:
error: z-push:1 lines must begin with a keyword or a filename (possibly in double quotes)
error: z-push:2 unexpected text
error: z-push:3 unexpected text
error: z-push:4 unexpected text
error: z-push:5 unexpected text
error: z-push:6 unexpected text
error: z-push:7 unexpected text
error: z-push:8, unexpected text after {
error: z-push:8 lines must begin with a keyword or a filename (possibly in double quotes)
error: z-push:9 lines must begin with a keyword or a filename (possibly in double quotes)
error: z-push:10 lines must begin with a keyword or a filename (possibly in double quotes)
are there any solutions to this
In Log Viewer
Share this post:
Accepted Answer
Peter Baldwin wrote:
Hi CB,
I can duplicate the error when I set the /etc/logrotate.d/zarafa-z-push file format to DOS mode. You can confirm the DOS mode by running the file command:
# file /etc/logrotate.d/zarafa-z-push
/etc/logrotate.d/zarafa-z-push: ASCII text, with CRLF line terminators
If you see the with CRLF line terminators, then it's DOS mode. One way to convert the file is by installing and running dos2unix:
yum --enablerepo=clearos-centos,clearos-core install dos2unix
dos2unix /etc/logrotate.d/zarafa-z-push
I got this
file /etc/logrotate.d/z-push
/etc/logrotate.d/z-push: ASCII text, with CRLF line terminators
but I can't install dos2unix
when run the code
yum --enablerepo=clearos-centos,clearos-core install dos2unix
I got this
No package dos2unx available
this worked
yum install dos2unix
Thank you the error is gone
CB
Responses (3)
-
Accepted Answer
-
Accepted Answer
Peter Baldwin wrote:
What version of zarafa-z-push are you running (command: rpm -qi zarafa-z-push). And what does your /etc/logrotate.d/zarafa-z-push file look like?
rpm -qi zarafa-z-push
output
zarafa-z-push is not installed
I have not install z-push by rpm, maybe this is the problem
but my ver is
Z-Push - Open Source ActiveSync
Version 2.1.3-1892
and the /etc/logrotate.d/zarafa-z-push file is called /etc/logrotate.d/z-push by me
it look like this
/var/log/z-push/*.log {
daily
missingok
rotate 14
compress
delaycompress
notifempty
}
CB -
Accepted Answer
Hi CB,
I can duplicate the error when I set the /etc/logrotate.d/zarafa-z-push file format to DOS mode. You can confirm the DOS mode by running the file command:
# file /etc/logrotate.d/zarafa-z-push
/etc/logrotate.d/zarafa-z-push: ASCII text, with CRLF line terminators
If you see the with CRLF line terminators, then it's DOS mode. One way to convert the file is by installing and running dos2unix:
yum --enablerepo=clearos-centos,clearos-core install dos2unix
dos2unix /etc/logrotate.d/zarafa-z-push
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »