SSL and TLS support in XBMC's FTP client (libcurl / curl) for FTPS
#61
ok 2nd test with pasvip=1
pretty much the same result rars won't play
CURLE_FTP_ACCESS_DENIED (9) and
CURLE_LOGIN_DENIED (67)
seem odd cause it does login and list dirs cwds to subdirs and plays extracted stuff

Code:
14:54:09 T:6076 M:941760512  NOTICE: DVDPlayer: Opening: rar://ftp...rar%3fauth%3dtls%26pasvip%3d1%2f/....mkv
14:54:09 T:6076 M:941760512 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
14:54:09 T:3712 M:941748224  NOTICE: Creating InputStream
14:55:10 T:3712 M:928448512 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 9
14:55:10 T:3712 M:928448512   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
14:55:10 T:3712 M:928448512   ERROR: XFILE::CDirectory::GetDirectory - Error getting [url]ftp://...rar?auth=tls&pasvip=1/[/url]
14:55:10 T:3712 M:928448512  NOTICE: Creating Demuxer
14:55:15 T:1384 M:928256000 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 67
14:55:15 T:1384 M:928256000   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
14:55:20 T:1384 M:931442688 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 67
14:55:20 T:1384 M:931438592   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
14:55:36 T:1384 M:931479552 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 67
14:55:36 T:1384 M:931479552   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
14:55:40 T:3712 M:931536896   ERROR: XFILE::CFileRar::Seek - Timeout waiting for seek to finish
14:55:40 T:3712 M:931348480 WARNING: could not find codec parameters for rar://ftp...rar%3fauth%3dtls%26pasvip%3d1%2f/....mkv
14:55:40 T:3712 M:931569664   ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
14:55:40 T:3712 M:931569664  NOTICE: CDVDPlayer::OnExit()
14:55:40 T:3712 M:931569664  NOTICE: CDVDPlayer::OnExit() deleting input stream
14:55:47 T:6076 M:931622912   ERROR: Playlist Player: skipping unplayable item: 0, path [rar://ftp...rar%3fauth%3dtls%26pasvip%3d1%2f/....mkv]
14:55:47 T:6076 M:931618816  NOTICE: CDVDPlayer::CloseFile()
14:55:47 T:6076 M:931618816 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
14:55:47 T:6076 M:931618816  NOTICE: DVDPlayer: waiting for threads to exit
14:55:47 T:6076 M:931618816  NOTICE: DVDPlayer: finished waiting


here is a working request of a extracted file

Code:
15:21:39 T:6076 M:905547776  NOTICE: DVDPlayer: Opening: [url]ftp://....mkv?auth=tls&pasvip=1/[/url]
15:21:39 T:6076 M:905547776 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
15:21:39 T:5140 M:905535488  NOTICE: Creating InputStream
15:22:23 T:5140 M:907853824 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 9
15:22:23 T:5140 M:907853824   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
15:22:23 T:5140 M:907853824   ERROR: XFILE::CDirectory::GetDirectory - Error getting [url]ftp://....mkv?auth=tls&pasvip=1/[/url]
15:22:23 T:5140 M:907853824  NOTICE: Creating Demuxer
15:22:35 T:5140 M:901820416  NOTICE: Opening video stream: 1 source: 256
15:22:35 T:5140 M:901820416  NOTICE: Creating video codec with codec id: 28
15:22:35 T:5140 M:902279168  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
15:22:35 T:5140 M:902053888  NOTICE: Creating video thread
Reply
#62
I can't connect to my ftp server with ssl, i have no problem with flashfxp, and its work good with another ftp without ssl

here is the log :

Code:
19:11:13 T:3700 M:1916792832   ERROR: CGUIMediaWindow::GetDirectory(ftp://user:pass@domain:port/?auth=ssl&pasvip=1/) failed
19:11:21 T:1348 M:1919524864 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 13
19:11:21 T:1348 M:1919524864   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
19:11:21 T:3700 M:1919524864   ERROR: XFILE::CDirectory::GetDirectory - Error getting ftp://user:pass@domain:port/?auth=ssl/
19:11:21 T:3700 M:1919524864   ERROR: CGUIMediaWindow::GetDirectory(ftp://user:pass@domain:port/?auth=ssl/) failed
19:12:36 T:3700 M:1958809600 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 35
19:12:36 T:3700 M:1958809600   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.

I use dharma RC1 with win 7 x64,

@coke : what is the correct syntax that you used ?

i try with

Code:
ftp://user:pass@domain:port/?auth=ssl/
ftp://user:pass@domain:port?auth=ssl/
ftp://user:pass@domain:port/?auth=ssl&pasvip=1/

and it doesn't work ! what is the problem for me ?
Reply
#63
Same Problem here. I can connect to a ssl ftp and play extracted stuff Bit rars play for a split second and then they stop.

With a normal ftp everything is Fine.

I am using dharma Final on xbmc-live.

I can test and provide feedback when needed.
Reply
#64
PANIC! Wrote:Same Problem here. I can connect to a ssl ftp and play extracted stuff Bit rars play for a split second and then they stop.

With a normal ftp everything is Fine.

I am using dharma Final on xbmc-live.

I can test and provide feedback when needed.

Need a full debug log...
-= Team Kodi developer fueled by heavy metal =-
Reply
#65
Hello

installed fliezilla 0.9.37 ftp server on my workstation and tested.

First here is a logfile with playback of a unpacked and packed file on a normal ftp. works flawlessly.

http://pastebin.com/H6ChdbRz

Second, the same ftp with ssl enabled
The avi does not play and the packed plays for a second.

http://pastebin.com/41YW8ynH

If any further testing is needed or anything else, i am here to assist.
Reply
#66
Did you also try auth=TLS ? I recall that worked better in majority of cases...
-= Team Kodi developer fueled by heavy metal =-
Reply
#67
Hi,

maybe but i am not sure because i tested alot of things.

Will try this today and post the results here.
Reply
#68
It is the same error with auth=tls as with auth=ssl
Reply
#69
Then I'm pretty sure it's a problem in the FTP server since I do have it working here on Linux with vsFTP + TLS...
-= Team Kodi developer fueled by heavy metal =-
Reply
#70
Ok, will try it with vsftpd today. Will post the reults here.
Reply
#71
doesn't work with vsftpd for me aswell with ?auth=tls
Reply
#72
Any news with this issue here?

I have a drftpd movie server and it would be awesome if I can connect to the server over xbmc.
Reply
#73
Some body make this work?
Reply

Logout Mark Read Team Forum Stats Members Help
SSL and TLS support in XBMC's FTP client (libcurl / curl) for FTPS0