Ftp error 521

I am using FTP over implicit SSL to upload some files. I encountered the following error message [Command] PWD [Response] 257 "/" is current directory. [Command] PWD [Response] 257 "/" is curr...

I am using FTP over implicit SSL to upload some files.
I encountered the following error message

[Command]  PWD
[Response]  257 "/" is current directory.
[Command]  PWD
[Response]  257 "/" is current directory.
[Command]  TYPE A
[Response]  200 Type set to A
[Command]  PWD
[Response]  257 "/" is current directory.
[Command]  PASV
[Response]  227 Entering Passive Mode (10,0,0,19,195,113)
[Command]  LIST -aL
[Response]  521 PROT P required
[Command]  PWD
[Response]  257 "/" is current directory.
[Command]  PASV
[Response]  227 Entering Passive Mode (10,0,0,19,195,114)
[Command]  LIST -aL
[Response]  521 PROT P required
[Status] Failed::FTP protocol error. 521 PROT P required.

May I know what is this error message «521 PROT P required» saying?

Thanks

asked Mar 24, 2014 at 16:23

alexcctan's user avatar

type the following:
set ftp:ssl-protect-data true

answered Mar 21, 2016 at 16:02

Edgardo Cervantes's user avatar

2

Before starting a data transfer (e.g. creating a new data connection outside the control connection to transfer files or listing) you have to specify the protection level using the PROT command. The main protection levels are P for protected (e.g. SSL encryption) or C for clear (no encryption). The server complains, because you don’t specify a protection level and so it does not know how you want to get your data.

The PROT command must be implemented and used by all ftps clients.

answered Mar 24, 2014 at 16:32

Steffen Ullrich's user avatar

Steffen UllrichSteffen Ullrich

110k10 gold badges129 silver badges167 bronze badges

4

Moderator: Project members

abenn322

500 Command not understood
Posts: 5
Joined: 2014-10-27 16:03

521 — Critical error HELP!

#1

Post

by abenn322 » 2015-10-09 02:16

Receiving the following message for several hours now…

Status: Connection established, waiting for welcome message…
Response: 521 — We are currently experienced difficulties with our FTP systems.
Error: Critical error: Could not connect to server

Can anyone please tell me what’s going on or how I can get around this? Thanks!


User avatar

boco

Contributor
Posts: 26451
Joined: 2006-05-01 03:28
Location: Germany

Re: 521 — Critical error HELP!

#2

Post

by boco » 2015-10-09 02:26

Your hosting/server people seem to have serious problems with their servers. No way around that, it’s something they need to fix.

### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###


abenn322

500 Command not understood
Posts: 5
Joined: 2014-10-27 16:03

Re: 521 — Critical error HELP!

#3

Post

by abenn322 » 2015-10-09 11:23

Thanks «boco». I suspected it might be with Comcast & actually called them on this but they punted. As of this morning, the problem is still not resolved.


abenn322

500 Command not understood
Posts: 5
Joined: 2014-10-27 16:03

Re: 521 — Critical error HELP!

#4

Post

by abenn322 » 2015-10-09 13:33

It seems to be a FileZilla issue after all. I upload jpegs to FileZilla & use them on Ebay sales descriptions. I just got off the phone with Comcast support (my ISP) and as a test, we uploaded photos to another FTP (photobucket). Not only did they upload fine there, the html links worked fine in Ebay. So if this were a Comcast issue, I would not have been able to upload the jpegs & see them. It definitely seems to be with FileZilla. Can anyone else help? I love using Filezilla & prefer not to switch. What does the 521 error code mean anyway?


User avatar

boco

Contributor
Posts: 26451
Joined: 2006-05-01 03:28
Location: Germany

Re: 521 — Critical error HELP!

#5

Post

by boco » 2015-10-09 15:39

Unless you are hosting your files on Comcast servers you contacted the wrong people. I said hosting, not ISP. And it is a server problem, not FileZilla’s (the error message comes from the server you’re trying to connect to).

You don’t upload «to FileZilla», FileZilla doesn’t run any servers. Since the other FTP server works, you now know the first one is broken. Heck, the error message even tells you so.

### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###


abenn322

500 Command not understood
Posts: 5
Joined: 2014-10-27 16:03

Re: 521 — Critical error HELP!

#6

Post

by abenn322 » 2015-10-09 21:50

Thanks for the additional info «boco». I appreciate it. A lot of this is Greek to me & this is where the confusion sets in. Yes, you said hosting, not ISP. But I guess I’m not certain then who is doing the hosting or for that matter which or where the server in question is. On my main FileZilla screen that lists the jpeg files I have there, under «Host», it reads ‘upload.comcast.net’, and always has without issue. And then there’s my user name and password. What I’m not getting is when I try it with the 2nd FTP (photobucket), all goes smoothly. Without knowing or understanding all the technical jargon and how the entire process works to the last degree, I’m thinking if the 2nd FTP (photobucket) works fine & is pulling & uploading jpgs from my system without problem, unless I’m missing something, that tells me it (photobucket) & my pc are working in sync & wherever or however the server, it is doing the job & working fine. The same isn’t the case with FileZilla & I’m getting the error code. In another words, if the «broken» server is on my computer, why am I not having any issues when I use photobucket, the different FTP? When I read, «Response: 521 — We are currently experienced difficulties with our FTP systems,» I was assuming the «We» meant FileZilla.

Sorry for some naive line of questioning «boco» & I appreciate your time & effort. A lot of this technical stuff just isn’t up my alley.


User avatar

boco

Contributor
Posts: 26451
Joined: 2006-05-01 03:28
Location: Germany

Re: 521 — Critical error HELP!

#7

Post

by boco » 2015-10-09 23:41

So the server is indeed hosted by Comcast. My other statement hold still valid.

The server tells you:

521 — We are currently experienced difficulties with our FTP systems.

We — that means the server people. Since Comcast is a big ISP, the people you’ve called might not even be aware that their FTP servers (which are probably at a different location entirely) are having problems, since it’s different subdivisions.
Plus, a lot of companies outsource certain services (like support or server hosting) to other companies while keeping the brand name. Who knows where their servers really are…

I know that it is disappointing when servers you rely on don’t work (even more since Ebay doesn’t have its own image hosting on site*). But, please don’t shoot the messenger — FileZilla is only the tool you use to upload to the server. If the server denies cooperation, FileZilla cannot upload.

*On Ebay one can re-use the product image URLs, and use Data URIs to embed smaller pictures directly into the description.

### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###


User avatar

botg

Site Admin
Posts: 34744
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: 521 — Critical error HELP!

#8

Post

by botg » 2015-10-10 08:11

even more since Ebay doesn’t have its own image hosting on site

Really? When I sold something on ebay 2 months ago I could upload images there just fine.


User avatar

boco

Contributor
Posts: 26451
Joined: 2006-05-01 03:28
Location: Germany

Re: 521 — Critical error HELP!

#9

Post

by boco » 2015-10-11 01:02

Ebay allows product images, that’s correct. But if you need to upload further images (symbols, icons, graphic elements etc.) for use in the description that are NOT product images, there’s no internal place to host this stuff. You need to use a third-party hoster or Data URIs.

### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###


abenn322

500 Command not understood
Posts: 5
Joined: 2014-10-27 16:03

Re: 521 — Critical error HELP!

#10

Post

by abenn322 » 2015-10-12 13:31

Thanks again to all who replied to this thread. I finally got a Comcast rep that went the extra mile to help. She believed the server was down due to some recent changes that happened at Comcast/Xfinity just last week. They created an open ticket for me in their Internal Support department and I’m supposed to hear back within 3 days. We’ll see. As of this morning, I still can’t connect with Filezilla. Apparently this is not a new issue as I found near identical threads on Xfinity/Comcast & FileZilla forums dating from 2008 — 2012. Unfortunately there wasn’t a one size fits all resolution that I have seen discussed just yet but I’m still searching. Thanks again to all. I’ll post again when I hear back from Comcast.


Posted on February 11, 2017 — Posted by

FireFTP: FTPS Explicit 521 error resolution WHM

Need Some Help? We are here for you!

We have a very friendly service — Come and chat to us and let us know what you need, we work for an hourly fee and can also provide you a no obligation quote and begin work immediately in most cases. Click «Request Support» or use our Live Chat.

Request Support

We was recently trying to help a client setup his FireFox FireFTP so that it would connect to our FTP server, unfortunately though we hit some very baffling problems which took some guess work and research in order to fix. The problem seems to be that FireFTP has not implemented the FTP protocol spec properly and so our FTP server was having some problems trying to deal with the connection requests, we believe this only affects the FTPS features, we were using FTP TLS, but this may affect also FTP SSL and the others.

So our server is locked down, we dont allow normal FTP for security reasons, our server requires FTP Explicit for security, we set all the settings in FireFTP and clicked connect, it seemed like it was connecting fine but while trying to list the files it would fail with the following error message:

521 data connection cannot be opened with this prot

After some research it appears that this issue is related to the fact that FTP clients are supposed to provide a command with PROT to describe how they would like to proceed, but FireFTP seems to ignore the spec and just sends the PROT command with no parameters.

Once we realised this it was good fortune that I remembered the settings for FTP in cPanel / WHM had an option for “Broken Clients Compatibility” which I had disabled again for security reasons, so we decided to turn that on and then everything worked perfectly!

How to fix FireFTP “cannot be opened with this PROT” error in WHM

It’s very straight forward, login to your WHM and in the search box type “FTP”. Click on “FTP Server Configuration”, scroll all the way to the bottom of the page and change “Broken Clients Compatibility” to yes and click save.

That’s it FireFTP should now work correctly.

Need Some Help? We are here for you!

We have a very friendly service — Come and chat to us and let us know what you need, we work for an hourly fee and can also provide you a no obligation quote and begin work immediately in most cases. Click «Request Support» or use our Live Chat.

Request Support

SHARING IS CARING!

Author: Dean WilliamsProfessional PHP Web Developer with expertise in OpenCart Web Development, WordPress Web Development, Bespoke Systems — also a seasoned Linux Server Administrator.



Понравилась статья? Поделить с друзьями:

Читайте также:

  • Ftp directory listing of current dir 1 timeout error occurred
  • Ftp connection error
  • Ftp 500 error
  • Ftp 331 error
  • Ftk has encountered an error and must close for the king

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии