Videos->Files error - Remote Share: Couldn't connect to network server
#1
I'm having the following problem in the default Estuary skin and others such as AN Silvo. I've rebooted PC with no luck.

When I press Enter on Videos menu and select Files I get the error:

"Remote Share: Couldn't connect to network server"

However, when I select Files from the Videos sub menu then it works.
HTPC: Dell Optiplex 7050 SFF i7-7700 quad-core, 3.6GHz, 16GB
NAS: Synology DS1813+ and DX513, Hybrid RAID (SHR) 48TB usable space
My Media Center | www.CaptainKen.us | www.YouTube.com/KenInGilbert
Reply
#2
Hoping that someone will reconsider jumping in and taking a stab at helping me.

I installed Kodi fresh on a test system and I can reach the Files menu from either place. So something is up only with this existing install

I have no problem access any of my movies on same smb.
HTPC: Dell Optiplex 7050 SFF i7-7700 quad-core, 3.6GHz, 16GB
NAS: Synology DS1813+ and DX513, Hybrid RAID (SHR) 48TB usable space
My Media Center | www.CaptainKen.us | www.YouTube.com/KenInGilbert
Reply
#3
Only thing I can think of at the moment is checking your sources.xml (in your userdata folder) to make sure there isn't anything in there trying to connect to a server that has moved or no longer exists.
Reply
#4
Could be as simple as the files have yet to be scraped into the library. Adding video sources (wiki)
Reply
#5
Thank you for responding.

I compared my live Kodi sources.xml to the one on the fresh test system and they match.

The File submenu on the Video main menu has a Change Action = ActivateWindow(Videos,root).

I can only assume that the Files option that appears when you press Enter on the Video main menu to enter that section must have a different change action setting. How do I find what the change action is for that?

I've include a log file detailing these steps:
a) Opened Kodi
b) Scrolled right to Video main menu
c) Enter on Video main menu
d) Scrolled down to Files
e) Pressed Enter
f) Error message "Remote Share: Couldn't connect to network server" generated
g) Pressed Enter on OK dialog
h) Backspaced out
i) Arrowed down to Video submenu and selected Files submenu
j) Files list successfully appeared
k) Backspaced out
l) Pressed backslash
m) Pressed S and Enter to exit Kodi

I don't know much about the logs, but this appears to be where I successfully accessed the Files submenu:
Code:
12:13:47.329 T:2668   DEBUG: CInputManager::OnKey: return (0xf00d) pressed, action is Select
12:13:47.329 T:2668   DEBUG: Activating window ID: 10025
12:13:47.873 T:2668   DEBUG: ------ Window Deinit (Home.xml) ------
12:13:47.906 T:2668   DEBUG: ------ Window Init (MyVideoNav.xml) ------
12:13:47.910 T:2668   DEBUG: CGUIMediaWindow::GetDirectory (sources://video/)
12:13:47.910 T:2668   DEBUG:   ParentPath = [sources://video/]
12:13:47.920 T:2280   DEBUG: Thread BackgroundLoader start, auto delete: false
12:13:47.925 T:2280   DEBUG: Thread BackgroundLoader 2280 terminating
12:13:47.934 T:2668   DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0
12:13:51.017 T:2668    INFO: XCURL::DllLibCurlGlobal::CheckIdle - Closing session to http://feeds.kodi.tv (easy=17B489A0, multi=04B2ED88)
12:13:53.615 T:2668   DEBUG: Keyboard: scancode: 0x0e, sym: 0x0008, unicode: 0x0008, modifier: 0x0
12:13:53.667 T:2668   DEBUG: CInputManager::OnKey: backspace (0xf008) pressed, action is Back
12:13:53.667 T:2668   DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
12:13:54.214 T:2668   DEBUG: ------ Window Deinit (MyVideoNav.xml) ------

I think this is the section pertaining to the issue:
Code:
12:13:54.228 T:2668   DEBUG: CGUIWindowManager::PreviousWindow: Activate new
12:13:54.228 T:2668   DEBUG: ------ Window Init (Home.xml) ------
12:13:54.230 T:2668   DEBUG: Keyboard: scancode: 0x0e, sym: 0x0008, unicode: 0x0000, modifier: 0x0
12:13:54.230 T:5092   DEBUG: Thread LanguageInvoker start, auto delete: false
12:13:54.230 T:5092    INFO: initializing python engine.
12:13:54.230 T:5092   DEBUG: CPythonInvoker(11, C:\Users\Admin\AppData\Roaming\Kodi\addons\script.skinshortcuts\default.py): start processing
12:13:54.306 T:5092   DEBUG: -->Python Interpreter Initialized<--
12:13:54.306 T:5092   DEBUG: CPythonInvoker(11, C:\Users\Admin\AppData\Roaming\Kodi\addons\script.skinshortcuts\default.py): the source file to load is "C:\Users\Admin\AppData\Roaming\Kodi\addons\script.skinshortcuts\default.py"
12:13:54.306 T:5092   DEBUG: CPythonInvoker(11, C:\Users\Admin\AppData\Roaming\Kodi\addons\script.skinshortcuts\default.py): setting the Python path to C:\Users\Admin\AppData\Roaming\Kodi\addons\script.skinshortcuts;C:\Users\Admin\AppData\Roaming\Kodi\addons\script.module.simplejson\lib;C:\Users\Admin\AppData\Roaming\Kodi\addons\script.module.unidecode\lib;C:\Program Files (x86)\Kodi\system\python\DLLs;C:\Program Files (x86)\Kodi\system\python\Lib;C:\Program Files (x86)\Kodi\python27.zip;C:\Program Files (x86)\Kodi\system\python\lib\plat-win;C:\Program Files (x86)\Kodi\system\python\lib\lib-tk;C:\Program Files (x86)\Kodi;C:\Program Files (x86)\Kodi\system\python;C:\Program Files (x86)\Kodi\system\python\lib\site-packages
12:13:54.306 T:5092   DEBUG: CPythonInvoker(11, C:\Users\Admin\AppData\Roaming\Kodi\addons\script.skinshortcuts\default.py): entering source directory C:\Users\Admin\AppData\Roaming\Kodi\addons\script.skinshortcuts
12:13:54.306 T:5092   DEBUG: CPythonInvoker(11, C:\Users\Admin\AppData\Roaming\Kodi\addons\script.skinshortcuts\default.py): instantiating addon using automatically obtained id of "script.skinshortcuts" dependent on version 2.20.0 of the xbmc.python api
12:13:54.487 T:5092    INFO: CPythonInvoker(11, C:\Users\Admin\AppData\Roaming\Kodi\addons\script.skinshortcuts\default.py): script successfully run
12:13:54.502 T:5092    INFO: Python script stopped
12:13:54.502 T:5092   DEBUG: Thread LanguageInvoker 5092 terminating

The suspicious items in log is"C:\Program Files (x86)\Kodi\python27.zip" because it's a zip file and doesn't exist.


Other entries, that appear to be non-related, but of concern:
1)
Code:
12:13:31.100 T:2668   DEBUG: ------ Window Init (MyVideoNav.xml) ------
12:13:31.100 T:2668    INFO: Loading skin file: MyVideoNav.xml, load type: KEEP_IN_MEMORY
12:13:31.340 T:2668   DEBUG: CDirectoryProvider[]: refreshing..
12:13:31.340 T:7732   ERROR: XFILE::CDirectory::GetDirectory - Error getting
12:13:31.342 T:2668   DEBUG: CGUIMediaWindow::GetDirectory ()
12:13:31.342 T:2668   DEBUG:   ParentPath = []
12:13:31.347 T:7624   DEBUG: Thread BackgroundLoader start, auto delete: false
12:13:31.352 T:7624   DEBUG: Thread BackgroundLoader 7624 terminating

2)
Code:
12:13:33.405 T:2668   DEBUG: CInputManager::OnKey: down (0xf081) pressed, action is Down
12:13:33.522 T:2668   DEBUG: Keyboard: scancode: 0x50, sym: 0x0112, unicode: 0x0000, modifier: 0x0
12:13:33.643 T:2668   DEBUG: Previous line repeats 1 times.
12:13:33.643 T:2668   DEBUG: CInputManager::OnKey: down (0xf081) pressed, action is Down
12:13:33.712 T:2668   DEBUG: Keyboard: scancode: 0x50, sym: 0x0112, unicode: 0x0000, modifier: 0x0
12:13:33.866 T:2668   DEBUG: Previous line repeats 1 times.
12:13:33.866 T:2668   DEBUG: CInputManager::OnKey: down (0xf081) pressed, action is Down
12:13:34.001 T:2668   DEBUG: Keyboard: scancode: 0x50, sym: 0x0112, unicode: 0x0000, modifier: 0x0
12:13:34.768 T:2668   DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x000d, modifier: 0x0
12:13:34.853 T:2668   DEBUG: CInputManager::OnKey: return (0xf00d) pressed, action is Select
12:13:34.854 T:2668   DEBUG: CGUIMediaWindow::GetDirectory (library://video/files.xml/)
12:13:34.854 T:2668   DEBUG:   ParentPath = []
12:13:34.856 T:3400   ERROR: <content> tag must not be empty for type="filter" node 'special://masterprofile/library/video/files.xml'
12:13:34.856 T:2668   ERROR: XFILE::CDirectory::GetDirectory - Error getting library://video/files.xml/
12:13:34.856 T:2668   ERROR: CGUIMediaWindow::GetDirectory(library://video/files.xml/) failed
12:13:34.857 T:2668   DEBUG: CGUIMediaWindow::GetDirectory ()
12:13:34.857 T:2668   DEBUG:   ParentPath = []
12:13:34.867 T:7976   DEBUG: Thread BackgroundLoader start, auto delete: false
12:13:34.869 T:2668   DEBUG: ------ Window Init (DialogConfirm.xml) ------
12:13:34.869 T:2668    INFO: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
12:13:34.871 T:7976   DEBUG: Thread BackgroundLoader 7976 terminating
12:13:34.869 T:2668   DEBUG: ------ Window Init (DialogConfirm.xml) ------
12:13:34.869 T:2668    INFO: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
12:13:34.871 T:7976   DEBUG: Thread BackgroundLoader 7976 terminating
12:13:41.477 T:2668   DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x000d, modifier: 0x0
12:13:41.597 T:2668   DEBUG: CInputManager::OnKey: return (0xf00d) pressed, action is Select
12:13:41.597 T:2668   DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0
12:13:41.771 T:2668   DEBUG: ------ Window Deinit (DialogConfirm.xml) ------
12:13:41.785 T:2668   DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0
12:13:42.721 T:2668   DEBUG: Keyboard: scancode: 0x0e, sym: 0x0008, unicode: 0x0008, modifier: 0x0
12:13:42.789 T:2668   DEBUG: CInputManager::OnKey: backspace (0xf008) pressed, action is Back
12:13:42.789 T:2668   DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
12:13:43.339 T:2668   DEBUG: ------ Window Deinit (MyVideoNav.xml) ------
12:13:43.352 T:2668   DEBUG: CGUIWindowManager::PreviousWindow: Activate new
12:13:43.352 T:2668   DEBUG: ------ Window Init (Home.xml) ------
12:13:43.352 T:2668   DEBUG: CDirectoryProvider[]: refreshing..
12:13:43.352 T:3400   ERROR: XFILE::CDirectory::GetDirectory - Error getting
12:13:43.353 T:2668   DEBUG: CDirectoryProvider[]: refreshing..
12:13:43.353 T:3400   ERROR: XFILE::CDirectory::GetDirectory - Error getting

Same steps on fresh install (skinshortcuts not installed):
Code:
12:50:58.226 T:11196   DEBUG: CInputManager::OnKey: return (0xf00d) pressed, action is Select
12:50:58.227 T:11196   DEBUG: CGUIMediaWindow::GetDirectory (library://video/files.xml/)
12:50:58.227 T:11196   DEBUG:   ParentPath = []
12:50:58.249 T:9664   DEBUG: Thread BackgroundLoader start, auto delete: false
12:50:58.251 T:11196   DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0
12:50:58.255 T:9664   DEBUG: Thread BackgroundLoader 9664 terminating
12:51:00.850 T:11196   DEBUG: Keyboard: scancode: 0x0e, sym: 0x0008, unicode: 0x0008, modifier: 0x0
12:51:01.017 T:11196   DEBUG: CInputManager::OnKey: backspace (0xf008) pressed, action is Back
12:51:01.018 T:11196   DEBUG: CGUIMediaWindow::GetDirectory ()
12:51:01.018 T:11196   DEBUG:   ParentPath = []
12:51:01.029 T:9264   DEBUG: Thread BackgroundLoader start, auto delete: false
12:51:01.031 T:11196   DEBUG: Keyboard: scancode: 0x0e, sym: 0x0008, unicode: 0x0000, modifier: 0x0
12:51:01.035 T:9264   DEBUG: Thread BackgroundLoader 9264 terminating
12:51:01.669 T:11196   DEBUG: Keyboard: scancode: 0x0e, sym: 0x0008, unicode: 0x0008, modifier: 0x0
12:51:01.770 T:11196   DEBUG: CInputManager::OnKey: backspace (0xf008) pressed, action is Back
12:51:01.770 T:11196   DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
12:51:02.091 T:11196   DEBUG: ------ Window Deinit (MyVideoNav.xml) ------
12:51:02.104 T:11196   DEBUG: CGUIWindowManager::PreviousWindow: Activate new
12:51:02.104 T:11196   DEBUG: ------ Window Init (Home.xml) ------
12:51:02.108 T:11196   DEBUG: Keyboard: scancode: 0x0e, sym: 0x0008, unicode: 0x0000, modifier: 0x0
12:51:03.408 T:11196   DEBUG: Keyboard: scancode: 0x4d, sym: 0x0113, unicode: 0x0000, modifier: 0x0
12:51:03.408 T:11196   DEBUG: CInputManager::OnKey: right (0xf083) pressed, action is Right
12:51:03.592 T:11196   DEBUG: Keyboard: scancode: 0x4d, sym: 0x0113, unicode: 0x0000, modifier: 0x0
12:51:04.612 T:11196   DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x000d, modifier: 0x0
12:51:04.779 T:11196   DEBUG: CInputManager::OnKey: return (0xf00d) pressed, action is Select
12:51:04.779 T:11196   DEBUG: Activating window ID: 10025
12:51:05.082 T:11196   DEBUG: ------ Window Deinit (Home.xml) ------
12:51:05.103 T:11196   DEBUG: ------ Window Init (MyVideoNav.xml) ------
12:51:05.104 T:11196   DEBUG: CGUIMediaWindow::GetDirectory (library://video/files.xml/)
12:51:05.104 T:11196   DEBUG:   ParentPath = [library://video/files.xml/]
12:51:05.124 T:10204   DEBUG: Thread BackgroundLoader start, auto delete: false
12:51:05.133 T:10204   DEBUG: Thread BackgroundLoader 10204 terminating
12:51:05.139 T:11196   DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0
12:51:06.718 T:11196    INFO: Python, unloading python shared library because no scripts are running anymore
12:51:07.805 T:11196   DEBUG: Keyboard: scancode: 0x0e, sym: 0x0008, unicode: 0x0008, modifier: 0x0
12:51:07.955 T:11196   DEBUG: CInputManager::OnKey: backspace (0xf008) pressed, action is Back
12:51:07.955 T:11196   DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
HTPC: Dell Optiplex 7050 SFF i7-7700 quad-core, 3.6GHz, 16GB
NAS: Synology DS1813+ and DX513, Hybrid RAID (SHR) 48TB usable space
My Media Center | www.CaptainKen.us | www.YouTube.com/KenInGilbert
Reply
#6
(2017-03-05, 19:59)PatK Wrote: Could be as simple as the files have yet to be scraped into the library. Adding video sources (wiki)

I only get to Files-->Add Videos from the Video main menu submenu (down arrow to sub), not by hitting Enter on the Video main menu.

Here's a visual on the problem:
https://youtu.be/ZRk2fv0T5v4
HTPC: Dell Optiplex 7050 SFF i7-7700 quad-core, 3.6GHz, 16GB
NAS: Synology DS1813+ and DX513, Hybrid RAID (SHR) 48TB usable space
My Media Center | www.CaptainKen.us | www.YouTube.com/KenInGilbert
Reply
#7
Just checking back in hopes someone has a direction or solution.

It works only if from the Videos main menu when I arrow down to the sub-menu and choose Files and then Add Videos.

It does not work by hitting Enter on the Video main menu and then choosing Files.

Here's a fresh log.. I only performed the above two procedures.

If this was a permissions issue, then I wouldn't have been able to setup my libraries in the first place and none of my library would be playable. Nor would I be able to access the Files menu at all.
HTPC: Dell Optiplex 7050 SFF i7-7700 quad-core, 3.6GHz, 16GB
NAS: Synology DS1813+ and DX513, Hybrid RAID (SHR) 48TB usable space
My Media Center | www.CaptainKen.us | www.YouTube.com/KenInGilbert
Reply
#8
Line 1642 shows "ERROR: <content> tag must not be empty for type="filter" node 'special://masterprofile/library/video/files.xml'" which I assume is the issue? This is not a file that I created.

Here's the contents of C:\Users\Admin\AppData\Roaming\Kodi\userdata\library\video\files.xml

Code:
<?xml version="1.0" encoding="UTF-8"?>
-<node type="filter" order="20">
<label>744</label>
<icon>DefaultFolder.png</icon>
</node>
HTPC: Dell Optiplex 7050 SFF i7-7700 quad-core, 3.6GHz, 16GB
NAS: Synology DS1813+ and DX513, Hybrid RAID (SHR) 48TB usable space
My Media Center | www.CaptainKen.us | www.YouTube.com/KenInGilbert
Reply
#9
Questions...

1. Did you start with a fresh install of Kodi, and just use the default skin?

2. Did you Add Video sources per the Wiki...http://kodi.wiki/view/Adding%20video%20sources

3. Did you replace any XML files in Kodi, that would Add your Sources? If so, go back to step 2 and do it the correct way.

4. Reboot both your PC, and the Server you are sharing files from. Check if the error persists.

5. In step 2, did you add SMB or NFS shares? Did you give the correct permissions to the shares on the Server, and within Kodi?
Reply
#10
Thank you PowerHouse for your detailed response.

Yes it was a fresh Kodi install. Wish I could remember which if I added the library using the default skin or if I brought over any xml files other than the playlist ones. I do know that I added the libraries as described in the WiKi by first adding my NAS SMB network location and then the desired folders.

Since this original posting I've rebooted the NAS and PC multiple times.

I take that you don't think the error regarding the empty filter node has anything to do with this issue?

It's really puzzling how it can work in one place but not the other. Any thoughts?

Would recreating the SMB share within Kodi in order to relogin help and if so would I loose my watched/unwatched pointers? I don't mind adding all the libraries from scratch, but I don't want to loose any configurations or watched status.
HTPC: Dell Optiplex 7050 SFF i7-7700 quad-core, 3.6GHz, 16GB
NAS: Synology DS1813+ and DX513, Hybrid RAID (SHR) 48TB usable space
My Media Center | www.CaptainKen.us | www.YouTube.com/KenInGilbert
Reply
#11
You can access files on your network in Kodi using the File mode, just like you can access files in Windows using Windows Explorer. But, you need to add your NAS SMB shares to Kodi, so it knows there location, and can download the appropriate info for each Movie/TV Show.

You could try to remove the playlist xml file, and see if that helps, but I believe it won't make a difference.

For watched/unwatched, the best thing I've found is the Trakt TV (http://kodi.wiki/view/Add-on:Trakt). Create an account on the Trakt TV website. Then add the Trakt add-on in Kodi, and Trakt will keep track of all your watched status. It even works on Multiple installs of Kodi (I use it in 4 rooms around the house, all sync in the middle of the night).

The other way to keep track of your watched status is creating a MySQL database on your NAS (if it supports it), and it is a much more involved setup than using Trakt.

Hope this helps you.
Reply
#12
i had the same problem. i removed the ...userdata/library/video folder (where a files.xml exists).
after that, when i select files from menu, the add videos entry appears ...
Reply
#13
@cowcrash thank you, that worked.

Oddly though it didn't recreate the ...userdata/library/video folder.

Is that folder left over from a previous Kodi build that is no longer needed?
HTPC: Dell Optiplex 7050 SFF i7-7700 quad-core, 3.6GHz, 16GB
NAS: Synology DS1813+ and DX513, Hybrid RAID (SHR) 48TB usable space
My Media Center | www.CaptainKen.us | www.YouTube.com/KenInGilbert
Reply
#14
That location is where user created custom nodes would live, when you said before you did a clean install, did you delete the userdata folder? or did you simply remove the Kodi program and reinstall it, if so the userdata folder wouldn’t have been removed so the original userdata would still have been used by the new install.
Reply
#15
Sorry, I can't remember it was 6 months ago. Confused
HTPC: Dell Optiplex 7050 SFF i7-7700 quad-core, 3.6GHz, 16GB
NAS: Synology DS1813+ and DX513, Hybrid RAID (SHR) 48TB usable space
My Media Center | www.CaptainKen.us | www.YouTube.com/KenInGilbert
Reply

Logout Mark Read Team Forum Stats Members Help
Videos->Files error - Remote Share: Couldn't connect to network server0