v17 [Mac OS X] Samba protocol issues
#1
Hello people.
I recently tried changing some settings in my samba servers that resulted in me not being able to access my library anymore from Kodi.
In particular I believe the setting in question is min protocol = SMB2.

OSX Version 10.12.4
Platform Retina MacBook Pro Late 2014
Install Method dmg
Version of Kodi 17.1 Git:20170320-fc1619b
Detailed Instructions to Reproduce the Problem (The more specific the better.)
What I did was simply force the minimum protocol on the server to be SMB2, shares worked before the change and work again after this setting is commented out.

Below an excerpt of the debug log when trying to access a share with the option min protocol = SMB2

Code:
23:39:01.792 T:140736239993792   DEBUG: CGUIMediaWindow::GetDirectory (smb://RPI3/usbhdd/Movies/)
23:39:01.792 T:140736239993792   DEBUG:   ParentPath = [sources://video/]
23:39:01.813 T:123145545314304   ERROR: SMBDirectory->GetDirectory: Unable to open directory : 'smb://USER:PASSWORD@RPI3/usbhdd/Movies'
                                            unix_err:'3c' error : 'Operation timed out'
23:39:01.813 T:140736239993792   DEBUG: ------ Window Init (DialogConfirm.xml) ------
23:39:03.028 T:140736239993792   DEBUG: Keyboard: scancode: 0x24, sym: 0x000d, unicode: 0x000d, modifier: 0x0
23:39:03.111 T:140736239993792   DEBUG: OnKey: return (0xf00d) pressed, action is Select
23:39:03.111 T:140736239993792   DEBUG: Keyboard: scancode: 0x24, sym: 0x000d, unicode: 0x0000, modifier: 0x0
23:39:03.365 T:140736239993792   DEBUG: ------ Window Deinit (DialogConfirm.xml) ------
23:39:03.375 T:140736239993792   ERROR: GetDirectory - Error getting smb://RPI3/usbhdd/Movies/
23:39:03.383 T:140736239993792   ERROR: CGUIMediaWindow::GetDirectory(smb://RPI3/usbhdd/Movies/) failed
23:39:03.383 T:140736239993792   DEBUG: CGUIMediaWindow::GetDirectory (sources://video/)
23:39:03.383 T:140736239993792   DEBUG:   ParentPath = []
23:39:03.391 T:123145527554048   DEBUG: Thread BackgroundLoader start, auto delete: false
23:39:03.392 T:140736239993792   DEBUG: ------ Window Init (DialogConfirm.xml) ------
23:39:03.424 T:123145527554048   DEBUG: Thread BackgroundLoader 123145527554048 terminating

But this isn't reproduced on a server without this option enabled, below an example.

Code:
23:39:05.963 T:140736239993792   DEBUG: CGUIMediaWindow::GetDirectory (smb://DISKSTATION/video/TV Shows/)
23:39:05.963 T:140736239993792   DEBUG:   ParentPath = [sources://video/]
23:39:06.464 T:140736239993792   DEBUG: ------ Window Init (DialogBusy.xml) ------
23:39:07.848 T:140736239993792   DEBUG: Saving fileitems [smb://DISKSTATION/video/TV Shows/]
23:39:07.849 T:140736239993792   DEBUG:   -- items: 144, sort method: 0, ascending: true
23:39:07.920 T:140736239993792   DEBUG: RunQuery took 48 ms for 8 items query: SELECT * FROM tvshow_view  WHERE idParentPath=11
23:39:07.924 T:123145528090624   DEBUG: Thread BackgroundLoader start, auto delete: false
23:39:07.928 T:140736239993792   DEBUG: Keyboard: scancode: 0x24, sym: 0x000d, unicode: 0x0000, modifier: 0x0
23:39:08.100 T:140736239993792   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
23:39:08.480 T:123145563836416   DEBUG: Skin Helper Service --> Started Background worker...

Full Debug Log https://paste.ubuntu.com/24613541/
System hardware specs i5-4278U, 8GB of RAM.

I'm not sure this is intended behaviour. Could you please guide me to troubleshoot this?
Reply
#2
I think libsmbclient might simply not support smbv2
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#3
(2017-05-21, 11:31)Memphiz Wrote: I think libsmbclient might simply not support smbv2
So does this make it an MacOS specific issue or is it the library that Kodi uses on all platform and therefore something that is currently working as intended?
Reply
#4
We are currently not able to build samba 4.1 or newer, which was the first version supporting SMB2/3 protocol for libsmbclient.

Edit:
This issue doesn't occur on Windows, because there libsmbclient isn't used and if you use Linux your distribution has most likely packaged a newer version, which supports SMB2/3.
Reply
#5
I see. I believe this might be something quite relevant though, it might become a security issue.
Would this be appropriate for a feature request?
Reply
#6
Is this problem still open ??
I use Kodi 17.4 on MacOS Sierra and can not connect properly to OpenElec 8.1.1....
Even when I force OpenElec to use SMB1, the connection while playing files from there is not reliable.

Thanks for your information.
/J
Reply
#7
Same with all version of LibreELEC.
Upgraded to HiSierra and can no longer access SAMBA file shares on the iMac from LibreELEC Kodi Krypton no matter which SMB protocol I select.

Seems Apple have thrown another spanner in the works.
They also removed Telnet, and FTP servers with the Hi Sierra update. NOT Happy ! Sad

Only suggestion is to use NFS Manager and use NFS file sharing on a Mac.

EDIT or try turning off Packet Signing in macOS:

https://support.apple.com/en-us/HT205926

This thread is also very helpful:
https://discussions.apple.com/thread/808...0&tstart=0

I am now able to Add Video shares again simply by using Zeroconf in Kodi. Smile

Reply

Logout Mark Read Team Forum Stats Members Help
[Mac OS X] Samba protocol issues0