Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

kodi HELIX headless release

Featured Replies

It is not commonly known but there are two advanced settings files allowing you to have one in the docker with all the headless specific housekeeping and then another for user specific setting and any over rides that are required.

 

This would be a neater solution as it would allow you to have a nicely formatted static XML in the container and a short one externally mounted for sql etc. The current method is a bit of a pain since your as.xml is quite long and requires quite a bit of effort to merge with user ones. It also allows you to alter your as.xml withough user intervention later in the day (which will be crucial for a seamless upgrade experience).

 

Nice work :)

  • Replies 212
  • Views 52.8k
  • Created
  • Last Reply
  • Author

It is not commonly known but there are two advanced settings files allowing you to have one in the docker with all the headless specific housekeeping and then another for user specific setting and any over rides that are required.

 

This would be a neater solution as it would allow you to have a nicely formatted static XML in the container and a short one externally mounted for sql etc. The current method is a bit of a pain since your as.xml is quite long and requires quite a bit of effort to merge with user ones. It also allows you to alter your as.xml withough user intervention later in the day (which will be crucial for a seamless upgrade experience).

 

Nice work :)

 

I was unaware of there being two advancedsettings files, where would i have to place it and what name would i give it (assuming it doens't exist by default like the as file i'm currently implementing)

From memory its somewhere like "/usr/share/kodi/system/"

  • Author

From memory its somewhere like "/usr/share/kodi/system/"

 

 

ahh, right, where the default keymaps and stuff are.

 

i'll give it a whirl later.

  • Author

Playing about with this. Will shout things as I see them :)

 

Most/all appdata ends up owned by root. typically we would want this being nobody:users

 

on this issue i am pretty much close to the solution on a test build, i've managed to get stability in running kodi headless in portable mode by swapping out the dependencies from using the ppa and xbmc build deps to the separate list of individual dependencies from the kodi wiki on compiling, it's running as nobody thanks to the tip from BRiT about altering the exec line to set user as nobody.

 

just need to get the chown's sorted out in the right order etc.. for the folders that are preloaded from the image, which i'm working on now.

  • Author

Playing about with this. Will shout things as I see them :)

 

Most/all appdata ends up owned by root. typically we would want this being nobody:users

 

on this issue i am pretty much close to the solution on a test build, i've managed to get stability in running kodi headless in portable mode by swapping out the dependencies from using the ppa and xbmc build deps to the separate list of individual dependencies from the kodi wiki on compiling, it's running as nobody thanks to the tip from BRiT about altering the exec line to set user as nobody.

 

just need to get the chown's sorted out in the right order etc.. for the folders that are preloaded from the image, which i'm working on now.

 

Um19wNR.png

  • Author

Some questions

I see 3 kodi headless topics

Which one is the one i need?

 

This one  or

this: http://lime-technology.com/forum/index.php?topic=37248.0

or this: http://lime-technology.com/forum/index.php?topic=36761.0

or even this :http://forum.kodi.tv/showthread.php?tid=212061

 

Can someone tell me what it actually does? Only library sharing/updating or more?

 

 

are you using helix and a mysql setup ?

Yes

 

And what are the other?

 

 

ah ok, perhaps centralise all topics then?

 

the headless version they talk about in xbmc forum, is also the same thing? only library updating mysql db?

  • Author

ah ok, perhaps centralise all topics then?

 

the headless version they talk about in xbmc forum, is also the same thing? only library updating mysql db?

 

in which post over there, cos there's a few over there about it.

 

the most recent one started by one of the devs is talking about a future branch in kodi master that allow a full install of kodi to be run in headless mode. it's only being tested at the moment and is far from ready for use.

  • Author

http://forum.kodi.tv/showthread.php?tid=212061

 

Whats the difference between a headless kodi and this auto update mysql on unraid?

 

What could a full headless do more? will it run on unraid?

 

the headless kodi being talked about there is a full version of kodi that will run headless with just a command line switch, topfs2

covers it better than me

 

The intent of my branch is to run without any disables, i.e. a fully functional kodi but with the GUI disabled. So its fully possible to play music on it etc.

This is because we/I am aiming towards platforms were GUI is available but you might not want to run it. For example if you have kodi installed on your windows box it could potentially always boot up in headless mode, starting kodi via menu would simply trigger the GUI creation and "exit" would mean that it simply closes the GUI while headless remains. Much like how steams big picture behaves.

 

However, in a NAS environment it will always be beneficial to disable, as there is never a GUI available, and packages with gui makes no sense. But thats not my personal main goal, as that should be very possible to do no matter.

 

i'm expecting it to be able to be run in a docker within unraid, whether or not any of the other features will be of any use or not is debatable, but with the backing of a kodi dev what it will have is rock solid stability.

 

i've dockerised it in a test build already and it functions to a degree as it at the moment, but it runs the sysload up into 3 figures as it's constantly respawning itself.

For the life of me I cant make this work. I can make it seem to work but it never connects to my dbase. Suspect it is my setup and will investigate some more.

 

Question: I run everything in host and not bridge mode would that matter.

 

Also on first run there is a huge bunch of addon sql errors:

 

08:31:33 T:47184967350016   ERROR: SQL: The database disk image is malformed
                                            Query: delete from addon where id in (select idAddon from addonlinkrepo where idRepo=1)
08:31:33 T:47184967350016   ERROR: DeleteRepository failed on repo 1
08:31:33 T:47184967350016   ERROR: SQL: The database disk image is malformed
                                            Query: insert into addon (id, type, name, summary,description, stars, path, icon, changelog, fanart, addonID, version, author, disclaimer, minversion) values(NULL, 'xbmc.metadata.scraper.movies', '7176', '7176 Movie Scraper', 'Download Movie information from www.7176.com', 0,'http://mirrors.kodi.tv/addons/frodo/metadata.7176.com/metadata.7176.com-1.1.0.zip', 'http://mirrors.kodi.tv/addons/frodo/metadata.7176.com/icon.png', 'http://mirrors.kodi.tv/addons/frodo/metadata.7176.com/changelog-1.1.0.txt', '', 'metadata.7176.com','1.1.0','Taxigps','','0.0.0')
08:31:33 T:47184967350016   ERROR: AddAddon failed on addon '7176'
08:31:33 T:47184967350016   ERROR: SQL: The database disk image is malformed
                                            Query: insert into addon (id, type, name, summary,description, stars, path, icon, changelog, fanart, addonID, version, author, disclaimer, minversion) values(NULL, 'xbmc.metadata.scraper.albums', 'Universal Album Scraper', 'Universal Scraper for Albums', 'This scraper collects information from the following supported sites: MusicBrainz, last.fm, allmusic.com and amazon.de, while grabs artwork from: fanart.tv, last.fm and allmusic.com. It can be set field by field that from which site you want that specific information.
                                            
                                            The initial search is always done on MusicBrainz. In case allmusic and/or amazon.de links are not added on the MusicBrainz site, fields from allmusic.com and/or amazon.de cannot be fetched (very easy to add those missing links though).', 0,'http://mirrors.kodi.tv/addons/frodo/metadata.album.universal/metadata.album.universal-2.3.0.zip', 'http://mirrors.kodi.tv/addons/frodo/metadata.album.universal/icon.png', 'http://mirrors.kodi.tv/addons/frodo/metadata.album.universal/changelog-2.3.0.txt', '', 'metadata.album.universal','2.3.0','Olympia, XBMC Foundation','','0.0.0')
08:31:33 T:47184967350016   ERROR: AddAddon failed on addon 'Universal Album Scraper'
08:31:33 T:47184967350016   ERROR: SQL: The database disk image is malformed
                                            Query: insert into addon (id, type, name, summary,description, stars, path, icon, changelog, fanart, addonID, version, author, disclaimer, minversion) values(NULL, 'xbmc.metadata.scraper.albums', '1ting', '1ting album information', 'Download Music information from www.1ting.com', 0,'http://mirrors.kodi.tv/addons/frodo/metadata.albums.1ting.com/metadata.albums.1ting.com-1.0.7.zip', 'http://mirrors.kodi.tv/addons/frodo/metadata.albums.1ting.com/icon.png', '', '', 'metadata.albums.1ting.com','1.0.7','Taxigps','','0.0.0')

 

This is a snippet the actual log continues like this for another 3000 odd lines of a similar nature.

  • Author

For the life of me I cant make this work. I can make it seem to work but it never connects to my dbase. Suspect it is my setup and will investigate some more.

 

Question: I run everything in host and not bridge mode would that matter.

 

Also on first run there is a huge bunch of addon sql errors:

 

08:31:33 T:47184967350016   ERROR: SQL: The database disk image is malformed
                                            Query: delete from addon where id in (select idAddon from addonlinkrepo where idRepo=1)
08:31:33 T:47184967350016   ERROR: DeleteRepository failed on repo 1
08:31:33 T:47184967350016   ERROR: SQL: The database disk image is malformed
                                            Query: insert into addon (id, type, name, summary,description, stars, path, icon, changelog, fanart, addonID, version, author, disclaimer, minversion) values(NULL, 'xbmc.metadata.scraper.movies', '7176', '7176 Movie Scraper', 'Download Movie information from www.7176.com', 0,'http://mirrors.kodi.tv/addons/frodo/metadata.7176.com/metadata.7176.com-1.1.0.zip', 'http://mirrors.kodi.tv/addons/frodo/metadata.7176.com/icon.png', 'http://mirrors.kodi.tv/addons/frodo/metadata.7176.com/changelog-1.1.0.txt', '', 'metadata.7176.com','1.1.0','Taxigps','','0.0.0')
08:31:33 T:47184967350016   ERROR: AddAddon failed on addon '7176'
08:31:33 T:47184967350016   ERROR: SQL: The database disk image is malformed
                                            Query: insert into addon (id, type, name, summary,description, stars, path, icon, changelog, fanart, addonID, version, author, disclaimer, minversion) values(NULL, 'xbmc.metadata.scraper.albums', 'Universal Album Scraper', 'Universal Scraper for Albums', 'This scraper collects information from the following supported sites: MusicBrainz, last.fm, allmusic.com and amazon.de, while grabs artwork from: fanart.tv, last.fm and allmusic.com. It can be set field by field that from which site you want that specific information.
                                            
                                            The initial search is always done on MusicBrainz. In case allmusic and/or amazon.de links are not added on the MusicBrainz site, fields from allmusic.com and/or amazon.de cannot be fetched (very easy to add those missing links though).', 0,'http://mirrors.kodi.tv/addons/frodo/metadata.album.universal/metadata.album.universal-2.3.0.zip', 'http://mirrors.kodi.tv/addons/frodo/metadata.album.universal/icon.png', 'http://mirrors.kodi.tv/addons/frodo/metadata.album.universal/changelog-2.3.0.txt', '', 'metadata.album.universal','2.3.0','Olympia, XBMC Foundation','','0.0.0')
08:31:33 T:47184967350016   ERROR: AddAddon failed on addon 'Universal Album Scraper'
08:31:33 T:47184967350016   ERROR: SQL: The database disk image is malformed
                                            Query: insert into addon (id, type, name, summary,description, stars, path, icon, changelog, fanart, addonID, version, author, disclaimer, minversion) values(NULL, 'xbmc.metadata.scraper.albums', '1ting', '1ting album information', 'Download Music information from www.1ting.com', 0,'http://mirrors.kodi.tv/addons/frodo/metadata.albums.1ting.com/metadata.albums.1ting.com-1.0.7.zip', 'http://mirrors.kodi.tv/addons/frodo/metadata.albums.1ting.com/icon.png', '', '', 'metadata.albums.1ting.com','1.0.7','Taxigps','','0.0.0')

 

This is a snippet the actual log continues like this for another 3000 odd lines of a similar nature.

 

is your d/base a container ?

Yes. I have exec'd into the image and installed nmap and port connectivity is there.

 

However these specific errors seem to me to be sqlite related since I dont think addon data is kept in maridb.

  • Author

you say you run in host mode ? i'm not 100% au fait with the networking side of things regards to bridge vs host but it's my limited understanding that for inter-connectivity between containers they should be running bridge.

 

outside of unraid the only way i could get containers to chat to each other was using the --link container-name:alias switch in the run command.

 

just out of interest try this post to see if that's an issue

 

http://lime-technology.com/forum/index.php?topic=37168.0

  • Author

Yes. I have exec'd into the image and installed nmap and port connectivity is there.

 

However these specific errors seem to me to be sqlite related since I dont think addon data is kept in maridb.

 

 

On a side note though, what is your database performance like from a container ?

 

i currently have my d/base instance (mysql) running in a xen vm hosted on my unraid and i'm getting woeful performance.

 

a scan back of my movies with the same memory allocation, disk setup, unbuntu and server version and my.cnf file on a xenserver vm setup with unraid 5.0.4 virtualised as well would take 3.5 hours, on this setup with unraid 6 as the base os and a vm hosted on it took 2.5 DAYS.

Coincidentally I have been looking at sql performance with the optimizer script (http://mysqltuner.com/). It is a bit subjective but to me it feels the same as when it was in a VM (not Xen)

 

Not sure about inter container connectivity either. Id dont there there is any magic here... if I can exec into the container and then nmap port 3306 on the host then i see no docker specific gotchas that could get in the way? Will read some more.

  • Author

Coincidentally I have been looking at sql performance with the optimizer script (http://mysqltuner.com/). It is a bit subjective but to me it feels the same as when it was in a VM (not Xen)

 

Not sure about inter container connectivity either. Id dont there there is any magic here... if I can exec into the container and then nmap port 3306 on the host then i see no docker specific gotchas that could get in the way? Will read some more.

 

did you update the container (headless) today because i changed the user from root to nobody and run it in portable mode now so all the files are permission nobody:users ?

 

there are instructions for the changeover here..

 

http://lime-technology.com/forum/index.php?topic=37209.0

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.