Plesk 12.x / Linux :: Backup Personal FTP Repository Error
Jun 29, 2014
I'm recieving the following error
"Transport error: unable to list directory: Curl error: Couldn't connect to server".
This happens when I enter ftp settings for the Personal FTP Repository. I'm sure the ftp server is fine. I have it already set on other domains. It connects backs-up just fine.
I've noticed two things when connecting to the FTP server it automatically issues PASV and does nothing else. It also connects using the secondary ip which I guessing it should. Micro Update 5 is installed.
After starting back up in plesk 11.5 I get this error after some time...
Code:
Runtime error: Export dump to FTP failed at /usr/local/psa/admin/bin/plesk_agent_manager line 727. at /usr/local/psa/admin/bin/plesk_agent_manager line 727 main::perform('verbose', 4, 'owner-type', 'server', 'split-size', undef, 'session-path', '/usr/local/psa/PMM/sessions/2014-06-27-025357.825', 'description', ...) called at /usr/local/psa/admin/bin/plesk_agent_manager line 1319
[Code] ....
The backup was stored in Server Repository and was also uploaded to ftp....
Backup file size in server repository : 169 MB In personal repository showed in plesk :169 MB File size shown in FTP in backup server : 169.08MB
The Problem: I'm trying to set up an automatic backup to an ftp server using ftps (as configured in the personal ftp repository). Copying the files fails however.
The things I checked: The Plesk management website can't show the target folder's contents. The only error I get is Error-Code "1". The ftp server (a synology NAS) logs the ftp access: Credentials are correct, session is terminated after transferring 0 Bytes. Each failed backup leaves a 0-Byte .tar file on the Backup folder. If I disable ftps and go with plain ftp, everything works just fine.
Our previous generation Plesks (v11 and lower) can utilize ftps for backup (to the same ftp server) without a hitch.
Additional considerations: Since the WebServer is on a hosted machine and file transfer has to be done across the internet, unsecured transport is not an option.
I have 2 identical servers: I'm trying to do backups from server1 to server2 and from server2 to server1.
In every server I setup a subscription just for storing backups.
If I configure Personal FTP Repository from server1 to server1 - the same server - it works (it gives a warning: backup on the same server is not safe).
If I try to configure Personal FTP Repository from server1 to server2 and vice versa, it gives me the following error:
Transport error: unable to list directory: Curl error: FTP: couldn't retrieve (RETR failed) the specified file
If I try to give a different password, it tells that the password is wrong: this means that server1 is able to connect to server2 and the ports are well configured (I hope).
If I connect in active mode from my PC with Filezilla to server1 or server2, same username and password, it works!
I'm not able to configure Personal FTP Repository and to backup to another server.
I want to restore a database from my repository. In the backup manager (root) I have Server repository & Personal FTP Repository. The personal repository I set to backup every day. The server repository I don't know where to set the backup option. There seems to be some random backups every 2 weeks or so.
In the personal ftp repository I have the backups of the last 7 days as tar files. When I want to radio button "Selected objects" it can not me highlighted. I am on plesk 12.0.18. (I ticked "Restore this backup despite the fact that it does not have a valid signature")In the server depository the files are .xml and there I can select what to restore but the backups are not current. I need the database from yesterday.How can I make my personal backups selectable?
I'm using Plesk 12.0.18 on a virtual container powered by Parallels Virtuozzo Containers, and I cannot get the FTP (personal repository) working.In my settings, I've unchecked Passive mode (as the VPS is configured with the Virtuozzo firewall) yet Plesk still seems to test the connection with passive mode, which I know will fail. However active FTP on the command-line works fine.
Saving the repository fails with (after a hang): Transport error: unable to list directory: Curl error: Couldn't connect to server If the "directory" doesn't exist on the FTP server it fails immediately, so the connection is working, and it seems to be on the "dir/ls" command that it fails - which is a symptom it's using Passive mode.
According to the Panel log file, Plesk issues the below command:
Note the "--use-ftp-passive-mode" even though "passive mode" is UNCHECKED in the UI.
From a terminal:
# ftp ftp.hidrive.strato.com Connected to ftp.hidrive.strato.com (85.214.3.73). 220 Another visitor. Stay a while... Name (ftp.hidrive.strato.com:root): xxx 331 FTP login okay, send password. Password: 230 User logged in, proceed.
Current Version Installed :Parallels Plesk Panel 11.5.30 Update #31 Problem: When username have @ like : myuser@mydomain.com
Steps : When configure the setting all go right (test to validate setting is ok too) , but when Scheduled Backup Settings using Personal FTP Repository cannot connect for server because the url use 2 @ like error message below.
Error Message : Cannot parse output file 'ftp://bk@mydomain.com@mydomain.com/' [Invalid URI: Can not parse the hostname.]
I am having issues with the plesk backup manager. I set up my personal FTP personal repository in tools & settings, then backup manager. My ftp is secure with a specific port. here are my options:
FTP server hostname or IP: myipaddress":"port without quotes. Directory for backup files storage: complete also used /complete. Both correct username and password
Use passive mode checked Use FTPS checked Use password protection checked
Here is my scenario:
Personal FTP repository backups are set up with:
Create a multivolume backup Volume size: 2047 Store backup in: Personal FTP Repository max number of backups: 1
For some reason when I manually backed up the server with server repository, my storage went from 14gb to 6gb.. I have zero backups in both server repository and personal FTP repository because I deleted them. Now its stuck at 6gb, which seems that the backup is stored somewhere in the system and is not deleted.Where can I find this backup? I am using CentOS.
When I try to reset the Personal FTP Repository setting in Backup Manager, I get "Transport error: unable to list directory: Curl error: Failure when receiving data from the peer"
I've read a solution to this issue for Plesk for Linux, but not for Windows. I have my FTP server setup for FTPS (require explicit FTP over TLS) and when I put the correct information in each box, I get this error. In the meantime, the current settings (for standard FTP) are incorrect.
Obviously the most important this is to correct the Transport and Curl errors, but if I'm unable to do so, how do you clear the current setting? There doesn't seem to be a way to do it...
If I go into the Backup Manager, then click the "Personal FTP Repository", then click "Personal FTP Repository Settings", at the bottom it asks for a password and says how important it is to use a password.
So, I specify a password, then successfully do a backup to a remote FTP site.
But when I examine the backup.zip file at the remote FTP site, it a plain ZIP file that you can open without any password!!!
How is this secure, what's the point of asking us to specify a password when it's not used to password lock the backed up ZIP file?
Plesk Panel 12 uses a proftpd FTP server, with the TLS module pre-installed and configured.
Many questions and/or problems arise when trying to connect to the FTP server over a FTPS connection. In (almost) all cases, the disability to connect with FTPS is due to
a) the lack of configuration of passive ports, AND b) firewall settings, enabling connections through before mentioned passive ports.
The passive port range can be configured by
adding a line to /etc/proftpd.conf, stating: "PassivePorts <start> <end>", OR adding a separate file with name <filename>.conf to /etc/proftpd.d/, with the contents of <filename>.conf stating: "PassivePorts <start> <end>"
And note that
- <start> is the first port of the port range, in theory any value above 1050 can suffice, - <end> is the last port of the port range, any value below 65000 (!) can suffice, - the extension .conf is required when using a separate config file, - the directory location /etc/proftpd.d/ is required when using a separate config file, - one should always limit the port range, i.e. it is not desirable to open up a lot of ports, - it is desirable to have the <start> value above 20000, in order to prevent conflicts with other programs, using a specific port (for instance, port 8443 is also being used), - it is not necessary to restart proftpd after configuring the passive ports.
The firewall settings have to be changed to allow connections through the passive ports that have been opened for FTPS connections and note that
- only open up the port range (not more) in the firewall settings, - it is only necessary to open up ports in the firewall settings of the FTP server, - it is not required to open up ports in the firewall settings of the sending server. Many issues have been arising when setting up the FTP Backup Repository.
In general, the passive mode checkbox has to be selected, when encountering issues.
The explicit use of the passive mode allows for proper configuration of the FTP Backup Repository and note that it does not matter whether FTPS or normal FTP will be used.
I host a number of large sites (20GB+) on my VPS server running Centos6 and Plesk Panel 12. Due to the large sites I don't want to keep multiple backups on the actual server because it would take too much disk space. When I create a backup to the server's repository all is good, but when I click the green arrow to download the backup it takes a long time and then it fails with a timeout error. On some smaller sites it takes a while but eventually downloads the tar.
So my question: Is it possible to access the Server Repository via FTP? How and where would I set this up? Presumably it would be a better way to download these large archive files?
keep a local and remote backup of certain subscriptions or at least have a full server backup on FTP.
I have a livedrive.com reseller account which allows be to quite cheaply add 512GB of remote storage accessible through SFTP, FTP and WebDAV. I created this partition and added it as a server-level FTP repository in Plesk 12 (latest build). During testing I added a firewall exception for traffic on the FTP IP-address and figured that I had to put the FTP repository in passive mode to properly connect.
After setting this up I ran a configuration only backup to test if everything was working properly. The backup was created properly and can be accessed through the FTP as well: success!
My second test was running a full server backup through the manager. The ±40GB file was created properly (I could see my disk usage increase and decrease through new relic monitoring) and supposedly transferred to the FTP repository according to Plesk.
When I look at the FTP or the Plesk Backup Manager both indicate that the full server backup is 0kb in size.
After this issue I figured: I really don't care about a full server backup, I mostly care about a specific set of subscriptions that have new content on a daily basis and need to be backed up properly as well. Those subscriptions are already on a daily or weekly backup scheme that places backups on the local repository.
What I would eventually like to do is create daily or weekly backups on the local repository and create weekly or monthly backups on the FTP repository for those specific subscriptions, but unfortunately you cannot (by default) setup Plesk to automatically backup to local and remote based on different or even the same intervals.
And this is the more important question: How to be able to create/setup a backup automation that keeps local and remote backups for the same or different intervals? Either through the Plesk interface, a plugin or a script?
Running Plesk 12 on CentOS 6.6
Update:
Just tried running the same server wide backup, but this time as a multivolume backup. This resulted in the following error:
I'm trying to restore a 600MB database which was uploaded to the repository in plesk. This database backup did NOT originate from this server, but rather I'm attempting to overwrite a blank database that was created with the same name via plesk.
The site is one of our web-spaces (not a customer subscription) so I am logged in as the plesk administrator.
System Info: Plesk 11.5 Windows 2008 R2 (64Bit) 3GB RAM MySQL 5.1
Full Error: dbbackup failed: Unable to restore database 'databasename' Exception of type 'System.OutOfMemoryException' was thrown.
I have tried altering the php.ini the PHP settings of the site (even though I'm logged in as the adminsitrator) as well as the php.ini of: C:ParallelsPleskadminphp.ini
memory_limit=2048M
It fails with the error after about 1GB of RAM usage on the server.
I upgraded Plesk 11.5 to the latest version 12.0.08 # 5 and now I can not configure the external FTP backup I get the error:Transport error: unable to list directory: Curl error: Timeout was reached. Also failing the backup shows this error: Unable to rotate dump: The dump rotation is failed with code '126 'at / opt / psa / admin / bin / plesk_agent_manager line 1041.
And this one:Can not upload file 'domains/domain.tld/backup_domain.tld_info_1406210716.xml' to ftp. Error code: 1..my SO Debian 6.0.8
First of all I checked via command line if any software is not installed properly while plesk installation was done on destination server (windows server 2012 R2). All looks fine, please check attached file pleskinstallation.txt
Source plesk version 10.4.4 (windows server 2008) Destination plesk version 12.0.18 MU#23 built.
We are in testing mode of migrating websites hosted with source plesk version 10.4.4 onto destination server plesk server 12.0.18 having (windows server 2012 R2).
What we did, we restored the backup of Source plesk version 10.4.4 (windows server 2008) to Destination plesk version 12.0.18 MU#23 built.
Now the problem is that backup which we restored on Destination plesk version 12.0.18 MU#23 was of 68 GB and now when we setup the backup on Destination plesk version 12.0.18 MU#23 and when backup completes successfully it show us wrong backup size up to 16 GB.
We have requested several times to plesk support has to check the entire new plesk version in terms of all feature (like taking backup, restoring, plesk installation etc) while releasing new version, If they have noticed bug than plesk support should not release new version or micro update until they are sure.
I would request them again to check backup size bug along with other bugs.
1. "Stats crashing and not updating stats"
2. installing "Spam assassin" on Plesk 12.0.18 on windows server 2012 r2 and we are getting error:
Error: Unable to set Plesk SpamAssassin 3.3.2 as the default Spam Filter: defpackagemng failed: Execute spammng.exe --check failed with error code 1: Unable generate the unique file name by template D:Program Files (x86)ParallelsPleskAdditionalPerlsiteetcmailspamassassinlocal.cf[*].bak: directory D:Program Files (x86)ParallelsPleskAdditionalPerlsiteetcmailspamassassin does not exist.
i have make a full Plesk Backup on my Old Server with Plesk 12.0(Ubuntu) and will restore the Backup on my new Server with Plesk 12.0(CentOS).When i will restore the backup i get this error: "Error: The source file is not a valid XML file. If you supplied an archive file containing a backup from Plesk version 9 or later, then extract the contents of this archive, and process the extracted XML file with the converter. If you want to convert a backup file from a Plesk version earlier than 9, then you first need to process it with the pre9-backup-convert utility, and then process the resulting file with the pre10-backup-convert utility."
I recently started getting errors when attempting to backup our web server.
Code:
Warning: mysql "db_xxx_0" Failed to pack files webxx-fullbackup_db_xxx_0_1_1406050308 in /mnt/backup/location [ 412107659264 bytes free of 541129271296 bytes total on mount point 0] Warning: mysql "db_xxx_0" Use of chdir('') or chdir(undef) as chdir() is deprecated at /opt/psa/PMM/agents/shared/Storage/Bundle.pm line 38. mysqldump: Error 2013: Lost connection to MySQL server during query when dumping table `wp_postmeta` at row: 1357
We have Panel Plesk 11.5.30 in Windows 2008 R2. when you go to File Sharing in all the Subscriptions, appears this error: Internal error: Unable to access File Sharing repository with the system user name "admin": wrong username or password
This happen since we do the update to the new version 11.5.30 ...
When accessing a backup in backup-manager in a user subscription via a reverse proxy (eg. plesk panel is called as localhost:8443) I get following error:
Internal error: Failed to exec pmm-ras: (array ( 'code' => 127, 'stdout' => 'Transport error: File 'clients' not found ', 'stderr' => '', )). Message Failed to exec pmm-ras: (array ( 'code' => 127, 'stdout' => 'Transport error: File 'clients' not found ', 'stderr' => '', )). File Connector.php Line 227 Type PleskPMMResponseException
This happens when I try to download the backup and also when clicking on the backup name. These are the apache settings for the reverseproxy domain:
SSLProxyEngine On AllowEncodedSlashes On <Location /> ProxyPass https://localhost:8443/ ProxyPassReverse https://localhost:8443/ </Location>