Solved RC2 cannot parse sources.xml and special: folder
#1
I am trying to get RC2 to work with a mysql DB, the DB is correctly setup and populated with databases, I cannot however get xbmc on osX to parse the sources.xml file or read any file or folder in specil:

log output;
Code:
15:54:23 T:140735230730624  NOTICE: load settings...
15:54:23 T:140735230730624   ERROR: Unable to load libcrystalhd.dylib, reason: dlopen(libcrystalhd.dylib, 1): image not found
15:54:23 T:140735230730624  NOTICE: special://profile/ is mapped to: special://masterprofile/profiles/Hemma/
15:54:23 T:140735230730624  NOTICE: loading special://profile/guisettings.xml
15:54:23 T:140735230730624  NOTICE: Getting hardware information now...
15:54:23 T:140735230730624  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
15:54:23 T:140735230730624  NOTICE: Loaded playercorefactory configuration
15:54:23 T:140735230730624  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
15:54:23 T:140735230730624  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
15:54:23 T:140735230730624  NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
15:54:23 T:140735230730624  NOTICE: Loaded settings file from special://profile/advancedsettings.xml
15:54:23 T:140735230730624  NOTICE: Contents of special://profile/advancedsettings.xml are...
                                            <advancedsettings>
                                              <videodatabase>
                                                <type>mysql</type>
                                                <host>192.168.1.6</host>
                                                <port>3306</port>
                                                <user>xbmc</user>
                                                <pass>password</pass>
                                              </videodatabase>
                                              <musicdatabase>
                                                <type>mysql</type>
                                                <host>192.168.1.6</host>
                                                <port>3306</port>
                                                <user>xbmc</user>
                                                <pass>password</pass>
                                              </musicdatabase>
                                              <useddsfanart>true</useddsfanart>
                                              <cputempcommand>cputemp</cputempcommand>
                                              <gputempcommand>gputemp</gputempcommand>
                                              <samba>
                                                <clienttimeout>30</clienttimeout>
                                              </samba>
                                              <network>
                                                <disableipv6>true</disableipv6>
                                              </network>
                                              <pathsubstitution>
                                                <substitute>
                                                  <from>special://profile/playlists/</from>
                                                  <to>NFS://192.168.1.6/export/userdata/playlists/</to>
                                                </substitute>
                                                <substitute>
                                                  <from>special://profile/sources.xml/</from>
                                                  <to>NFS://192.168.1.6/export/userdata/sources.xml/</to>
                                                </substitute>
                                                <substitute>
                                                  <from>special://profile/mediasources.xml/</from>
                                                  <to>NFS://192.168.1.6/export/userdata/mediasources.xml/</to>
                                                </substitute>
                                                <substitute>
                                                  <from>special://profile/favorites.xml/</from>
                                                  <to>NFS://192.168.1.6/export/userdata/favourites.xml/</to>
                                                </substitute>
                                                <substitute>
                                                  <from>special://profile/keymaps/</from>
                                                  <to>NFS://192.168.1.6/export/userdata/keymaps/</to>
                                                </substitute>
                                                <substitute>
                                                  <from>special://profile/RssFeeds.xml/</from>
                                                  <to>NFS://192.168.1.6/export/userdata/RssFeeds.xml/</to>
                                                </substitute>
                                              </pathsubstitution>
                                            </advancedsettings>
despite these settings and the sources.xml file being world readable (exported using all_Squash, anonuid and anongid) xbmc does not read the sources.xml file, not other log entries could be found.
Code:
5:54:29 T:140735230730624   ERROR: GetDirectory - Error getting /Users/jan/Library/Application Support/XBMC/userdata/profiles/Hemma/playlists/video
15:54:29 T:140735230730624   ERROR: GetDirectory - Error getting special://profile/playlists/video
15:54:29 T:140735230730624   ERROR: Error Getting Directory (special://profile/playlists/video)
15:54:29 T:140735230730624   ERROR: GetDirectory - Error getting /Users/jan/Library/Application Support/XBMC/userdata/profiles/Hemma/playlists/mixed
15:54:29 T:140735230730624   ERROR: GetDirectory - Error getting special://profile/playlists/mixed
15:54:29 T:140735230730624   ERROR: Error Getting Directory (special://profile/playlists/mixed)
15:54:29 T:140735230730624   ERROR: GetDirectory - Error getting multipath://special%3a%2f%2fprofile%2fplaylists%2fvideo/special%3a%2f%2fprofile%2fplaylists%2fmixed/
15:54:29 T:140735230730624   ERROR: GetDirectory - Error getting special://videoplaylists/
15:54:29 T:140735230730624   ERROR: CGUIMediaWindow::GetDirectory(special://videoplaylists/) failed

trying to access : /Users/jan/Library/Application Support command line does not work since it needs to be escaped like: /Users/jan/Library/Application\ Support
but I don't know if this is part of the problem

Any ideas?
Reply
#2
Update: for anyone else trying this, the NFS-share needs to be exported with the option "insecure" as osX allways assumes that port >1024 for nfs, simply changing this made it possible for xbmc to access the profile folders, it however still does not parse the sources.xml, and no log output is given
Reply
#3
(2012-12-25, 17:41)Everwake Wrote: Update: for anyone else trying this, the NFS-share needs to be exported with the option "insecure" as osX allways assumes that port >1024 for nfs, simply changing this made it possible for xbmc to access the profile folders, it however still does not parse the sources.xml, and no log output is given

I have used NFS shares and there was no issue with the sources.xml being parsed using Frodo RC-2. Are you saying that you could not add new sources when using NFS shares?
Kodi 17, Transparency Skin
PogoPlug v4 running Arm Linux 4.4.63 as MySQL (mariadb) server.
Mac OS 10.12.5
2015 27" iMac 3.3 GHz Quad, 16GB RAM, 1TB SSD
2015 13" Macbook Pro, 8GB RAM, 256GB SSD
AppleTV 4 TV OS 10
Reply
#4
figured it out, there was a missing </source> in the sources.xml, must have edited it by mistake, strangely any error in formatting causes xbmc to fail silently, if you input an invalid value you get an error message, but not if you have incorrect formatting.

Winestock I was using path substitution in advancedsettings to relocate the sources.xml file to an NFS file share
Reply

Logout Mark Read Team Forum Stats Members Help
RC2 cannot parse sources.xml and special: folder0