Posts: 3
Joined: Jan 2016
Reputation:
0
2016-01-12, 16:28
(This post was last modified: 2016-01-12, 17:29 by uncertainty42.)
I'm in the same boat as nokatze. I'm running OSMC on a Raspberry Pi B+ and Windows10. I've tried everything i can think of and / or Google and i'm still getting wonky behavior. To be more specific if i add a video source i can browse and see my shared folders just fine; the problem being is that *usually* they don't show the contents being about a dozen or so video files. If something does show up its usually the first three items in the folder which, incidently, i am able to play back fine from the movie library section even whilst getting the 'invalid argument could not connect to network store' message when navigating the videos > files section. There was one brief, shining moment where everything showed up properly in the videos section and then a moment later it was gone, meaning the videos > files > shared folder contents were once again blank and i was bombarded by 'argument invalid' errors. Now the interesting part is if i continuously select the shared folder from the UI i will usually get 'invalid argument' message, however if i just keep selecting it i'll either get an empty folder or i'll get the first three, and at one point, four items from the list which i can play back.
So on the OSMC side here are the paths that i've tried, and honestly they mostly all have the same 'works some of the time but not usually' result, although interestingly if something makes it into the 'movie' library I can *always* play it back-
smb://hostname/Users/Me/Videos/
smb://ipaddress/Users/Me/Videos/
smb://hostname/Videos/ (this path occurs when using browse rather than manual entry)
smb://ipaddress/Videos/
smb://user:pass@ipaddress/Users/Me/Videos/
smb://user:pass@ipaddress/Videos/
As i write this i'm realizing i never tried a fully qualified path so i'll probably try that tonight. Something like-
smb;//user:pass@ipaddress/C:/Users/Me/Videos/
Now over to the Windows side-
1. Create Homegroup
2. Join Homegroup
3. Create local user
4. Share folders, the go into advanced sharing on the folder and tick off the 'Share this folder' box
5. Increase IRPStackSize in registry (key didn't exist, had to add, made the value 15 or thereabouts)
6. Increase size parameter from 1 to 3 in registry
Things i haven't done as they seem silly although i might later on tonight just to see what happens-
1. Disable firewall
2. Disable defender
Posts: 5
Joined: Jan 2015
I've resorted to installing Open Media Vault in a Hyper-V because of this issue. Works great!
Posts: 6
Joined: Dec 2015
Reputation:
2
Having same problem myself, usb(3) shared external hdd on win10, any linux device including OSMC, on rpi2, and any android based OS for phones.
I Can access all my internal drives shares but not usb shares.
Tested the same setup on a laptop with clean install of win10 AFAIK, might have been an upgrade, it had not problems sharing usb shares for linux based devices, my phone was able to access it without an issue...although untested osmc.
So I wonder if a clean install will fix this very very odd issue....
Posts: 1,772
Joined: Aug 2009
Reputation:
24
Derek
Posting Freak
Posts: 1,772
Password protected sharing just in general doses not work and thats no myth its a fact but don't ask for an explanation. Smb is a dark art that some have no problems with and others not; i find when fixing problems its inconsistent settings throughout the network and everyone says mine is 100% consistent but hey ho, not stirring the pot just some insight from my experience from windows 95 release on floppy disk (about 25 of the suckers) till now.
Posts: 6
Joined: Dec 2015
Reputation:
2
2016-02-19, 00:14
(This post was last modified: 2016-02-19, 00:25 by Charun.)
Just out of curiosity, the people that are having this problem, what build/version of win10 are you running?
To find out type in start menu, system info, and open system information, and look for the item, version, if you've just upgraded from win7/8/.1
It will be 10240 for the first month or until you remove the windows.old folder in C:\
Then should be 10586 or higher (10586 is the Nov2015 update, which was major update iirc)
I'm on 10240..currently
and the laptop i tested on is 10586...
I don't plan on going back to win7 as my version is broken anyway...so i might just move over 10586 to test and I'll report back here
PLEASE NOTE:
This is only for USB shares, if your internal storage is also inaccessible from OSMC/openelec or other any linux based platform for kodi you have a different problem.
Posts: 6,564
Joined: Apr 2008
Reputation:
160
natethomas
Enjoying Retirement by Staying Busy
Posts: 6,564
Charun, this totally solved my sharing problems. Thanks very much!
Posts: 1,772
Joined: Aug 2009
Reputation:
24
Derek
Posting Freak
Posts: 1,772
Glad you all have this working its a process i seem to get mine working quite easy but depends on the setup.
Posts: 7
Joined: May 2016
Reputation:
0
2016-10-09, 02:41
(This post was last modified: 2016-10-09, 02:43 by ne1scott.)
It definitely looks like this was the cause of the problem and is only seemed to affect USB3 drives as my internal drives and USB2 drives worked fine.
I did that major Win10 service pack upgrade from 1511 to version 1607 sometime in the last few weeks but I know it was all still working exactly 3 weeks ago. so either that or some recent windows updates jacked it all up.
80% of the problems were fixed by setting IRPStackSize to Hex 29 value, and Kodi 16.1 allowed me to add my shares as sources using file manager in settings. But I couldn't set the share types there to movies/TV/etc so I deleted them.
Unfortunately when I then went to add them under Videos-Files and told it to browse to the same PC the shares are on it times out and says "Invalid Argument" without showing any of my shares. This is I think the same error I was getting before no matter what method I used to connect, so I'm better off, just not quite 100% fixed yet.
So what does this IRPStackSize value of 29 mean and what values are safe to try ? I s bigger better or is smaller better ? My drives are all USB3 except one.
EDIT:
Answered my own question here...
The IRPStackSize is a parameter that specifies the number of stack locations in I/O request packets (IRPs) that are used by the operating system. Each stack uses 36 bytes of memory for each receive buffer and you can increase the IRPStackSize, through the Windows registry for some transports, media access control (MAC) drivers, or for file system drivers. The default value of the IRPStackSize parameter is 15.
So I guess I'll try upping it to 50 from 29.
Posts: 403
Joined: Mar 2015
Reputation:
3
2016-10-09, 14:41
(This post was last modified: 2016-10-09, 14:47 by levi.baker88.)
I'm keen to try and replicate this issue, as it seems the common issue is with accessing media/files/whatever from a USB storage of some description?
Posts: 7
Joined: May 2016
Reputation:
0
I am using both an KDLINKS A300 with Factory firmware and a Samsung Galaxy Tab A 10.1 running stock Kodi 16.1 to test this.
Kodi from my laptop works fine using local drive shares but I need to see if I can add the remote USB 3.0 shares so we have additional data.
Changing the IRPStackSize to 29 worked after I rebooted and tried to go through Kodi System-->File Manager and add the shares.
It also worked fine in the SMB Android tool "ShareFinder" so I could find the shares and see the files.
I then removed those shares in Kodi and went through Videos-->files to add folders/sources and it failed.
At that point I assumed it must need more resources of some sort as it failed with "Invalid Argument"
I then changed the IRPStackSize to 50 and rebooted.
I still could not add them through Videos-->files and then tried to go back to System-->File Manager and add the shares but it still fails with "Invalid Argument"
Using the ShareFinder App it now says "OxC00000205" error like it did before changing the IRPStackSize.
VERY VERY frustrated as there is no reason I should have to spend hours and hours troubleshooting because Microsoft decided to "help us" by changing things again.
I still think the 1607 update (Service Pack) is related but it fails to install on either of my laptops for a comparison.
I will change back to a value of 29 but don't have high hopes to even get back that limited functionality as there is obviously something else that needs changed.
Posts: 11
Joined: Feb 2014
Reputation:
0
2016-12-18, 07:40
(This post was last modified: 2016-12-18, 07:48 by craigrs84.)
deleted, posted in wrong thread.