PHPStorm + Remote PHP Interpreter: PS is trying to create .phpstorm_helpers in the wrong place

Hello,

I'm (still) trying to setup Xdebug in combination with PHPStorm 2016.1.

When I select the PHP binary and finally click on the "reload" icon I get an error message:

Logfile:

2016-03-31 11:53:57,776 [85566940]  ERROR - ugins.remotesdk.RemoteTransfer - Can't copy helpers
org.apache.commons.vfs2.FileSystemException: Could not copy "file:///C:/Users/User/AppData/Local/Temp/phpstorm-helpers/behat.php" to "sftp://192.168.0.40:99/.phpstorm_helpers/behat.php".
    at com.jetbrains.plugins.webDeployment.TransferOperation.copyFrom(TransferOperation.java:854)
    at com.jetbrains.plugins.webDeployment.TransferOperation.copyFile(TransferOperation.java:736)
    at com.jetbrains.plugins.webDeployment.TransferOperation.access$200(TransferOperation.java:28)
    at com.jetbrains.plugins.webDeployment.TransferOperation$Copy.execute(TransferOperation.java:228)
    at com.jetbrains.plugins.remotesdk.RemoteTransfer.executeOperationsBatch(RemoteTransfer.java:353)
    at com.jetbrains.plugins.remotesdk.RemoteTransfer.doCopyHelpers(RemoteTransfer.java:214)
    at com.jetbrains.plugins.remotesdk.RemoteTransfer.access$000(RemoteTransfer.java:42)
    at com.jetbrains.plugins.remotesdk.RemoteTransfer$2.run(RemoteTransfer.java:137)
    at com.jetbrains.plugins.remotesdk.RemoteTransfer$4.run(RemoteTransfer.java:163)
    at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563)
    at com.intellij.openapi.progress.impl.CoreProgressManager$8.run(CoreProgressManager.java:357)
    at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127)
    at com.intellij.openapi.application.impl.ApplicationImpl$13$1.run(ApplicationImpl.java:633)
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:369)
    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://192.168.0.40:99/.phpstorm_helpers".
    at org.apache.commons.vfs2.provider.AbstractFileObject.createFolder(AbstractFileObject.java:426)
    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:45)
    at com.jetbrains.plugins.webDeployment.TransferOperation.copyFrom(TransferOperation.java:851)
    ... 22 more
Caused by: 3: Permission denied
    at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2846)
    at com.jcraft.jsch.ChannelSftp.mkdir(ChannelSftp.java:2155)
    at com.jetbrains.plugins.webDeployment.config.LoggingSftpChannel.mkdir(LoggingSftpChannel.java:280)
    at org.apache.commons.vfs2.provider.sftp.SftpFileObject.doCreateFolder(SftpFileObject.java:266)
    at org.apache.commons.vfs2.provider.AbstractFileObject.createFolder(AbstractFileObject.java:415)
    ... 27 more

2016-03-31 11:53:58,556 [85567720]   INFO - esdk.transport.JschExecProcess - Executing ssh command: env "JETBRAINS_REMOTE_RUN"="1" /usr/bin/php /.phpstorm_helpers/phpinfo.php for phpstorm@192.168.0.40:99


/etc/passwd
phpstorm:x:1035:100::/var/services/homes/phpstorm:/opt/bin/bash


Well PS is right, it can't create a directory in /
But why isn't the IDE using the users home directory?

 

Best regards

 

1 comment

Hello,

PhpStorm is not trying to create anything in "/" but it will try to create a folder in the home directory of the user - "phpstorm" in our case.

What is the home directory for this user? If you login to the server as "phpstorm" user, can you create a folder or file in user's home directory?

0

Please sign in to leave a comment.