Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cron Dameon emails -ambiguous redirect

Discussion in 'General Discussion' started by rudtek, Jul 19, 2017.

Tags:
  1. rudtek

    rudtek Registered

    Joined:
    Jul 19, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Oregon
    cPanel Access Level:
    Root Administrator
    I keep getting emails from my server from "cron Daemon" with the subject:

    Cron <root@server> /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1@reboot /usr/local/cpanel/bin/onboot_handler

    The only content of the email is:

    /bin/bash: 1@reboot: ambiguous redirect

    I can't figure out what's doing this. I tried this command:

    file /var/spool/cron/root

    which returned ASCII text

    These are my server settings:
    I have centos 6.9 (final)
    cpanel 11.64.0.33
    entype:kvm
    Cpanel=release
     
    #1 rudtek, Jul 19, 2017
    Last edited by a moderator: Jul 19, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you run the commands below and let us know the output?

    Code:
    cat /var/spool/cron/root
    crontab -l
    Thank you.
     
  3. rudtek

    rudtek Registered

    Joined:
    Jul 19, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Oregon
    cPanel Access Level:
    Root Administrator
    Code:
    SHELL="/bin/bash"
    13 13 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1
    
    SHELL="/bin/bash"
    7 12 * * * /usr/local/cpanel/scripts/optimize_eximstats > /dev/null 2>&1
    
    SHELL="/bin/bash"
    
    SHELL="/bin/bash"
    
    SHELL="/bin/bash"
    #8 5 * * 3 /usr/local/cpanel/scripts/upcp --cron
    8 5 * * * /etc/upcp_control
    
    SHELL="/bin/bash"
    13 10 * * * /usr/local/cpanel/scripts/cpbackup
    
    SHELL="/bin/bash"
    40 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpanel/bin/tail-check
    
    SHELL="/bin/bash"
    52 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_mailman_cache && /usr/local/cpanel/scripts/update_mailman_cache
    
    SHELL="/bin/bash"
    25 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache
    
    SHELL="/bin/bash"
    
    SHELL="/bin/bash"
    25 */2 * * * /usr/local/cpanel/bin/mysqluserstore >/dev/null 2>&1
    
    SHELL="/bin/bash"
    23 */2 * * * /usr/local/cpanel/bin/dbindex >/dev/null 2>&1
    
    SHELL="/bin/bash"
    7 */6 * * * /usr/local/cpanel/scripts/autorepair recoverymgmt >/dev/null 2>&1
    
    SHELL="/bin/bash"
    */5 * * * * /usr/local/cpanel/scripts/dcpumon-wrapper >/dev/null 2>&1
    
    SHELL="/bin/bash"
    11 20 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
    
    SHELL="/bin/bash"
    23,38,53,8 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1@reboot /usr/local/cpanel/bin/onboot_handler
    0 2 * * * /usr/local/cpanel/bin/backup
    09,39 * * * * /usr/local/cpanel/scripts/clean_user_php_sessions > /dev/null 2>&1

    Code:
    SHELL="/bin/bash"
    13 13 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1
    
    SHELL="/bin/bash"
    7 12 * * * /usr/local/cpanel/scripts/optimize_eximstats > /dev/null 2>&1
    
    SHELL="/bin/bash"
    
    SHELL="/bin/bash"
    
    SHELL="/bin/bash"
    #8 5 * * 3 /usr/local/cpanel/scripts/upcp --cron
    8 5 * * * /etc/upcp_control
    
    SHELL="/bin/bash"
    13 10 * * * /usr/local/cpanel/scripts/cpbackup
    
    SHELL="/bin/bash"
    40 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpane              l/bin/tail-check
    
    SHELL="/bin/bash"
    52 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_mailman_cache &&               /usr/local/cpanel/scripts/update_mailman_cache
    
    SHELL="/bin/bash"
    25 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/              local/cpanel/scripts/update_db_cache
    
    SHELL="/bin/bash"
    
    SHELL="/bin/bash"
    25 */2 * * * /usr/local/cpanel/bin/mysqluserstore >/dev/null 2>&1
    
    SHELL="/bin/bash"
    23 */2 * * * /usr/local/cpanel/bin/dbindex >/dev/null 2>&1
    
    SHELL="/bin/bash"
    7 */6 * * * /usr/local/cpanel/scripts/autorepair recoverymgmt >/dev/null 2>&1
    
    SHELL="/bin/bash"
    */5 * * * * /usr/local/cpanel/scripts/dcpumon-wrapper >/dev/null 2>&1
    
    SHELL="/bin/bash"
    11 20 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
    
    SHELL="/bin/bash"
    23,38,53,8 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1@rebo              ot /usr/local/cpanel/bin/onboot_handler
    0 2 * * * /usr/local/cpanel/bin/backup
    09,39 * * * * /usr/local/cpanel/scripts/clean_user_php_sessions > /dev/null 2>&1
    
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    It looks like your root crontab file isn't formatted correctly. You can edit this cron job with the following command:

    Code:
    crontab -e
    Here's an example of how it should look:

    Code:
    0 6 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1
    30 5 * * * /usr/local/cpanel/scripts/optimize_eximstats > /dev/null 2>&1
    19 4 * * * /usr/local/cpanel/scripts/upcp --cron
    0 1 * * * /usr/local/cpanel/scripts/cpbackup
    0 2 * * * /usr/local/cpanel/bin/backup
    35 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpanel/bin/tail-check
    45 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_mailman_cache && /usr/local/cpanel/scripts/update_mailman_cache
    30 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache
    30 */2 * * * /usr/local/cpanel/bin/mysqluserstore >/dev/null 2>&1
    15 */2 * * * /usr/local/cpanel/bin/dbindex >/dev/null 2>&1
    15 */6 * * * /usr/local/cpanel/scripts/autorepair recoverymgmt >/dev/null 2>&1
    */5 * * * * /usr/local/cpanel/scripts/dcpumon-wrapper >/dev/null 2>&1
    2 0 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
    1,16,31,46 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
    09,39 * * * * /usr/local/cpanel/scripts/clean_user_php_sessions > /dev/null 2>&1
    12 5 * * * /usr/local/cpanel/bin/sqloptimizer >/dev/null 2>&1
    
    Thank you.
     
Loading...

Share This Page