Not able to Download File "No files or folders found to process"
Hi, I am using pycharm 2019.3, and i faced the issue when trying to download file from remote host vis SFTP. My pycharm was working fie before, and now when i tried to download, it said "No files or folders found to process".
I followed the instruction to set up debug log setting, and found the error message below.
2020-02-24 21:14:53,063 [14020410] DEBUG - t.connections.RemoteConnection - Opening connection to sftp://<MY_HOST>/ in @18d7cf6e
2020-02-24 21:14:53,065 [14020412] DEBUG - sh.config.OpenSSHConfigService - Failed to parse OpenSSH configuration file: /Users/jingnl/.ssh/config
java.io.FileNotFoundException: /Users/jingnl/.ssh/config (No such file or directory)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:112)
at java.base/java.io.FileReader.<init>(FileReader.java:60)
at com.intellij.ssh.config.OpenSSHConfig.parseFile(OpenSSHConfig.java:91)
at com.intellij.ssh.config.OpenSSHConfigService.a(OpenSSHConfigService.kt:57)
at com.intellij.ssh.config.OpenSSHConfigService.b(OpenSSHConfigService.kt:52)
at com.intellij.ssh.config.OpenSSHConfigService.getConfig(OpenSSHConfigService.kt:29)
at com.jetbrains.plugins.webDeployment.connections.PatchedSftpClientFactory.configConnection(PatchedSftpClientFactory.java:77)
at com.jetbrains.plugins.webDeployment.connections.platform.PlatformSftpFileProvider.doCreateFileSystem(PlatformSftpFileProvider.java:76)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.tryToCreateFileSystem(AbstractOriginatingFileProvider.java:156)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.getFileSystem(AbstractOriginatingFileProvider.java:100)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:78)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:62)
at com.jetbrains.plugins.webDeployment.connections.SftpFileProviderProxy.findFile(SftpFileProviderProxy.java:74)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:726)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:648)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.lambda$createConnection$0(RemoteConnectionPool.java:257)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:238)
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)
请先登录再写评论。
What authentication type do you use?
Does /Users/jingnl/.ssh/config exist?
What's the result of Test Connection for your deployment configuration?
HI,
I am using SFTP authentication, and the test connection works fine. I can also run the script, but just can not download or upload changes.
I do not have /Users/jingnl/.ssh/config file and not even the /.ssh folder, can i download it anywhere?
Thanks,
That's strange.
I'm not sure if creating it manually will help, but you can try https://stackoverflow.com/questions/15190391/ssh-directory-not-being-created/15190451
I guess you could just generate a new key and it should automatically create all the required folders and files https://www.ssh.com/ssh/keygen
Downgraded my pycharm version to 2017.3 as suggested by my teammate, and it worked now.
SAME problem here in PHPStorm after updating to 2020.1 on Friday.
Also verified the same issue still exists in 2020.1.1 Preview.
Please help!
EDIT:
I was successfully able to connect and download from a different server, so the issue is clearly on my end. I have tried deleting and recreating the SFTP Web Server and SSH Configuration with no success.
Here is what happens in my error log when I attempt Deployment->Download from My Server:
2020-04-28 05:51:33,180 [39107460] WARN - .AbstractProgressIndicatorBase - This progress indicator is indeterminate, this may lead to visual inconsistency. Please call setIndeterminate(false) before you start progress.
com.intellij.openapi.project.impl.ProjectImpl.setProgressDuringInit(ProjectImpl.java:286)
2020-04-28 05:51:33,182 [39107462] DEBUG - t.connections.RemoteConnection - Opening connection to sftp://appserver.sergio-dev.7152dab0-d7eb-4d4e-9651-f33f85d5e437.drush.in:2222/ in @2e77929a
2020-04-28 05:51:33,183 [39107463] DEBUG - ntellij.ssh.impl.SshConnection - Failed to create SSH channel using existing SSH sessions, creating new SSH session
2020-04-28 05:51:33,183 [39107463] DEBUG - ntellij.ssh.impl.SshConnection - Establishing new SSH session to sergio-dev.7152dab0-d7eb-4d4e-9651-f33f85d5e437@appserver.sergio-dev.7152dab0-d7eb-4d4e-9651-f33f85d5e437.drush.in:2222
2020-04-28 05:51:33,194 [39107474] INFO - port.random.BouncyCastleRandom - Generating random seed from SecureRandom.
2020-04-28 05:51:33,458 [39107738] INFO - z.sshj.transport.TransportImpl - Client identity string: SSH-2.0-SSHJ_0.27.0
2020-04-28 05:51:33,483 [39107763] INFO - z.sshj.transport.TransportImpl - Server identity string: SSH-2.0-Pantheon-SSH
2020-04-28 05:51:35,439 [39109719] INFO - om.intellij.ssh.impl.sshj.sshj - Authentication log: SSH connection to sergio-dev.7152dab0-d7eb-4d4e-9651-f33f85d5e437@appserver.sergio-dev.7152dab0-d7eb-4d4e-9651-f33f85d5e437.drush.in:2222
* With preferred authentications: publickey,keyboard-interactive,password
* With signature factories: ssh-rsa, ssh-dss, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, ssh-ed25519
* With keep alive interval 300 seconds
* With keep alive count max 1000
* With OpenSSH-like host key verifier (knownHostsFile=[C:\Users\Sergio\.ssh\known_hosts], strictHostKeyChecking=ASK, hashKnownHosts=false)
* With predefined password
* With authentications allowed by the client: password, keyboard-interactive
* With connect timeout 10000 milliseconds
* Connected
=> none (failure, new auth methods allowed by the server: password, publickey)
=> password (success)
2020-04-28 05:51:35,439 [39109719] DEBUG - ntellij.ssh.impl.SshConnection - SSH session @643f03cc established to sergio-dev.7152dab0-d7eb-4d4e-9651-f33f85d5e437@appserver.sergio-dev.7152dab0-d7eb-4d4e-9651-f33f85d5e437.drush.in:2222
2020-04-28 05:51:35,439 [39109719] DEBUG - ellij.ssh.SshConnectionService - Creating sftp channel within SshjSshConnection(<crc32=1m9aysu>@<crc32=13i023u>)@643f03cc
2020-04-28 05:51:35,465 [39109745] INFO - .channel.direct.SessionChannel - Will request `sftp` subsystem
2020-04-28 05:51:35,530 [39109810] DEBUG - om.intellij.ssh.impl.sshj.sshj - Called sftp.lstat(/srv/bindings/f8ccda18c21d48e5bb6e57c079c04d44/) in 21.24 ms (ok)
2020-04-28 05:51:35,530 [39109810] DEBUG - om.intellij.ssh.impl.sshj.sshj - Fetched and cached permissions of /srv/bindings/f8ccda18c21d48e5bb6e57c079c04d44/: [size=4096;uid=11421,gid=1031;mode=[mask=40750];atime=1584869281,mtime=1588045748;]
2020-04-28 05:51:35,619 [39109899] DEBUG - om.intellij.ssh.impl.sshj.sshj - Called SshjRemoteFileObject@7b0024f7(path /srv/bindings/f8ccda18c21d48e5bb6e57c079c04d44/, owned by Channel@89646ba id 0, remote id 0 for SshjSshConnection(<crc32=1m9aysu>@<crc32=13i023u>)@643f03cc).sftp.ls() in 89.48 ms (ok)
2020-04-28 05:51:35,620 [39109900] DEBUG - om.intellij.ssh.impl.sshj.sshj - list() results:
.bash_logout [size=18;uid=11421,gid=11421;mode=[mask=100644];atime=1584830076,mtime=1452510153;]
php.ini [size=3191;uid=0,gid=11421;mode=[mask=100644];atime=1584869430,mtime=1584869430;]
.mozilla [size=4096;uid=11421,gid=11421;mode=[mask=40755];atime=1584809182,mtime=1528928144;]
stunnel [size=4096;uid=0,gid=11421;mode=[mask=40750];atime=1584869282,mtime=1584869282;]
php [size=20;uid=0,gid=0;mode=[mask=120777];atime=1584869430,mtime=1584869430;]
lock [size=4096;uid=0,gid=11421;mode=[mask=40770];atime=1584869281,mtime=1584869281;]
chef.stamp [size=42;uid=0,gid=0;mode=[mask=100644];atime=1588045748,mtime=1588045748;]
.zshrc [size=658;uid=11421,gid=11421;mode=[mask=100644];atime=1584830050,mtime=1451046353;]
.pantheonssh_login [size=0;uid=0,gid=0;mode=[mask=100640];atime=1585003900,mtime=1588071083;]
.bashrc [size=546;uid=0,gid=0;mode=[mask=100644];atime=1584869430,mtime=1584869430;]
htpasswd [size=15;uid=0,gid=11421;mode=[mask=100640];atime=1584869430,mtime=1584869430;]
certs [size=4096;uid=0,gid=11421;mode=[mask=40750];atime=1584869281,mtime=1584869282;]
run [size=4096;uid=0,gid=11421;mode=[mask=40770];atime=1584869282,mtime=1588011784;]
.pki [size=4096;uid=11421,gid=11421;mode=[mask=40740];atime=1584869695,mtime=1584869695;]
bin [size=4096;uid=0,gid=11421;mode=[mask=40750];atime=1584869282,mtime=1584869430;]
cache [size=4096;uid=0,gid=11421;mode=[mask=40770];atime=1584869428,mtime=1584871628;]
fusedav.conf [size=571;uid=0,gid=0;mode=[mask=100644];atime=1584869428,mtime=1584869428;]
php-fpm.conf [size=1171;uid=0,gid=11421;mode=[mask=100644];atime=1584869430,mtime=1584869430;]
.php-version [size=16;uid=0,gid=0;mode=[mask=100644];atime=1584869430,mtime=1584869430;]
.fusedav-memory-remount [size=0;uid=0,gid=0;mode=[mask=100644];atime=1588011784,mtime=1588011784;]
tmp [size=4096;uid=0,gid=11421;mode=[mask=40770];atime=1584869281,mtime=1588045748;]
mime.types [size=6174;uid=0,gid=11421;mode=[mask=100644];atime=1585136954,mtime=1585136954;]
sites [size=4096;uid=11421,gid=11421;mode=[mask=40755];atime=1586872773,mtime=1586872773;]
nginx.conf [size=19417;uid=0,gid=11421;mode=[mask=100644];atime=1584869430,mtime=1584869430;]
files [size=4096;uid=11421,gid=1051;mode=[mask=40770];atime=1588071083,mtime=1588071083;]
.drush [size=4096;uid=0,gid=11421;mode=[mask=40770];atime=1584869430,mtime=1584873578;]
logs [size=4096;uid=11421,gid=1051;mode=[mask=40750];atime=1584869281,mtime=1588022784;]
.env [size=1256;uid=0,gid=11421;mode=[mask=100644];atime=1587607700,mtime=1587607700;]
metadata.json [size=63259;uid=0,gid=0;mode=[mask=100600];atime=1588045748,mtime=1588045748;]
code [size=4096;uid=11421,gid=11421;mode=[mask=40755];atime=1584869349,mtime=1587557309;]
includes [size=4096;uid=0,gid=11421;mode=[mask=40750];atime=1584869282,mtime=1587607700;]
.bash_profile [size=193;uid=11421,gid=11421;mode=[mask=100644];atime=1584830076,mtime=1452510153;]
2020-04-28 05:51:35,644 [39109924] DEBUG - om.intellij.ssh.impl.sshj.sshj - Called SshjRemoteFileObject@22a2698b(path /srv/bindings/f8ccda18c21d48e5bb6e57c079c04d44//php, owned by Channel@89646ba id 0, remote id 0 for SshjSshConnection(<crc32=1m9aysu>@<crc32=13i023u>)@643f03cc).sftp.canonicalize() in 23.80 ms (ok)
2020-04-28 05:51:35,644 [39109924] DEBUG - om.intellij.ssh.impl.sshj.sshj - Canonical path of /srv/bindings/f8ccda18c21d48e5bb6e57c079c04d44//php is /opt/pantheon/php5.6
2020-04-28 05:51:35,665 [39109945] DEBUG - om.intellij.ssh.impl.sshj.sshj - Called sftp.lstat(/opt/pantheon/php5.6) in 21.01 ms (ok)
2020-04-28 05:51:35,665 [39109945] DEBUG - om.intellij.ssh.impl.sshj.sshj - Fetched and cached permissions of /opt/pantheon/php5.6: [size=4096;uid=0,gid=0;mode=[mask=40755];atime=1587075416,mtime=1569529709;]
2020-04-28 05:51:35,667 [39109947] DEBUG - t.connections.RemoteConnection - Added connection to pool ofsftp://appserver.sergio-dev.7152dab0-d7eb-4d4e-9651-f33f85d5e437.drush.in:2222/ in @2e77929a; 1 connections exists
2020-04-28 05:51:35,699 [39109979] DEBUG - om.intellij.ssh.impl.sshj.sshj - Called sftp.lstat(/srv/bindings/f8ccda18c21d48e5bb6e57c079c04d44/code/sites/all/modules/custom/basic_module/basic_module_grid/css) in 20.83 ms (ok)
2020-04-28 05:51:35,699 [39109979] DEBUG - om.intellij.ssh.impl.sshj.sshj - Fetched and cached permissions of /srv/bindings/f8ccda18c21d48e5bb6e57c079c04d44/code/sites/all/modules/custom/basic_module/basic_module_grid/css: [size=4096;uid=11421,gid=11421;mode=[mask=40755];atime=1587659114,mtime=1587659114;]
2020-04-28 05:51:35,720 [39110000] DEBUG - om.intellij.ssh.impl.sshj.sshj - Called sftp.lstat(/srv/bindings/f8ccda18c21d48e5bb6e57c079c04d44/code/sites/all/modules/custom/basic_module/basic_module_grid) in 20.18 ms (ok)
2020-04-28 05:51:35,720 [39110000] DEBUG - om.intellij.ssh.impl.sshj.sshj - Fetched and cached permissions of /srv/bindings/f8ccda18c21d48e5bb6e57c079c04d44/code/sites/all/modules/custom/basic_module/basic_module_grid: [size=4096;uid=11421,gid=11421;mode=[mask=40755];atime=1587659114,mtime=1587659115;]
2020-04-28 05:51:35,807 [39110087] DEBUG - om.intellij.ssh.impl.sshj.sshj - Called SshjRemoteFileObject@18be8663(path /srv/bindings/f8ccda18c21d48e5bb6e57c079c04d44/code/sites/all/modules/custom/basic_module/basic_module_grid/css, owned by Channel@89646ba id 0, remote id 0 for SshjSshConnection(<crc32=1m9aysu>@<crc32=13i023u>)@643f03cc).sftp.ls() in 84.62 ms (ok)
2020-04-28 05:51:35,807 [39110087] DEBUG - om.intellij.ssh.impl.sshj.sshj - list() results:
basic_module_grid.css [size=31673;uid=11421,gid=11421;mode=[mask=100644];atime=1587678843,mtime=1588018127;]
2020-04-28 05:51:35,809 [39110089] DEBUG - t.connections.RemoteConnection - Releasing one of the connections to sftp://appserver.sergio-dev.7152dab0-d7eb-4d4e-9651-f33f85d5e437.drush.in:2222/ in @2e77929a; connections left 0
2020-04-28 05:51:35,832 [39110112] WARN - ion.impl.NotificationCollector - Notification group 'Project generator' is already registered in whitelist
2020-04-28 05:51:35,832 [39110112] WARN - ion.impl.NotificationCollector - Notification group 'System Messages' is already registered in whitelist
2020-04-28 05:51:38,424 [39112704] INFO - rationStore.ComponentStoreImpl - Saving Project (name=BitBucket - All Remotes, containerState=ACTIVE, componentStore=C:\Users\Sergio\Projects SSD\BitBucket - All Remotes) RunManager took 31 ms
Thanks!
Please try recreating your remote project interpreter and deleting ~/.pycharm_helpers directory in the process.
Hi Andrey Resler, thanks for the reply!
As stated in my post, I am using PHPStorm, Not PyCharm. But please see my EDIT. Thanks!