[Solved] 425 Can't open data connection. & freeze ftp.exe

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Locked
Message
Author
Reizod
504 Command not implemented
Posts: 6
Joined: 2019-01-03 19:04
First name: Reizod
Last name: APPASOULAK

[Solved] 425 Can't open data connection. & freeze ftp.exe

#1 Post by Reizod » 2019-01-03 20:58

Hi everyone, I have a problem with FileZilla or FTP (ftp.exe from Windows).

Sometime, the ftp freeze, because a transfer stop due to the error : "425 Can't open data connection.", but this error doesn't always happens, so I guess my firewalls are good. my NAT are open and the server work perfectly.
Just, it happens, the "425 Can't open data connection." who freeze my ftp.
Here a log, I hope it will help you to understand what is my problem.
(169257) 03/01/2019 19:31:38 - (not logged in) (192.168.1.1)> Connected, sending welcome message...
(169257) 03/01/2019 19:31:38 - (not logged in) (192.168.1.1)> 220 Bienvenue sur le serveur de l'EXIA.
(169257) 03/01/2019 19:31:38 - (not logged in) (192.168.1.1)> OPTS UTF8 ON
(169257) 03/01/2019 19:31:38 - (not logged in) (192.168.1.1)> 530 Please log in with USER and PASS first.
(169257) 03/01/2019 19:31:38 - (not logged in) (192.168.1.1)> USER megaetchat
(169257) 03/01/2019 19:31:38 - (not logged in) (192.168.1.1)> 331 Password required for megaetchat
(169257) 03/01/2019 19:31:38 - (not logged in) (192.168.1.1)> PASS ***********
(169257) 03/01/2019 19:31:38 - megaetchat (192.168.1.1)> 230 Logged on
(169257) 03/01/2019 19:31:38 - megaetchat (192.168.1.1)> PORT 192,168,1,1,195,121
(169257) 03/01/2019 19:31:38 - megaetchat (192.168.1.1)> 200 Port command successful
(169257) 03/01/2019 19:31:38 - megaetchat (192.168.1.1)> RETR VarDiscussions/Salon1/wait2825928862695.exia
(169257) 03/01/2019 19:31:38 - megaetchat (192.168.1.1)> 150 Opening data channel for file transfer.
(169258) 03/01/2019 19:31:38 - (not logged in) (192.168.1.1)> Connected, sending welcome message...
(169258) 03/01/2019 19:31:38 - (not logged in) (192.168.1.1)> 220 Bienvenue sur le serveur de l'EXIA.
(169258) 03/01/2019 19:31:38 - (not logged in) (192.168.1.1)> USER appliget
(169258) 03/01/2019 19:31:38 - (not logged in) (192.168.1.1)> 331 Password required for appliget
(169258) 03/01/2019 19:31:38 - (not logged in) (192.168.1.1)> PASS ***********
(169258) 03/01/2019 19:31:38 - appliget (192.168.1.1)> 230 Logged on
(169258) 03/01/2019 19:31:38 - appliget (192.168.1.1)> PORT 192,168,1,1,195,229
(169258) 03/01/2019 19:31:38 - appliget (192.168.1.1)> 200 Port command successful
(169258) 03/01/2019 19:31:38 - appliget (192.168.1.1)> RETR Applis/csend.exe
(169258) 03/01/2019 19:31:38 - appliget (192.168.1.1)> 150 Opening data channel for file transfer.
(169257) 03/01/2019 19:31:38 - megaetchat (192.168.1.1)> 226 Transfer OK
(169258) 03/01/2019 19:31:38 - appliget (192.168.1.1)> 226 Transfer OK
(169257) 03/01/2019 19:31:38 - megaetchat (192.168.1.1)> QUIT
(169257) 03/01/2019 19:31:38 - megaetchat (192.168.1.1)> 221 Goodbye
(169257) 03/01/2019 19:31:38 - megaetchat (192.168.1.1)> disconnected.
(169258) 03/01/2019 19:31:38 - appliget (192.168.1.1)> QUIT
(169258) 03/01/2019 19:31:38 - appliget (192.168.1.1)> 221 Goodbye
(169258) 03/01/2019 19:31:38 - appliget (192.168.1.1)> disconnected.
(169259) 03/01/2019 19:31:38 - (not logged in) (192.168.1.1)> Connected, sending welcome message...
(169259) 03/01/2019 19:31:38 - (not logged in) (192.168.1.1)> 220 Bienvenue sur le serveur de l'EXIA.
(169259) 03/01/2019 19:31:38 - (not logged in) (192.168.1.1)> USER appliget
(169259) 03/01/2019 19:31:38 - (not logged in) (192.168.1.1)> 331 Password required for appliget
(169259) 03/01/2019 19:31:38 - (not logged in) (192.168.1.1)> PASS ***********
(169259) 03/01/2019 19:31:38 - appliget (192.168.1.1)> 230 Logged on
(169259) 03/01/2019 19:31:38 - appliget (192.168.1.1)> PORT 192,168,1,1,195,231
(169259) 03/01/2019 19:31:38 - appliget (192.168.1.1)> 200 Port command successful
(169259) 03/01/2019 19:31:38 - appliget (192.168.1.1)> RETR Applis/unzip.exe
(169259) 03/01/2019 19:31:38 - appliget (192.168.1.1)> 150 Opening data channel for file transfer.
(169259) 03/01/2019 19:31:39 - appliget (192.168.1.1)> 226 Transfer OK
(169259) 03/01/2019 19:31:39 - appliget (192.168.1.1)> QUIT
(169259) 03/01/2019 19:31:39 - appliget (192.168.1.1)> 221 Goodbye
(169259) 03/01/2019 19:31:39 - appliget (192.168.1.1)> disconnected.
(169260) 03/01/2019 19:31:39 - (not logged in) (192.168.1.1)> Connected, sending welcome message...
(169260) 03/01/2019 19:31:39 - (not logged in) (192.168.1.1)> 220 Bienvenue sur le serveur de l'EXIA.
(169260) 03/01/2019 19:31:39 - (not logged in) (192.168.1.1)> OPTS UTF8 ON
(169260) 03/01/2019 19:31:39 - (not logged in) (192.168.1.1)> 530 Please log in with USER and PASS first.
(169260) 03/01/2019 19:31:39 - (not logged in) (192.168.1.1)> USER megaetchat
(169260) 03/01/2019 19:31:39 - (not logged in) (192.168.1.1)> 331 Password required for megaetchat
(169261) 03/01/2019 19:31:39 - (not logged in) (192.168.1.1)> Connected, sending welcome message...
(169261) 03/01/2019 19:31:39 - (not logged in) (192.168.1.1)> 220 Bienvenue sur le serveur de l'EXIA.
(169260) 03/01/2019 19:31:39 - (not logged in) (192.168.1.1)> PASS ***********
(169260) 03/01/2019 19:31:39 - megaetchat (192.168.1.1)> 230 Logged on
(169261) 03/01/2019 19:31:39 - (not logged in) (192.168.1.1)> USER appliget
(169261) 03/01/2019 19:31:39 - (not logged in) (192.168.1.1)> 331 Password required for appliget
(169261) 03/01/2019 19:31:39 - (not logged in) (192.168.1.1)> PASS ***********
(169261) 03/01/2019 19:31:39 - appliget (192.168.1.1)> 230 Logged on
(169261) 03/01/2019 19:31:39 - appliget (192.168.1.1)> PORT 192,168,1,1,195,233
(169261) 03/01/2019 19:31:39 - appliget (192.168.1.1)> 200 Port command successful
(169261) 03/01/2019 19:31:39 - appliget (192.168.1.1)> RETR Applis/zip.exe
(169261) 03/01/2019 19:31:39 - appliget (192.168.1.1)> 150 Opening data channel for file transfer.
(169260) 03/01/2019 19:31:39 - megaetchat (192.168.1.1)> PORT 192,168,1,1,195,123
(169260) 03/01/2019 19:31:39 - megaetchat (192.168.1.1)> 200 Port command successful
(169260) 03/01/2019 19:31:39 - megaetchat (192.168.1.1)> RETR VarDiscussions/Salon1/wait2825928862695.exia
(169260) 03/01/2019 19:31:39 - megaetchat (192.168.1.1)> 150 Opening data channel for file transfer.
(169260) 03/01/2019 19:31:39 - megaetchat (192.168.1.1)> 226 Transfer OK
(169260) 03/01/2019 19:31:39 - megaetchat (192.168.1.1)> QUIT
(169260) 03/01/2019 19:31:39 - megaetchat (192.168.1.1)> 221 Goodbye
(169260) 03/01/2019 19:31:39 - megaetchat (192.168.1.1)> disconnected.
(169261) 03/01/2019 19:31:39 - appliget (192.168.1.1)> 226 Transfer OK
(169261) 03/01/2019 19:31:39 - appliget (192.168.1.1)> QUIT
(169261) 03/01/2019 19:31:39 - appliget (192.168.1.1)> 221 Goodbye
(169261) 03/01/2019 19:31:39 - appliget (192.168.1.1)> disconnected.
(169262) 03/01/2019 19:31:39 - (not logged in) (192.168.1.1)> Connected, sending welcome message...
(169262) 03/01/2019 19:31:39 - (not logged in) (192.168.1.1)> 220 Bienvenue sur le serveur de l'EXIA.
(169262) 03/01/2019 19:31:39 - (not logged in) (192.168.1.1)> OPTS UTF8 ON
(169262) 03/01/2019 19:31:39 - (not logged in) (192.168.1.1)> 530 Please log in with USER and PASS first.
(169262) 03/01/2019 19:31:39 - (not logged in) (192.168.1.1)> USER megaetchat
(169262) 03/01/2019 19:31:39 - (not logged in) (192.168.1.1)> 331 Password required for megaetchat
(169262) 03/01/2019 19:31:39 - (not logged in) (192.168.1.1)> PASS ***********
(169262) 03/01/2019 19:31:39 - megaetchat (192.168.1.1)> 230 Logged on
(169262) 03/01/2019 19:31:39 - megaetchat (192.168.1.1)> PORT 192,168,1,1,195,125
(169262) 03/01/2019 19:31:39 - megaetchat (192.168.1.1)> 200 Port command successful
(169262) 03/01/2019 19:31:39 - megaetchat (192.168.1.1)> RETR VarDiscussions/Salon1/wait2825928862695.exia
(169262) 03/01/2019 19:31:39 - megaetchat (192.168.1.1)> 150 Opening data channel for file transfer.
(169262) 03/01/2019 19:31:39 - megaetchat (192.168.1.1)> 425 Can't open data connection.
Then, it freeze the ftp who getting files, all transfers are from the same ftp on the same computer. How can it got an 425 error sometimes and not always ? The firewall doesn't changed at all.

Thx for reply & for helping me.
If you need more details, ask me please.
- Reizod
Last edited by Reizod on 2019-01-05 12:10, edited 1 time in total.

User avatar
boco
Contributor
Posts: 24423
Joined: 2006-05-01 03:28
Location: Germany

Re: 425 Can't open data connection. & freeze ftp

#2 Post by boco » 2019-01-03 22:39

According to the log, the client uses Active mode. Your server configuration (data ports etc.) isn't even used in this scenario, as the server is configured for Passive mode only.

In other words, the problem is at the client side. Note that the ftp.exe from Windows is a relic - it does support neither Passive mode nor any operation behind NAT. SOL with this one.

I'd love to see a log from FileZilla connecting.
### 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.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

Reizod
504 Command not implemented
Posts: 6
Joined: 2019-01-03 19:04
First name: Reizod
Last name: APPASOULAK

Re: 425 Can't open data connection. & freeze ftp

#3 Post by Reizod » 2019-01-04 00:15

Hi, sorry I wasn't sure for which forum was for my request.

For the log (what ftp show) he froze & wait for getting the file.
From the side of filezilla, there are a 425 error, there are nothing in the ftp, just "200 Port command successful".

But it doesn't always happen, how this system work seriously ? Do using Winscp instead will patch this issue ?
I have to deploy my program with ftp inside, if the program freeze on some computers, it will be really bad, I have to solve this freeze bug, but I doesn't understand where it came from.

Thx you for your time.

User avatar
botg
Site Admin
Posts: 32055
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: 425 Can't open data connection. & freeze ftp

#4 Post by botg » 2019-01-04 07:46

Independent of the used FTP software, for passive mode FTP the server and its firewalls and NAT routers need to configured correctly. Simiarly, for active mode FTP the client and its firewalls and NAT routers need to configured correctly. This is all explained in our Network Configuration guide.

Reizod
504 Command not implemented
Posts: 6
Joined: 2019-01-03 19:04
First name: Reizod
Last name: APPASOULAK

Re: 425 Can't open data connection. & freeze ftp

#5 Post by Reizod » 2019-01-05 01:28

My server is configured for passive mode, but sometime, the passive mode doesn't work in the ftp and he freeze (with the 425 error), nothing change at all, why this error occurs ?

User avatar
boco
Contributor
Posts: 24423
Joined: 2006-05-01 03:28
Location: Germany

Re: 425 Can't open data connection. & freeze ftp

#6 Post by boco » 2019-01-05 02:50

There are multiple reasons why a target port might be unavailable. Could be blocked, occupied by another service, or in "cool down" (WAIT_CLOSE) state. In other words, occasional transfer failures are not uncommon, even with correctly configured servers.

It should not freeze for long, however, unless you set your connection timeouts to 0 (blocking) or way too high up.
### 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.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

Reizod
504 Command not implemented
Posts: 6
Joined: 2019-01-03 19:04
First name: Reizod
Last name: APPASOULAK

Re: 425 Can't open data connection. & freeze ftp

#7 Post by Reizod » 2019-01-05 04:03

I'm using ftp (ftp.exe from windows) this application freeze with the unexcepted 425 error. I changed all my ftp into WinSCP and it's seem good, no freeze for now.
Before considering this problem solve I prefer wait a little more to see if it occurs again.

I don't know why, but ftp.exe froze when there are a 425 error, and it breaks my programs ('cause ftp.exe is froze).

But thank you for helping me ! I don't have a very nice english and I'm not experimented in ftp, server (passive/active) etc. I'm a batch/vbs programer, but I'm understanding a little.

User avatar
boco
Contributor
Posts: 24423
Joined: 2006-05-01 03:28
Location: Germany

Re: 425 Can't open data connection. & freeze ftp

#8 Post by boco » 2019-01-05 05:37

Please allow me to be blunt: ftp.exe from Windows is crap. It stopped development in the Windows 95 era. Behind properly configured NAT it is completely unusable these days.

1. It doesn't support Passive mode.
2. It doesn't support FTP over TLS at all.
3. It doesn't support any configuration (IP, ports).

Always use a better client (like lftp).
### 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.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

Reizod
504 Command not implemented
Posts: 6
Joined: 2019-01-03 19:04
First name: Reizod
Last name: APPASOULAK

Re: 425 Can't open data connection. & freeze ftp

#9 Post by Reizod » 2019-01-05 12:10

IKR, I already saw people saying that ftp.exe is bullsh#t.
I think it's okay, all my 10 computers doesn't got frozen 'cause of WinSCP.
So if I have some bugs with WinSCP, I will make another topic, for an another problem (I guess).
Can be closed, solved by replaced ftp.exe with WinSCP.

Thank you, this forum is active ! :D

User avatar
boco
Contributor
Posts: 24423
Joined: 2006-05-01 03:28
Location: Germany

Re: [Solved] 425 Can't open data connection. & freeze ftp.exe

#10 Post by boco » 2019-01-06 06:42

Closed on request of OP.

:done:
### 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.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

Locked