• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved [PPPM-6236] Distant backup fails because of space in directory name

Lux

New Pleskian
Hey,

I'm trying to setup FTP backups on my local NAS, but registering the credentials fails with the error :

Erreur: Unable to access to the storage: Transport error: unable to list directory: Curl error: (9) Access denied to remote resource: Last FTP request: CWD Disque Last FTP response: 550 Request action not taken (file does not exist or no access)
Make sure you have entered the correct storage settings. You can check them independently with the command:
curl -v --ftp-pasv --ssl -k -u freebox ftp://addressoftheserver:port//Disque\ dur/Kimsufi/

When I enter the CURL command in CLI, it works just fine, check0 and check1 directories have been created on the NAS. But - seemingly because of the space in "Disque dur" (which I can't modify) - I can't register the credentials in Plesk...

I'm using Plesk Onyx 17.5.3, with Ubuntu 14.04.5 LTS.

Any idea on how to overcome this, please ?
Thanks by advance.
L
 
Hi Lux,

you could try
Code:
Disque%20dur
instead of the space in your URL, which should result in "Disque dur".
 
Hey @UFHH01 ,

Thanks for the idea. It seems to somewhat work, yet I have another error :
Erreur: Unable to download the file from the storage: the content of the retrieved file does not match the content that was previously sent
Check that you can upload to and download files from the storage. You can check it independently with the commands:
echo 123 | curl -T - --ftp-create-dirs -v --ftp-pasv --ssl -k -u freebox ftp://nameoftheserver:port//Disque%20dur/Kimsufi/test-dir/test-file.txt
curl -v --ftp-pasv --ssl -k -u freebox ftp://nameoftheserver:port//Disque%20dur/Kimsufi/test-dir/test-file.txt

Again, I can create and access the files via CLI, there seem to be a problem only for Plesk... :/

Any other idea you could give ?

Thanks by advance.
L
 
Could you post the output of the following commands?
plesk version
DUMP_STORAGE_PASSWD=<password> /usr/local/psa/admin/bin/pmm-ras --check-repository --dump-storage=ftps://<username>@<hostname>/<dir> --use-ftp-passive-mode --verbose --debug
 
Hey @DenisG,

plesk version :
Code:
Product version: Plesk Onyx 17.5.3 Update #6
    Update date: 2017/05/16 06:26
     Build date: 2017/03/17 16:00
     OS version: Ubuntu 14.04
       Revision: 55d1b49a272f44666e1920eca8b6e4da449a38cd
   Architecture: 64-bit
Wrapper version: 1.2

And the expurged result of the pmm-ras command is in the attached file, because the message is too long for this bulletin board...

Thanks for your time, I hope this helps.
Cheers,
L
 

Attachments

  • pmm-ras.txt
    35.9 KB · Views: 12
This does not work - but on freeboxes plain FTP isn't allowed.

Code:
[2017-05-19 09:02:15.765|31230] INFO: pmm-ras started : /usr/local/psa/admin/bin/pmm-ras --check-repository --dump-storage=ftp://<user>@<host>:<port>/Disque%20dur/Kimsufi --use-ftp-passive-mode --verbose --debug
[2017-05-19 09:02:15.766|31230] INFO: Repository 'ftp://<user>@<host>:<port>/Disque%20dur/Kimsufi': Initializing...
[2017-05-19 09:02:15.766|31230] INFO: Transport: Get repository transport ftp://<host>:<port>/Disque%20dur/Kimsufi
[2017-05-19 09:02:15.766|31230] INFO: Transport: Init credentials for user '<user>'
[2017-05-19 09:02:15.766|31230] INFO: Curl version: 0x72300
[2017-05-19 09:02:15.769|31230] INFO: Repository 'ftp://<host>:<port>/Disque%20dur/Kimsufi': Initialized
[2017-05-19 09:02:15.769|31230] INFO: Test stage: Check directory access
[2017-05-19 09:02:15.769|31230] INFO: Transport: List dir /
[2017-05-19 09:02:15.769|31230] INFO: Ftp init url ftp://<host>:<port>/Disque%20dur/Kimsufi/
[2017-05-19 09:02:15.769|31230] INFO: Ftp extended list dir
[2017-05-19 09:02:15.769|31230] INFO: Curl output: * Hostname was NOT found in DNS cache
[2017-05-19 09:02:15.894|31230] INFO: Curl output: *   Trying 2a01:e35:139e:9cd0::1...
[2017-05-19 09:02:15.997|31230] INFO: Curl output: * Connected to <host> (2a01:e35:139e:9cd0::1) port 47274 (#0)
[2017-05-19 09:02:16.101|31230] INFO: Curl output: < 220 Welcome to Freebox FTP Server.
[2017-05-19 09:02:16.102|31230] INFO: Curl output: > USER <user>
[2017-05-19 09:02:16.207|31230] INFO: Curl output: < 530 Please use AUTH TLS before logging in.
[2017-05-19 09:02:16.207|31230] INFO: Curl output: * Access denied: 530
[2017-05-19 09:02:16.207|31230] INFO: Curl output: * Closing connection 0
[2017-05-19 09:02:16.207|31230] INFO: Curl error: (67) Login denied: Last FTP request: USER <user> Last FTP response: 530 Please use AUTH TLS before logging in
[2017-05-19 09:02:16.208|31230] INFO: CurlError[76931fac-9dab-42b3-86c2-48b87d6ae33f]: Curl error: (67) Login denied: Last FTP request: USER <user> Last FTP response: 530 Please use AUTH TLS before logging in [./ftp.cpp:506]
void plesk::tFtpConnection::ListEx(std::vector<plesk::FtpFileInfo>&)
<?xml version="1.0" encoding="UTF-8"?>
<repository-check-errors>
 <repository-check-error>
  <operation>login</operation>
  <message>Transport error: unable to list directory: Curl error: (67) Login denied: Last FTP request: USER <user> Last FTP response: 530 Please use AUTH TLS before logging in</message>
 </repository-check-error>
</repository-check-errors>
[2017-05-19 09:02:16.208|31230] INFO: pmm-ras finished. Exit code: 0
 
Could you attempt to run the command from the attached file?
 

Attachments

  • pmm-ras-17.5-ubt1404x64-20170524.tgz
    947.1 KB · Views: 9
Add the option 'ftpForbidReuseConnection = 1' into the file /usr/local/psa/admin/conf/panel.ini into the '[pmm]' section and run the command again
[pmm]
ftpForbidReuseConnection = 1
 
You can place new pmm-ras to '/usr/local/psa/admin/sbin/' and use it. Keep current pmm-ras just in case.
 
Back
Top