Share via


501 Server cannot accept argument. Error:_Failed to retrieve directory listing Error

Question

Wednesday, June 8, 2011 7:57 PM

Not to savy here to bare with me. I have an FTP site that is working fine. I added a second FTP site assigning it a unique port. I am able to connect to the server through the firewall, and connect with the user account. But it then terminated with: 501 Server cannot accept argument. Error: Failed to retrieve directory listing Error: Disconnected from server: ECONNABORTED - Connection aborted IS there anyone that can help me disseminate the problem here. Thanks - SJMP

All replies (6)

Thursday, June 9, 2011 2:32 PM âś…Answered

fixed it. As a second FTP site you have to specify the Data Connection range ~41k-65k and the external Firewall IP in IIS. Added that Port Range on the firewall for the ftp service and all is working.


Wednesday, June 8, 2011 8:33 PM

how did you get the error? when upload? have you grant sufficient permissions to that ftp user?


Thursday, June 9, 2011 12:06 AM

Please read our tutorial about FTP and hope it helps..


Thursday, June 9, 2011 8:26 AM

I would assume so. The user has permissions to read/write/execute/list folder... the only Deny is on Delete Folders or Items I am able to log in, just cannot "retrieve directory listing" - Error - this occurs wright after login. I never gets any further.


Thursday, June 9, 2011 8:31 AM

I looked at that tutorial before posting, thanks. I am pretty sure the issue has something to do with the fact that since this is the second FTP site on the server, (first one works fine) that when I used a different port - since default ftp was already in use - that this is the issue. I ran Netstat and the new port for ftp2 is listening. I can connect, I can login, then it gives me the error. Seems like the server is replying via the standard ftp ports? Could that be the issue? I tested via HTTP, telnet, Filezilla and CoreFTP, same results for each one.


Thursday, June 9, 2011 1:39 PM

Are you connecting using Active or Passive mode? That error sounds like you have a firewall and the port is not opened on the firewall. Here are things you can try

1. Use passive mode to connect and see if that works.

2. If you have a firewall, can you bypass the firewall and see if that works? You can also check if ftp:localhost:<port> works. The firewall should not be coming into the picture with localhost.