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.

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

Discussion in 'General Discussion' started by chasmcg, Feb 27, 2008.

  1. chasmcg

    chasmcg Active Member

    Joined:
    Mar 20, 2005
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    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. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    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. chasmcg

    chasmcg Active Member

    Joined:
    Mar 20, 2005
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
    #3 chasmcg, Feb 27, 2008
    Last edited: Feb 27, 2008
  4. chasmcg

    chasmcg Active Member

    Joined:
    Mar 20, 2005
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    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
     
    #4 chasmcg, Feb 29, 2008
    Last edited: Mar 1, 2008
Loading...

Share This Page