Deployment via SFTP - Error 425 but it works with others FTP clients

By clicking on Tools/Deployment/Configuration I have created a "Remote Host" instance. I use FTPS, I checked passive mode. But I've got an error "425 Can't open data connection." in log (below). Note that the connection works with Filezilla. In the provider's forum, many users of WebStorm and PhpStorm have the same error. I am with Pycharm and it is the same. I have searched on the web, and two solutions are always given: check "passive mode" (done), and check "Always use LIST command" (I don't have this option in advanced section of remote host instance (I just have "Compatible with old version of listing children" and "instead of MLSD"; if I check each ones separatly, or two, It didn't work neither). Any idea? It seems a Pycharm (PhpStorm, WebStorm) problem (or a good user choice in configuration). Thanks a lot.

 

2019-09-06 15:43:40,714 [ 166409] DEBUG - t.connections.RemoteConnection - Opening connection to ftps://ftp.xxxxx.com:3200/ in @70421ab2
2019-09-06 15:43:40,718 [ 166413] DEBUG - t.config.sockets.SocketWrapper - Default socket connection to ftp.xxxx.com/xx.xxx.xx.xx:3200 10000
2019-09-06 15:43:40,883 [ 166578] DEBUG - ains.plugins.webDeployment.ftp - 220 Service ready for new user.
2019-09-06 15:43:40,883 [ 166578] DEBUG - ains.plugins.webDeployment.ftp - AUTH TLS
2019-09-06 15:43:40,966 [ 166661] DEBUG - ains.plugins.webDeployment.ftp - 234 Command AUTH okay; starting TLS connection.
2019-09-06 15:43:41,281 [ 166976] DEBUG - ains.plugins.webDeployment.ftp - USER xxxxx@xxxxx.xxx 
2019-09-06 15:43:41,363 [ 167058] DEBUG - ains.plugins.webDeployment.ftp - 331 User name okay, need password for xxxxx@xxxxx.xxx.
2019-09-06 15:43:41,363 [ 167058] DEBUG - ains.plugins.webDeployment.ftp - PASS ***
2019-09-06 15:43:41,504 [ 167199] DEBUG - ains.plugins.webDeployment.ftp - 230 User logged in, proceed.
2019-09-06 15:43:41,505 [ 167200] DEBUG - ains.plugins.webDeployment.ftp - TYPE I
2019-09-06 15:43:41,587 [ 167282] DEBUG - ains.plugins.webDeployment.ftp - 200 Command TYPE okay.
2019-09-06 15:43:41,587 [ 167282] DEBUG - ains.plugins.webDeployment.ftp - PBSZ 0
2019-09-06 15:43:41,670 [ 167365] DEBUG - ains.plugins.webDeployment.ftp - 200 Command PBSZ okay.
2019-09-06 15:43:41,671 [ 167366] DEBUG - ains.plugins.webDeployment.ftp - PROT P
2019-09-06 15:43:41,753 [ 167448] DEBUG - ains.plugins.webDeployment.ftp - 200 Command PROT okay.
2019-09-06 15:43:41,754 [ 167449] DEBUG - ains.plugins.webDeployment.ftp - FEAT
2019-09-06 15:43:41,837 [ 167532] DEBUG - ains.plugins.webDeployment.ftp - 211-Extensions supported
SIZE
MDTM
REST STREAM
LANG en;zh-tw;ja;is
MLST Size;Modify;Type;Perm
AUTH SSL
AUTH TLS
MODE Z
UTF8
TVFS
MD5
MMD5
MFMT
211 End
2019-09-06 15:43:41,838 [ 167533] DEBUG - ains.plugins.webDeployment.ftp - SYST
2019-09-06 15:43:41,920 [ 167615] DEBUG - ains.plugins.webDeployment.ftp - 215 UNIX Type: Apache FtpServer
2019-09-06 15:43:41,921 [ 167616] DEBUG - ains.plugins.webDeployment.ftp - PASV
2019-09-06 15:43:42,008 [ 167703] DEBUG - ains.plugins.webDeployment.ftp - 227 Entering Passive Mode (xx,xxx,xx,0,12,223)
2019-09-06 15:43:42,008 [ 167703] DEBUG - t.config.sockets.SocketWrapper - Default socket connection to /xx.xxx.xx.0:3295 10000
2019-09-06 15:43:42,091 [ 167786] DEBUG - ains.plugins.webDeployment.ftp - LIST
2019-09-06 15:43:42,177 [ 167872] DEBUG - ains.plugins.webDeployment.ftp - 150 File status okay; about to open data connection.
2019-09-06 15:43:42,177 [ 167872] DEBUG - ains.plugins.webDeployment.ftp - QUIT
2019-09-06 15:43:42,265 [ 167960] DEBUG - ains.plugins.webDeployment.ftp - 425 Can't open data connection.
2019-09-06 15:43:42,265 [ 167960] DEBUG - t.config.sockets.SocketWrapper - Default socket connection to ftp.xxxx.com/xx.xxx.xx.xx:3200 10000
2019-09-06 15:43:42,431 [ 168126] DEBUG - ains.plugins.webDeployment.ftp - 220 Service ready for new user.
2019-09-06 15:43:42,431 [ 168126] DEBUG - ains.plugins.webDeployment.ftp - AUTH TLS
2019-09-06 15:43:42,514 [ 168209] DEBUG - ains.plugins.webDeployment.ftp - 234 Command AUTH okay; starting TLS connection.
2019-09-06 15:43:42,815 [ 168510] DEBUG - ains.plugins.webDeployment.ftp - USER xxxxx@xxxxx.xxx 
2019-09-06 15:43:42,899 [ 168594] DEBUG - ains.plugins.webDeployment.ftp - 331 User name okay, need password for xxxxx@xxxxx.xxx.
2019-09-06 15:43:42,899 [ 168594] DEBUG - ains.plugins.webDeployment.ftp - PASS ***
2019-09-06 15:43:43,045 [ 168740] DEBUG - ains.plugins.webDeployment.ftp - 230 User logged in, proceed.
2019-09-06 15:43:43,046 [ 168741] DEBUG - ains.plugins.webDeployment.ftp - TYPE I
2019-09-06 15:43:43,130 [ 168825] DEBUG - ains.plugins.webDeployment.ftp - 200 Command TYPE okay.
2019-09-06 15:43:43,130 [ 168825] DEBUG - ains.plugins.webDeployment.ftp - PBSZ 0
2019-09-06 15:43:43,213 [ 168908] DEBUG - ains.plugins.webDeployment.ftp - 200 Command PBSZ okay.
2019-09-06 15:43:43,214 [ 168909] DEBUG - ains.plugins.webDeployment.ftp - PROT P
2019-09-06 15:43:43,297 [ 168992] DEBUG - ains.plugins.webDeployment.ftp - 200 Command PROT okay.
2019-09-06 15:43:43,298 [ 168993] DEBUG - ains.plugins.webDeployment.ftp - FEAT
2019-09-06 15:43:43,381 [ 169076] DEBUG - ains.plugins.webDeployment.ftp - 211-Extensions supported
SIZE
MDTM
REST STREAM
LANG en;zh-tw;ja;is
MLST Size;Modify;Type;Perm
AUTH SSL
AUTH TLS
MODE Z
UTF8
TVFS
MD5
MMD5
MFMT
211 End
2019-09-06 15:43:43,382 [ 169077] DEBUG - ains.plugins.webDeployment.ftp - SYST
2019-09-06 15:43:43,465 [ 169160] DEBUG - ains.plugins.webDeployment.ftp - 215 UNIX Type: Apache FtpServer
2019-09-06 15:43:43,468 [ 169163] DEBUG - ains.plugins.webDeployment.ftp - PASV
2019-09-06 15:43:43,554 [ 169249] DEBUG - ains.plugins.webDeployment.ftp - 227 Entering Passive Mode (xx,xxx,xx,xxx,12,204)
2019-09-06 15:43:43,555 [ 169250] DEBUG - t.config.sockets.SocketWrapper - Default socket connection to /xx.xxx.xx.xxx:3276 10000
2019-09-06 15:43:43,639 [ 169334] DEBUG - ains.plugins.webDeployment.ftp - LIST
2019-09-06 15:43:43,722 [ 169417] DEBUG - ains.plugins.webDeployment.ftp - 150 File status okay; about to open data connection.
2019-09-06 15:43:43,723 [ 169418] WARN - t.connections.RemoteConnection - Retrying connecting to ftps://ftp.xxxxx.com:3200/ in @70421ab2: 1 iterations
org.apache.commons.vfs2.FileSystemException: Could not list the contents of folder "ftps://ftp.xxxx.com:3200/".
at org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:1122)
at org.apache.commons.vfs2.provider.ftp.FtpFileObject.getChildren(FtpFileObject.java:445)
at org.apache.commons.vfs2.provider.AbstractFileObject.getChild(AbstractFileObject.java:1044)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.lambda$createConnection$0(RemoteConnectionPool.java:260)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:294)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.io.IOException: Host attempting data connection xx.xxx.xx.xxx is not same as server xx.xxx.xx.xx
at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:938)
at org.apache.commons.net.ftp.FTPSClient._openDataConnection_(FTPSClient.java:627)
at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:785)
at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:3409)
at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:3339)
at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:3016)
at org.apache.commons.vfs2.provider.ftp.FtpJBHelper.listFiles(FtpJBHelper.java:68)
at org.apache.commons.vfs2.provider.ftp.FTPClientWrapper.listFilesInDirectory(FTPClientWrapper.java:170)
at org.apache.commons.vfs2.provider.ftp.FTPClientWrapper.listFiles(FTPClientWrapper.java:152)
at org.apache.commons.vfs2.provider.ftp.FtpFileObject.doGetChildren(FtpFileObject.java:135)
at org.apache.commons.vfs2.provider.ftp.FtpFileObject.doListChildren(FtpFileObject.java:461)
at org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:1113)
... 9 more
2019-09-06 15:43:43,729 [ 169424] DEBUG - ains.plugins.webDeployment.ftp - QUIT
2019-09-06 15:43:43,806 [ 169501] DEBUG - ains.plugins.webDeployment.ftp - 425 Can't open data connection.
2019-09-06 15:43:43,847 [ 169542] WARN - loyment.ui.WebServerConfigForm - Could not list the contents of folder "ftps://ftp.xxxxx.com:3200/".
org.apache.commons.vfs2.FileSystemException: Could not list the contents of folder "ftps://ftp.xxxxx.com:3200/".
at org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:1122)
at org.apache.commons.vfs2.provider.ftp.FtpFileObject.getChildren(FtpFileObject.java:445)
at org.apache.commons.vfs2.provider.AbstractFileObject.getChild(AbstractFileObject.java:1044)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.lambda$createConnection$0(RemoteConnectionPool.java:260)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:294)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.io.IOException: Host attempting data connection xx.xxx.xx.xxx is not same as server xx.xxx.xx.xx
at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:938)
at org.apache.commons.net.ftp.FTPSClient._openDataConnection_(FTPSClient.java:627)
at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:785)
at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:3409)
at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:3339)
at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:3016)
at org.apache.commons.vfs2.provider.ftp.FtpJBHelper.listFiles(FtpJBHelper.java:68)
at org.apache.commons.vfs2.provider.ftp.FTPClientWrapper.listFilesInDirectory(FTPClientWrapper.java:170)
at org.apache.commons.vfs2.provider.ftp.FTPClientWrapper.listFiles(FTPClientWrapper.java:152)
at org.apache.commons.vfs2.provider.ftp.FtpFileObject.doGetChildren(FtpFileObject.java:135)
at org.apache.commons.vfs2.provider.ftp.FtpFileObject.doListChildren(FtpFileObject.java:461)
at org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:1113)
... 9 more
2019-09-06 15:43:46,374 [ 172069] WARN - t.connections.RemoteConnection - Forced closing file system of ftps://ftp.xxxxx.com:3200/ in @70421ab2
2019-09-06 15:43:46,377 [ 172072] DEBUG - t.connections.RemoteConnection - File system of ftps://ftp.xxxxx.com:3200/ in @70421ab2 is closed.```

Please sign in to leave a comment.