4 Replies Latest reply on Mar 22, 2012 10:51 AM by lamw

    CROND: failed user root parsing

    meristema Enthusiast

      Hello guys,

      I've followed DOC-8760 and insert cron job for backup scheduled on every Sunday but this is error on syslog:

       

      crond[1620893]: failed user root parsing 7   /vmfs/volumes/System/ghettoVCB/ghettoVCB.sh -f /vmfs/volumes/System/ghettoVCB/lista > /vmfs/volumes/buffalo01/backup/backup-1328539169.log

       

      I've try to start command in shell and it's works fine.


      Someone can help me to resolve problem?

       

      thanks very much

      Andrea

        • 1. Re: CROND: failed user root parsing
          lamw Guru
          VMware EmployeesCommunity Warriors

          Can you post your cron entry and also take a look a the FAQ (http://communities.vmware.com/groups/ghettovcb) to provide some additional information about the version of ESX(i) you're using

          • 2. Re: CROND: failed user root parsing
            meristema Enthusiast

            Hello lamw,

             

            here is my cron entry now:

             

            0 8 0 0 7  "/vmfs/volumes/System/ghettoVCB/ghettoVCB.sh -f  /vmfs/volumes/System/ghettoVCB/lista" >  "/vmfs/volumes/buffalo01/backup/backupVM.log"

             

            and in syslog file errors occurs many times.

             

            I've another question, my Vmware is licensed:

            Product: VMware vSphere 5 Essentials Licensed for 2 physical CPUs (unlimited cores per CPU)

            Product Features:
                Up to 8-way virtual SMP
                vCenter agent for VMware host
                vStorage APIs
                VMsafe

             

            there isn't any other tools for backup instead of ghettoVCB?

             

            thanks for support

            Andrea

            • 3. Re: CROND: failed user root parsing
              meristema Enthusiast

              I've find the problem, simply the crontab parse error on "day of week"  column, I don't understand why number "7" does not read from crond .

              The only way is to use name of the day , ex:"sun"

               

              thanks

              bye

              • 4. Re: CROND: failed user root parsing
                lamw Guru
                Community WarriorsVMware Employees

                I think there might be a typo on the website that shows you how to create a cron job. The day of the week count starts at 0 so if we have 7 days in a week it has to be 0-6 and 7 woudl mean we have 8 days. If you're trying to set it for Sunday, it would be 0 whether it's 0-6 or 0-7 but I think there's a typo because if you look at the man pages or other sites, it's 0-6 for Sun-Sat