FTPS will connect but not list files "425 Unable to build data connection"

I can connect fine in FileZilla but not phpStorm. I see two errors in the log:

425 Unable to build data connection: Operation not permitted
450 LIST: Operation not permitted

I have tried checking "Resuse SSL connection" to no avail.

Log:

2019-07-02 10:17:20,693 [ 84] INFO - #com.intellij.idea.Main - IDE: PhpStorm (build #PS-191.7479.51, 18 Jun 2019 12:36)
2019-07-02 10:17:20,693 [ 84] INFO - #com.intellij.idea.Main - OS: Windows 10 (10.0, amd64)
2019-07-02 10:17:20,694 [ 85] INFO - #com.intellij.idea.Main - JRE: 1.8.0_202-release-1483-b53 (JetBrains s.r.o)

----

2019-07-02 10:34:41,591 [1040982] DEBUG - t.connections.RemoteConnection - Releasing one of the connections to ftps://ftp1.reg365.net:21/ in @52d32e57; connections left 0
2019-07-02 10:34:41,703 [1041094] DEBUG - t.connections.RemoteConnection - Opening connection to ftps://ftp1.reg365.net:21/ in @52d32e57
2019-07-02 10:34:41,703 [1041094] DEBUG - t.connections.RemoteConnection - Added connection to pool offtps://ftp1.reg365.net:21/ in @52d32e57; 1 connections exists
2019-07-02 10:35:07,986 [1067377] DEBUG - t.connections.RemoteConnection - Opening connection to ftps://ftp1.reg365.net:21/ in @7b65d539
2019-07-02 10:35:08,040 [1067431] DEBUG - t.config.sockets.SocketWrapper - Default socket connection to ftp1.reg365.net/85.233.160.65:21 10000
2019-07-02 10:35:08,133 [1067524] DEBUG - ains.plugins.webDeployment.ftp - 220-********************************************************************************
Unauthorised access is not permitted.

Please read:
https://www.names.co.uk/support/hosting/1160-how_to_implement_ftp_security.html
for details on how to access your FTP account securely.

********************************************************************************
This is a private system - No anonymous login
220 Register365 FTP Server Ready
2019-07-02 10:35:08,133 [1067524] DEBUG - ains.plugins.webDeployment.ftp - AUTH TLS
2019-07-02 10:35:08,175 [1067566] DEBUG - ains.plugins.webDeployment.ftp - 234 AUTH TLS successful
2019-07-02 10:35:08,400 [1067791] DEBUG - ains.plugins.webDeployment.ftp - USER <redacted>
2019-07-02 10:35:08,454 [1067845] DEBUG - ains.plugins.webDeployment.ftp - 331 Password required for <redacted>
2019-07-02 10:35:08,454 [1067845] DEBUG - ains.plugins.webDeployment.ftp - PASS ***
2019-07-02 10:35:08,539 [1067930] DEBUG - ains.plugins.webDeployment.ftp - 230 User <redacted> logged in
2019-07-02 10:35:08,539 [1067930] DEBUG - ains.plugins.webDeployment.ftp - TYPE I
2019-07-02 10:35:08,644 [1068035] DEBUG - ains.plugins.webDeployment.ftp - 200 Type set to I
2019-07-02 10:35:08,645 [1068036] DEBUG - ains.plugins.webDeployment.ftp - PBSZ 0
2019-07-02 10:35:08,686 [1068077] DEBUG - ains.plugins.webDeployment.ftp - 200 PBSZ 0 successful
2019-07-02 10:35:08,687 [1068078] DEBUG - ains.plugins.webDeployment.ftp - PROT P
2019-07-02 10:35:08,728 [1068119] DEBUG - ains.plugins.webDeployment.ftp - 200 Protection set to Private
2019-07-02 10:35:08,729 [1068120] DEBUG - ains.plugins.webDeployment.ftp - FEAT
2019-07-02 10:35:08,813 [1068204] DEBUG - ains.plugins.webDeployment.ftp - 211-Features:
AUTH TLS
CCC
CLNT
EPRT
EPSV
HASH CRC32;MD5;SHA-1*;SHA-256;SHA-512;
HOST
LANG en-US;bg-BG;fr-FR;zh-TW;zh-CN;ru-RU;ja-JP;ko-KR;it-IT;es-ES
MD5
MDTM
MFF modify;UNIX.group;UNIX.mode;
MFMT
MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.groupname*;UNIX.mode*;UNIX.owner*;UNIX.ownername*;
MODE Z
PBSZ
PROT
REST STREAM
SITE MKDIR
SITE RMDIR
SITE SYMLINK
SITE UTIME
SIZE
SSCN
TVFS
UTF8
XCRC
XMD5
XSHA
XSHA1
XSHA256
XSHA512
211 End
2019-07-02 10:35:08,813 [1068204] DEBUG - ains.plugins.webDeployment.ftp - SYST
2019-07-02 10:35:08,852 [1068243] DEBUG - ains.plugins.webDeployment.ftp - 215 UNIX Type: L8
2019-07-02 10:35:08,853 [1068244] DEBUG - ains.plugins.webDeployment.ftp - PASV
2019-07-02 10:35:08,894 [1068285] DEBUG - ains.plugins.webDeployment.ftp - 227 Entering Passive Mode (85,233,160,65,102,186).
2019-07-02 10:35:08,895 [1068286] DEBUG - t.config.sockets.SocketWrapper - Default socket connection to /85.233.160.65:26298 10000
2019-07-02 10:35:08,937 [1068328] DEBUG - ains.plugins.webDeployment.ftp - LIST
2019-07-02 10:35:08,978 [1068369] DEBUG - ains.plugins.webDeployment.ftp - 150 Opening BINARY mode data connection for file list
2019-07-02 10:35:09,168 [1068559] DEBUG - ins.plugins.webDeployment.ftps -
2019-07-02 10:35:09,169 [1068560] DEBUG - ains.plugins.webDeployment.ftp - 425 Unable to build data connection: Operation not permitted
2019-07-02 10:35:09,169 [1068560] DEBUG - ains.plugins.webDeployment.ftp - PASV
2019-07-02 10:35:09,169 [1068560] DEBUG - ains.plugins.webDeployment.ftp - 450 LIST: Operation not permitted
2019-07-02 10:35:09,169 [1068560] DEBUG - t.connections.RemoteConnection - Added connection to pool offtps://ftp1.reg365.net:21/ in @7b65d539; 1 connections exists
2019-07-02 10:35:09,172 [1068563] DEBUG - ains.plugins.webDeployment.ftp - PWD
2019-07-02 10:35:09,208 [1068599] DEBUG - ains.plugins.webDeployment.ftp - 227 Entering Passive Mode (85,233,160,65,71,168).
2019-07-02 10:35:09,209 [1068600] DEBUG - t.connections.RemoteConnection - Releasing one of the connections to ftps://ftp1.reg365.net:21/ in @7b65d539; connections left 0

3 comments
Comment actions Permalink

I resolved this issue by setting "Data channel protection level" to "Clear".

Thought I'd post this anyway in case someone else has this issue.

2
Comment actions Permalink

I don't know if this is a solution, this seems to cancel out FTPS and essentially put it back to FTP if I'm reading this page right https://www.jetbrains.com/help/idea/deployment-connection-tab.html#ftp-and-ftps-settings but it does allow me to upload which might help find the bug

0
Comment actions Permalink

This is quite an old thread; we don't get many similar complaints nowadays because the TLS support has been improved in recent JDK versions.
If you still experience the issue, please add #com.jetbrains.plugins.webDeployment to Help | Diagnostic Tools | Debug Log Settings, try to list the FTPS server again, and then share your logs (Help | Collect Logs and Diagnostic Data) in a support ticket (Help | Contact Support), we'll take a look at it. Thanks!

0

Please sign in to leave a comment.