SMB sharing is not working properly

Hello. I’ve got problem with OSMC on my Raspberry Pi 2. It’s not working properly all the time. It’s scanned my media files and everything looks fine but i can’t play any scanned movie. Sometimes it works but rarely.

I share folder on PC with Windows 10 via Wi-Fi.

Logs: http://paste.osmc.io/abimedijab

I’m beginner with OSMC and Raspberry Pi. It just drive me nuts that i can’t make it working.

11:52:48 570.411682 T:1770001392   ERROR: SMBDirectory->GetDirectory: Unable to open directory : 'smb://VOOKASHPC/Seriale'
                                            unix_err:'16' error : 'Invalid argument'
11:52:52 574.273621 T:1957376560   ERROR: GetDirectory - Error getting smb://VOOKASHPC/Seriale/
11:52:52 574.280396 T:1957376560   ERROR: CGUIMediaWindow::GetDirectory(smb://VOOKASHPC/Seriale/) failed

Can you ping the windows box from the Pi? Can you ping google.com from the pi?

Ping google.com

PING google.com (216.58.209.78): 56 data bytes
64 bytes from 216.58.209.78: seq=0 ttl=53 time=33.054 ms
64 bytes from 216.58.209.78: seq=1 ttl=53 time=124.480 ms
64 bytes from 216.58.209.78: seq=2 ttl=53 time=14.806 ms
64 bytes from 216.58.209.78: seq=3 ttl=53 time=72.023 ms
64 bytes from 216.58.209.78: seq=4 ttl=53 time=31.912 ms
64 bytes from 216.58.209.78: seq=5 ttl=53 time=414.687 ms
64 bytes from 216.58.209.78: seq=6 ttl=53 time=17.790 ms
64 bytes from 216.58.209.78: seq=7 ttl=53 time=11.356 ms
64 bytes from 216.58.209.78: seq=8 ttl=53 time=396.165 ms
64 bytes from 216.58.209.78: seq=9 ttl=53 time=48.065 ms
64 bytes from 216.58.209.78: seq=10 ttl=53 time=19.408 ms
64 bytes from 216.58.209.78: seq=11 ttl=53 time=11.972 ms
64 bytes from 216.58.209.78: seq=12 ttl=53 time=25.896 ms
64 bytes from 216.58.209.78: seq=13 ttl=53 time=171.297 ms
64 bytes from 216.58.209.78: seq=14 ttl=53 time=24.445 ms
64 bytes from 216.58.209.78: seq=15 ttl=53 time=175.091 ms
64 bytes from 216.58.209.78: seq=16 ttl=53 time=293.668 ms
64 bytes from 216.58.209.78: seq=17 ttl=53 time=29.226 ms
64 bytes from 216.58.209.78: seq=18 ttl=53 time=13.662 ms
64 bytes from 216.58.209.78: seq=19 ttl=53 time=909.073 ms
64 bytes from 216.58.209.78: seq=20 ttl=53 time=1424.355 ms
64 bytes from 216.58.209.78: seq=21 ttl=53 time=961.099 ms
64 bytes from 216.58.209.78: seq=22 ttl=53 time=1568.369 ms
64 bytes from 216.58.209.78: seq=23 ttl=53 time=707.327 ms
64 bytes from 216.58.209.78: seq=24 ttl=53 time=12.853 ms
64 bytes from 216.58.209.78: seq=25 ttl=53 time=14.391 ms
64 bytes from 216.58.209.78: seq=26 ttl=53 time=35.703 ms
64 bytes from 216.58.209.78: seq=27 ttl=53 time=18.554 ms
64 bytes from 216.58.209.78: seq=28 ttl=53 time=13.705 ms
64 bytes from 216.58.209.78: seq=29 ttl=53 time=71.718 ms
64 bytes from 216.58.209.78: seq=30 ttl=53 time=14.850 ms

64 bytes from 216.58.209.78: seq=31 ttl=53 time=1217.227 ms
64 bytes from 216.58.209.78: seq=32 ttl=53 time=223.530 ms
64 bytes from 216.58.209.78: seq=33 ttl=53 time=15.309 ms
64 bytes from 216.58.209.78: seq=34 ttl=53 time=13.710 ms
^[64 bytes from 216.58.209.78: seq=35 ttl=53 time=83.124 ms
64 bytes from 216.58.209.78: seq=36 ttl=53 time=18.893 ms
64 bytes from 216.58.209.78: seq=37 ttl=53 time=14.987 ms
64 bytes from 216.58.209.78: seq=38 ttl=53 time=12.534 ms
64 bytes from 216.58.209.78: seq=39 ttl=53 time=43.122 ms
64 bytes from 216.58.209.78: seq=40 ttl=53 time=260.286 ms
64 bytes from 216.58.209.78: seq=41 ttl=53 time=14.902 ms
64 bytes from 216.58.209.78: seq=42 ttl=53 time=266.928 ms
64 bytes from 216.58.209.78: seq=43 ttl=53 time=26.838 ms
64 bytes from 216.58.209.78: seq=44 ttl=53 time=13.998 ms
64 bytes from 216.58.209.78: seq=45 ttl=53 time=155.616 ms
64 bytes from 216.58.209.78: seq=46 ttl=53 time=36.203 ms
^C
--- google.com ping statistics ---
47 packets transmitted, 47 packets received, 0% packet loss
round-trip min/avg/max = 11.356/214.855/1568.369 ms

Ping PC:

PING 192.168.0.17 (192.168.0.17): 56 data bytes
64 bytes from 192.168.0.17: seq=0 ttl=128 time=16.083 ms
64 bytes from 192.168.0.17: seq=1 ttl=128 time=399.732 ms
64 bytes from 192.168.0.17: seq=2 ttl=128 time=8.114 ms
64 bytes from 192.168.0.17: seq=3 ttl=128 time=548.651 ms
64 bytes from 192.168.0.17: seq=5 ttl=128 time=468.848 ms
64 bytes from 192.168.0.17: seq=6 ttl=128 time=365.813 ms
64 bytes from 192.168.0.17: seq=7 ttl=128 time=1975.596 ms
64 bytes from 192.168.0.17: seq=8 ttl=128 time=981.262 ms
64 bytes from 192.168.0.17: seq=9 ttl=128 time=28.693 ms
64 bytes from 192.168.0.17: seq=10 ttl=128 time=12.845 ms
64 bytes from 192.168.0.17: seq=11 ttl=128 time=6.940 ms
64 bytes from 192.168.0.17: seq=12 ttl=128 time=9.787 ms
64 bytes from 192.168.0.17: seq=13 ttl=128 time=3.841 ms
64 bytes from 192.168.0.17: seq=14 ttl=128 time=190.701 ms
64 bytes from 192.168.0.17: seq=15 ttl=128 time=8.155 ms
64 bytes from 192.168.0.17: seq=16 ttl=128 time=3.581 ms
64 bytes from 192.168.0.17: seq=17 ttl=128 time=205.909 ms
64 bytes from 192.168.0.17: seq=18 ttl=128 time=38.506 ms
64 bytes from 192.168.0.17: seq=19 ttl=128 time=103.295 ms
64 bytes from 192.168.0.17: seq=20 ttl=128 time=11.241 ms
64 bytes from 192.168.0.17: seq=21 ttl=128 time=5.747 ms
64 bytes from 192.168.0.17: seq=22 ttl=128 time=147.858 ms
64 bytes from 192.168.0.17: seq=23 ttl=128 time=5.070 ms
64 bytes from 192.168.0.17: seq=24 ttl=128 time=10.563 ms
^C
--- 192.168.0.17 ping statistics ---
25 packets transmitted, 24 packets received, 4% packet loss
round-trip min/avg/max = 3.581/231.534/1975.596 ms

4% packet loss on the LAN is really bad.

Suggest to install wavemon to check your wifi connection

I changed my Wi-Fi channel because i saw that my neighbour has the same channel I had.

Ping Google.com

PING google.com (216.58.209.46): 56 data bytes
64 bytes from 216.58.209.46: seq=0 ttl=53 time=10.859 ms
64 bytes from 216.58.209.46: seq=1 ttl=53 time=10.751 ms
64 bytes from 216.58.209.46: seq=2 ttl=53 time=12.836 ms
64 bytes from 216.58.209.46: seq=3 ttl=53 time=10.196 ms
64 bytes from 216.58.209.46: seq=4 ttl=53 time=11.108 ms
64 bytes from 216.58.209.46: seq=5 ttl=53 time=9.712 ms
64 bytes from 216.58.209.46: seq=6 ttl=53 time=11.498 ms
64 bytes from 216.58.209.46: seq=7 ttl=53 time=13.509 ms
64 bytes from 216.58.209.46: seq=8 ttl=53 time=12.553 ms
64 bytes from 216.58.209.46: seq=9 ttl=53 time=10.559 ms
64 bytes from 216.58.209.46: seq=10 ttl=53 time=10.925 ms
64 bytes from 216.58.209.46: seq=11 ttl=53 time=77.701 ms
64 bytes from 216.58.209.46: seq=12 ttl=53 time=10.263 ms
64 bytes from 216.58.209.46: seq=13 ttl=53 time=14.538 ms
64 bytes from 216.58.209.46: seq=14 ttl=53 time=12.822 ms
64 bytes from 216.58.209.46: seq=15 ttl=53 time=13.335 ms
64 bytes from 216.58.209.46: seq=16 ttl=53 time=11.630 ms
64 bytes from 216.58.209.46: seq=17 ttl=53 time=56.075 ms
64 bytes from 216.58.209.46: seq=18 ttl=53 time=10.673 ms
64 bytes from 216.58.209.46: seq=19 ttl=53 time=11.843 ms
64 bytes from 216.58.209.46: seq=20 ttl=53 time=13.928 ms
64 bytes from 216.58.209.46: seq=21 ttl=53 time=10.815 ms
64 bytes from 216.58.209.46: seq=22 ttl=53 time=12.125 ms
64 bytes from 216.58.209.46: seq=23 ttl=53 time=11.751 ms
64 bytes from 216.58.209.46: seq=24 ttl=53 time=11.499 ms
64 bytes from 216.58.209.46: seq=25 ttl=53 time=9.469 ms
64 bytes from 216.58.209.46: seq=26 ttl=53 time=11.088 ms
64 bytes from 216.58.209.46: seq=27 ttl=53 time=11.068 ms
^C
--- google.com ping statistics ---
28 packets transmitted, 28 packets received, 0% packet loss
round-trip min/avg/max = 9.469/15.540/77.701 ms

Ping PC:

PING 192.168.0.17 (192.168.0.17): 56 data bytes
64 bytes from 192.168.0.17: seq=0 ttl=128 time=2.240 ms
64 bytes from 192.168.0.17: seq=1 ttl=128 time=4.043 ms
64 bytes from 192.168.0.17: seq=2 ttl=128 time=2.077 ms
64 bytes from 192.168.0.17: seq=3 ttl=128 time=1.949 ms
64 bytes from 192.168.0.17: seq=4 ttl=128 time=1.924 ms
64 bytes from 192.168.0.17: seq=5 ttl=128 time=2.047 ms
64 bytes from 192.168.0.17: seq=6 ttl=128 time=15.574 ms
64 bytes from 192.168.0.17: seq=7 ttl=128 time=1.778 ms
64 bytes from 192.168.0.17: seq=8 ttl=128 time=1.922 ms
64 bytes from 192.168.0.17: seq=9 ttl=128 time=1.929 ms
64 bytes from 192.168.0.17: seq=10 ttl=128 time=1.864 ms
64 bytes from 192.168.0.17: seq=11 ttl=128 time=3.033 ms
64 bytes from 192.168.0.17: seq=12 ttl=128 time=3.695 ms
64 bytes from 192.168.0.17: seq=13 ttl=128 time=1.787 ms
64 bytes from 192.168.0.17: seq=14 ttl=128 time=2.642 ms
64 bytes from 192.168.0.17: seq=15 ttl=128 time=2.506 ms
64 bytes from 192.168.0.17: seq=16 ttl=128 time=1.945 ms
64 bytes from 192.168.0.17: seq=17 ttl=128 time=2.149 ms
64 bytes from 192.168.0.17: seq=18 ttl=128 time=3.132 ms
64 bytes from 192.168.0.17: seq=19 ttl=128 time=4.571 ms
64 bytes from 192.168.0.17: seq=20 ttl=128 time=2.759 ms
64 bytes from 192.168.0.17: seq=21 ttl=128 time=1.780 ms
64 bytes from 192.168.0.17: seq=22 ttl=128 time=2.326 ms
64 bytes from 192.168.0.17: seq=23 ttl=128 time=84.590 ms
64 bytes from 192.168.0.17: seq=24 ttl=128 time=2.669 ms
64 bytes from 192.168.0.17: seq=25 ttl=128 time=3.313 ms
64 bytes from 192.168.0.17: seq=26 ttl=128 time=11.189 ms
64 bytes from 192.168.0.17: seq=27 ttl=128 time=5.991 ms
64 bytes from 192.168.0.17: seq=28 ttl=128 time=2.085 ms
64 bytes from 192.168.0.17: seq=29 ttl=128 time=2.500 ms
64 bytes from 192.168.0.17: seq=30 ttl=128 time=1.843 ms
^C
--- 192.168.0.17 ping statistics ---
31 packets transmitted, 31 packets received, 0% packet loss
round-trip min/avg/max = 1.778/5.930/84.590 ms

I think it looks now MUCH better. And OSMC stareted to work like a charm. I will test it a little more but i think that changing channel did the trick. Thanks for pointing that something is wrong with network! I didn’t think about it.

Now i have problem with shuttering and pausing movie. After i think 7 minutes of watching movie stops and i must wait couple seconds.

Logs: http://paste.osmc.io/ubehewavin

I’m sure it’s problem with buffering. But it’s problem with my network or some settings in OSMC?

PING google.com (173.194.116.165) 56(84) bytes of data.
64 bytes from fra07s63-in-f5.1e100.net (173.194.116.165): icmp_seq=1 ttl=56 time=54.9 ms
64 bytes from fra07s63-in-f5.1e100.net (173.194.116.165): icmp_seq=2 ttl=56 time=69.7 ms
64 bytes from fra07s63-in-f5.1e100.net (173.194.116.165): icmp_seq=3 ttl=56 time=64.8 ms
64 bytes from fra07s63-in-f5.1e100.net (173.194.116.165): icmp_seq=4 ttl=56 time=65.9 ms
64 bytes from fra07s63-in-f5.1e100.net (173.194.116.165): icmp_seq=5 ttl=56 time=72.8 ms
64 bytes from fra07s63-in-f5.1e100.net (173.194.116.165): icmp_seq=6 ttl=56 time=70.7 ms
64 bytes from fra07s63-in-f5.1e100.net (173.194.116.165): icmp_seq=7 ttl=56 time=69.7 ms
64 bytes from fra07s63-in-f5.1e100.net (173.194.116.165): icmp_seq=8 ttl=56 time=68.5 ms
64 bytes from fra07s63-in-f5.1e100.net (173.194.116.165): icmp_seq=9 ttl=56 time=59.3 ms
64 bytes from fra07s63-in-f5.1e100.net (173.194.116.165): icmp_seq=10 ttl=56 time=72.6 ms
64 bytes from fra07s63-in-f5.1e100.net (173.194.116.165): icmp_seq=11 ttl=56 time=61.9 ms
64 bytes from fra07s63-in-f5.1e100.net (173.194.116.165): icmp_seq=12 ttl=56 time=71.9 ms
64 bytes from fra07s63-in-f5.1e100.net (173.194.116.165): icmp_seq=13 ttl=56 time=64.3 ms
64 bytes from fra07s63-in-f5.1e100.net (173.194.116.165): icmp_seq=14 ttl=56 time=59.4 ms
64 bytes from fra07s63-in-f5.1e100.net (173.194.116.165): icmp_seq=15 ttl=56 time=66.0 ms
64 bytes from fra07s63-in-f5.1e100.net (173.194.116.165): icmp_seq=16 ttl=56 time=52.4 ms
64 bytes from fra07s63-in-f5.1e100.net (173.194.116.165): icmp_seq=17 ttl=56 time=57.8 ms

google.com ping statistics —
17 packets transmitted, 17 received, 0% packet loss, time 16023ms
rtt min/avg/max/mdev = 52.421/64.897/72.839/6.159 ms

PING 192.168.1.37 (192.168.1.37) 56(84) bytes of data.
64 bytes from 192.168.1.37: icmp_seq=1 ttl=64 time=0.225 ms
64 bytes from 192.168.1.37: icmp_seq=2 ttl=64 time=0.212 ms
64 bytes from 192.168.1.37: icmp_seq=3 ttl=64 time=0.192 ms
64 bytes from 192.168.1.37: icmp_seq=4 ttl=64 time=0.185 ms
64 bytes from 192.168.1.37: icmp_seq=5 ttl=64 time=0.194 ms
64 bytes from 192.168.1.37: icmp_seq=6 ttl=64 time=0.196 ms
64 bytes from 192.168.1.37: icmp_seq=7 ttl=64 time=0.215 ms
64 bytes from 192.168.1.37: icmp_seq=8 ttl=64 time=0.215 ms
64 bytes from 192.168.1.37: icmp_seq=9 ttl=64 time=0.174 ms
64 bytes from 192.168.1.37: icmp_seq=10 ttl=64 time=0.201 ms
64 bytes from 192.168.1.37: icmp_seq=11 ttl=64 time=0.180 ms
64 bytes from 192.168.1.37: icmp_seq=12 ttl=64 time=0.177 ms
64 bytes from 192.168.1.37: icmp_seq=13 ttl=64 time=0.191 ms
64 bytes from 192.168.1.37: icmp_seq=14 ttl=64 time=0.206 ms
64 bytes from 192.168.1.37: icmp_seq=15 ttl=64 time=0.191 ms
64 bytes from 192.168.1.37: icmp_seq=16 ttl=64 time=0.194 ms
64 bytes from 192.168.1.37: icmp_seq=17 ttl=64 time=0.192 ms

— 192.168.1.37 ping statistics —
17 packets transmitted, 17 received, 0% packet loss, time 15997ms
rtt min/avg/max/mdev = 0.174/0.196/0.225/0.019 ms

I think your network is too slow. I’m working with a 10/100 Mbits net now without WIFI.
Can you do some ping on the LAN between 2 machines to compare the speed?