2014-10-05 126 views
4

我在使用WebStorm 8.0.4连接FTP时,在PHPStorm中报告过相同的问题。WebStorm 8.0.4 FTP连接失败

我得到的错误是:无法列出文件夹的内容“。ftp://real-meal.com/

也试过Pasive和/或兼容模式在Windows 8.1 x64的工作有时曾在FTP导航‘浏览远程主机’菜单,但经过一段带有选项打(但恢复到原来的)itsn't工作了

这里是日志文件:

2014-10-04 20:45:09,933 [14500504] DEBUG - ains.plugins.webDeployment.ftp - > PORT 10,0,0,200,248,211 
2014-10-04 20:45:10,132 [14500703] DEBUG - ains.plugins.webDeployment.ftp - 200 PORT command successful 
2014-10-04 20:45:10,132 [14500703] DEBUG - ains.plugins.webDeployment.ftp - > MLSD 
2014-10-04 20:45:10,549 [14501120] DEBUG - ains.plugins.webDeployment.ftp - 150 Connecting to port 42907 
2014-10-04 20:45:10,566 [14501137] DEBUG - ains.plugins.webDeployment.ftp - type=cdir;sizd=4096;modify=20141004194828;UNIX.mode=0710;UNIX.uid=2513;UNIX.gid=12;unique=821gadc001; . 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=pdir;sizd=4096;modify=20141004194828;UNIX.mode=0710;UNIX.uid=2513;UNIX.gid=12;unique=821gadc001; .. 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=file;size=121;modify=20140318193753;UNIX.mode=0600;UNIX.uid=2513;UNIX.gid=2508;unique=821gadd16c; .bash_history 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=file;size=18;modify=20130718131903;UNIX.mode=0644;UNIX.uid=2513;UNIX.gid=2508;unique=821gadc004; .bash_logout 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=file;size=191;modify=20060310001223;UNIX.mode=0644;UNIX.uid=2513;UNIX.gid=2508;unique=821gadc002; .bash_profile 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=file;size=175;modify=20120522224723;UNIX.mode=0644;UNIX.uid=2513;UNIX.gid=2508;unique=821gadc003; .bashrc 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=file;size=13;modify=20140318174336;UNIX.mode=0600;UNIX.uid=2513;UNIX.gid=2508;unique=821gadc01c; .contactemail 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=dir;sizd=12288;modify=20141004194947;UNIX.mode=0700;UNIX.uid=2513;UNIX.gid=2508;unique=821gadc01a; .cpanel 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=file;size=8;modify=20140318192944;UNIX.mode=0644;UNIX.uid=2513;UNIX.gid=2508;unique=821gadd301; .dns 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=file;size=500;modify=20120227124653;UNIX.mode=0644;UNIX.uid=2513;UNIX.gid=2508;unique=821gadc005; .emacs 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=dir;sizd=4096;modify=20140227192104;UNIX.mode=0755;UNIX.uid=2513;UNIX.gid=2508;unique=821gae45f7; .fontconfig 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=file;size=126;modify=20131016034936;UNIX.mode=0644;UNIX.uid=2513;UNIX.gid=2508;unique=821gadc02d; .gemrc 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=dir;sizd=4096;modify=20131016034935;UNIX.mode=0755;UNIX.uid=2513;UNIX.gid=2508;unique=821gadc016; .htpasswds 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=file;size=121;modify=20130708103042;UNIX.mode=0644;UNIX.uid=2513;UNIX.gid=2508;unique=821gadc006; .kshrc 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=file;size=14;modify=20141004194828;UNIX.mode=0600;UNIX.uid=2513;UNIX.gid=2508;unique=821gadc050; .lastlogin 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=dir;sizd=4096;modify=20141004023907;UNIX.mode=0700;UNIX.uid=2513;UNIX.gid=2508;unique=821gae8d73; .sqmailattach 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=dir;sizd=4096;modify=20141004024241;UNIX.mode=0700;UNIX.uid=2513;UNIX.gid=2508;unique=821gae8d70; .sqmaildata 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=dir;sizd=4096;modify=20131016070103;UNIX.mode=0700;UNIX.uid=2513;UNIX.gid=2508;unique=821gadc05b; .ssh 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=dir;sizd=4096;modify=20131016041317;UNIX.mode=0700;UNIX.uid=2513;UNIX.gid=2508;unique=821gadc057; .trash 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=file;size=658;modify=20120622230417;UNIX.mode=0644;UNIX.uid=2513;UNIX.gid=2508;unique=821gadc007; .zshrc 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=OS.unix=slink:;size=33;modify=20131016035124;UNIX.mode=0777;UNIX.uid=2513;UNIX.gid=2508;unique=821gadc034; access-logs 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=dir;sizd=4096;modify=20131224001846;UNIX.mode=0750;UNIX.uid=2513;UNIX.gid=12;unique=821gadc013; etc 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=dir;sizd=4096;modify=20140930083245;UNIX.mode=0751;UNIX.uid=2513;UNIX.gid=2508;unique=821gadc015; mail 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=file;size=25807;modify=20140314180050;UNIX.mode=0644;UNIX.uid=2513;UNIX.gid=2508;unique=821gadd304; malware.txt 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=dir;sizd=4096;modify=20131029174652;UNIX.mode=0755;UNIX.uid=2513;UNIX.gid=2508;unique=821gae8d46; perl5 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=dir;sizd=4096;modify=20131016034935;UNIX.mode=00;UNIX.uid=2513;UNIX.gid=2508;unique=821gadc018; public_ftp 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=dir;sizd=4096;modify=20140729171458;UNIX.mode=0755;UNIX.uid=2513;UNIX.gid=2508;unique=821gadc009; public_html 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=dir;sizd=4096;modify=20140318221014;UNIX.mode=0755;UNIX.uid=2513;UNIX.gid=2508;unique=821gae405c; public_html.old 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=dir;sizd=4096;modify=20140327044247;UNIX.mode=0750;UNIX.uid=2513;UNIX.gid=2508;unique=821gafcc60; ssl 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=dir;sizd=4096;modify=20141003081157;UNIX.mode=0755;UNIX.uid=2513;UNIX.gid=2508;unique=821gadc014; tmp 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=file;size=24106;modify=20120829210400;UNIX.mode=0644;UNIX.uid=2513;UNIX.gid=2508;unique=821gadc008; webalizer.conf 
2014-10-04 20:45:10,567 [14501138] DEBUG - ains.plugins.webDeployment.ftp - type=OS.unix=slink:;size=11;modify=20131016034935;UNIX.mode=0777;UNIX.uid=2513;UNIX.gid=2508;unique=821gadc01d; www 
2014-10-04 20:45:10,568 [14501139] DEBUG - ains.plugins.webDeployment.ftp - 226-Options: -a -l 
226 32 matches total 
2014-10-04 20:45:10,571 [14501142] WARN - i.remotebrowser.ServerTreeNode - Could not list the contents of folder "ftp://74.220.207.154/". 
org.apache.commons.vfs2.FileSystemException: Could not list the contents of folder "ftp://74.220.207.154/". 
    at org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:926) 
    at org.apache.commons.vfs2.provider.ftp.FtpFileObject.getChildren(FtpFileObject.java:443) 
    at org.apache.commons.vfs2.provider.AbstractFileObject.getChild(AbstractFileObject.java:1006) 
    at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.createConnection(RemoteConnectionPool.java:142) 
    at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionManager.openConnection(RemoteConnectionManager.java:103) 
    at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeContext.getConnection(ServerTreeContext.java:88) 
    at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeNode.computeFile(ServerTreeNode.java:266) 
    at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeNode.getChildren(ServerTreeNode.java:132) 
    at com.intellij.ui.treeStructure.SimpleTreeStructure.getChildElements(SimpleTreeStructure.java:25) 
    at com.intellij.ide.util.treeView.AbstractTreeUi$31.run(AbstractTreeUi.java:1620) 
    at com.intellij.ide.util.treeView.AbstractTreeUi.execute(AbstractTreeUi.java:1826) 
    at com.intellij.ide.util.treeView.AbstractTreeUi.getChildrenFor(AbstractTreeUi.java:1617) 
    at com.intellij.ide.util.treeView.AbstractTreeUi.access$4600(AbstractTreeUi.java:61) 
    at com.intellij.ide.util.treeView.AbstractTreeUi$46.run(AbstractTreeUi.java:2704) 
    at com.intellij.ide.util.treeView.AbstractTreeUi.execute(AbstractTreeUi.java:1826) 
    at com.intellij.ide.util.treeView.AbstractTreeUi.access$2400(AbstractTreeUi.java:61) 
    at com.intellij.ide.util.treeView.AbstractTreeUi$57$1.run(AbstractTreeUi.java:3382) 
    at com.jetbrains.plugins.webDeployment.ui.remotebrowser.WebServerTreeBuilder.runBackgroundLoading(WebServerTreeBuilder.java:90) 
    at com.intellij.ide.util.treeView.AbstractTreeUi$57.run(AbstractTreeUi.java:3373) 
    at com.intellij.ide.util.treeView.AbstractTreeUi.execute(AbstractTreeUi.java:1826) 
    at com.intellij.ide.util.treeView.AbstractTreeUi.access$2400(AbstractTreeUi.java:61) 
    at com.intellij.ide.util.treeView.AbstractTreeUi$58.run(AbstractTreeUi.java:3438) 
    at com.intellij.util.concurrency.WorkerThread.run(WorkerThread.java:108) 
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:419) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:262) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
    at java.lang.Thread.run(Thread.java:724) 
    at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149) 
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 
    at java.lang.String.charAt(String.java:658) 
    at org.apache.commons.net.ftp.parser.MLSxEntryParser.parseFTPEntry(MLSxEntryParser.java:156) 
    at org.apache.commons.net.ftp.FTPListParseEngine.getFiles(FTPListParseEngine.java:257) 
    at org.apache.commons.net.ftp.FTPListParseEngine.getFiles(FTPListParseEngine.java:229) 
    at org.apache.commons.vfs2.provider.ftp.FTPExtendedClient.mlistDir(FTPExtendedClient.java:28) 
    at org.apache.commons.vfs2.provider.ftp.FtpJBHelper.listFiles(FtpJBHelper.java:66) 
    at org.apache.commons.vfs2.provider.ftp.FTPClientWrapper.listFilesInDirectory(FTPClientWrapper.java:161) 
    at org.apache.commons.vfs2.provider.ftp.FTPClientWrapper.listFiles(FTPClientWrapper.java:142) 
    at org.apache.commons.vfs2.provider.ftp.FtpFileObject.doGetChildren(FtpFileObject.java:141) 
    at org.apache.commons.vfs2.provider.ftp.FtpFileObject.doListChildren(FtpFileObject.java:459) 
    at org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:917) 
    ... 29 more 
+1

看看“始终使用LIST命令”选项下部署连接的“高级选项”可用。如果是 - 使用它。我不确定..但它看起来不能正确解释MLSD命令的结果(类型的LIST的高级版本;语法(AFAIK)几乎没有变化)。请再试一次 - 也许这只是一个临时故障... – LazyOne 2014-10-05 00:40:51

+0

谢谢你的回答!在本发行版的任何位置都不存在任何“始终使用LIST命令”菜单。是的,调试日志显示我的目录的文件列表。 – Patricio 2014-10-05 01:12:21

+0

*“不存在任何”总是使用LIST命令“菜单”*然后它被添加以后 - 请尝试v9 EAP构建 - 它应该有它:http://confluence.jetbrains.com/display/WI/WebStorm + 9 + EAP – LazyOne 2014-10-05 01:21:55

回答

10

请尽量在你deplo的“高级选项”选项Always use LIST command进入。现在看起来IDE似乎无法正确解释MLSD命令的结果(类型为LIST的高级版本;语法(AFAIK)几乎没有变化)。

P.S. 此选项可用于PhpStorm v8或WebStorm v9(当前处于EAP阶段),

+0

非常感谢,太棒了! – 2014-12-22 20:23:52

+0

我有一个FTP服务器连接问题以及Webstorm 9 ....我在哪里设置列表设置?我在设置连接时没有看到高级选项 – dougmays 2015-10-07 13:16:21

+0

@dougmays'设置/首选项|构建,执行,部署|部署“ - ”高级选项“按钮有 – LazyOne 2015-10-07 13:19:01

11

我的IDE版本是9.0.2,并且我遇到了同样的问题。

使用'被动模式'在Tools->Deployment->configuration...->Advanced options...

它会解决这个问题。

enter image description here