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
#2
Hi all and Hails from Iceland.

Same problem here in Fedora 19 x64, running Frodo 12.2, all other FTP programs run just fine.

Code:
10:54:20 T:140256262227712 WARNING: FillBuffer: curl failed with code 28
10:54:20 T:140256262227712   ERROR: CCurlFile::CReadState::Open, didn't get any data from stream.
10:54:20 T:140257543805120   ERROR: GetDirectory - Error getting ftp://[email protected]:xxx/TV Shows/
10:54:20 T:140257543805120   ERROR: CGUIMediaWindow::GetDirectory(ftp://[email protected]:xxx/TV Shows/) failed
10:54:20 T:140256673105664  NOTICE: Thread Background Loader start, auto delete: false
10:54:44 T:140256262227712 WARNING: FillBuffer: curl failed with code 28
10:54:44 T:140256262227712   ERROR: CCurlFile::CReadState::Open, didn't get any data from stream.
10:54:44 T:140257543805120   ERROR: GetDirectory - Error getting ftp://[email protected]:xxx/Music/
10:54:44 T:140257543805120   ERROR: CGUIMediaWindow::GetDirectory(ftp://[email protected]:xxx/Music/) failed
10:54:44 T:140256673105664  NOTICE: Thread Background Loader start, auto delete: false

Don't have the server logs as it's a remote one.
Reply
#3
Hi, any solution for this?
I have the same problem.
Ubuntu 13.10 Desktop XBMC 12.2 and tried XBMC 12.3 wont connect to my FTP server.
Using other FTP client, everything works just fine.

13.10 is currently on Ubuntu download and I regret I installed it, but it is too late now.
Reply
#4
ignore me, I misread and have no permission to delete Sad
Reply
#5
(2013-11-25, 12:16)Djape Wrote: Hi, any solution for this?

Unfortunately it's still the same for me. There is seems to be no problem with any other FTP client than XBMC on Ubuntu 13.10, everything I've tried points to some clash between the latest Ubuntu version and XBMC.

Hopefully someone with more in-depth knowledge on the issue can come up with something more.
Reply
#6
I have the same problem with ubuntu 13.10 and XBMC 12.2

#WARNING: FillBuffer: curl failed with code 28
Reply
#7
Hi,

seems that xbmc can't handle the newer libcurl3-gnutls properly. Mine was v7.32. Ditched it and installed 7.29 instead. You have to pin it afterwards to prevent it from updating. But be aware that this is a crucial library and you will have to reinstall your desktop, libre office, etc.

Have fun
Reply
#8
13.0-ALPHA9 Git:201310211445-1ae <-- I'd also repeat the advice given to me, look at upgrading your XBMC build.

(I'm on 2:13.0~git20131228.0500-dd9ad18-0raring)
Reply
#9
(2013-12-27, 21:08)wfr1 Wrote: Hi,

seems that xbmc can't handle the newer libcurl3-gnutls properly. Mine was v7.32. Ditched it and installed 7.29 instead. You have to pin it afterwards to prevent it from updating. But be aware that this is a crucial library and you will have to reinstall your desktop, libre office, etc.

Have fun

you need a xbmc version that was compiled against it, so upgrade xbmc as was already advised.
Reply
#10
Here is how to fix

Download this file here to your ~/Downlaods: http://launchpadlibrarian.net/137271377/..._amd64.deb

Open terminal, run these commands
Code:
sudo dpkg -P --force-all libcurl3-gnutls
sudo dpkg -i '~/Downloads/libcurl3-gnutls_7.29.0-1ubuntu3_amd64.deb'

This will not require you to reinstall all the other packages that depend on libcurl3-gnutls.

Open Synaptic Package Manger
Search for libcurl3-gnutls
Highlight libcurl3-gnutls
In the menu bar, click Package->Lock Version

Image

Then run this in terminal.

Code:
echo "libcurl3-gnutls hold" | sudo dpkg --set-selections


Working with 12.3 Frodo on a fresh Ubuntu 13.10 install.
Reply
#11
blindmist's solution confirmed. Thanks!
Reply

Logout Mark Read Team Forum Stats Members Help
FTP passive problem after upgrading to Ubuntu 13.101