Kodi Community Forum

Full Version: Can`t connect to SFTP. Plays one second
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi

I have a little problem. I have put together an SFTP server, and it has been working nicely for some while.
But now, it want connect any more.

This is the error message in the log:
16:27:23 T:140493279196928 ERROR: SFTPSession: Server that was known has changed
16:27:23 T:140493279196928 ERROR: SFTPSession: Host is not known 'Invalid argument in ssh_options_set'
16:27:23 T:140493279196928 ERROR: SFTPSession: Not connected, can't list directory ''
16:27:23 T:140494957782976 ERROR: GetDirectory - Error getting sftp://USERNAME:[email protected]:XXXXXX/
16:27:23 T:140494957782976 ERROR: CGUIDialogFileBrowser::GetDirectory(sftp://USERNAME:[email protected]:1010/) failed

Port and everything is OK. I can use WinSCP to log in, that`s not a problem.
The server is an zFTP Server, and I have used that for some while.

All other clients can connect, there seems just to be the problem of Kodi.

In my mind, I think there is som problem in Kodi.

Setup:
Kodi 14.2 Git:7cc53a9
ChromeBox with KodiBuntu


Hope someone can please help me. As I`m out of luck. :-(

Kindly
The ssh host key has changed. Reset it from the known keys. Kodi wants to save you from bad man in the middle attacks.
That`s a good idea.

But now, i can`t find the key. :-)
I have found the file in the system. But, now I have another problem.

I starts the movies, but there it stops.... Plays one second.

Here you can se two examples. Kongen av Bastøy, it is playing, but I get message that cash is full or something like that. Log Kongen av bastøy: http://pastebin.com/98fgzTVy

On Run all Night, I don`t get any error messages from Kodi. Maybe the log can say something. Log Run all night: http://pastebin.com/KHZThu8X

What can this be?
Not a Debug Log - nobody can say:

Quote:07:06:39 T:140492929914624 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
07:06:39 T:140492938307328 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available

Connection issue - not enough bandwidth?
Should not be that. If I try with SMB it works nice.
I can`t find any limitations on the zFTPserver neither. Maybe that server program is just to bad...

I`ve tried to open the same files via WebDrive in Windows on my other computer, and then VLC complains about something to.
But if I use normal network, it`s OK.

Isn`t SFTP good for streamin maybe?

Maybe I have to try another one, I have tried Syncplify.me, but this is to exspensive if I want some usage..
we need to see a Debug Log with curl extra loglevel enabled.

edit: are you sure its SFTP? or is it FTPS?
from looking at the zFTPserver page, it supports both. SFTP = SSH, which is the worst protocol for streaming. Try FTPS
Thank`s, I will try FTPS instead.

I`ll be back :-)
Now I have added FTPS to the server, but can`t find a way to add FTPS inside Kodi.

FTP seems to work, but then it is not as secure, as I understand?
add "|auth=TLS" at the end of your FTP source URL

e.g.
Code:
ftp://user:[email protected]:port/path|auth=TLS
Looks like I get it to work.
Waiting for the scan. :-)
It is strange.
It can`t find more than 3 of 376 movies, with "auth=TLS"

And it does not help to deactivate the security on server or Kodi.
But if I browse in "file" mode, I can watch the movies, but the errors are still showing when it prepering the list in Kodi on the server.

Log from FTPS server: http://pastebin.com/KDAfbj4p
Log from Kodi: http://pastebin.com/yAwm6evd

I think I have tried everything that I know about. But that isn`t to much.
Error 550, as far as I know "No access", but there should not be access restrictions..
not a Debug Log. Anyway, the FTP server log clearly says that your user does not have permission to read/write to those dirs.
Check your server setup.
Hi again

Can`t find any error on the server side.

It works nicely when I connect with another program, like WinCSP. I can upload files, download, write etc.
An this is with the same user as Kodi uses.
But Kodi, still gets the same errors on the server.

Log from Kodi, with Kodi logging activated :-) : http://pastebin.com/dRggnVs3

And this is the sources file: http://pastebin.com/dbuULAhT

Kindly
seems much of the stuff is already in the DB:
10:26:48 T:140107022259968 DEBUG: VideoInfoScanner: Skipping dir 'ftp://USERNAME:[email protected]:1010/Serier/Two and a half Men/' due to no change

did you try if you can see and play stuff from the Files view? If yes, its a scraping issue.
You also might want to upgrade kodi to v15, as a bug related to ftp was fixed there.
Pages: 1 2