• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Error is occured during scheduled backup

Y

yannikk

Guest
hello,

i have configured plesk to backup to a ftp share...

but every morning i get a lot of emails with:

Following error is occured during scheduled backup process:

Error in UploadToRepositoryState.doActivityRunner()
Traceback (most recent call last):
File "/opt/psa/admin/share/agent_runner/agent_runner.py", line 98, in doActivityRunner
newState = self.doActivity()
File "/opt/psa/admin/share/agent_runner/agent_runner.py", line 427, in doActivity
remotefh = remoteBackupFile.fh('wb')
File "/opt/psa/admin/lib/python/backup.py", line 360, in fh
self.file = self.ftp.file(self.filename, mode)
File "/opt/psa/admin/lib/python/ftputil/ftputil.py", line 226, in file
host = self._copy()
File "/opt/psa/admin/lib/python/ftputil/ftputil.py", line 202, in _copy
return FTPHost(*self._args, **self._kwargs)
File "/opt/psa/admin/lib/python/ftputil/ftputil.py", line 141, in __init__
self._session = self._make_session()
File "/opt/psa/admin/lib/python/ftputil/ftputil.py", line 196, in _make_session
return ftp_error._try_with_oserror(factory, *args, **kwargs)
File "/opt/psa/admin/lib/python/ftputil/ftp_error.py", line 88, in _try_with_oserror
raise FTPOSError(ftp_error)
FTPOSError:
Debugging info: ftputil 2.1.1, Python 2.4.4 (linux2)

i have no idea what this message could be about..


can anyone of you help me?


thanks

greetings
yannik
 
Hello, i have the same problem...

Following error is occured during scheduled backup process:

Error in UploadToRepositoryState.doActivityRunner()
Traceback (most recent call last):
File "/usr/local/psa/admin/share/agent_runner/agent_runner.py", line 98, in doActivityRunner
newState = self.doActivity()
File "/usr/local/psa/admin/share/agent_runner/agent_runner.py", line 427, in doActivity
remotefh = remoteBackupFile.fh('wb')
File "/usr/local/psa/admin/lib/python/backup.py", line 360, in fh
self.file = self.ftp.file(self.filename, mode)
File "/usr/local/psa/admin/lib/python/ftputil/ftputil.py", line 226, in file
host = self._copy()
File "/usr/local/psa/admin/lib/python/ftputil/ftputil.py", line 202, in _copy
return FTPHost(*self._args, **self._kwargs)
File "/usr/local/psa/admin/lib/python/ftputil/ftputil.py", line 141, in __init__
self._session = self._make_session()
File "/usr/local/psa/admin/lib/python/ftputil/ftputil.py", line 196, in _make_session
return ftp_error._try_with_oserror(factory, *args, **kwargs)
File "/usr/local/psa/admin/lib/python/ftputil/ftp_error.py", line 85, in _try_with_oserror
raise PermanentError(obj)
PermanentError: 530 Sorry, the maximum number of clients (3) for this user are already connected.
Debugging info: ftputil 2.1.1, Python 2.4.1 (linux2)
 
Backup Problem

Hello

I'm getting the same issue too, lots of error e-mails. How do I stop the backup process.

Following error is occured during scheduled backup process:

553 Could not create file.
Debugging info: ftputil 2.1.1, Python 2.4.3 (linux2)

Many Thanks

Graham Wallace
 
same error here
Code:
Following error is occured during scheduled backup process:

553 Could not create file.
Debugging info: ftputil 2.1.1, Python 2.4.2 (linux2)
 
Fix

Try the following:

chown -R psaadm /var/lib/psa/dumps
chgrp -R psaadm /var/lib/psa/dumps


with plesk update 8.2.1 the tmp dir and others have lost their permissions.
 
BTW,

permissions should be :

drwxr-xr-x psaadm psaadm dumps
 
So to sum up :)

That would be

Code:
chown -R psaadm:psaadm /var/lib/psa/dumps
chmod 755 /var/lib/psa/dumps
 
Didn't Work

That solution did not solve the problem for me. Can anyone else offer a suggestion?
 
check simultaneous connections limit for account on your remote ftp server and increase this limit.. it seems Plesk establishes several ftp connections, or processed ftp connections are not correctly closed, so that further attempts to connect fail..
 
My simultaneous FTP connection settings were fine, so I decided to see what would happen if I scheduled the backup for a different time. No problems with backups since I did that.
 
Following error is occured during scheduled backup process:

Error in UploadToRepositoryState.doActivityRunner()
Traceback (most recent call last):
File "/usr/local/psa/admin/share/agent_runner/agent_runner.py", line 98, in doActivityRunner
newState = self.doActivity()
File "/usr/local/psa/admin/share/agent_runner/agent_runner.py", line 429, in doActivity
remotefh.close()
File "/usr/local/psa/admin/lib/python/ftputil/ftp_file.py", line 229, in close
ftp_error._try_with_ioerror(self._session.voidresp)
File "/usr/local/psa/admin/lib/python/ftputil/ftp_error.py", line 101, in _try_with_ioerror
raise FTPIOError(ftp_error)
FTPIOError: 550 File store error: Operation now in progress Debugging info: ftputil 2.1.1, Python 2.5 (linux2)


I have the same error in Plesk 8.2.1 I change the time I change the Maximum number of simultaneously running scheduled backup processes to 2 but the problem keep continues.
 
Seems problem on FTP server side.
Try to apply following patch to /usr/local/psa/admin/lib/python/backup.py file:

--- /usr/local/psa/admin/lib/python/backup.py.orig 2006-10-21 05:05:26.000000000 +0700
+++ /usr/local/psa/admin/lib/python/backup.py 2006-10-21 05:00:38.000000000 +0700
@@ -29,7 +29,7 @@
try:
self.old_close()
except ftputil.ftp_error.FTPIOError, e:
- if e.errno not in (426, 450, 451):
+ if e.errno not in (426, 450, 451, 550):
raise
self.closed = True

Not sure, but maybe it will help.
 
I did that and now I have the error

Client: Solution It
Plesk entry point: https://web-whois.net:8443/

Following error is occured during scheduled backup process:

Can not start agent_runner /var/lib/psa/dumps/tmp/2009-11-27-14.11.03.329862: Empty error message from utility.

I try to chmode tmp file from ssh but it says operation not permitted.
 
Plesk Fatal error

Now I have the following error

ERROR: PleskFatalException
Create ShortcutCreate Shortcut
Up LevelUp Level

0: /usr/local/psa/admin/plib/backup/BackupRestoreCommon.php:384
BackupFTPRepositoryDriver->getBackupsList()
1: /usr/local/psa/admin/plib/backup/BackupRestoreCommon.php:84
BackupRestoreCommon->fetchBackupsList(object of type BackupFTPRepositoryDriver)
2: /usr/local/psa/admin/plib/backup/BackupRestoreCommon.php:71
BackupRestoreCommon->getBackupsList()
3: /usr/local/psa/admin/plib/backup/BackupFilesList.php:101
BackupFilesList->fetchBackupFilesList()
4: /usr/local/psa/admin/plib/class.cList.php3:103
cList->fetchList()
5: /usr/local/psa/admin/plib/class.cList.php3:123
cList->init()
6: /usr/local/psa/admin/plib/backup/BackupFront.php:99
BackupFront->stepBegin()
7: /usr/local/psa/admin/plib/PMM/MigrationCObject.php:102
MigrationCObject->make()
8: /usr/local/psa/admin/htdocs/backup/main_client.php:26
 
Now I have the folliwn errors..

1. Client: Happynet
Plesk entry point: https://web-whois.net:8443/

Following error is occured during scheduled backup process:

Can not start agent_runner /var/lib/psa/dumps/tmp/2009-11-27-17.41.03.600958: Empty error message from utility.

2. From backup manager when I go to open backup icon into a client I have the error

ERROR: PleskFatalException
Create ShortcutCreate Shortcut
Up LevelUp Level

0: /usr/local/psa/admin/plib/backup/BackupRestoreCommon.php:384
BackupFTPRepositoryDriver->getBackupsList()
1: /usr/local/psa/admin/plib/backup/BackupRestoreCommon.php:84
BackupRestoreCommon->fetchBackupsList(object of type BackupFTPRepositoryDriver)
2: /usr/local/psa/admin/plib/backup/BackupRestoreCommon.php:71
BackupRestoreCommon->getBackupsList()
3: /usr/local/psa/admin/plib/backup/BackupFilesList.php:101
BackupFilesList->fetchBackupFilesList()
4: /usr/local/psa/admin/plib/class.cList.php3:103
cList->fetchList()
5: /usr/local/psa/admin/plib/class.cList.php3:123
cList->init()
6: /usr/local/psa/admin/plib/backup/BackupFront.php:99
BackupFront->stepBegin()
7: /usr/local/psa/admin/plib/PMM/MigrationCObject.php:102
MigrationCObject->make()
8: /usr/local/psa/admin/htdocs/backup/main_client.php:26
 
FTP Backups

I have had trouble with FTP backups on three of my plesk dedicated servers related to IPtables firewall. This fixed it:

AMEND IPTABLES TO ALLOW NON-PASSIVE FTP

# nano -w /etc/sysconfig/iptables-config

At the top of the file, uncomment and change this line:

#IPTABLES_MODULES=""
to
IPTABLES_MODULES="ip_conntrack_ftp"

Then restart Iptables:

# service iptables stop
# service iptables start

hth
 
Back
Top