Hi, I need help with cPanel / WHM crontab tasks.
cPanel & WHM Version: v94.0.2
O.S.: CENTOS 7.9
Summing up my scenario, I was in a hosting where the Postgresql version was 12, but when I came to the current hosting, WHM offered only 9. So this generated conflicts in my project and I had to update, take advantage and update Posgresql to version 13.
At first everything works correctly, but I'm getting an error coming from cron jobs that seems to be a standard cPanel / WHM.
When I run the following cron:
The error is this:
Any suggestions regarding this error?
More information:
What I noticed different about the update is: When upgrading from version 9 to version 13, the service went from postgresql to postgresql-13. As can be seen in the image below, everything is working, including the WHM panel (creation of the config file, users and password change).

cPanel & WHM Version: v94.0.2
O.S.: CENTOS 7.9
Summing up my scenario, I was in a hosting where the Postgresql version was 12, but when I came to the current hosting, WHM offered only 9. So this generated conflicts in my project and I had to update, take advantage and update Posgresql to version 13.
At first everything works correctly, but I'm getting an error coming from cron jobs that seems to be a standard cPanel / WHM.
When I run the following cron:
# /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache
The error is this:
This error at first does not interfere with the functioning of Postgresql, but I would like to know what this task is for and if possible solve it.Error opening directory “/var/lib/pgsql/13/data/base/0”: No such file or directory at /usr/local/cpanel/Cpanel/PostgresAdmin.pm line 96.
Need db! at /usr/local/cpanel/Cpanel/DB/Map/Collection/Index.pm line 118.
Any suggestions regarding this error?
More information:
What I noticed different about the update is: When upgrading from version 9 to version 13, the service went from postgresql to postgresql-13. As can be seen in the image below, everything is working, including the WHM panel (creation of the config file, users and password change).

Last edited by a moderator: