Forums

Claus
Claus
Offline
Resolved
0 votes
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
Wednesday, October 28 2015, 07:17 AM
Share this post:

Accepted Answer

Claus
Claus
Offline
Thursday, October 29 2015, 06:00 PM - #Permalink
Resolved
0 votes
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
The reply is currently minimized Show
Responses (3)
  • Accepted Answer

    Thursday, October 29 2015, 02:39 PM - #Permalink
    Resolved
    0 votes
    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?
    The reply is currently minimized Show
  • Accepted Answer

    Claus
    Claus
    Offline
    Thursday, October 29 2015, 03:46 PM - #Permalink
    Resolved
    0 votes
    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
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, October 29 2015, 04:56 PM - #Permalink
    Resolved
    0 votes
    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
    The reply is currently minimized Show
Your Reply