Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 18:56:05

Author Topic: Adding crontab has failed due to . Please delete this cron and add it again.  (Read 6045 times)

0 Members and 1 Guest are viewing this topic.

Offline wosabi

  • Junior Member
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile

When you add cron job This message appears
(Adding crontab has failed due to . Please delete this cron and add it again.)

cron job deleted and have added again did not work and the same error message

Please help

use kloxo-mr 7



Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Add cron in 'add simple' or 'add complex'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline wosabi

  • Junior Member
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
i test 'add simple' and 'add complex' Nothing new  error message


« Last Edit: 2015-02-13, 20:40:04 by wosabi »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
So, what's cron content?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline wosabi

  • Junior Member
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Inform here 'crontab -h; yum list|grep cron'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline wosabi

  • Junior Member
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Quote
[root@server ~]# crontab -h; yum list|grep cron
-bash: crontab: command not found
crontabs.noarch                      1.10-11.el5            installed
anacron.x86_64                       2.3-45.el5.centos      base
cronolog.x86_64                      1.6.2-5.el5            mratwork-epel
incron.x86_64                        0.5.5-2.el5            mratwork-epel
vixie-cron.x86_64                    4:4.1-81.el5           base
yum-cron.noarch                      0.6-1.el5.centos       extras
[root@server ~]#

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Look like crontab app not install in your server and why you found '-bash: crontab: command not found' for 'crontab -h'.

I don't have CentOS 5, but cronie and cronie-anacron exist in CentOS 6 and installed.

Inform here 'yum list cron* --showduplicates'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline wosabi

  • Junior Member
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
i renistall crontap

Quote
[root@server ~]# yum install vixie-cron
Loaded plugins: fastestmirror, priorities, protectbase, replace
Loading mirror speeds from cached hostfile
 * base: mirror.atlanticmetro.net
 * extras: mirror.atlanticmetro.net
 * mratwork-epel: mirror.23media.de
 * mratwork-ius-stable: mirror.amsiohosting.net
 * mratwork-webtatic: uk.repo.webtatic.com
 * updates: mirror.atlanticmetro.net
Excluding Packages from MRatWork - Extra Packages for EL 5 - arch
Finished
Excluding Packages from MRatWork - IUS Community Packages for EL 5 (archive) - arch
Finished
Excluding Packages from MRatWork - IUS Community Packages for EL 5 (stable) - arch
Finished
Excluding Packages from MRatWork - Webtatic for CentOS 5 - x86_64
Finished
0 packages excluded due to repository protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package vixie-cron.x86_64 4:4.1-81.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package             Arch            Version                Repository     Size
================================================================================
Installing:
 vixie-cron          x86_64          4:4.1-81.el5           base           83 k

Transaction Summary
================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 83 k
Is this ok [y/N]: y
Downloading Packages:
vixie-cron-4.1-81.el5.x86_64.rpm                         |  83 kB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : vixie-cron                                               1/1

Installed:
  vixie-cron.x86_64 4:4.1-81.el5

Complete!
[root@server ~]# service crond start
Starting crond:                                            [  OK  ]
[root@server ~]# chkconfig crond on
[root@server ~]#


now working

Thank you very much

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Try install additional rpm with 'yum install vixie-cron -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
I have this similar issue. I have removed and install it and it's the issue continue.

Quote
[root@vps2015 ~]# crontab -h; yum list|grep cron
crontab: invalid option -- 'h'
crontab: usage error: unrecognized option
usage:  crontab [-u user] file
        crontab [-u user] [ -e | -l | -r ]
                (default operation is replace, per 1003.2)
        -e      (edit user's crontab)
        -l      (list user's crontab)
        -r      (delete user's crontab)
        -i      (prompt before deleting user's crontab)
        -s      (selinux context)
cronie.x86_64                          1.4.4-12.el6              @base
cronie-anacron.x86_64                  1.4.4-12.el6              @base
crontabs.noarch                        1.10-33.el6               @base
PackageKit-cron.x86_64                 0.5.8-23.el6              base
cronie-noanacron.x86_64                1.4.4-12.el6              base
cronolog.x86_64                        1.6.2-10.el6              mratwork-epel
incron.x86_64                          0.5.9-1.el6               mratwork-epel
python-croniter.noarch                 0.3.4-2.el6               mratwork-epel
rpm-cron.noarch                        4.8.0-38.el6_6            updates
yum-cron.noarch                        3.2.29-60.el6.centos      base

Quote
[root@vps2015 ~]# yum list cron* --showduplicates
Loaded plugins: fastestmirror, priorities, protectbase, replace
Loading mirror speeds from cached hostfile
 * mratwork-epel: mirrors.mit.edu
 * mratwork-ius-stable: dl.iuscommunity.org
0 packages excluded due to repository protections
Installed Packages
cronie.x86_64                          1.4.4-12.el6                @base
cronie-anacron.x86_64                  1.4.4-12.el6                @base
crontabs.noarch                        1.10-33.el6                 @base
Available Packages
cronie.x86_64                          1.4.4-12.el6                base
cronie-anacron.x86_64                  1.4.4-12.el6                base
cronie-noanacron.x86_64                1.4.4-12.el6                base
cronolog.x86_64                        1.6.2-10.el6                mratwork-epel
crontabs.noarch                        1.10-33.el6                 base

What do I do now? I am new and completely lost.

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Please help. Sorry to bring this up again. I really don't have a clue what to do at this point. I have search for answer 3 days now without any luck.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Please help. Sorry to bring this up again. I really don't have a clue what to do at this point. I have search for answer 3 days now without any luck.

Click cron from list and then click update. It's something wrong with code but cron already in list but not create cron file.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
What do you mean by this?
Quote
Click cron from list and then click update.
I don't see list.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Wait 1 hour and then update your Kloxo-MR 7.0 with 'yum clean all; yum update -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.041 seconds with 19 queries.

web stats analysis