Can't Download From Remote Server via SFTP

Hi, I'm trying to create a new phpstorm project using my project files on a remote web server. I can SSH & SFTP without PHPStorm in no prob. The first error I encounter is attempting to select my remote server; when I test the connect, it is successful. When I do not check off 'Don't check HTTP connection to server', I get:

Connection to 'Server' failed.
HEAD method failed for "ip address" with HTTP status 401.

If I check that box off, I can proceed and I am brought to a list of all directories on my remote server. I select my project as the project root, and attempt to download. Collecting files goes smoothly, and downloading goes by well until a particular file is reached. Error msg:

Downloading Project Files failed: failed to transfer file 'wireframes.scssc': channel is not opened.

I tried to exclude that directory from download, but it had no effect. Any suggestions?

2 comments
Comment actions Permalink

Hi there,

The first error I encounter is attempting to select my remote server; when I test the connect, it is successful. When I do not check off 'Don't check HTTP connection to server', I get:

Connection to 'Server' failed.
HEAD method failed for "ip address" with HTTP status 401.

I suggest to just skip such validation -- I personally see little value in it.

Basically, the "Don't check HTTP connection to server" option should be enabled to skip such check.

Downloading Project Files failed: failed to transfer file 'wireframes.scssc': channel is not opened.

I may only suggest to enable extra logging for deployment operations (must be done while IDE is closed), try deployment/download again and then check the logs for possible hints.


The log file (idea.log) can easily be accessed via "Help | Show Log in ..."

Any suggestions?

A few (personal thoughts):

Do not use New Project Wizard and do the job "manually". I mean:

1.
a) Create brand new empty project locally
b) Configure deployment manually ("Settings/Preferences | Build, Execution, Deployment | Deployment")
c) Configure it; do not forget to mark it as Default for this project
d) Using Remote Host panel (once closed, can be reached via "Tools | Deployment | Browse Remote Host") browse and download only desired files/folders

2.
a) Download your project using your favourite download tool (e.g. FileZilla etc) and place it next to your normal projects
b) Just use "Open" from Welcome screen (when all projects are closed) or "File | Open Directory" and point to the project root -- it will be opened as a project
c) Configure deployment manually to upload your new/modified code back to your test/dev/production server

0

Please sign in to leave a comment.