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

chasmcg

Active Member
Mar 20, 2005
26
0
151
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.
 

jayh38

Well-Known Member
Mar 3, 2006
1,212
0
166
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
 

chasmcg

Active Member
Mar 20, 2005
26
0
151
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:

chasmcg

Active Member
Mar 20, 2005
26
0
151
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
[email protected]'s password:
Last login: Fri Feb 29 00:33:33 2008 from xxxxxxxxx
[[email protected] ~]# su -
[[email protected] ~]# 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
[[email protected] ~]#

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: