SOLVED Filezilla can't connect to all FTP accounts

Shood

Well-Known Member
Aug 12, 2015
74
14
83
Middle East
cPanel Access Level
Root Administrator
Hello,
FileZilla was working fine before, I didn't used it within the last month
Now my users cannot connect to their FTP, FileZilla returns an error message:
Code:
The data connection could not be established: ECONNREFUSED - Connection refused by server
There are no changes happened on my server during the last months except cPanel updated to V72, is it possible that a some feature in the new version of cPanel caused this?
Thank you.

Here is full FileZilla error report:
Code:
Status:    Connecting to [Server_IP]:21...
Status:    Connection established, waiting for welcome message...
Status:    Initializing TLS...
Status:    Verifying certificate...
Status:    TLS connection established.
Status:    Logged in
Status:    Retrieving directory listing...
Command:    PWD
Response:    257 "/" is your current location
Command:    TYPE I
Response:    200 TYPE is now 8-bit binary
Command:    PASV
Response:    227 Entering Passive Mode (xxx_IP,75)
Command:    MLSD
Error:    The data connection could not be established: ECONNREFUSED - Connection refused by server
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Hello @Shood,

It looks like the passive ports for Pure-FTPd are not open on your system. Can you review the document linked below and verify passive mode is correctly configured on your system and the required ports are open?

How to Enable FTP Passive Mode - cPanel Knowledge Base - cPanel Documentation

Once we verify it's setup correctly, we can check to see if anything changes in version 72 that could have modified the previously configured settings.

Thank you.
 

Shood

Well-Known Member
Aug 12, 2015
74
14
83
Middle East
cPanel Access Level
Root Administrator
Hello @Michael
I did what's mentioned in the article, I added local file with ForcePassiveIP settings because wasn't exist and restarted the PureFTP service. Also ports are allowed in CSF.
Still unable to connect with the same error message.
Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Hello @Shood,

Can you open a support ticket so we can take a closer look at the affected system? You can post the ticket number here and I'll update this thread with the outcome.

Thank you.
 

Shood

Well-Known Member
Aug 12, 2015
74
14
83
Middle East
cPanel Access Level
Root Administrator
Hello @Micheal
This document you've provided is enough to resolve this issue but I've done a shameful mistake :oops: I named the file literally "local file" but it should be "local"
So I wasn't need to open a support ticket at all. I'm really sorry to waste your and support team time.

However, fixing steps are as below:
-----
Add this file: /var/cpanel/conf/pureftpd/local
Set the ForcePassiveIP option: ForcePassiveIP: 192.168.0.1
Restart the PureFTP service: /usr/local/cpanel/scripts/setupftpserver pure-ftpd --force
-----
That's all.
Thank you again and best regards.
 
  • Like
Reactions: cPanelMichael

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Hello @Shood,

I'm glad to see you were able to solve the issue. Thank you for sharing the outcome.
 
  • Like
Reactions: Shood

durangod

Well-Known Member
May 12, 2012
452
28
78
cPanel Access Level
Website Owner
@Shood

thanks for sharing the solution,

OK i got it working following that guide, just be sure folks that you add the port ranges to your csf like so 49152:65534 to your TCP-IN
 
Last edited:
  • Like
Reactions: Shood