Squid Posted February 7, 2015 Share Posted February 7, 2015 I'm finally making some headway here. No matter how I set up the library, Kodi would always say that the directory did not exist. Just had a brainstorm, and thought maybe it was a permission issue - So I set my share permissions to be Secure instead of Private. Everything started working. But, I'm not particularly happy with that setup (I don't want anyone who logs into my network to be able to read the files). What credentials could I add to unRaid so that the Kodi container can then access the shares when set to private? Link to comment
Squid Posted February 7, 2015 Share Posted February 7, 2015 (also tried copying over mediasources.xml (which contains the login credentials for openelec) and sources.xml and no difference) As a side note: you CAN set up your video library using hostnames. Kodi-Headless will scan it. (Edit: Using hostnames to refer to servers other than the one your container is hosted on is inconsistent. Sometimes it connects, other times it does not - Best to refer to IP addresses. EDIT: Fixed by using passwords.xml Link to comment
sparklyballs Posted February 7, 2015 Author Share Posted February 7, 2015 the best i can do for you is to refer to this thread where they are dealing with issue of password protected smb shares. http://forum.kodi.tv/showthread.php?tid=158297 the main gist of which seems to be to add a passwords.xml file Link to comment
Squid Posted February 7, 2015 Share Posted February 7, 2015 PERFECT!! Thanks. with the passwords XML file, everything works perfectly (even with host names) To summarize the last whack of posts: Use the scrapers that come with Kodi (The TVDB, The MovieDB, and whatever the one is for music) If you are using a different scraper than the default, then you are going to either: change your scraper to be the default, and rescan your libraries install that particular scraper into kodi-headless (just copy over the appropriate folders??? - Not tried) If you only have a single unRaid box for sources for Kodi AND the shares are set to either Public or Secure then you are done. If however you have multiple unRaid boxes and are referring to them via Hostnames in the sources for Kodi or, the shares are set to Private then you will have to create the passwords.xml file and store it in /appdata/kodi/userdata <passwords> <path> <from pathversion="1">smb://SERVER_A/</from> <to pathversion="1">smb://username:password@SERVER_A/</to> </path> <path> <from pathversion="1">smb://SERVER_B/</from> <to pathversion="1">smb://username:password@SERVER_B/</to> </path> </passwords> Note that in passwords.xml there is no reference at all to any particular share. Only to the servers Link to comment
sparklyballs Posted February 7, 2015 Author Share Posted February 7, 2015 PERFECT!! Thanks. with the passwords XML file, everything works perfectly (even with host names) To summarize the last whack of posts: Use the scrapers that come with Kodi (The TVDB, The MovieDB, and whatever the one is for music) If you are using a different scraper than the default, then you are going to either: change your scraper to be the default, and rescan your libraries install that particular scraper into kodi-headless (just copy over the appropriate folders??? - Not tried) If you only have a single unRaid box for sources for Kodi AND the shares are set to either Public or Secure then you are done. If however you have multiple unRaid boxes and are referring to them via Hostnames in the sources for Kodi or, the shares are set to Private then you will have to create the passwords.xml file and store it in /appdata/kodi/userdata <passwords> <path> <from pathversion="1">smb://SERVER_A/</from> <to pathversion="1">smb://username:password@SERVER_A/</to> </path> <path> <from pathversion="1">smb://SERVER_B/</from> <to pathversion="1">smb://username:password@SERVER_B/</to> </path> </passwords> Note that in passwords.xml there is no reference at all to any particular share. Only to the servers This docker could benefit from a how-to etc.. but i'm not really the teacher type or a skilled communicator. Link to comment
pinion Posted February 11, 2015 Share Posted February 11, 2015 I'm trying to do a fresh install of Koma. When running docker exec Koma createuser kodi kodi I'm seeing this Enter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Any help would be appreciated. I was trying to do separate containers for Kodi and mariadb and everything appeared to install fine for Kodi and I had the database setup but when I installed Kodi on my Mac and dropped in the advancedsettings.xml and added a library I didn't see it show up under the Kodi Docker:8080 Movies section. And I went into Mariadb and did a select on the movies table and nothing was there. So I assume Kodi on my laptop wasn't actually connecting to the unraid mariadb. That's when I nuked it all and started over with Koma but I'm stuck here. Link to comment
sparklyballs Posted February 11, 2015 Author Share Posted February 11, 2015 I'm trying to do a fresh install of Koma. When running docker exec Koma createuser kodi kodi I'm seeing this Enter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Any help would be appreciated. I was trying to do separate containers for Kodi and mariadb and everything appeared to install fine for Kodi and I had the database setup but when I installed Kodi on my Mac and dropped in the advancedsettings.xml and added a library I didn't see it show up under the Kodi Docker:8080 Movies section. And I went into Mariadb and did a select on the movies table and nothing was there. So I assume Kodi on my laptop wasn't actually connecting to the unraid mariadb. That's when I nuked it all and started over with Koma but I'm stuck here. did you let it run for a while before trying that command ? Link to comment
aslefnad Posted February 13, 2015 Share Posted February 13, 2015 i'm sorry if this has been discussed before, but how to add a source to headless kodi? i tried setting up the sources.xml like this but that didn't get the job done. <sources> <video> <default pathversion="1"></default> <source> <name>Movies</name> <path pathversion="1">nfs://192.168.1.34/mnt/disk1/Movies/</path> <path pathversion="1">nfs://192.168.1.34/mnt/disk6/</path> <path pathversion="1">nfs://192.168.1.34/mnt/disk4/movies/</path> <path pathversion="1">nfs://192.168.1.34/mnt/disk8/</path> <allowsharing>true</allowsharing> </source> <video> </sources> thanks very much for your help Link to comment
sparklyballs Posted February 13, 2015 Author Share Posted February 13, 2015 i've never had a need for sources.xml on the headless instance. setup the sources on another machine and do the initial scan from there, unless you have secure or private shares in unraid for your media, you should have no need to add/edit a sources.xml file on the headless instance. Link to comment
aslefnad Posted February 13, 2015 Share Posted February 13, 2015 thanks for your help. and after scanning on a different machine i just copy them into the headless kodi or how do I get my library in there? Link to comment
sparklyballs Posted February 13, 2015 Author Share Posted February 13, 2015 both machines access the same database via advancedsettings. Link to comment
aslefnad Posted February 13, 2015 Share Posted February 13, 2015 aahh, sorry. now i understand it. thanks very much Link to comment
pinion Posted February 14, 2015 Share Posted February 14, 2015 did you let it run for a while before trying that command ? That was the problem. I'm just a moron. Link to comment
helio Posted February 18, 2015 Share Posted February 18, 2015 Hey, Thanks for the sparkly toys Small problem with the template for me (kodi headless). I can't click create after filling in all field... I get a "please fill out this field" error in the top left of the page...? Any ideas? Link to comment
sparklyballs Posted February 18, 2015 Author Share Posted February 18, 2015 click advanced and fill in the variables for mysql etc... Link to comment
helio Posted February 18, 2015 Share Posted February 18, 2015 click advanced and fill in the variables for mysql etc... oh dear... nothing to see here. move along. /oh the shame Link to comment
Vaseer Posted March 1, 2015 Share Posted March 1, 2015 Is it possible to set up Kodi-headless for multiple users? Probably yes, but I didn't figure it out yet We have couple devices with Kodi (PCs, HTPCs, tablets...) and each user (5 users for now) has their own profile for login. I set up Kodi-headless (Helix - 14.1) with MariaDB as described on this thread and for now everything works great, except that all users share same database. If I watch some movie and this movie is marked as watched, all other users sees it as watched. On Kodi-headless > Profiles there is only "Master user*" profile. Link to comment
sparklyballs Posted March 1, 2015 Author Share Posted March 1, 2015 I'm not certain that multiple profiles will work with a headless instance of kodi that essentially updates one database. i think this question is one more suited to the kodi forum as it's very specific to kodi. Link to comment
Vaseer Posted March 6, 2015 Share Posted March 6, 2015 How can I check if database was updated? I added couple new items in "movie" folder, and database was not updated yet (after 3 days). In Kodi I can't see new movies and on online movie database was no change. Is update done instantly when new content is added or is it updated once per day? Link to comment
exist2resist Posted March 6, 2015 Share Posted March 6, 2015 You need to instruct the application that manages your media to send a notification for an update to the headless instance or in command line on your server type: docker exec KODI-Headless kodi-send --action="UpdateLibrary(video)" Link to comment
exist2resist Posted March 6, 2015 Share Posted March 6, 2015 You can also use the instructions found here: http://kodi.wiki/view/HOW-TO:Remotely_update_library Link to comment
sparklyballs Posted March 6, 2015 Author Share Posted March 6, 2015 If you just want to update the library, you can use the web interface (it's no good for anything else, lol) Link to comment
sparklyballs Posted March 27, 2015 Author Share Posted March 27, 2015 Bumped both kodi headless and koma to helix 14.2 (builds in progress on both) Link to comment
gfjardim Posted April 13, 2015 Share Posted April 13, 2015 Bumped both kodi headless and koma to helix 14.2 (builds in progress on both) Hi, sparklyballs. Could you add support for this? http://lime-technology.com/forum/index.php?topic=39106.msg365627#msg365627 Thanks in advance! Link to comment
sparklyballs Posted April 13, 2015 Author Share Posted April 13, 2015 Bumped both kodi headless and koma to helix 14.2 (builds in progress on both) Hi, sparklyballs. Could you add support for this? http://lime-technology.com/forum/index.php?topic=39106.msg365627#msg365627 Thanks in advance! Will the overview tag replace the description tag for the community repo plugin ? Link to comment
Recommended Posts