SSL and TLS support in XBMC's FTP client (libcurl / curl) for FTPS
#46
vdrfan Wrote:Try again with
Code:
[url]ftp://user:pass@host:port/?auth=ssl&pasvip=1[/url]

won't work:

Code:
15:23:42 T:2688456480 M:1431293952   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
15:23:42 T:2688456480 M:1431392256   ERROR: GetDirectory - Error getting ftp://ktk:[email protected]:21010/?auth=ssl&pasvip=1
15:23:42 T:2688456480 M:1431392256   ERROR: CGUIDialogFileBrowser::GetDirectory(ftp://ktk:[email protected]:21010/?auth=ssl&pasvip=1) failed
Reply
#47
I too am interested in this.

I used to try this on the good old XBOX a few years back,
while it worked, the caching wasn't optimal, and XBMC used way too many connections.
(This because it has alot of overhead when playing back files, it checks too many things when used for FTP streaming).

It would be nice to be able to specify a connection limit.
And more advanced libcurl options.
Reply
#48
Now I recall that somehow SSL FTP doesn't work on Xbox probably because of the fact that Xbox uses YaSSL and not GNU-TLS/OpenSSL like on the other platforms. You *may* want to use secure-HTTP(HTTPS) or secure-Webdav(webdavs) instead since those do work on Xbox
-= Team Kodi developer fueled by heavy metal =-
Reply
#49
arnova Wrote:Now I recall that somehow SSL FTP doesn't work on Xbox probably because of the fact that Xbox uses YaSSL and not GNU-TLS/OpenSSL like on the other platforms. You *may* want to use secure-HTTP(HTTPS) or secure-Webdav(webdavs) instead since those do work on Xbox

I have switched to the Windows version for over a year now.
But there are alot of features in the XBOX version that got removed in the Windows version.

Like caching, or the option to not automatically make rar's transparant in listing.

In my opinion, you can never have too many options (yes, I know, this provides alot of extra work for the devs).

XBMC right now is not able to stream from any FTP source, without connecting a gazillion times to it, for each rar files in a rarset, it made a new connection, instead of sequencing them..
And it tries to read all rarfiles, even when the part of the video being requested is still in the .rar and not yet in the .r00 - rXX files.
The rarlib always tries to see if all files are present before playback (they can be 0bytes).

Having options to reduce connections to a remote share is a must.
Especially if you have a slow DSL line, I used to have 300KB/s (4Mbit).

And I couldn't even stream 1Mbit/s XviD's, without getting buffering now and then.
I have since implemented OpenVPN on my server, and setup a samba share.
And I have 20Mbit internet, but I can't stream 720p x264, coz when the bitrate spikes, XBMC starts buffering again, but the buffer is too small, and will only play for 10-15s.
And then it starts buffering again :/

Speed over samba is a good 1.5MB/s, so with a bit better caching I should be able to just stream all 720p content.
Reply
#50
im very happy with xbmc (win7: dharma beta1; linux: 9.11), but i have the problem that i cant connect to my ftp server!

i use win7 und ftp is running on linux with auth tls!

is there any resolution to get it work?

i've tried ftps,ftp://user:pw@domain/?auth=tls but it doesnt work!

without tls/ssl it works fine.
Reply
#51
Need debug log -> pastebin.
-= Team Kodi developer fueled by heavy metal =-
Reply
#52
sorry for the question, but where can i find this log?!

even the source.xml is empty, but in xbmc i have different video sources.

i want to remember the system i use now is Win7!
Reply
#53
swing Wrote:i want to remember the system i use now is Win7!

deep meditatition and chanting is supposed to work. or do something fun while you remember using win7, that will give good associations!

good luck!
Reply
#54
i post it because i read in an other thread that the problem is not in linux!

but thx for help, i found the debug log Wink

Code:
DEBUG: Thread 6044 terminating
DEBUG: CGUIMediaWindow::GetDirectory (ftp://xxx:xxxx@xxx:21/?auth=tls/)
DEBUG:   ParentPath = []
DEBUG: FileCurl::Open(08DCF790) ftp://xxx:xxxx@xxx:21/
INFO: XCURL::DllLibCurlGlobal::easy_aquire - Created session to ftp://xxx:21
DEBUG: ------ Window Init (DialogBusy.xml) ------
DEBUG: Win32DllLoader::Load(ADVAPI32.DLL)
DEBUG: Win32DllLoader::Load(KERNEL32.DLL)
DEBUG: Win32DllLoader::Load(NETAPI32.DLL)
DEBUG: FreeLibrary(NETAPI32.DLL) -> 06CF51F8
DEBUG: Win32DllLoader::Unload NETAPI32.DLL
DEBUG: FreeLibrary(ADVAPI32.DLL) -> 06CF50B8
DEBUG: Win32DllLoader::Unload ADVAPI32.DLL
DEBUG: Win32DllLoader::Load(USER32.DLL)
DEBUG: FreeLibrary(USER32.DLL) -> 06CF50B8
DEBUG: Win32DllLoader::Unload USER32.DLL
DEBUG: FreeLibrary(KERNEL32.DLL) -> 06CF52E8
DEBUG: Win32DllLoader::Unload KERNEL32.DLL
WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 56
ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
DEBUG: FileCurl::Close(08DCF790) ftp://xxx:xxxx@xxx:21/
ERROR: XFILE::CDirectory::GetDirectory - Error getting ftp://xxx:xxxx@xxx:21/?auth=tls/
ERROR: CGUIMediaWindow::GetDirectory(ftp://xxx:xxxx@xxx:21/?auth=tls/) failed
DEBUG: CGUIMediaWindow::GetDirectory ()
DEBUG:   ParentPath = []
Reply
#55
same here on windows 7 and 10.0-beta1

03:27:27 T:4136 M:560087040 ERROR: XFILE::CDirectory::GetDirectory - Error getting ftp://..
Reply
#56
Indeed it was broken. Fixed in trunk. Not sure this will make it to Dharma before release.
-= Team Kodi developer fueled by heavy metal =-
Reply
#57
Hope! Smile
Reply
#58
Any news for SSL support with FTP ?
Reply
#59
This has already been fixed several weeks ago in both trunk and Dharma release branch...
-= Team Kodi developer fueled by heavy metal =-
Reply
#60
Acknowledged!
tested with http://mirrors.xbmc.org/releases/win32/x...ma_rc1.exe
works somewhat lists dirs and plays extracted files but fails to play rars (which works with normal ftp though)

14:29:44 T:5368 M:986693632 ERROR: XFILE::CFileRar::Seek - Timeout waiting for seek to finish
14:29:44 T:5368 M:986607616 WARNING: could not find codec parameters for rar://ftp...xvid.avi
14:29:44 T:5368 M:986451968 ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
14:29:44 T:5368 M:986451968 NOTICE: CDVDPlayer::OnExit()
14:29:44 T:5368 M:986451968 NOTICE: CDVDPlayer::OnExit() deleting input stream
14:29:45 T:700 M:986505216 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 67
14:29:45 T:700 M:986505216 ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
14:29:45 T:6076 M:986537984 ERROR: Playlist Player: skipping unplayable item: 0, path [rar://ftp...xvid.avi]
14:29:45 T:6076 M:986533888 NOTICE: CDVDPlayer::CloseFile()
14:29:45 T:6076 M:986533888 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
14:29:45 T:6076 M:986533888 NOTICE: DVDPlayer: waiting for threads to exit
14:29:45 T:6076 M:986533888 NOTICE: DVDPlayer: finished waiting
Reply

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