Could not list the contents of folder "sftp://ftp.site.com/".

Answered

Hi,

I try to use deploy option of PhpStorm. Connexion work perfectly with FTP on PhpStorm, And on ftp & sftp with filezilla.

I've got log here:

diffie-hellman-group14-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521 
2018-07-07 20:54:20,090 [  72666]  DEBUG - ins.plugins.webDeployment.sftp - CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
2018-07-07 20:54:20,093 [  72669]  DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_KEXINIT sent
2018-07-07 20:54:20,093 [  72669]  DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_KEXINIT received
2018-07-07 20:54:20,093 [  72669]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
2018-07-07 20:54:20,093 [  72669]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: ssh-rsa,ssh-ed25519
2018-07-07 20:54:20,093 [  72669]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
2018-07-07 20:54:20,093 [  72669]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
2018-07-07 20:54:20,093 [  72669]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
2018-07-07 20:54:20,093 [  72669]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
2018-07-07 20:54:20,093 [  72669]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: none,zlib@openssh.com
2018-07-07 20:54:20,093 [  72669]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: none,zlib@openssh.com
2018-07-07 20:54:20,093 [  72669]  DEBUG - ins.plugins.webDeployment.sftp - kex: server:  
2018-07-07 20:54:20,093 [  72669]  DEBUG - ins.plugins.webDeployment.sftp - kex: server:  
2018-07-07 20:54:20,093 [  72669]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
2018-07-07 20:54:20,093 [  72669]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
2018-07-07 20:54:20,094 [  72670]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc,aes192-ctr,aes192-cbc,aes256-ctr,aes256-cbc
2018-07-07 20:54:20,094 [  72670]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc,aes192-ctr,aes192-cbc,aes256-ctr,aes256-cbc
2018-07-07 20:54:20,094 [  72670]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
2018-07-07 20:54:20,094 [  72670]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
2018-07-07 20:54:20,094 [  72670]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: none
2018-07-07 20:54:20,094 [  72670]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: none
2018-07-07 20:54:20,094 [  72670]  DEBUG - ins.plugins.webDeployment.sftp - kex: client:  
2018-07-07 20:54:20,094 [  72670]  DEBUG - ins.plugins.webDeployment.sftp - kex: client:  
2018-07-07 20:54:20,094 [  72670]  DEBUG - ins.plugins.webDeployment.sftp - kex: server->client aes128-ctr hmac-sha1 none
2018-07-07 20:54:20,094 [  72670]  DEBUG - ins.plugins.webDeployment.sftp - kex: client->server aes128-ctr hmac-sha1 none
2018-07-07 20:54:20,098 [  72674]  DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_KEX_ECDH_INIT sent
2018-07-07 20:54:20,098 [  72674]  DEBUG - ins.plugins.webDeployment.sftp - expecting SSH_MSG_KEX_ECDH_REPLY
2018-07-07 20:54:20,120 [  72696]  DEBUG - ins.plugins.webDeployment.sftp - ssh_rsa_verify: signature true
2018-07-07 20:54:20,123 [  72699]  DEBUG - ins.plugins.webDeployment.sftp - Host 'ftp.site.com' is known and matches the RSA host key
2018-07-07 20:54:20,123 [  72699]  DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_NEWKEYS sent
2018-07-07 20:54:20,123 [  72699]  DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_NEWKEYS received
2018-07-07 20:54:20,127 [  72703]  DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_SERVICE_REQUEST sent
2018-07-07 20:54:20,141 [  72717]  DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_SERVICE_ACCEPT received
2018-07-07 20:54:20,155 [  72731]  DEBUG - ins.plugins.webDeployment.sftp - Authentications that can continue: publickey,keyboard-interactive,password
2018-07-07 20:54:20,155 [  72731]  DEBUG - ins.plugins.webDeployment.sftp - Next authentication method: publickey
2018-07-07 20:54:20,159 [  72735]  DEBUG - ins.plugins.webDeployment.sftp - Authentications that can continue: password
2018-07-07 20:54:20,159 [  72735]  DEBUG - ins.plugins.webDeployment.sftp - Next authentication method: password
2018-07-07 20:54:20,180 [  72756]  DEBUG - ins.plugins.webDeployment.sftp - Authentication succeeded (password).
2018-07-07 20:54:20,181 [  72757]   INFO - ellij.ssh.SshConnectionService - Creating sftp channel within SSH session @69dcd4dd to userlogin@ftp.site.com:22
2018-07-07 20:54:20,183 [  72759]  DEBUG - ins.plugins.webDeployment.sftp - connect(0)
2018-07-07 20:54:20,272 [  72848]  DEBUG - ins.plugins.webDeployment.sftp - setFilenameEncoding("UTF-8")
2018-07-07 20:54:20,273 [  72849]  DEBUG - ins.plugins.webDeployment.sftp - cd "/"
2018-07-07 20:54:20,305 [  72881]  DEBUG - ins.plugins.webDeployment.sftp - stat "."
2018-07-07 20:54:20,329 [  72905]  DEBUG - ins.plugins.webDeployment.sftp - drwxr-xr-x 0 0 4096 Mon Jun 18 16:35:47 CEST 2018, mtime 1,529,332,547
2018-07-07 20:54:20,329 [  72905]  DEBUG - ins.plugins.webDeployment.sftp - ls "."
2018-07-07 20:54:20,387 [  72963]  DEBUG - ins.plugins.webDeployment.sftp - pwd: "/"
2018-07-07 20:54:20,387 [  72963]  DEBUG - ins.plugins.webDeployment.sftp - cd "."
2018-07-07 20:54:20,416 [  72992]  DEBUG - ins.plugins.webDeployment.sftp - ls "."
2018-07-07 20:54:20,454 [  73030]  DEBUG - ins.plugins.webDeployment.sftp - cd "/"
2018-07-07 20:54:20,484 [  73060]   WARN - t.connections.RemoteConnection - Retrying connecting to sftp://ftp.site.com:22/ in @e620d76: 1 iterations
org.apache.commons.vfs2.FileSystemException: Could not list the contents of folder "sftp://ftp.site.com/".
    at org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:1152)
    at org.apache.commons.vfs2.provider.AbstractFileObject.getChild(AbstractFileObject.java:1095)
    at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.lambda$createConnection$0(RemoteConnectionPool.java:259)
    at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:305)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: 3: Permission denied
    at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2873)
    at com.jcraft.jsch.ChannelSftp.ls(ChannelSftp.java:1633)
    at com.jcraft.jsch.ChannelSftp.ls(ChannelSftp.java:1553)
    at com.jetbrains.plugins.webDeployment.config.LoggingSftpChannel.ls(LoggingSftpChannel.java:215)
    at org.apache.commons.vfs2.provider.sftp.SftpFileObject.doListChildrenResolved(SftpFileObject.java:495)
    at org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:1142)
    ... 8 more
2018-07-07 20:54:20,493 [  73069]  DEBUG - ins.plugins.webDeployment.sftp - disconnect()
2018-07-07 20:54:20,494 [  73070]   WARN - s.webDeployment.RemoteHostTask - Could not list the contents of folder "sftp://ftp.site.com/".
org.apache.commons.vfs2.FileSystemException: Could not list the contents of folder "sftp://ftp.site.com/".
    at org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:1152)
    at org.apache.commons.vfs2.provider.AbstractFileObject.getChild(AbstractFileObject.java:1095)
    at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.lambda$createConnection$0(RemoteConnectionPool.java:259)
    at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:305)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: 3: Permission denied
    at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2873)
    at com.jcraft.jsch.ChannelSftp.ls(ChannelSftp.java:1633)
    at com.jcraft.jsch.ChannelSftp.ls(ChannelSftp.java:1553)
    at com.jetbrains.plugins.webDeployment.config.LoggingSftpChannel.ls(LoggingSftpChannel.java:215)
    at org.apache.commons.vfs2.provider.sftp.SftpFileObject.doListChildrenResolved(SftpFileObject.java:495)
    at org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:1142)
    ... 8 more
2018-07-07 20:55:45,139 [ 157715]   INFO - oteCredentialsVerifiableHolder - Invalid URI ftp.site.com:: Expected scheme-specific part at index 31: ftp.site.com:
2018-07-07 20:55:45,142 [ 157718]   INFO - oteCredentialsVerifiableHolder - Invalid URI ftp.site.com:: Expected scheme-specific part at index 31: ftp.site.com:
2018-07-07 20:55:45,147 [ 157723]   INFO - oteCredentialsVerifiableHolder - Invalid URI ftp.site.com:: Expected scheme-specific part at index 31: ftp.site.com:
2018-07-07 20:55:45,148 [ 157724]   INFO - oteCredentialsVerifiableHolder - Invalid URI ftp.site.com:: Expected scheme-specific part at index 31: ftp.site.com:
2018-07-07 20:55:45,152 [ 157728]   INFO - oteCredentialsVerifiableHolder - Invalid URI ftp.site.com:: Expected scheme-specific part at index 31: ftp.site.com:
2018-07-07 20:55:45,152 [ 157728]   INFO - oteCredentialsVerifiableHolder - Invalid URI ftp.site.com:: Expected scheme-specific part at index 31: ftp.site.com:
2018-07-07 20:55:49,677 [ 162253]   INFO - oteCredentialsVerifiableHolder - Invalid URI ftp.site.com:: Expected scheme-specific part at index 31: ftp.site.com:
2018-07-07 20:55:49,680 [ 162256]   INFO - oteCredentialsVerifiableHolder - Invalid URI ftp.site.com:: Expected scheme-specific part at index 31: ftp.site.com:
2018-07-07 20:55:49,684 [ 162260]   INFO - oteCredentialsVerifiableHolder - Invalid URI ftp.site.com:: Expected scheme-specific part at index 31: ftp.site.com:
2018-07-07 20:55:49,684 [ 162260]   INFO - oteCredentialsVerifiableHolder - Invalid URI ftp.site.com:: Expected scheme-specific part at index 31: ftp.site.com:
2018-07-07 20:55:49,687 [ 162263]   INFO - oteCredentialsVerifiableHolder - Invalid URI ftp.site.com:: Expected scheme-specific part at index 31: ftp.site.com:
2018-07-07 20:55:49,688 [ 162264]   INFO - oteCredentialsVerifiableHolder - Invalid URI ftp.site.com:: Expected scheme-specific part at index 31: ftp.site.com:
2018-07-07 20:58:53,801 [ 346377]  DEBUG - t.connections.RemoteConnection - Opening connection to sftp://ftp.site.com:22/ in @3118ffbb
2018-07-07 20:58:53,804 [ 346380]   INFO - ellij.ssh.SshConnectionService - Creating sftp channel within SSH session @69dcd4dd to userlogin@ftp.site.com:22
2018-07-07 20:58:53,805 [ 346381]  DEBUG - ins.plugins.webDeployment.sftp - connect(0)
2018-07-07 20:58:53,864 [ 346440]  DEBUG - ins.plugins.webDeployment.sftp - setFilenameEncoding("UTF-8")
2018-07-07 20:58:53,865 [ 346441]  DEBUG - ins.plugins.webDeployment.sftp - stat "."
2018-07-07 20:58:53,894 [ 346470]  DEBUG - ins.plugins.webDeployment.sftp - drwx---r-x 57934 100 8 Tue Jan 10 15:06:54 CET 2017, mtime 1,484,057,214
2018-07-07 20:58:53,895 [ 346471]  DEBUG - ins.plugins.webDeployment.sftp - ls "."
2018-07-07 20:58:53,973 [ 346549]  DEBUG - ins.plugins.webDeployment.sftp - 8 item(s):
drwx---r-x    3 userlogin users           8 Jan 10  2017 .
drwxr-xr-x    4 root     root           80 Jul  7 18:54 ..
drwxr-xr-x    9 userlogin users          11 Apr 23 08:56 www
-rw-r--r--    1 userlogin users         230 Jul 20  2017 .ovhconfig
-rw-r--r--    1 userlogin users         236 May  9  2016 .bash_profile
-rw-r--r--    1 userlogin users          24 May  9  2016 .bash_logout
-rw-r--r--    1 userlogin users         131 May  9  2016 .bashrc
2018-07-07 20:58:53,980 [ 346556]  DEBUG - t.connections.RemoteConnection - Added connection to pool ofsftp://ftp.site.com:22/ in @3118ffbb; 1 connections exists
2018-07-07 20:58:53,982 [ 346558]  DEBUG - ins.plugins.webDeployment.sftp - pwd: "/home/userlogin"
2018-07-07 20:58:53,983 [ 346559]  DEBUG - t.connections.RemoteConnection - Releasing one of the connections to sftp://ftp.site.com:22/ in @3118ffbb; connections left 0

Thanks for help

2 comments

Hello,

Are the root path and mappings correct for the server configuration in File | Settings | Build, Execution, Deployment | Deployment?

From the log we can see that it tries to change directory with cd to file system root - "/" - and fails with "Permission denied" which might be expected if user is not eligible for such an action.

0

Hi,

Thanks for help, I was trying to have location by using "..." next to field". But when I enter location find by fillezilla it's works!

Have a nice day,

0

Please sign in to leave a comment.