16 Replies Last post: Aug 11, 2010 5:15 PM by Dmitriy Zavalkin  
uwonder Newbie 6 posts since
Feb 5, 2010
Currently Being Moderated

Feb 5, 2010 8:13 PM

FTP doesn't list/transfer files; Copy option?; SVN version?

1.

I set up a Remote Host successfully (in that WebIDE says it is successful and autodetects htdocs root), but no file listing appears in the Remote Host pane, and when I try to download or upload the File Transfer pane says "No files or folders found to transfer".

 

The host is Novell Netware. (S)FTP works fine on a Linux remote host.

 

Is there a debugging option or log file I can look at.

 

2.

We map drives to our webserver filesystems. Is there any way within WebIDE to copy files to the mapped drive instead of uploading through FTP? The ideal situation for us would be this:

- Edit file

- Hit key combo which performs user defined actions such as syntax check, formatting, send email, make a sandwich, copy to mapped drive, opens page in browser

 

3.

Because the rest of the team uses Dreamweaver, we are forced to use Subversion client 1.4. What client version does WebIDE use? Is there a way to specify a different SVN client or version in WebIDE?

 

Thanks.

Alexey Gopachenko JetBrains 1,294 posts since
Aug 22, 2002
Currently Being Moderated
Feb 8, 2010 12:22 AM in response to: uwonder
Re: FTP doesn't list/transfer files; Copy option?; SVN version?

There will be separate response regarding FTP.  As for SVN - All IntellJ platform based products do not use external client and support SVN natively (Up to version 1.6)

Alexey Gopachenko JetBrains 1,294 posts since
Aug 22, 2002
Currently Being Moderated
Feb 8, 2010 11:11 AM in response to: uwonder
Re: FTP doesn't list/transfer files; Copy option?; SVN version?
Kirill Safonov JetBrains 122 posts since
Dec 30, 2008
Currently Being Moderated
Feb 8, 2010 12:45 PM in response to: uwonder
Re: FTP doesn't list/transfer files; Copy option?; SVN version?

Hello David,

 

but no file listing appears in the Remote Host pane

How does Remote Host view look? Does it display an error message or shows root node?

 

the File Transfer pane says "No files or folders found to transfer"

 

You need to setup mappings between your local and remote folders. Web IDE will use these mappings when uploading/downloading the files (and opening server pages in browser). Please open Settings dialog and go to Remote Deployment screen.

 

Regards,

Kirill

Kirill Safonov JetBrains 122 posts since
Dec 30, 2008
Currently Being Moderated
Feb 10, 2010 8:02 AM in response to: uwonder
Re: FTP doesn't list/transfer files; Copy option?; SVN version?

Hello David,

 

Please take the FTP logs:

 

1. open <WEBIDE_HOME>/bin/log.xml with a text editor

2. scroll to the bottom, add the following lines before <root> tag:

 

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

 

3. restart Web IDE

5. Open Remote Host view

 

 

By default the log is at ~/.WebIde10/system/log/idea.log on Windows and Linux and at ~/Library/Caches/WebIde10/log/idea.log on Mac.

 

Thanks,

Kirill

Rento Rinalds Newbie 1 posts since
Jul 3, 2010
Currently Being Moderated
Jul 3, 2010 5:19 PM in response to: Kirill Safonov
Re: FTP doesn't list/transfer files; Copy option?; SVN version?

I have the similar problem to connect to FTP server and list the file contents.

 

Here is DEBUG information from log file:

 

2010-07-03 13:57:06,396 [  33171]  DEBUG - ains.plugins.webDeployment.ftp - 220-*****************************************************

220-Welcome to FTP

220-Please use your email address and password to login.

220-If you are registered for more than one site then your login name must be: yourcompany.com/you@youremail.com.

220-*****************************************************

220-

220 FTP Server Ready

2010-07-03 13:57:06,399 [  33174]  DEBUG - ains.plugins.webDeployment.ftp - > USER yourcompany.com/you@youremail.com

2010-07-03 13:57:06,422 [  33197]  DEBUG - ains.plugins.webDeployment.ftp - 331 User yourcompany.com/you@youremail.com logged in, needs password

2010-07-03 13:57:06,422 [  33197]  DEBUG - ains.plugins.webDeployment.ftp - > PASS ******

2010-07-03 13:57:07,541 [  34316]  DEBUG - ains.plugins.webDeployment.ftp - 230 Password ok, FTP server ready

2010-07-03 13:57:07,542 [  34317]  DEBUG - ains.plugins.webDeployment.ftp - > TYPE I

2010-07-03 13:57:07,565 [  34340]  DEBUG - ains.plugins.webDeployment.ftp - 200 Binary transfer mode active.

2010-07-03 13:57:07,581 [  34356]  DEBUG - ains.plugins.webDeployment.ftp - > SYST

2010-07-03 13:57:07,604 [  34379]  DEBUG - ains.plugins.webDeployment.ftp - 550 Unknown command

2010-07-03 13:57:07,612 [  34387]   WARN - loyment.ui.WebServerConfigForm - Could not list the contents of folder "ftp://yourcompany.com/".

org.apache.commons.vfs.FileSystemException: Could not list the contents of folder "ftp://yourcompany.com/".

 

I'm connecting with other FTP clients like FIleZilla and CuteFTP and have no problem list / upload files.

 

Is there a way to edit FTP commands which are used to list files on FTP server or is there any other ideas how could I fix this error and connect to th FTP server?

 

Thanks in advance,

Rento

Kirill Safonov JetBrains 122 posts since
Dec 30, 2008
Currently Being Moderated
Jul 3, 2010 10:18 PM in response to: Rento Rinalds
Re: FTP doesn't list/transfer files; Copy option?; SVN version?

Hello Rento,

 

thanks for logs,

 

You server seems to have SYST command disallowed (probably for security) - you can confirm this by checking that

Caused by: org.apache.commons.net.ftp.parser.ParserInitializationException: Parser key cannot be null

message is in your log file right after the part you've put here.

 

Currently PhpStorm issues SYST command when connecting to figure out the  OS that server is running, and parse the result of LIST command accordingly (different OSs may give results in slightly different way).

 

This is likely we need to fix, i.e. expecting some default LIST results format. I've opened an issue for that: http://youtrack.jetbrains.net/issue/WI-2475, please watch/vote to be notified when it's fixed. The only current workaround I see is to allow SYST command on your FTP server.

 

Regards,

Kirill

Alessandro Curci Newbie 4 posts since
Aug 5, 2010
Currently Being Moderated
Aug 5, 2010 6:55 PM in response to: Kirill Safonov
Re: FTP doesn't list/transfer files; Copy option?; SVN version?

I'm having the same problem with FTP, the remote host panel is empty, but that seems caused by a timeout problem.

 


2010-08-05 16:39:08,936 [  22611]  DEBUG - ains.plugins.webDeployment.ftp - 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 57 of 400 allowed.
220-Local time is now 07:39. Server port: 21.
220-This is a private system - No anonymous login
220 You will be disconnected after 15 minutes of inactivity. 
2010-08-05 16:39:08,938 [  22613]  DEBUG - ains.plugins.webDeployment.ftp - > USER *******************
2010-08-05 16:39:09,472 [  23147]  DEBUG - ains.plugins.webDeployment.ftp - 331 User ******************* OK. Password required 
2010-08-05 16:39:09,473 [  23148]  DEBUG - ains.plugins.webDeployment.ftp - > PASS ****** 
2010-08-05 16:39:10,002 [  23677]  DEBUG - ains.plugins.webDeployment.ftp - 230-User ******************* has group access to:  31936   
230 OK. Current directory is / 
2010-08-05 16:39:10,003 [  23678]  DEBUG - ains.plugins.webDeployment.ftp - > TYPE I 
2010-08-05 16:39:10,372 [  24047]  DEBUG - ains.plugins.webDeployment.ftp - 200 TYPE is now 8-bit binary 
2010-08-05 16:39:10,373 [  24048]  DEBUG - ains.plugins.webDeployment.ftp - > CWD / 
2010-08-05 16:39:10,792 [  24467]  DEBUG - ains.plugins.webDeployment.ftp - 250 OK. Current directory is / 
2010-08-05 16:39:10,821 [  24496]  DEBUG - ains.plugins.webDeployment.ftp - > SYST 
2010-08-05 16:39:11,185 [  24860]  DEBUG - ains.plugins.webDeployment.ftp - 215 UNIX Type: L8 
2010-08-05 16:39:11,200 [  24875]  DEBUG - ains.plugins.webDeployment.ftp - > PORT 1,90,15,49,177,125 
2010-08-05 16:39:11,592 [  25267]  DEBUG - ains.plugins.webDeployment.ftp - 200 PORT command successful 
2010-08-05 16:39:11,593 [  25268]  DEBUG - ains.plugins.webDeployment.ftp - > LIST -a 
2010-08-05 16:39:32,952 [  46627]  DEBUG - ains.plugins.webDeployment.ftp - 425 Could not open data connection to port 45437: Connection timed out 
2010-08-05 16:39:32,954 [  46629]  DEBUG - ains.plugins.webDeployment.ftp - > PORT 1,90,15,49,202,165 
2010-08-05 16:39:33,224 [  46899]  DEBUG - ains.plugins.webDeployment.ftp - 200 PORT command successful 
2010-08-05 16:39:33,225 [  46900]  DEBUG - ains.plugins.webDeployment.ftp - > LIST -a 
2010-08-05 16:39:54,532 [  68207]  DEBUG - ains.plugins.webDeployment.ftp - 425 Could not open data connection to port 51877: Connection timed out 
:

 

what's strange is that another FTP client (Filezilla) works just fine:

 

Response:    220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response:    220-You are user number 44 of 400 allowed.
Response:    220-Local time is now 07:35. Server port: 21.
Response:    220-This is a private system - No anonymous login
Response:    220 You will be disconnected after 15 minutes of inactivity.
Command:    USER ******************** 
Response:    331 User ******************* OK. Password required
Command:    PASS **************
Response:    230-User developer@dev.maddai.com has group access to:  31936   
Response:    230 OK. Current directory is /
Command:    SYST
Response:    215 UNIX Type: L8
Command:    FEAT
Response:    211-Extensions supported:
Response:     EPRT
Response:     IDLE
Response:     MDTM
Response:     SIZE
Response:     REST STREAM
Response:     MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
Response:     MLSD
Response:     TVFS
Response:     ESTP
Response:     PASV
Response:     EPSV
Response:     SPSV
Response:     ESTA
Response:     AUTH TLS
Response:     PBSZ
Response:     PROT
Response:    211 End.
Status:    Connected
Status:    Retrieving directory listing...
Command:    PWD
Response:    257 "/" is your current location
Command:    TYPE I
Response:    200 TYPE is now 8-bit binary
Command:    PASV
Response:    227 Entering Passive Mode (64,13,238,111,217,131)
Command:    MLSD
Response:    150 Accepted data connection
Response:    226-ASCII
Response:    226-Options: -a -l 
Response:    226 44 matches total
Status:    Directory listing successful

 

Regards,

Alessandro Curci

Kirill Safonov JetBrains 396 posts since
Jul 9, 2009
Currently Being Moderated
Aug 5, 2010 7:07 PM in response to: Alessandro Curci
Re: FTP doesn't list/transfer files; Copy option?; SVN version?

Hello Alessandro,

 

Can you try connecting with 'Passive mode' option enabled at File | Settings | Deployment | (your FTP server) | Advanced options... dialog?

 

Regards,

Kirill

Alessandro Curci Newbie 4 posts since
Aug 5, 2010
Currently Being Moderated
Aug 5, 2010 7:44 PM in response to: Kirill Safonov
Re: FTP doesn't list/transfer files; Copy option?; SVN version?

Thanks Kirill,

passive mode did the trick, and found that Filezilla uses passive too as it can't retrive directory listing when forced to active.

 

Best regards

Alessandro

Dmitriy Zavalkin Novice 240 posts since
Nov 11, 2009
Currently Being Moderated
Aug 6, 2010 12:27 PM in response to: Alessandro Curci
Re: FTP doesn't list/transfer files; Copy option?; SVN version?

Shouldn't PhpStorm catch this issue and resolve it in the same way as Filezilla does?

Kirill Safonov JetBrains 396 posts since
Jul 9, 2009
Currently Being Moderated
Aug 6, 2010 12:55 PM in response to: Dmitriy Zavalkin
Re: FTP doesn't list/transfer files; Copy option?; SVN version?

Hello Dmitriy,

 

Well, the reason (firewall blocking data connection) is hard to detect with certainty, so usually FTP client applications let user choose connection mode.

 

Regards,

Kirill

Dmitriy Zavalkin Novice 240 posts since
Nov 11, 2009
Currently Being Moderated
Aug 11, 2010 3:56 PM in response to: Kirill Safonov
Re: FTP doesn't list/transfer files; Copy option?; SVN version?

But Alessandro said that Filezilla can catch this problem...

Alessandro Curci Newbie 4 posts since
Aug 5, 2010
Currently Being Moderated
Aug 11, 2010 4:50 PM in response to: Dmitriy Zavalkin
Re: FTP doesn't list/transfer files; Copy option?; SVN version?

I haven't said it can catch the problem, but just that it doesn't woork too when forced to active.

FIlezilla worked "out of the box" because the default setting that new connections inherit from the general settings is passive (marked as recomended too).

 

Regards

 

Alessandro Curci

Dmitriy Zavalkin Novice 240 posts since
Nov 11, 2009
Currently Being Moderated
Aug 11, 2010 5:15 PM in response to: Alessandro Curci
Re: FTP doesn't list/transfer files; Copy option?; SVN version?

Ahh, Kirill, sorry, i'm wrong in this case.

More Like This

  • Retrieving data ...