FTPS connects but doesn't display any file lists

已回答

I was provided ftp credentials from a client, ftpes://ftp.company.com

I'm on a Mac, trying to connect using PhpStorm 2016.2.2. I was eventually able to connect using passive mode but the remote host window simply shows 'loading...', which then disappears and nothing. No errors or files displayed. Things work fine in FileZilla. There is an unknown certificate warning upon connecting in there but that's all.

Tried different advanced option combinations but the result is the same.

1

Hello,

Did you try to enable "Passive mode" in Advanced settings?

4

Yes. I was initially unable to connect at all until I tried passive mode. Once I tried that it did connect but did not list any files or folders.

0

Could you please restart IDE, retry a connection attempt and send us (upload anywhere) idea.log file (Help > Show log in ...)?

 

-1

As you requested, this is right after connecting, the loading... message disappears, then nothing.

2016-11-08 12:17:59,107 [      0]   INFO -        #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2016-11-08 12:17:59,186 [     79]   INFO -        #com.intellij.idea.Main - IDE: PhpStorm (build #PS-162.2380.11, 24 Oct 2016 00:00)
2016-11-08 12:17:59,187 [     80]   INFO -        #com.intellij.idea.Main - OS: Mac OS X (10.11.6, x86_64)
2016-11-08 12:17:59,187 [     80]   INFO -        #com.intellij.idea.Main - JRE: 1.8.0_112-release-287-b3 (JetBrains s.r.o)
2016-11-08 12:17:59,187 [     80]   INFO -        #com.intellij.idea.Main - JVM: 25.112-b3 (OpenJDK 64-Bit Server VM)
2016-11-08 12:17:59,196 [     89]   INFO -        #com.intellij.idea.Main - JVM Args: -Dfile.encoding=UTF-8 -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Xverify:none -XX:ErrorFile=/Users/michael/java_error_in_phpstorm_%p.log -XX:HeapDumpPath=/Users/michael/java_error_in_phpstorm.hprof -Xbootclasspath/a:../lib/boot.jar -Xms128m -Xmx750m -XX:ReservedCodeCacheSize=240m -XX:+UseCompressedOops -Djb.vmOptionsFile=/Applications/PhpStorm.app/Contents/bin/phpstorm.vmoptions -Didea.java.redist=jdk-bundled -Didea.home.path=/Applications/PhpStorm.app/Contents -Didea.executable=phpstorm -Didea.platform.prefix=PhpStorm -Didea.paths.selector=PhpStorm2016.2
2016-11-08 12:17:59,196 [     89]   INFO -        #com.intellij.idea.Main - ext: /Applications/PhpStorm.app/Contents/jre/jdk/Contents/Home/jre/lib/ext: [cldrdata.jar, dnsns.jar, jaccess.jar, jfxrt.jar, localedata.jar, meta-index, nashorn.jar, sunec.jar, sunjce_provider.jar, sunpkcs11.jar, zipfs.jar]
2016-11-08 12:17:59,196 [     89]   INFO -        #com.intellij.idea.Main - ext: /System/Library/Java/Extensions: [AppleScriptEngine.jar, dns_sd.jar, j3daudio.jar, j3dcore.jar, j3dutils.jar, jai_codec.jar, jai_core.jar, libAppleScriptEngine.jnilib, libJ3D.jnilib, libJ3DAudio.jnilib, libJ3DUtils.jnilib, libmlib_jai.jnilib, mlibwrapper_jai.jar, MRJToolkit.jar, vecmath.jar]
2016-11-08 12:17:59,196 [     89]   INFO -        #com.intellij.idea.Main - ext: /usr/lib/java: [libjdns_sd.jnilib]
2016-11-08 12:17:59,196 [     89]   INFO -        #com.intellij.idea.Main - JNU charset: UTF-8
2016-11-08 12:17:59,251 [    144]   INFO -        #com.intellij.idea.Main - JNA library loaded (64-bit) in 54 ms
2016-11-08 12:17:59,255 [    148]   INFO -        #com.intellij.idea.Main - initializing environment
2016-11-08 12:17:59,256 [    149]   INFO - .intellij.util.EnvironmentUtil - loading shell env: /bin/bash -l -i -c '/Applications/PhpStorm.app/Contents/bin/printenv.py' '/private/var/folders/6b/7n_v324d4db8w_jvtccpyty00000gn/T/intellij-shell-env.tmp'
2016-11-08 12:17:59,264 [    157]   INFO -     #com.intellij.util.ui.JBUI - UI scale factor: 1.0
2016-11-08 12:17:59,803 [    696]   INFO - .intellij.util.EnvironmentUtil - shell environment loaded (14 vars)
2016-11-08 12:17:59,804 [    697]   INFO - .intellij.util.EnvironmentUtil - LC_CTYPE=en_US.UTF-8
2016-11-08 12:18:02,681 [   3574]   INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor js-nashorn-support.xml
2016-11-08 12:18:02,804 [   3697]   INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor plugin-intelliLang.xml
2016-11-08 12:18:03,192 [   4085]   INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor uml-properties-support.xml
2016-11-08 12:18:03,193 [   4086]   INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor uml-java-support.xml
2016-11-08 12:18:03,522 [   4415]   INFO - llij.ide.plugins.PluginManager - Plugin 'Perforce Integration' can't be loaded because: Plugin is disabled
2016-11-08 12:18:03,540 [   4433]   INFO - llij.ide.plugins.PluginManager - Plugin 'Subversion Integration' can't be loaded because: Plugin is disabled
2016-11-08 12:18:03,541 [   4434]   INFO - llij.ide.plugins.PluginManager - Plugin 'File Watchers' can't be loaded because: Plugin is disabled
2016-11-08 12:18:03,542 [   4435]   INFO - llij.ide.plugins.PluginManager - Plugin 'hg4idea' can't be loaded because: Plugin is disabled
2016-11-08 12:18:03,543 [   4436]   INFO - llij.ide.plugins.PluginManager - Plugin 'Drupal Support' can't be loaded because: Plugin is disabled
2016-11-08 12:18:03,544 [   4437]   INFO - llij.ide.plugins.PluginManager - Plugin 'Google App Engine Support for PHP' can't be loaded because: Plugin is disabled
2016-11-08 12:18:03,545 [   4438]   INFO - llij.ide.plugins.PluginManager - Plugin 'WordPress Support' can't be loaded because: Plugin is disabled
2016-11-08 12:18:03,648 [   4541]   INFO - llij.ide.plugins.PluginManager - 57 plugins initialized in 1614 ms
2016-11-08 12:18:03,650 [   4543]   INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: ASP (0.1), AngularJS (162.2380.11), Apache config (.htaccess) support (162.2380.11), Behat Support (162.2380.11), Blade Support (162.2380.11), CSS Support (162.2380.11), CVS Integration (11), CoffeeScript (2.0), Command Line Tool Support (162.2380.11), Copyright (8.1), Database Tools and SQL (1.0), GNU GetText files support (*.po) (136.SNAPSHOT), Gherkin (999.999), Git Integration (8.1), GitHub (162.2380.11), HAML (162.2380.11), HTML Tools (2.0), IDEA CORE (162.2380.11), Ini4Idea (162.2380.11), IntelliLang (8.0), JavaScript Debugger (1.0), JavaScript Intention Power Pack (0.9.4), JavaScript Support (1.0), Joomla! Support (162.2380.11), LESS support (162.2380.11), Markdown support (VERSION), NodeJS (162.2380.11), PHP (162.2380.11), PHP Remote Interpreter (162.2380.11), Performance Testing (162.2380.11), Phing Support (162.2380.11), QuirksMode (162.2380.11), REST Client (162.2380.11), ReStructuredText Support (136.SNAPSHOT), Refactor-X (2.01), Remote Hosts Access (0.1), SASS support (162.2380.11), SSH Remote Run (0.1), Settings Repository (162.2380.11), Task Management (1.0), Terminal (0.1), TextMate bundles support (VERSION), Time Tracking (1.0), Twig Support (162.2380.11), UML Support (1.0), Vagrant (0.6.VERSION), W3C Validators (2.0), XPathView + XSLT Support (4), XSLT-Debugger (1.4), YAML (162.2380.11)
2016-11-08 12:18:03,650 [   4543]   INFO - llij.ide.plugins.PluginManager - Disabled plugins: Drupal Support (162.2380.11), File Watchers (162.2380.11), Google App Engine Support for PHP (162.2380.11), Perforce Integration (2.0), Subversion Integration (1.1), WordPress Support (162.2380.11), hg4idea (10.0)
2016-11-08 12:18:05,432 [   6325]   INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=705
2016-11-08 12:18:05,690 [   6583]   INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: /Applications/PhpStorm.app/Contents/bin/fsnotifier
2016-11-08 12:18:05,704 [   6597]   INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational.
2016-11-08 12:18:06,056 [   6949]   INFO - pi.util.registry.RegistryState - Registry values changed by user:
2016-11-08 12:18:06,056 [   6949]   INFO - pi.util.registry.RegistryState -   dumb.aware.run.configurations = true
2016-11-08 12:18:07,967 [   8860]   INFO - tellij.util.io.storage.Storage - Space waste in /Users/michael/Library/Caches/PhpStorm2016.2/LocalHistory/changes is 4571461 bytes. Compacting now.
2016-11-08 12:18:08,042 [   8935]   INFO - tellij.util.io.storage.Storage - Done compacting in 75msec.
2016-11-08 12:18:08,889 [   9782]   INFO - lij.diagnostic.DebugLogManager - Set DEBUG for the following categories:  
2016-11-08 12:18:11,759 [  12652]   INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342
2016-11-08 12:18:11,976 [  12869]   INFO - gs.impl.UpdateCheckerComponent - channel: release
2016-11-08 12:18:12,810 [  13703]   INFO - il.indexing.FileBasedIndexImpl - Index exts enumerated:386
2016-11-08 12:18:12,829 [  13722]   INFO - il.indexing.FileBasedIndexImpl - Index scheduled:18
2016-11-08 12:18:13,037 [  13930]   INFO - tellij.psi.stubs.StubIndexImpl - All stub exts enumerated:179
2016-11-08 12:18:13,037 [  13930]   INFO - tellij.psi.stubs.StubIndexImpl - stub exts update scheduled:0
2016-11-08 12:18:14,621 [  15514]   INFO - j.ide.script.IdeStartupScripts - 0 startup script(s) found
2016-11-08 12:18:16,508 [  17401]   INFO - plication.impl.ApplicationImpl - 81 application components initialized in 14475 ms
2016-11-08 12:18:16,690 [  17583]   INFO - .intellij.idea.IdeaApplication - App initialization took 18969 ms
2016-11-08 12:18:25,759 [  26652]   INFO - pl$FileIndexDataInitialization - Initialization done:12930
2016-11-08 12:18:32,739 [  33632]   INFO - ellij.project.impl.ProjectImpl - 18 project components initialized in 4219 ms
2016-11-08 12:18:32,739 [  33632]   INFO - le.impl.ModuleManagerComponent - 0 module(s) loaded in 0 ms
2016-11-08 12:18:34,881 [  35774]   INFO - exImpl$StubIndexInitialization - Initialization done:9122
2016-11-08 12:18:36,772 [  37665]   INFO - .openapi.application.Preloader - Finished preloading com.intellij.openapi.actionSystem.impl.ActionPreloader@107a7727
2016-11-08 12:18:38,300 [  39193]   INFO - .openapi.application.Preloader - Finished preloading com.intellij.ide.ui.search.SearchableOptionPreloader@7b8785a7
2016-11-08 12:18:38,464 [  39357]   INFO - ellij.project.impl.ProjectImpl - 110 project components initialized in 4688 ms
2016-11-08 12:18:38,577 [  39470]   INFO - le.impl.ModuleManagerComponent - 1 module(s) loaded in 112 ms
2016-11-08 12:18:39,463 [  40356]   INFO -              PerformancePlugin - Performance Plugin is in silent mode
2016-11-08 12:18:42,272 [  43165]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 2238ms; general responsiveness: ok; EDT responsiveness: 1/2 sluggish, 1/2 very slow
2016-11-08 12:18:42,943 [  43836]   WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: file.php
2016-11-08 12:18:43,605 [  44498]   INFO - tartup.impl.StartupManagerImpl - /Users/michael/projects/project/.idea case-sensitivity: expected=false actual=false
2016-11-08 12:18:44,199 [  45092]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 1925ms; general responsiveness: ok; EDT responsiveness: 1/1 sluggish
2016-11-08 12:18:46,232 [  47125]   INFO - tor.impl.FileEditorManagerImpl - Project opening took 12987 ms
2016-11-08 12:18:50,403 [  51296]   WARN -    #com.jetbrains.php.PhpIndex - Completing type '#Vwpdb' took 1194ms, visited:[#Vwpdb]
2016-11-08 12:18:52,557 [  53450]   WARN -    #com.jetbrains.php.PhpIndex - Completing type '#F\json_decode' took 1514ms, visited:[#F\json_decode]
2016-11-08 12:18:55,166 [  56059]   INFO - .script.IdeScriptEngineManager - javax.script.ScriptEngineManager initialized in 4 ms
2016-11-08 12:18:55,233 [  56126]   WARN - om.intellij.util.ProfilingUtil - Profiling agent is not enabled. Add -agentlib:yjpagent to idea.vmoptions if necessary to profile IDEA.
2016-11-08 12:19:03,811 [  64704]   INFO - s.webDeployment.PublishUtils$2 - Using "/var/folders/6b/7n_v324d4db8w_jvtccpyty00000gn/T/vfs_cache" as temporary files store.
 

0

Could you please enable extended deployment logging, reproduce the issue again and upload the log once again as a text file here?

Sorry for wasting your time.

0

No apology necessary. Thank you for the effort. The new log data has been uploaded (ftp-debug-11-9-16.txt).

0

Is your FPT server provider using ProFTPd?  If that's true they should add the following to proftpd.conf and restart ProFTPd:

TLSOptions NoSessionReuseRequired

1

Yes, they are using ProFTPd and your suggestion fixed things. Files and folders are now being displayed when connected.

Thanks very much!

0

Awesome! Thanks for the update.

1

I have the same issue on a Pure-FTPd server,

FTP is ok

FTPS is ok on cyberduck/filezilla, but no file shown after connection in IDEA

 

2017-06-17 00:42:45,751 [29144615] DEBUG - t.connections.RemoteConnection - Opening connection to ftps://REMOTEIP:21/ in @7cbb5f1a 
2017-06-17 00:42:45,855 [29144719] DEBUG - ains.plugins.webDeployment.ftp - 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 2 of 50 allowed.
220-Local time is now 00:42. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
2017-06-17 00:42:45,855 [29144719] DEBUG - ains.plugins.webDeployment.ftp - AUTH TLS
2017-06-17 00:42:45,906 [29144770] DEBUG - ains.plugins.webDeployment.ftp - 234 AUTH TLS OK.
2017-06-17 00:42:46,177 [29145041] DEBUG - ains.plugins.webDeployment.ftp - USER user
2017-06-17 00:42:46,228 [29145092] DEBUG - ains.plugins.webDeployment.ftp - 331 User user OK. Password required
2017-06-17 00:42:46,228 [29145092] DEBUG - ains.plugins.webDeployment.ftp - PASS ***
2017-06-17 00:42:46,285 [29145149] DEBUG - ains.plugins.webDeployment.ftp - 230 OK. Current restricted directory is /
2017-06-17 00:42:46,285 [29145149] DEBUG - ains.plugins.webDeployment.ftp - TYPE I
2017-06-17 00:42:46,351 [29145215] DEBUG - ains.plugins.webDeployment.ftp - 200 TYPE is now 8-bit binary
2017-06-17 00:42:46,352 [29145216] DEBUG - ains.plugins.webDeployment.ftp - CWD /
2017-06-17 00:42:46,406 [29145270] DEBUG - ains.plugins.webDeployment.ftp - 250 OK. Current directory is /
2017-06-17 00:42:46,406 [29145270] DEBUG - ains.plugins.webDeployment.ftp - PBSZ 0
2017-06-17 00:42:46,455 [29145319] DEBUG - ains.plugins.webDeployment.ftp - 200 PBSZ=0
2017-06-17 00:42:46,456 [29145320] DEBUG - ains.plugins.webDeployment.ftp - PROT P
2017-06-17 00:42:46,506 [29145370] DEBUG - ains.plugins.webDeployment.ftp - 200 Data protection level set to "private"
2017-06-17 00:42:46,507 [29145371] DEBUG - ains.plugins.webDeployment.ftp - SYST
2017-06-17 00:42:46,557 [29145421] DEBUG - ains.plugins.webDeployment.ftp - 215 UNIX Type: L8
2017-06-17 00:42:46,557 [29145421] DEBUG - ains.plugins.webDeployment.ftp - PORT 192,168,144,228,234,241
2017-06-17 00:42:46,608 [29145472] DEBUG - ains.plugins.webDeployment.ftp - 500 I won't open a connection to 192.168.144.228 (only to MYPUBLICIP)
2017-06-17 00:42:46,608 [29145472] DEBUG - ains.plugins.webDeployment.ftp - PORT 192,168,144,228,234,242
2017-06-17 00:42:46,659 [29145523] DEBUG - ains.plugins.webDeployment.ftp - 500 I won't open a connection to 192.168.144.228 (only to MYPUBLICIP)
2017-06-17 00:42:46,659 [29145523] DEBUG - t.connections.RemoteConnection - Added connection to pool offtps://REMOTEIP:21/ in @7cbb5f1a; 1 connections exists
2017-06-17 00:42:48,244 [29147108] DEBUG - t.connections.RemoteConnection - Releasing one of the connections to ftps://REMOTEIP:21/ in @7cbb5f1a; connections left 0
2017-06-17 00:42:48,314 [29147178] WARN - t.connections.RemoteConnection - Forced closing file system of ftps://REMOTEIP:21/ in @7cbb5f1a
2017-06-17 00:42:48,315 [29147179] DEBUG - ains.plugins.webDeployment.ftp - QUIT
2017-06-17 00:42:48,366 [29147230] DEBUG - ains.plugins.webDeployment.ftp - 221-Goodbye. You uploaded 0 and downloaded 0 kbytes.
221 Logout.
2017-06-17 00:42:48,367 [29147231] DEBUG - t.connections.RemoteConnection - File system of ftps://REMOTEIP:21/ in @7cbb5f1a is closed.
0

I have the same problem, but can not change the settings on the server (shared hosting), how can I solve it in PHPStorm?

0

There's no fix from IDE side currently. Please vote for corresponding report: https://youtrack.jetbrains.com/issue/WI-18980

0

i've solved my issue with 

BrokenClientsCompatibility yes

on the serverside PureFTP and enabling passive mode

2

Passive mode solved my issue either. Thank you Franc Molitierno and intellij support team.

0

Into phpstorm version 2018.2.1 You can enable option Reuse SSL session into Deployment -> Options -> Advanced Options.

This solution works for me.

1

Into phpstorm version 2018.2.1 You can enable option Reuse SSL session into Deployment -> Options -> Advanced Options.

This solution works for me.

0

Im just putting this out there but having to fix this on the server side is not a fix. You dont always have access to the server in order to fix the issue (shared hosting environments). Considering standalone ftp clients dont seem to show this issue the problem should be fixed in the IDE.

0

Toja, modifying the server configs is not required anymore since the bug was fixed: https://youtrack.jetbrains.com/issue/WI-18980
Enabling the said checkbox should be enough.

0

We are experiencing the same issue on PHPStorm v192.6817.20  (latest build) on Windows 10 We've tried many different configurations but simply doesn't give out a list. The server lists out perfectly with Filezilla, NotePad++ and Beyond Compare.

Tried the Resuse SSL Session on / off but still no listing.

0

We are experiencing the same issue on PHPStorm v192.6817.20 (latest build) on Windows 10 We've tried many different configurations but simply doesn't give out a list

Please upgrade to 2019.3 EAP We have a couple of deployment issues fixed there.

If it's still the same there, please add #com.jetbrains.plugins.webDeployment to Help | Debug Log Settings, restart the IDE, try to connect again and then attach the logs bundle (Help | Compress Logs...) within a support ticket.

0

Thank you Eugene. This version didn't work either. Here's what our tech support sent us.

"It appears that this software does not support TLS 1.2 and as such is not able to connect securely over FTPS. The best way to do this with this software would be to enable SSH access for this cPanel and connect over SFTP." 

Hope this helps. We will send through a support ticket too

0

It is old topic, but for the future people to have it.

1. Need to be allowed a range: firewall-cmd --add-port=1024-65534/tcp

2. Advance tab: Data channel protection level: private

0

请先登录再写评论。