Remote interpreter - Error Copying Helpers - Could not create folder "sftp://xxx.xxx.xxx.xxx/C:".

Answered

When trying to use a remote interpreter (on a Windows 7 machine via SSH) I'm getting an error "Could not copy "file:///C:/Program Files/JetBrains/PyCharm 2017.1.4/helpers/check_all_test_suite.py" to "sftp://xxx.xxx.xxx.xxx/C:/Users/davida/.pycharm_helpers/check_all_test_suite.py"."

 

I've copied a snippet from the idea.log file below. What stands out most to me is the following line..

 

Caused by: org.apache.commons.vfs2.FileSystemException: Could not create folder "sftp://xxx.xxx.xxx.xxx/C:".

 

 

2017-06-25 17:35:09,408 [1191502] DEBUG - ins.plugins.webDeployment.sftp - cd "/"
2017-06-25 17:35:09,452 [1191546] DEBUG - ins.plugins.webDeployment.sftp - stat "C:/Users/davida/.pycharm_helpers/virtualenv-15.1.0.tar.gz"
2017-06-25 17:35:09,476 [1191570] DEBUG - ins.plugins.webDeployment.sftp - mkdir "C:"
2017-06-25 17:35:09,497 [1191591] INFO - ugins.remotesdk.RemoteTransfer - Helpers upload successfully completed
2017-06-25 17:35:09,497 [1191591] ERROR - ugins.remotesdk.RemoteTransfer - Can't copy helpers
org.apache.commons.vfs2.FileSystemException: Could not copy "file:///C:/Program Files/JetBrains/PyCharm 2017.1.4/helpers/check_all_test_suite.py" to "sftp://xxx.xxx.xxx.xxx/C:/Users/davida/.pycharm_helpers/check_all_test_suite.py".
at com.jetbrains.plugins.webDeployment.TransferOperation.copyFrom(TransferOperation.java:849)
at com.jetbrains.plugins.webDeployment.TransferOperation.copyFile(TransferOperation.java:737)
at com.jetbrains.plugins.webDeployment.TransferOperation.access$200(TransferOperation.java:24)
at com.jetbrains.plugins.webDeployment.TransferOperation$Copy.execute(TransferOperation.java:216)
at com.jetbrains.plugins.remotesdk.RemoteTransfer.executeOperationsBatch(RemoteTransfer.java:347)
at com.jetbrains.plugins.remotesdk.RemoteTransfer.doCopyHelpers(RemoteTransfer.java:211)
at com.jetbrains.plugins.remotesdk.RemoteTransfer.access$000(RemoteTransfer.java:43)
at com.jetbrains.plugins.remotesdk.RemoteTransfer$2.run(RemoteTransfer.java:138)
at com.jetbrains.plugins.remotesdk.RemoteTransfer$4.run(RemoteTransfer.java:164)
at com.jetbrains.plugins.remotesdk.RemoteTransfer.uploadHelpers(RemoteTransfer.java:150)
at com.jetbrains.python.remote.PyRemoteTransfer.uploadHelpers(PyRemoteTransfer.java:59)
at com.jetbrains.python.remote.PyRemoteProcessUtil.checkConnectionAndGetSession(PyRemoteProcessUtil.java:58)
at com.jetbrains.python.remote.PyRemoteProcessUtil.getProcessOutput(PyRemoteProcessUtil.java:87)
at com.jetbrains.python.remote.PySshRemoteProcessStarterManager.executeRemoteProcess(PySshRemoteProcessStarterManager.java:57)
at com.jetbrains.python.packaging.PyRemotePackageManagerImpl.getPythonProcessOutput(PyRemotePackageManagerImpl.java:141)
at com.jetbrains.python.packaging.PyPackageManagerImpl.b(PyPackageManagerImpl.java:415)
at com.jetbrains.python.packaging.PyPackageManagerImpl.a(PyPackageManagerImpl.java:404)
at com.jetbrains.python.packaging.PyPackageManagerImpl.collectPackages(PyPackageManagerImpl.java:265)
at com.jetbrains.python.packaging.PyPackageManagerImpl.refreshAndGetPackages(PyPackageManagerImpl.java:363)
at com.jetbrains.python.packaging.ui.PyPackageManagementService.getInstalledPackages(PyPackageManagementService.java:160)
at com.intellij.webcore.packaging.InstalledPackagesPanel$11.run(InstalledPackagesPanel.java:411)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:726)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:176)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:556)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:501)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:163)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:137)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:334)
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: org.apache.commons.vfs2.FileSystemException: Could not create folder "sftp://xxx.xxx.xxx.xxx/C:".
at org.apache.commons.vfs2.provider.AbstractFileObject.createFolder(AbstractFileObject.java:426)
at org.apache.commons.vfs2.provider.AbstractFileObject.createFolder(AbstractFileObject.java:409)
at org.apache.commons.vfs2.provider.AbstractFileObject.createFolder(AbstractFileObject.java:409)
at org.apache.commons.vfs2.provider.AbstractFileObject.createFolder(AbstractFileObject.java:409)
at org.apache.commons.vfs2.provider.AbstractFileObject.getOutputStream(AbstractFileObject.java:1372)
at org.apache.commons.vfs2.provider.DefaultFileContent.getOutputStream(DefaultFileContent.java:481)
at org.apache.commons.vfs2.provider.DefaultFileContent.getOutputStream(DefaultFileContent.java:459)
at com.jetbrains.plugins.webDeployment.FileTransferUtil.copyContent(FileTransferUtil.java:42)
at com.jetbrains.plugins.webDeployment.TransferOperation.copyFrom(TransferOperation.java:846)
... 33 more
Caused by: 5: Bad message
at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2873)
at com.jcraft.jsch.ChannelSftp.mkdir(ChannelSftp.java:2182)
at com.jetbrains.plugins.webDeployment.config.LoggingSftpChannel.mkdir(LoggingSftpChannel.java:283)
at org.apache.commons.vfs2.provider.sftp.SftpFileObject.doCreateFolder(SftpFileObject.java:266)
at org.apache.commons.vfs2.provider.AbstractFileObject.createFolder(AbstractFileObject.java:415)
... 41 more
2017-06-25 17:35:09,499 [1191593] DEBUG - t.connections.RemoteConnection - Releasing one of the connections to sftp://xxx.xxx.xxx.xxx:22/ in @1d67c429; connections left 0
2017-06-25 17:35:09,499 [1191593] INFO - transport.SshConnectionService - Executing SSH command: env "JETBRAINS_REMOTE_RUN"="1" "PYTHONUNBUFFERED"="1" /Python36/python.exe /C:/Users/davida/.pycharm_helpers/packaging_tool.py list within SSH session @4129d376 to davida@xxx.xxx.xxx.xxx:22
2017-06-25 17:35:09,500 [1191594] ERROR - ugins.remotesdk.RemoteTransfer - PyCharm 2017.1.4 Build #PY-171.4694.38
2017-06-25 17:35:09,500 [1191594] ERROR - ugins.remotesdk.RemoteTransfer - JDK: 1.8.0_112-release
2017-06-25 17:35:09,500 [1191594] ERROR - ugins.remotesdk.RemoteTransfer - VM: OpenJDK 64-Bit Server VM
2017-06-25 17:35:09,500 [1191594] ERROR - ugins.remotesdk.RemoteTransfer - Vendor: JetBrains s.r.o
2017-06-25 17:35:09,500 [1191594] ERROR - ugins.remotesdk.RemoteTransfer - OS: Windows 7
2017-06-25 17:35:09,500 [1191594] ERROR - ugins.remotesdk.RemoteTransfer - Last Action: ShowSettings
2017-06-25 17:35:09,654 [1191748] WARN - ckaging.InstalledPackagesPanel - The following command was executed:

/C:/Users/davida/.pycharm_helpers/packaging_tool.py list

The exit code: 1
The error output of the command:


'env' is not recognized as an internal or external command,
operable program or batch file.

 

9 comments

I'm having the same issue for PyCharm 2017.1.4  (built on June 13, 2017)

0

Hi! Seems similar to PY-24778. Please follow it.

0

Chungeun Kim 90 Yeap, sorry for the inconvenience - Alexander is still looking into it. I copied your log to comment section of the issue.

0

I face similar issue, any update on this resolution ?

When using Pycharm to add Project Interpreter

Also if tired to add the file manually, the file gets copied for a sec and later the file size goes back to 0kb

0

The way got it working is Step1) initially On Pycharm add Server under “Project Interpreter” and ignore the error if it says as shown in the attachment Step2) create a folder .pycharm_helpers(can be any name) on server under “/opt/ats/satbasa” satbasa@wnburcdnst-ats5:~/.pycharm_helpers$mkdir /opt/ats/satbasa/.pycharm_helpers Step4) Go under “Project Interpreter” connection with edit option , there it has an option to change the helper path and give helper path from default /users/satbasa/.pycharm_helpers to /opt/ats/satbasa/.pycharm_helpers

0

I just had the same problem on PhpStorm. I solved the problem by removing the PHP CLI Interpreter (Languages & Frameworks > PHP) and adding it again.

3

@ptrkcsk

thank you, it solve the issues.
I removed the PHP CLI Interpreter, restarted phpStorm and added PHP CLI Interpreter again.

0

Please sign in to leave a comment.