Kodi device unable to read/write to SMB Server

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
Fried Chicken
DD-WRT User


Joined: 12 Jun 2019
Posts: 199
Location: Texas

PostPosted: Tue Oct 08, 2024 4:04    Post subject: Kodi device unable to read/write to SMB Server Reply with quote
All authentication and password restrictions are off.

Files from the SMB server show up but as 0.0 bytes and attempts at reading from them lead to an error.

Similarly a WDTV Live media player doesn't recognize the SMB server, but that's nothing special.

On Macs and PCs there are no problems recognizing, connecting, reading, and writing to the SMB server.

_________________
Google is Spyware
Sponsor
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2150
Location: WV, USA

PostPosted: Tue Oct 08, 2024 4:15    Post subject: Reply with quote
You never mentioned, what is the Kodi device?

A WDTV (Western Digital TV media player, I had a few, years ago) device is probably using Samba 1.0, considering its age. Is your DD-WRT smb server set to support smb1.0?

_________________
- Linksys EA8500: I-Gateway, WAP/VAP 5ghz only. Features: VLANs, Samba, WG, Entware - r60xxx
- Linksys EA8500: 802.11s Secondary w/VLAN Trunk over 5ghz - r60xxx
- Linksys MX4300: 802.11s Primary w/VLAN Trunk over 5ghz. 2.4ghz WAP/VAP only - r60xxx
- Linksys MX4300: (WAP/VAP (7)) Multiple VLANs over single trunk port. Entware/Samba r60xxx
- Linksys MR7350: WDS Station for extended Ethernet r60xxx
- Linksys MR7500, MX8500: None in production. Just testing. r60xxx
- OSes: Fedora 40, 10 RPis (2,3,4,5), 23 ESP8266s: Straight from Amiga to Linux in '95, never having owned a Windows PC.
- Forum member #248
Zyxx
DD-WRT Guru


Joined: 28 Dec 2018
Posts: 979

PostPosted: Tue Oct 08, 2024 8:24    Post subject: Reply with quote
@Fried Chicken: Same here.

Samba between Kodi / Coreelec and DD-WRT isnt working a long time.
I resorted to NFS a few years ago, since I got tired of not being able to access my music on media center.
Fried Chicken
DD-WRT User


Joined: 12 Jun 2019
Posts: 199
Location: Texas

PostPosted: Wed Oct 09, 2024 4:45    Post subject: Reply with quote
lexridge wrote:
You never mentioned, what is the Kodi device?

A WDTV (Western Digital TV media player, I had a few, years ago) device is probably using Samba 1.0, considering its age. Is your DD-WRT smb server set to support smb1.0?


It's a Vero V. I'll try enabling SMB 1.0. I'm not worried about security over the LAN.

Zyxx wrote:
@Fried Chicken: Same here.

Samba between Kodi / Coreelec and DD-WRT isnt working a long time.
I resorted to NFS a few years ago, since I got tired of not being able to access my music on media center.


Thank you for the clarity. Seems very unusual that it wouldn't work. Is SMB closed source or proprietary for windows?

_________________
Google is Spyware
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2150
Location: WV, USA

PostPosted: Wed Oct 09, 2024 4:56    Post subject: Reply with quote
Samba is OSS (Open Source Software). No idea about SMB on Windows.

I once used Kodi (LibreElec) on several RPi devices and do remember it also lets you choose the Samba version, iirc. I never had any issue with it but I was connecting to a Fedora SMB server. Not DD-WRT.

_________________
- Linksys EA8500: I-Gateway, WAP/VAP 5ghz only. Features: VLANs, Samba, WG, Entware - r60xxx
- Linksys EA8500: 802.11s Secondary w/VLAN Trunk over 5ghz - r60xxx
- Linksys MX4300: 802.11s Primary w/VLAN Trunk over 5ghz. 2.4ghz WAP/VAP only - r60xxx
- Linksys MX4300: (WAP/VAP (7)) Multiple VLANs over single trunk port. Entware/Samba r60xxx
- Linksys MR7350: WDS Station for extended Ethernet r60xxx
- Linksys MR7500, MX8500: None in production. Just testing. r60xxx
- OSes: Fedora 40, 10 RPis (2,3,4,5), 23 ESP8266s: Straight from Amiga to Linux in '95, never having owned a Windows PC.
- Forum member #248
Fried Chicken
DD-WRT User


Joined: 12 Jun 2019
Posts: 199
Location: Texas

PostPosted: Fri Dec 27, 2024 0:32    Post subject: Reply with quote
I found a way to get the log off the device (Vero V), it gave the following error for ever file on the disk:

Code:
error <general>: GetDirectory - Failed to stat file smb://192.168.1.1/[path to files]


Digging a bit I found this info on stat:
https://linux.die.net/man/2/stat

Quote:
These functions return information about a file. No permissions are required on the file itself, but-in the case of stat() and lstat() - execute (search) permission is required on all of the directories in path that lead to the file.


Not sure.

Found someone with similar issues (Also on Kodi):
https://forum.kodi.tv/showthread.php?tid=130805&pid=1507544

With a solution being "use ip instead of netbios name" which I already do.

Not sure. If I could get either SMB working on the Vero V device (Running Kodi) or get said device to read from via SMB from the DD-WRT router, I would be very happy.


I tried setting up NFS but it won't mount unless I put something in "Allowed Networks"... no clue, so I put 192.168.1.1

_________________
Google is Spyware
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2150
Location: WV, USA

PostPosted: Fri Dec 27, 2024 3:38    Post subject: Reply with quote
Fried Chicken wrote:
I tried setting up NFS but it won't mount unless I put something in "Allowed Networks"... no clue, so I put 192.168.1.1


Try adding 192.168.1.0/24 for Allowed Networks.

_________________
- Linksys EA8500: I-Gateway, WAP/VAP 5ghz only. Features: VLANs, Samba, WG, Entware - r60xxx
- Linksys EA8500: 802.11s Secondary w/VLAN Trunk over 5ghz - r60xxx
- Linksys MX4300: 802.11s Primary w/VLAN Trunk over 5ghz. 2.4ghz WAP/VAP only - r60xxx
- Linksys MX4300: (WAP/VAP (7)) Multiple VLANs over single trunk port. Entware/Samba r60xxx
- Linksys MR7350: WDS Station for extended Ethernet r60xxx
- Linksys MR7500, MX8500: None in production. Just testing. r60xxx
- OSes: Fedora 40, 10 RPis (2,3,4,5), 23 ESP8266s: Straight from Amiga to Linux in '95, never having owned a Windows PC.
- Forum member #248
Fried Chicken
DD-WRT User


Joined: 12 Jun 2019
Posts: 199
Location: Texas

PostPosted: Fri Dec 27, 2024 14:56    Post subject: Reply with quote
lexridge wrote:
Fried Chicken wrote:
I tried setting up NFS but it won't mount unless I put something in "Allowed Networks"... no clue, so I put 192.168.1.1


Try adding 192.168.1.0/24 for Allowed Networks.


I did that.

Under "NAS" there is a "File Sharing" option that allows me to add the disk and has the checkmark "public" which I guess hope and guess would mean LAN and not WAN?

It's not labeled with Anything and seems independent of any sharing protocols (SMB, NFS, FTP). What purpose does this serve?



Screen Shot 2024-12-27 at 8.53.58 AM.png
 Description:
"File Sharing"
 Filesize:  193.65 KB
 Viewed:  16100 Time(s)

Screen Shot 2024-12-27 at 8.53.58 AM.png



_________________
Google is Spyware
dance85
DD-WRT User


Joined: 02 Jun 2017
Posts: 212

PostPosted: Tue Jul 29, 2025 2:13    Post subject: Reply with quote
Do you have any news on this?
Fried Chicken
DD-WRT User


Joined: 12 Jun 2019
Posts: 199
Location: Texas

PostPosted: Sun Aug 17, 2025 4:22    Post subject: Reply with quote
unfortunately not;
I pretty much gave up on this.

_________________
Google is Spyware
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum