Jump to content
sparklyballs

[DOCKER] kodi isengard headless

111 posts in this topic Last Reply

Recommended Posts

currently trying to build isengard beta 1 headless container based on patch from the marvellous celedhrim in the kodi forums.

 

Awesome, I love the kodi updates.  For those unaware, Isengard is the codename for the next version of Kodi.  Reading about it, this should just work, but those of us that use PVR software may have one or two niggles.  I'm still going to give it a go though.  ;D

 

Sparklyballs you're the man!

Share this post


Link to post

it's built, and i'm testing it now.

 

i built it with my build-box docker and made a .deb from it, so in the final container i don't need to install the compile tools.

 

makes a smaller container.

Share this post


Link to post

there it is, lol.

 

OjlWnee.png

 

Sweet, just need to make sure the wife doesn't want to watch any television tonight and I'll give it a go. 

Share this post


Link to post

there it is, lol.

 

OjlWnee.png

 

Sweet, just need to make sure the wife doesn't want to watch any television tonight and I'll give it a go.

 

unless you have isengard elsewhere, i don't know what it will do to an existing library, as with the change from frodo to helix, i'm not letting it loose on my library (7000+ movies)

Share this post


Link to post

unless you have isengard elsewhere, i don't know what it will do to an existing library, as with the change from frodo to helix, i'm not letting it loose on my library (7000+ movies)

 

Don't be such a wimp!  Or just backup your mysql library before installing.  ;)

 

Share this post


Link to post

i'm not letting it loose on my library (7000+ movies)

 

Offtopic: 7000 movies? And I was very proud of my 1000 Blurays....  :o

Share this post


Link to post

Backups are always good but clever Kodi creates a new dbase for every dbase change. So in theory at least a dbase upgrade cant break an old dbase.

 

From what I hear nightlys have changed a few dbase things including genre handling.

 

sparklyballs its worth thanking you again. I use you current stable headless in anger as the centre of my entire collection now 24*7. Nice work that man.

Share this post


Link to post

Could you please enlighten me what is the benefit of running kodi headless on a server?

Is it only for handling the database or it has other advantages?

In case it is only for database sharing how it is better than MySQL sharing?

Thank you in advance for your work and answers.

Share this post


Link to post

Could you please enlighten me what is the benefit of running kodi headless on a server?

Is it only for handling the database or it has other advantages?

In case it is only for database sharing how it is better than MySQL sharing?

Thank you in advance for your work and answers.

 

 

it is not better than mysql sharing, it is mysql sharing.

 

the benefit of running a headless instance on your server are that you don't need to have a player machine to be on for the library to be updated by Couch, sickbeard etc....

 

eventually at some stage (it's unclear when from kodi forum) headless will be a full copy of kodi with a command line switch to disable the gui.

 

this isn't that yet, it's a patched version of the source compiled to run without gui (and other libraries to make it smaller)

 

 

Share this post


Link to post

Could you please enlighten me what is the benefit of running kodi headless on a server?

Is it only for handling the database or it has other advantages?

In case it is only for database sharing how it is better than MySQL sharing?

Thank you in advance for your work and answers.

 

It means that you can turn off your media centre PCs / devices and still get your mysql / mariadb updated.  So no need to scan your library when you turn on your HTPC.

 

EDIT: Sorry, didn't see the other reply, am browsing on my phone..

 

Share this post


Link to post

Got this up and running, working perfectly.  I'm running it side by side with the Helix container at the moment, so I can easily switch back and forth if there are any problems.

 

I use Openelec on my main HTPC so it's relatively easy to revert in the case of any problems.

 

Got Yatse on my Android devices connected to both instances so I can trigger updates manually if necessary when I add extra albums.

 

If anyone is interested here is how I set this up:  I have altered some of the info in both of the advancedsettings.xml

 

Kodi-Helix

 

xaxDS5w.jpg

 

<advancedsettings>

<!-- 
#####################################################

############ DON'T EDIT OR DELETE THIS BLOCK ########  
-->

<videodatabase>
<type>mysql</type>  
<host>192.168.1.1</host>  
<port>3306</port>  
<user>MYSQL-USER</user>  
<pass>MYSQL-PASSWORD</pass>  
</videodatabase>
<musicdatabase>
<type>mysql</type>  
<host>192.168.1.1</host>  
<port>3306</port>  
<user>MYSQL-USER</user>  
<pass>MYSQL-PASSWORD</pass>  
</musicdatabase>

<services>
<devicename>XBMC Server</devicename>
<esallinterfaces>false</esallinterfaces>
<escontinuousdelay>25</escontinuousdelay>
<esenabled>true</esenabled>
<esinitialdelay>750</esinitialdelay>
<esmaxclients>20</esmaxclients>
<esport>9777</esport>
<esportrange>10</esportrange>
<upnpannounce>true</upnpannounce>
<upnprenderer>false</upnprenderer>
<upnpserver>true</upnpserver>
<webserver>true</webserver>
<webserverpassword>WEB-USER</webserverpassword>
<webserverport>8080</webserverport>
<webserverusername>WEB-PASSWORD</webserverusername>
<webskin>webinterface.default</webskin>
<zeroconf>true</zeroconf>
</services>

<!-- 
############ OR THINGS WILL BREAK ###################

#####################################################



########### THINGS BELOW ARE HOWEVER EDITABLE #######
refer to http://kodi.wiki/view/Advancedsettings.xml for info on the various settings -->





<videolibrary>
<importresumepoint>true</importresumepoint>    <!-- import previously exported resume point from .nfo files -->
<importwatchedstate>true</importwatchedstate>  <!-- import previously exported playdate and playcount from .nfo files -->
<backgroundupdate>true</backgroundupdate>
<dateadded>0</dateadded> <!-- 0 results in using the current datetime when adding a video;
                              1 (default) results in prefering to use the files mtime (if it's valid) and only using the file's ctime if the mtime isn't valid;
                              2 results in using the newer datetime of the file's mtime and ctime -->

</videolibrary>
<musiclibrary>
<backgroundupdate>true</backgroundupdate>
</musiclibrary>
<videoscanner>
<ignoreerrors>true</ignoreerrors> <!-- Set to true to silently ignore errors while scanning videos. This prevents the error dialogue box, so you don't have to keep hitting "yes" to keep scanning.-->
</videoscanner>
<splash>false</splash>
<bginfoloadermaxthreads>2</bginfoloadermaxthreads>
<myvideos>
<extractflags>false</extractflags>
<extractthumb>false</extractthumb>
</myvideos>
<lookandfeel>
<enablerssfeeds>false</enablerssfeeds>
</lookandfeel>
<audiooutput>
<guisoundmode>0</guisoundmode>
<ac3passthrough>false</ac3passthrough>
<dtspassthrough>false</dtspassthrough>
<multichannellpcm>false</multichannellpcm>
<truehdpassthrough>false></truehdpassthrough>
<dtshdpassthrough>false</dtshdpassthrough>
<mode>2</mode>
</audiooutput>
<videoscreen>
<vsync>2</vsync>
</videoscreen>
<input>
<enablemouse>false</enablemouse>
<remoteaskeyboard>false</remoteaskeyboard>
</input>
<general>
<addonnotifications>false</addonnotifications>
</general>
<skinsettings>
<setting type="bool" name="skin.confluence.FirstTimeRun">false</setting>
</skinsettings>
</advancedsettings>

 

Kodi-Isengard

 

SN9IyOo.jpg

 

<advancedsettings>

<!-- 
#####################################################

############ DON'T EDIT OR DELETE THIS BLOCK ########  
-->

<videodatabase>
<type>mysql</type>  
<host>192.168.1.1</host>  
<port>3306</port>  
<user>MYSQL-USER</user>  
<pass>MYSQL-PASSWORD</pass>  
</videodatabase>
<musicdatabase>
<type>mysql</type>  
<host>192.168.1.1</host>  
<port>3306</port>  
<user>MYSQL-USER</user>  
<pass>MYSQL-PASSWORD</pass>  
</musicdatabase>

<services>
<devicename>XBMC Server</devicename>
<esallinterfaces>false</esallinterfaces>
<escontinuousdelay>25</escontinuousdelay>
<esenabled>true</esenabled>
<esinitialdelay>750</esinitialdelay>
<esmaxclients>20</esmaxclients>
<esport>9777</esport>
<esportrange>10</esportrange>
<upnpannounce>true</upnpannounce>
<upnprenderer>false</upnprenderer>
<upnpserver>true</upnpserver>
<webserver>true</webserver>
<webserverpassword>WEB-PASSWORD</webserverpassword>
<webserverport>8080</webserverport>
<webserverusername>WEB-USER</webserverusername>
<webskin>webinterface.default</webskin>
<zeroconf>true</zeroconf>
</services>

<!-- 
############ OR THINGS WILL BREAK ###################

#####################################################



########### THINGS BELOW ARE HOWEVER EDITABLE #######
refer to http://kodi.wiki/view/Advancedsettings.xml for info on the various settings -->





<videolibrary>
<importresumepoint>true</importresumepoint>    <!-- import previously exported resume point from .nfo files -->
<importwatchedstate>true</importwatchedstate>  <!-- import previously exported playdate and playcount from .nfo files -->
<backgroundupdate>true</backgroundupdate>
<dateadded>0</dateadded> <!-- 0 results in using the current datetime when adding a video;
                              1 (default) results in prefering to use the files mtime (if it's valid) and only using the file's ctime if the mtime isn't valid;
                              2 results in using the newer datetime of the file's mtime and ctime -->

</videolibrary>
<musiclibrary>
<backgroundupdate>true</backgroundupdate>
</musiclibrary>
<videoscanner>
<ignoreerrors>true</ignoreerrors> <!-- Set to true to silently ignore errors while scanning videos. This prevents the error dialogue box, so you don't have to keep hitting "yes" to keep scanning.-->
</videoscanner>
<splash>false</splash>
<bginfoloadermaxthreads>2</bginfoloadermaxthreads>
<myvideos>
<extractflags>false</extractflags>
<extractthumb>false</extractthumb>
</myvideos>
<lookandfeel>
<enablerssfeeds>false</enablerssfeeds>
</lookandfeel>
<audiooutput>
<guisoundmode>0</guisoundmode>
<ac3passthrough>false</ac3passthrough>
<dtspassthrough>false</dtspassthrough>
<multichannellpcm>false</multichannellpcm>
<truehdpassthrough>false></truehdpassthrough>
<dtshdpassthrough>false</dtshdpassthrough>
<mode>2</mode>
</audiooutput>
<videoscreen>
<vsync>2</vsync>
</videoscreen>
<input>
<enablemouse>false</enablemouse>
<remoteaskeyboard>false</remoteaskeyboard>
</input>
<general>
<addonnotifications>false</addonnotifications>
</general>
<skinsettings>
<setting type="bool" name="skin.confluence.FirstTimeRun">false</setting>
</skinsettings>
</advancedsettings>

Share this post


Link to post

currently trying to build isengard beta 1 headless container based on patch from the marvellous celedhrim in the kodi forums.

 

Just an update to this thread, I have been using this exclusively since the original post with no problems, all my kodi / openelec instances are now Isengard beta 1.

 

Thanks sparkly.

Share this post


Link to post

bumped to beta 2

 

(currently building)

Still working perfectly, thanks Sparkly.

Share this post


Link to post

I've installed it with quite a bit of self-education along the way ;=)  I got the MariaDB databases made, but haven't been able to get CP to notify (they only say xbmc 11, 12, 13)... that's for later.

 

SB- you made comment about a command for Kodi (v14) a while back to scan a library:

 

docker exec KODI-Headless-test  kodi-send  --action="UpdateLibrary(video)"

 

When I try this on v-15 using the appropriate docker container id I get the error

"executable file not found in $PATH"

 

Is there a command to replace kodi-send in v 15? (or a URL for additional self education)?

 

Thanks

 

D

 

Share this post


Link to post

I've installed it with quite a bit of self-education along the way ;=)  I got the MariaDB databases made, but haven't been able to get CP to notify (they only say xbmc 11, 12, 13)... that's for later.

 

SB- you made comment about a command for Kodi (v14) a while back to scan a library:

 

docker exec KODI-Headless-test  kodi-send  --action="UpdateLibrary(video)"

 

When I try this on v-15 using the appropriate docker container id I get the error

"executable file not found in $PATH"

 

Is there a command to replace kodi-send in v 15? (or a URL for additional self education)?

 

Thanks

 

D

 

i haven't included kodi-send in this yet as i don't know whether the command is compatibable with isengard and this is only beta container at the moment since isengard isn't final yet.

Share this post


Link to post

I think I found an issue with the Beta 2 version sparkly.

 

The database version has been updated for Beta to MyVideos93 but I think the container is still using MyVideos92

 

Weird thing is my clients can still read the Movies but TV Shows don't appear.

 

MyMusic is still on version 52

Share this post


Link to post

I think I found an issue with the Beta 2 version sparkly.

 

The database version has been updated for Beta to MyVideos93 but I think the container is still using MyVideos92

 

Weird thing is my clients can still read the Movies but TV Shows don't appear.

 

MyMusic is still on version 52

 

 

http://kodi.tv/kodi-15-0-isengard-beta-2/

Share this post


Link to post

I think I found an issue with the Beta 2 version sparkly.

 

The database version has been updated for Beta to MyVideos93 but I think the container is still using MyVideos92

 

Weird thing is my clients can still read the Movies but TV Shows don't appear.

 

MyMusic is still on version 52

 

 

http://kodi.tv/kodi-15-0-isengard-beta-2/

 

I've seen that,

 

So I had to do a library reinstall (don't ask)

Installed kodi beta 2 on my Windows PC and scanned the library in no problems,

 

When I install the docker container I'm getting errors because MyVideos92 or a database from an even earlier release doesn't exist even though there is already MyVideos93 is present. (as it's been created by my kodi install on my Windows PC)

 

13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos92 [1049](Unknown database 'MyVideos92')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos91 [1049](Unknown database 'MyVideos91')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos90 [1049](Unknown database 'MyVideos90')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos89 [1049](Unknown database 'MyVideos89')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos88 [1049](Unknown database 'MyVideos88')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos87 [1049](Unknown database 'MyVideos87')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos86 [1049](Unknown database 'MyVideos86')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos85 [1049](Unknown database 'MyVideos85')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos84 [1049](Unknown database 'MyVideos84')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos83 [1049](Unknown database 'MyVideos83')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos82 [1049](Unknown database 'MyVideos82')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos81 [1049](Unknown database 'MyVideos81')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos80 [1049](Unknown database 'MyVideos80')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos79 [1049](Unknown database 'MyVideos79')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos78 [1049](Unknown database 'MyVideos78')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos77 [1049](Unknown database 'MyVideos77')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos76 [1049](Unknown database 'MyVideos76')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos75 [1049](Unknown database 'MyVideos75')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos74 [1049](Unknown database 'MyVideos74')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos73 [1049](Unknown database 'MyVideos73')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos72 [1049](Unknown database 'MyVideos72')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos71 [1049](Unknown database 'MyVideos71')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos70 [1049](Unknown database 'MyVideos70')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos69 [1049](Unknown database 'MyVideos69')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos68 [1049](Unknown database 'MyVideos68')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos67 [1049](Unknown database 'MyVideos67')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos66 [1049](Unknown database 'MyVideos66')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos65 [1049](Unknown database 'MyVideos65')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos64 [1049](Unknown database 'MyVideos64')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos63 [1049](Unknown database 'MyVideos63')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos62 [1049](Unknown database 'MyVideos62')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos61 [1049](Unknown database 'MyVideos61')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos60 [1049](Unknown database 'MyVideos60')

Share this post


Link to post

I think I found an issue with the Beta 2 version sparkly.

 

The database version has been updated for Beta to MyVideos93 but I think the container is still using MyVideos92

 

Weird thing is my clients can still read the Movies but TV Shows don't appear.

 

MyMusic is still on version 52

 

 

http://kodi.tv/kodi-15-0-isengard-beta-2/

 

I've seen that,

 

So I had to do a library reinstall (don't ask)

Installed kodi beta 2 on my Windows PC and scanned the library in no problems,

 

When I install the docker container I'm getting errors because MyVideos92 or a database from an even earlier release doesn't exist even though there is already MyVideos93 is present. (as it's been created by my kodi install on my Windows PC)

 

13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos92 [1049](Unknown database 'MyVideos92')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos91 [1049](Unknown database 'MyVideos91')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos90 [1049](Unknown database 'MyVideos90')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos89 [1049](Unknown database 'MyVideos89')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos88 [1049](Unknown database 'MyVideos88')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos87 [1049](Unknown database 'MyVideos87')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos86 [1049](Unknown database 'MyVideos86')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos85 [1049](Unknown database 'MyVideos85')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos84 [1049](Unknown database 'MyVideos84')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos83 [1049](Unknown database 'MyVideos83')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos82 [1049](Unknown database 'MyVideos82')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos81 [1049](Unknown database 'MyVideos81')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos80 [1049](Unknown database 'MyVideos80')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos79 [1049](Unknown database 'MyVideos79')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos78 [1049](Unknown database 'MyVideos78')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos77 [1049](Unknown database 'MyVideos77')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos76 [1049](Unknown database 'MyVideos76')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos75 [1049](Unknown database 'MyVideos75')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos74 [1049](Unknown database 'MyVideos74')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos73 [1049](Unknown database 'MyVideos73')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos72 [1049](Unknown database 'MyVideos72')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos71 [1049](Unknown database 'MyVideos71')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos70 [1049](Unknown database 'MyVideos70')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos69 [1049](Unknown database 'MyVideos69')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos68 [1049](Unknown database 'MyVideos68')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos67 [1049](Unknown database 'MyVideos67')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos66 [1049](Unknown database 'MyVideos66')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos65 [1049](Unknown database 'MyVideos65')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos64 [1049](Unknown database 'MyVideos64')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos63 [1049](Unknown database 'MyVideos63')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos62 [1049](Unknown database 'MyVideos62')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos61 [1049](Unknown database 'MyVideos61')
13:59:33 T:47657502456832   ERROR: Unable to open database: MyVideos60 [1049](Unknown database 'MyVideos60')

 

IT"S BETA SOFTWARE or something, lol.

Share this post


Link to post

Just restarted the container and get this in the log

 

14:03:40 T:47102398790656  NOTICE: Running database version Addons18
14:03:40 T:47102398790656  NOTICE: Running database version ViewModes6
14:03:40 T:47102398790656  NOTICE: Running database version Textures13
14:03:40 T:47102398790656  NOTICE: Running database version MyMusic52
14:03:40 T:47102398790656  NOTICE: Running database version MyVideos92
14:03:40 T:47102398790656  NOTICE: Running database version TV29
14:03:40 T:47102398790656  NOTICE: Running database version Epg10

 

I know it's beta software, thought the point was to report bugs!  ;)

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.