/usr/local/cpanel/selinux/upcp: No such file or directory

JayHaitch

Member
Mar 16, 2013
9
0
1
cPanel Access Level
Website Owner
After the latest update to v .38, I get a daily error:

/usr/local/cpanel/selinux/upcp: No such file or directory

The directory /usr/local/cpanel/selinux does not exist on my system. I do however have /usr/local/cpanel/scripts/upcp.

What's the best way to fix this issue?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

Do you have a custom cron job configured that uses that path? If so, you will need to update it so that it uses the correct path to upcp:

# /usr/local/cpanel/scripts/upcp

Thank you.
 

JayHaitch

Member
Mar 16, 2013
9
0
1
cPanel Access Level
Website Owner
No, I never set anything up like that.

In fact, I can't find a reference to "upcp" anywhere in /etc/cron*. How does cPanel set up its cron jobs?

I also get this error: "/usr/local/cpanel/selinux/cpbackup: No such file or directory"
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Could you provide more information on the email alerts you are receiving? For example, what is the source of the message based on the message header and the message log in /var/log/exim_mainlog? You can see a list of cron jobs via a command such as:

Code:
# crontab -l
Thank you.
 

JayHaitch

Member
Mar 16, 2013
9
0
1
cPanel Access Level
Website Owner
Right, so `crontab -l` shows a bunch of calls trying to access the non-existent `/usr/local/cpanel/selinux`dir:

# crontab -l
0 /usr/local/cpanel/scripts/upcp * * * /usr/local/cpanel/selinux/exim_tidydb > /dev/null 2>&1
21 23 * * * /usr/local/cpanel/selinux/upcp --cron
0 1 * * * /usr/local/cpanel/selinux/cpbackup
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/selinux/update_mailman_cache && /usr/local/cpanel/selinux/update_mailman_cache
30 */4 * * * /usr/bin/test -x /usr/local/cpanel/selinux/update_db_cache && /usr/local/cpanel/selinux/update_db_cache
45 */8 * * * /usr/bin/test -x /usr/local/cpanel/bin/optimizefs && /usr/local/cpanel/bin/optimizefs
30 */2 * * * /usr/local/cpanel/bin/mysqluserstore >/dev/null 2>&1
15 */2 * * * /usr/local/cpanel/bin/dbindex >/dev/null 2>&1
15 *//usr/local/cpanel/scripts/upcp * * * /usr/local/cpanel/selinux/recoverymgmt >/dev/null 2>&1
*/5 * * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1
22 0 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
0,15,30,45 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
15 *//usr/local/cpanel/scripts/upcp * * * /usr/local/cpanel/selinux/autorepair recoverymgmt >/dev/null 2>&1
30 5 * * * /usr/local/cpanel/selinux/optimize_eximstats > /dev/null 2>&1
2,58 * * * * /usr/local/bandmin/bandmin
0 0 * * * /usr/local/bandmin/ipaddrmap
0 2 * * * /usr/local/cpanel/bin/backup

Is there a way to reset these cron jobs to the defaults for my current version of cPanel?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
There is no way to reset the cron jobs, but you can edit them with the following command:

Code:
# crontab -e
Here is a list of the standard cron jobs on cPanel 11.38 so you can compare them to yours:
Code:
32 3 * * * /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
0 6 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1
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
45 */8 * * * /usr/bin/test -x /usr/local/cpanel/bin/optimizefs && /usr/local/cpanel/bin/optimizefs
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/bin/dcpumon >/dev/null 2>&1
57 4 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
3,18,33,48 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
30 5 * * * /usr/local/cpanel/scripts/optimize_eximstats > /dev/null 2>&1
Thank you.