SymptomsParallels Plesk Panel is running on server based on operating system RedHat4, CentOS4 or SuSE ES9.
I receive the following error in scheduled backup notification:
Runtime error in pmmcli:
exceptions.OSError [Errno 17] File exists: '/usr/local/psa/PMM/sessions/2009-05-17-000202.964'
Traceback (most recent call last):
File "/usr/local/psa/admin/share/pmmcli/pmmcli.py", line 1417, in main
data_action_response, errcode_response, error_message = actions.get(sys.argv[2:])(parameters)
File "/usr/local/psa/admin/share/pmmcli/pmmcli.py", line 1338, in make_dump
return ActionRunner(MakeDumpAction, backup_task_description, None).doActivity()
File "/usr/local/psa/admin/share/pmmcli/pmmcli.py", line 67, in doActivity
result = self.processor.doActivity()
File "/usr/local/psa/admin/share/pmmcli/pmmcli.py", line 821, in doActivity
session_path = self.generateSessionPath()
File "/usr/local/psa/admin/share/pmmcli/pmmcli.py", line 665, in generateSessionPath
OSError: [Errno 17] File exists: '/usr/local/psa/PMM/sessions/2009-05-17-000202.964'
However scheduled backup is created successfully.
How to stop this error in scheduled backup notifications?
CauseIf python 2.3.4 was installed then the problem is caused by long time of generation of random numbers in python 2.3.4.
You may check python version with "rpm -q". For example:
~# rpm -q python
This causes several session directories got similar name and Plesk Backup Manager failed with the error.
ResolutionThe problem may be fixed if upgrade python to version 2.4 or above.
Python 2.4 is not provided with RedHat4, CentOS4, SuSE ES9 and upgrading is not recommended.
Hotfix for Parallels Plesk Panel version 9.0 is in the attachment. Replace existed file /usr/local/psa/admin/share/pmmcli/pmmcli.py with attached one and correct permissions.
You may correct permissions with commands chown and chmod:
~# chown root:root /usr/local/psa/admin/share/pmmcli/pmmcli.py
~# chmod 644 /usr/local/psa/admin/share/pmmcli/pmmcli.py
Please remember to backup old file pmmcli.py.
NOTE: Do not modify the script. Modified script may cause problems in Plesk Backup Manager. After the script is installed verify it has correct md5 sum. Check md5 sum with command md5sum:
~# md5sum pmmcli.py
In case md5 sum does not match download and install the script anew.
IMPORTANT: The hotfix is good for Parallels Plesk Panel 9.0 only. Plesk Backup Manager has changed since version 9.2 and the hotfix is invalid.