Linux FTP passive problem after upgrading to Ubuntu 13.10
#1
After upgrading to Ubuntu 13.10 today I wasn't able to connect to my FTP library any longer. This worked just fine right before upgrading. The issue seems to be issuing PASV when connecting to the FTP server.

I'm currently using XBMC 13.0-ALPHA9 Git:201310211445-1ae

What I've tried so far is:
Earlier version of XBMC (12.0), no difference.
Connecting over FTP with another client than XBMC. Works fine, see log below.
Appended ?active to the FTP path. Gets me in to the FTP server and lists the files, but unable to play anything since it reverts back to passive mode.

Logs from when using XBMC

XBMC debug log:
Code:
02:23:59 T:140375583381440   DEBUG: CGUIMediaWindow::GetDirectory (ftp://simon:********@xxxx.xxxx.xx/)
02:23:59 T:140375583381440   DEBUG:   ParentPath = [sources://video/]
02:23:59 T:140375184512768   DEBUG: CurlFile::Open(0x7faba501f7c0) ftp://simon:********@xxxx.xxxx.xx/
02:24:09 T:140375184512768   ERROR: CCurlFile::FillBuffer - Failed: Timeout was reached(28)
02:24:09 T:140375184512768   ERROR: CCurlFile::CReadState::Connect, didn't get any data from stream.
02:24:09 T:140375583381440   ERROR: GetDirectory - Error getting ftp://simon:********@xxxx.xxxx.xx/
02:24:09 T:140375583381440   ERROR: CGUIMediaWindow::GetDirectory(ftp://simon:********@xxxx.xxxx.xx/) failed
02:24:09 T:140375583381440   DEBUG: CGUIMediaWindow::GetDirectory (sources://video/)
02:24:09 T:140375583381440   DEBUG:   ParentPath = []

FTP Server log:
Code:
(019434)2013-10-23 02:24:10 - (not logged in) (xxx.xxx.xxx.xxx)> Connected, sending welcome message...
(019434)2013-10-23 02:24:10 - (not logged in) (xxx.xxx.xxx.xxx)> 220-FileZilla Server version 0.9.41 beta
(019434)2013-10-23 02:24:10 - (not logged in) (xxx.xxx.xxx.xxx)> 220-written by Tim Kosse ([email protected])
(019434)2013-10-23 02:24:10 - (not logged in) (xxx.xxx.xxx.xxx)> 220 Please visit http://sourceforge.net/projects/filezilla/
(019434)2013-10-23 02:24:10 - (not logged in) (xxx.xxx.xxx.xxx)> USER simon
(019434)2013-10-23 02:24:10 - (not logged in) (xxx.xxx.xxx.xxx)> 331 Password required for simon
(019434)2013-10-23 02:24:10 - (not logged in) (xxx.xxx.xxx.xxx)> PASS ********
(019434)2013-10-23 02:24:10 - simon (xxx.xxx.xxx.xxx)> 230 Logged on
(019434)2013-10-23 02:24:10 - simon (xxx.xxx.xxx.xxx)> PWD
(019434)2013-10-23 02:24:10 - simon (xxx.xxx.xxx.xxx)> 257 "/" is current directory.
(019434)2013-10-23 02:24:10 - simon (xxx.xxx.xxx.xxx)> PASV
(019434)2013-10-23 02:24:10 - simon (xxx.xxx.xxx.xxx)> 227 Entering Passive Mode (xxx,xxx,xxx,xxx,240,246)
(019434)2013-10-23 02:24:20 - simon (xxx.xxx.xxx.xxx)> disconnected.

Logs from working connection

FTP Client (same computer as XBMC):
Code:
Status:    Resolving address of xxxxxx.xxxxxx.xx
Status:    Connecting to xxx.xxx.xxx.xxx:21...
Status:    Connection established, waiting for welcome message...
Response:    220-FileZilla Server version 0.9.41 beta
Response:    220-written by Tim Kosse ([email protected])
Response:    220 Please visit http://sourceforge.net/projects/filezilla/
Command:    USER simon
Response:    331 Password required for simon
Command:    PASS ********
Response:    230 Logged on
Command:    SYST
Response:    215 UNIX emulated by FileZilla
Command:    FEAT
Response:    211-Features:
Response:     MDTM
Response:     REST STREAM
Response:     SIZE
Response:     MLST type*;size*;modify*;
Response:     MLSD
Response:     UTF8
Response:     CLNT
Response:     MFMT
Response:    211 End
Status:    Connected
Status:    Retrieving directory listing...
Command:    PWD
Response:    257 "/" is current directory.
Command:    TYPE I
Response:    200 Type set to I
Command:    PASV
Response:    227 Entering Passive Mode (xxx,xxx,xxx,xxx,241,26)
Command:    MLSD
Response:    150 Connection accepted
Response:    226 Transfer OK
Status:    Directory listing successful

FTP Server:
Code:
(019435)2013-10-23 02:31:18 - (not logged in) (xxx.xxx.xxx.xxx)> Connected, sending welcome message...
(019435)2013-10-23 02:31:18 - (not logged in) (xxx.xxx.xxx.xxx)> 220-FileZilla Server version 0.9.41 beta
(019435)2013-10-23 02:31:18 - (not logged in) (xxx.xxx.xxx.xxx)> 220-written by Tim Kosse ([email protected])
(019435)2013-10-23 02:31:18 - (not logged in) (xxx.xxx.xxx.xxx)> 220 Please visit http://sourceforge.net/projects/filezilla/
(019435)2013-10-23 02:31:18 - (not logged in) (xxx.xxx.xxx.xxx)> USER simon
(019435)2013-10-23 02:31:18 - (not logged in) (xxx.xxx.xxx.xxx)> 331 Password required for simon
(019435)2013-10-23 02:31:18 - (not logged in) (xxx.xxx.xxx.xxx)> PASS ********
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)> 230 Logged on
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)> SYST
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)> 215 UNIX emulated by FileZilla
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)> FEAT
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)> 211-Features:
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)>  MDTM
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)>  REST STREAM
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)>  SIZE
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)>  MLST type*;size*;modify*;
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)>  MLSD
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)>  UTF8
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)>  CLNT
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)>  MFMT
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)> 211 End
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)> PWD
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)> 257 "/" is current directory.
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)> TYPE I
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)> 200 Type set to I
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)> PASV
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)> 227 Entering Passive Mode (xxx,xxx,xxx,xxx,241,26)
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)> MLSD
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)> 150 Connection accepted
(019435)2013-10-23 02:31:18 - simon (xxx.xxx.xxx.xxx)> 226 Transfer OK

Any help is appreciated!
Reply


Messages In This Thread
FTP passive problem after upgrading to Ubuntu 13.10 - by simonklb - 2013-10-23, 02:43
Logout Mark Read Team Forum Stats Members Help
FTP passive problem after upgrading to Ubuntu 13.101