Kodi Community Forum

Full Version: Cannot access SMB shares on android TV
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys, I've got a new install of Kodi 17.3 on my android tv but I cannot seem to access my SMB shares. I've tried using the computer name and IP address but it wont connect. The message is always "Connection timed out".

The shares are on my Windows 7 PC which I can access using EFS File Explorer from the TV.

I've read a number of posts related to similar issues but none of the fixes have helped. Is there some kind of bug in the build?

Any help or advice would be appreciated.
A debug log (wiki) generated while you reproduce the issue will be needed to have a clue on what could be the issue
Hi, I followed the guide and installed the Kodi uploader, then enabled logging, reproduced the error but when I try to run the upload I get an error: Error posting the kodi.log file, failed to connect to the server.

I also browsed to the "org.xbmc.kodi/files/" folder, but it's empty.

I have no issue using Plex, youtube or other network apps.

Completely stuck now...
The .kodi folder in "org.xbmc.kodi/files/" is a hidden folder (the . in the name causes it to be hidden), so you may need to enable viewing hidden files/folders in your file manager to see it.
OK finally managed to get to these files.

Here is the kodi.log http://paste.ubuntu.com/24840648/

And here is the kodi.old.log http://paste.ubuntu.com/24840652/

Looking through the log I do see the error, but doesnt really tell me much.

ERROR: SMBDirectory->GetDirectory: Unable to open directory : 'smb://USERNAMETongue[email protected]/movies'
unix_err:'6e' error : 'Connection timed out'
18:31:11.337 T:18446744072427120944 DEBUG: ------ Window Init (DialogConfirm.xml) ------
18:31:11.337 T:18446744072427120944 INFO: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
18:31:12.089 T:18446744072427120944 DEBUG: Keyboard: scancode: 0x42, sym: 0x000d, unicode: 0x000a, modifier: 0x0
18:31:12.172 T:18446744072427120944 DEBUG: OnKey: return (0xf00d) pressed, action is Select

Also, when I click to scan the network, it doesnt find anything, I would expect it to find a few things, my pc, printer, router, laptop...

By the way, I transferred these log files using EFS File Manager directly to the share I'm trying to get Kodi to connect to.

One last thing, I enabled FTP on my Win7 PC and Kodi can connect and can see my files. Is obviously something related to SMB.
Did you disable smb1 on your Windows?
No, not that I know of...
i've been having a helluva time with SMB past few days. realized that Kodi only supports SMB 1.0, so figured I may as well migrate to something more modern. downloaded nginx for windows, spent a moment modifying the conf, and bam!, best performance outta my box i've ever seen. seeking thru 40gb rips actually works. wish i would have done this years ago.

here's my conf for reference:

Code:
worker_processes  2;

events {
    worker_connections  1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;

    keepalive_timeout 65;
    keepalive_requests 100000;
    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    output_buffers 1 32k;
    postpone_output 1460;
    send_timeout 3m;
    gzip off;

    server {
        listen 888;
        server_name localhost;

        root K:/ROOT;

        location / {
            autoindex on;
        }
    }
}

edit: note, this is an unencrypted, unauthenticated connection. please have a proper firewall in place if your windows machine is internet facing.
Xeno, what protocol is that?
http.

so for instance my video source in kodi: "http://192.168.1.99:888/video"

lists the files/folders from "K:\ROOT\video" with that conf. you could always have it listen on the standard port 80 so there's slightly less to type in for your source. after that paste a shortcut from nginx.exe into your windows startup folder and the server starts up with windows.
Modern SMB is fast, Kodi really need to update the code to SMB2/3 though. I've had to keep SMB1 enabled on one of my Windows boxes to serve Kodi Android with content, as its now best practise to disable it.