Error while trying to create a new project via SFTP

When I try to create a new project from existing files over SFTP, I get the error:

invalid descendent file name "\"

Although this message might sound like there is no connection with the server, if I try to explore the remote folders (select "..." right next to "Root path"), I actually can (browse remote filesystem)! Doesn't this mean the connection works?!?



Attachment(s):
jetbrains.jpg
9 comments
Comment actions Permalink

Hello Din,

Looks like you have a file which name contains backslash (see http://youtrack.jetbrains.net/issue/WI-1736). Can you please provide download log file?

Regards,
Kirill

0
Comment actions Permalink

Where is that file? In root folder?

I attach log.



Attachment(s):
jetbrains.log.zip
0
Comment actions Permalink

Hello Din,

It may be anywhere in the folder you're trying to download files from, or it's subfolders. You can try to find it using any OS tool.

I attach log.


Unfortunately, log does not contain information we need, please ensure you've done all the steps properly.

Regards,
Kirill

0
Comment actions Permalink

I added:

<category name="com.jetbrains.plugins.webDeployment">
   <priority value="DEBUG"/>
</category>


to log.xml to make the log entry I've sent you. Should I have added something else, so that the log is more helpful? Maybe something else instead of com.jetbrains.plugins.webDeployment? Please specify.

Also, I created a temporary subfolder which has no content at all and tried to SFTP to that and again I got exactly the same message. This folders is 100% empty so there is no way PHPStorm finds a file with bad name.

Thanks for the help Kirill, I appreciate it!

0
Comment actions Permalink

Hello Din,

Please make sure you've added <category... > </category> just before <root> tag in log.xml and restarted the application before taking the log.

Regards,
Kirill

0
Comment actions Permalink

My mistake, I had placed it in the wrong place.

Now the debug info shows that after PHPStorm connects, ins.plugins.webDeployment.sftp performs an ls ., which is actually an ls in the users home directory. That was the location of the file with the offensive name. Deleted it and everything works fine now.

Just out of curiosity, is this ls in the user's home directory necessary?

Anyway thanks for helping me out!

0
Comment actions Permalink

Hello Din,

When exactly does this error appear? Before remote filesystem tree is shown, or when wizard is finished?

Can you please provide more details on your SFTP server configuration, remote folder you're trying to download from and the folder that ls is done for?

Regards,
Kirill

0
Comment actions Permalink

ksafonov wrote:

When exactly does this error appear? Before remote filesystem tree is shown, or when wizard is finished?

Right after I enter my server's connection details and press "Test connection". Until that time I haven't seen the remote filesystem.

Can you please provide more details on your SFTP server configuration, remote folder you're trying to download from and the folder that ls is done for?

Unfortunately I'm not the administrator so I'm afraid I can't help you much. If you have any specific question, I can't forward it to my admin, if it helps you.

Also I attach the log file that shows what I've said in my previous message:

Thanks again Kirill for helping me sort this out :)



Attachment(s):
phpstorm_log.txt.zip
0
Comment actions Permalink

Hello Din,

Right after I enter my server's connection details and press "Test connection"

OK I see.

Unfortunately I'm not the administrator so I'm afraid I can't help you much

Nope, basically I was asking for your SFTP server root path entered at File | Settings | Deploment dialog.

Thanks again Kirill for helping me sort this out :)


You're always welcome! :)

Regards,
Kirill

0

Please sign in to leave a comment.