Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Mar 2005
    Posts
    17

    Default upcp must be ran as root at /scripts/upcp line 26

    upcp must be ran as root at /scripts/upcp line 26.

    I am getting the error message above when trying to run a standard Cron job.

    Below is Cron.........

    command to run - /scripts/upcp
    minutes - 56
    hours - 23
    day(s) - everyday
    month(s) - every month
    weekday(s) - every week day

    I have latest, stable version of CPanel. What can I do? Thanks.

  2. #2
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    You are trying to run this as a cpanel user but as the error says, you need to run this as a root user. Simply modify your update settings in:

    whm > server configurations > update config

    The appropriate cronjob will automatically be created in the root crontab:

    In a command window (ssh)

    crontab -l to list

    crontab -e to edit

  3. #3
    Member
    Join Date
    Mar 2005
    Posts
    17

    Default

    I actually put this (below) in the crontab file before I did it from CPanel and it didn't work either. Actually it didn't do anything. No message, nothing.

    56 23 * * * /scripts/upcp

    I just now changed it to this in the crontab file....

    56 23 * * * root run-parts /scripts/upcp

    Thanks for your reply and any further suggestions are welcome.

    Addendum - I finally figured out what you were telling me and I have done that. Thanks.
    Last edited by chasmcg; 02-27-2008 at 12:20 PM.

  4. #4
    Member
    Join Date
    Mar 2005
    Posts
    17

    Default

    Below is exactly what I've done via Putty and the cron job is still not working. What am I doing wrong?

    login as: root
    root@12.34.56.78's password:
    Last login: Fri Feb 29 00:33:33 2008 from xxxxxxxxx
    [root@mysite ~]# su -
    [root@mysite ~]# crontab -e


    57 23 * * * /scripts/upcp
    0 1 * * * /scripts/cpbackup
    */15 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
    2,58 * * * * /usr/local/bandmin/bandmin
    0 0 * * * /usr/local/bandmin/ipaddrmap
    49 23 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
    0 6 * * * /scripts/exim_tidydb > /dev/null 2>&1

    crontab: installing new crontab
    [root@mysite ~]#

    I have restarted Apache. What else do I need to do? Thanks.

    Addendum: The answer for me... add this to crontab - 57 23 * * * /scripts/runweblogs myusername
    Last edited by chasmcg; 03-01-2008 at 07:24 AM. Reason: Found solution

Similar Threads & Tags
Similar threads

  1. scripts upcp ERRLOG possible typo at line 107
    By argh2xxx in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-14-2008, 10:50 AM
  2. Cant run upcp syntax error at /scripts/upcp line 46, near "system"
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-20-2005, 11:03 AM
  3. Mail from Cron <root@host> /scripts/upcp
    By teerasak in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-18-2003, 12:13 AM
  4. Cron <root@host> /scripts/upcp <-- What's this?
    By jcsolutions in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 08-19-2003, 01:10 PM
  5. Cron /scripts/upcp
    By Silvernet_UK in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-23-2002, 02:43 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube