Provider: KVM VPS, Self Hosted
Virtualization: KVM
System: CentOS 7 (All Updated)
OLS/Enterprise: OLS
Official Mirror: Yes
Memcache: No
Redis: Yes
Hi Guys,
I recently upgraded my CyberPanel installation to v1.9 Build 3E and after a few days I realized my backups were no longer operational.
In checking the crontab I noticed the backup entries were pointing to “python2” binary which appears to have been removed as part of the upgrade and replaced with “python3”.
0 * * * * root python /usr/local/CyberCP/plogical/findBWUsage.py
0 * * * * root /usr/local/CyberCP/postfixSenderPolicy/client.py hourlyCleanup
0 0 1 * * root /usr/local/CyberCP/postfixSenderPolicy/client.py monthlyCleanup
0 2 * * * root /usr/local/CyberCP/plogical/upgradeCritical.py
0 2 * * * root /usr/local/CyberCP/bin/python2 /usr/local/CyberCP/plogical/renew.py
0 12 * * * root /usr/local/CyberCP/bin/python2 /usr/local/CyberCP/IncBackups/IncScheduler.py Daily
0 0 * * 0 root /usr/local/CyberCP/bin/python2 /usr/local/CyberCP/IncBackups/IncScheduler.py Daily
I have confirmed my backups are back to running, so that issue has been resolved, however, when running “findBWUsage.py” I am getting the following error now:
[root@web01 ~]# python /usr/local/CyberCP/plogical/findBWUsage.py
Traceback (most recent call last):
File “/usr/local/CyberCP/plogical/findBWUsage.py”, line 2, in
from plogical import CyberCPLogFileWriter as logging
ImportError: No module named plogical
The first part of my post is just an FYI, second part I would like any advice y’all can share to get me back to an operational state.
Thank you!