Can't locate Cpanel/Time/TZ.pm in @INC (you may need to install the Cpanel::Time::TZ module
Just upgraded to v100.0.1 today and my backup script which under the hood using /scripts/pkgacct is giving me following error
[CODE=bash]Can't locate Cpanel/Time/TZ.pm in @INC (you may need to install the Cpanel::Time::TZ module) (@INC contains: /usr/local/cpanel /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib /usr/local/cpanel/3rdparty/perl/532/lib/perl5/532/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/532/lib/perl5/532 /opt/cpanel/perl5/532/site_lib/x86_64-linux-64int /opt/cpanel/perl5/532/site_lib) at /var/cpanel/lib/Whostmgr/Pkgacct/pkgacct line 85.
BEGIN failed--compilation aborted at /var/cpanel/lib/Whostmgr/Pkgacct/pkgacct line 85.
The command in my backup script is [CODE=bash]/usr/local/cpanel/scripts/pkgacct --allow-override --skipwpcore --skipbwdata --skiplocale --skiplogs --skipmailman $user $staging_dir
where --skipwpcore is my custom flag to leave out WordPress core files while running backup because I have a lot of WordPress site. But this was working until now. I have ran
and update everything updatable from WHM interface. Kindly point me out what to do to get my backup running again.
The command in my backup script is [CODE=bash]/usr/local/cpanel/scripts/pkgacct --allow-override --skipwpcore --skipbwdata --skiplocale --skiplogs --skipmailman $user $staging_dir
where --skipwpcore is my custom flag to leave out WordPress core files while running backup because I have a lot of WordPress site. But this was working until now. I have ran
/scripts/upcpand update everything updatable from WHM interface. Kindly point me out what to do to get my backup running again.
-
Hey there! I do see we have removed the TZ module in version 100. Here's a comparison of the /usr/local/cpanel/Cpanel directory between those versions: 98 [root@v98machine ~]# ll /usr/local/cpanel/Cpanel/Time total 32 -rw-r--r-- 1 root root 861 Sep 28 20:36 Clf.pm -rw-r--r-- 1 root root 1086 Sep 28 20:36 HTTP.pm -rw-r--r-- 1 root root 3085 Sep 28 20:36 ISO.pm -rw-r--r-- 1 root root 4554 Sep 28 20:36 Local.pm -rw-r--r-- 1 root root 5321 Sep 28 20:36 Split.pm drwxr-xr-x 2 root root 24 Sep 28 20:36 TZ -rw-r--r-- 1 root root 2293 Sep 28 20:36 TZ.pm
100[root@host Time]# ll total 72K drwxr-xr-x. 2 root root 4.0K Oct 13 02:53 . drwxr-xr-x. 351 root root 36K Oct 28 02:52 .. -rw-r--r--. 1 root root 861 Feb 24 2021 Clf.pm -rw-r--r--. 1 root root 1.1K Feb 24 2021 HTTP.pm -rw-r--r--. 1 root root 3.1K Feb 24 2021 ISO.pm -rw-r--r--. 1 root root 4.5K Feb 24 2021 Local.pm -rw-r--r--. 1 root root 5.2K Oct 13 02:52 Split.pm
Since that was not included with the cPanel Perl in version 100, I don't have a way to get that back. You could always submit a feature request to see if that is something they'd be willing to add back to a future version, but the only option I have would be to adjust the code in your custom script to use a different tool.0 -
Thank you for your answer. Seems like I have to use the default pkgacct script or I have to learn it and customize it again to make it compatible with my custom flag --skipwpcore. Am I right? 0 -
As I understand the current situation, that's correct. 0
Please sign in to leave a comment.
Comments
3 comments