Giter Site home page Giter Site logo

docker-kodi-headless's People

Contributors

adelolmo avatar aptalca avatar chbmb avatar fossil01 avatar gouravkr avatar hugepants avatar j0nnymoe avatar lonix avatar matthuisman avatar omgimalexis avatar sparklyballs avatar thelamer avatar tobbenb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

docker-kodi-headless's Issues

Clean Library Request

Hi matthuisman, I am successfully running this on my NAS using Docker however while the "Update Library" works, "Clean Library" does not remove duplicate entries when prompted by Sonarr/Radarr. Wondering if you have experienced this issue?
NOTE: All Kodi instances are using a shared MySQL database.

I need to install kodi on my host as well?

In the README it says I should "copy over the sources.xml from the host machine that you performed the initial library scan", but I don't see any mention of an installation on the host at all.

Is there some info missing from the README or am I being dense?

How to add sources

Hey, how I can add external sources (zip file) from an external sources?

Cheers, Cpt

Nexus (v20)

Hi, I'm wondering if you're going to support version 20 (Nexus) soon.
The version automatically upgraded on my Google TV, and the database has been migrated by that app. It would be good to have a headless version as well to run on the nas

Adding addons

Great work!

One question: how can I add additional addons to KODI? I see the add-on menu-item, but it doesn't allow much interaction.
I've managed to get one or 2 added by git clone, but things get a bit complex when dealing with dependencies that need to be resolved.

Can't seem to get module 'requests' working

So I've copied the module (script.module.requests) into the addons folder, and re-started the container (twice actually)... I read that thread somewhere where you mention addons get automatically enabled.

I need to get it working so I can use the tvdb (new, python) scraper. It's used by heaps of addons though, so I'd imagine pretty useful generally.

In the logs it definitely says:

2021-08-12 18:28:01.196 T:274      INFO <general>: CAddonMgr::FindAddons: script.module.requests v2.25.1+matrix.1 installed

However when Sonarr goes to poke a show in to the library, I see these:

2021-08-12 18:28:33.781 T:290     DEBUG <general>: CPythonInvoker(2, /config/.kodi/addons/metadata.tvdb.com.python/scraper.py): start processing
2021-08-12 18:28:33.927 T:290     DEBUG <general>: -->Python Interpreter Initialized<--
2021-08-12 18:28:33.927 T:290     DEBUG <general>: 
                                                   
2021-08-12 18:28:33.927 T:290     DEBUG <general>: CPythonInvoker(2, /config/.kodi/addons/metadata.tvdb.com.python/scraper.py): the source file to load is "/config/.kodi/addons/metadata.tvdb.com.python/scraper.py"
2021-08-12 18:28:33.927 T:290     DEBUG <general>: CPythonInvoker(2, /config/.kodi/addons/metadata.tvdb.com.python/scraper.py): setting the Python path to /config/.kodi/addons/metadata.tvdb.com.python:/usr/lib/python36.zip:/usr/lib/python3.6:/usr/lib/python3.6/lib-dynload
2021-08-12 18:28:33.927 T:290     DEBUG <general>: CPythonInvoker(2, /config/.kodi/addons/metadata.tvdb.com.python/scraper.py): entering source directory /config/.kodi/addons/metadata.tvdb.com.python
2021-08-12 18:28:33.927 T:290     DEBUG <general>: CPythonInvoker(2, /config/.kodi/addons/metadata.tvdb.com.python/scraper.py): instantiating addon using automatically obtained id of "metadata.tvdb.com.python" dependent on version 3.0.0 of the xbmc.python api
2021-08-12 18:28:34.593 T:290     ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'ModuleNotFoundError'>
                                                   Error Contents: No module named 'requests'
                                                   Traceback (most recent call last):
                                                     File "/config/.kodi/addons/metadata.tvdb.com.python/scraper.py", line 3, in <module>
                                                       from resources.lib import actions
                                                     File "/config/.kodi/addons/metadata.tvdb.com.python/resources/lib/actions.py", line 10, in <module>
                                                       import requests
                                                   ModuleNotFoundError: No module named 'requests'
                                                   -->End of Python script error report<--
                                                   
2021-08-12 18:28:34.593 T:290     DEBUG <general>: onExecutionDone(2, /config/.kodi/addons/metadata.tvdb.com.python/scraper.py)
2021-08-12 18:28:34.614 T:290      INFO <general>: Python interpreter stopped
2021-08-12 18:28:34.614 T:290     DEBUG <general>: Thread LanguageInvoker 140200701454080 terminating
2021-08-12 18:28:34.631 T:276     ERROR <general>: GetDirectory - Error getting plugin://metadata.tvdb.com.python/?action=getepisodelist&url=320766&pathSettings=%7b%22RatingS%22%3a0%2c%22absolutenumber%22%3afalse%2c%22dvdorder%22%3afalse%2c%22language%22%3a%22en%22%2c%22token%22%3a%22eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MTYyODI3NTEsImlkIjoiS29kaSIsIm9yaWdfaWF0IjoxNjE1Njc3OTUxfQ.zqeQ2JpaillB_skXnYb0_wq-ANule3wzpXrJij56MTtuJQbDUQI2qf3EHP5lW3ChWduEdh2dDF_gm_ZD4v6AWPxT1IGnoFWTCyhECH6jOCOxKKfWKNllCO0cH38uHR22F-isBa44OmwPGIifqNh2CYVi6kwZIQbG6JNQSkc_Zyx0q5O7iCxjAwQMGtgBeJpffVWLpR1Z9qI-T6auMxorONCMu1FY16JySYxqiovxML1FBqw8HsQPjiCdALY486kMlXfay5F6Nzc9qLvlZQh2gATc4wqluTyZYwPAoeYYFiN0CyG60PJbNWXbL58WLRletfx5sHcQsSuLJQ5yCVHm0A%22%7d
2021-08-1

An idea how I can get that module to actually be available to Kodi??

(BTW - thanks so much for the work on this - going to be super handy once I can get it scraping things!!)

' --windowing=headless' as comand line argument

Question:
Given I apply only your 'headless.patch' to the Kodi source files: Would this be sufficient in order to be able to select headless mode by adding' --windowing=headless' as command line argument when starting Kodi. Or does this require additional changes in the Kodi source code?
If the former is true, would it be possible to provide your 'headless.patch' to the official Kodi project for merging with their code base?

(Background info: I run Kodi with option '--standalone' on a Raspberry Pi that is attached via HDMI to my TV. I want to be able to use Kodi also as an Audio Player (playing audio to speakers connected via Bluetooth) that can be controlled via the web interface even when the TV is powered-off.
However Kodi (in 'Standalone' mode) causes a substantial increase in CPU load when the TV is (completely) powered-off, probably as it keeps searching and trying to open a non-existent video device. So it would be convient to have an option to simply restart kodi with a ' --windowing=headless' option as soon as the TV is powered off, which can be done by an udev triggerd script.)

iptv

hello sir, I'm in trouble for add iptv link inside kodi. So how can i do that please?

kodi errors out when looking for mysql databases: "ERROR <general>: Unable to open database:"

This docker container has been working amazingly, can't thank you enough for the use if it.

Been happily running for a number of weeks until a recent system update. Post update kodi complains in its logs of not being able to locate databases.

Snippet is below but the lines repeat for all MyMusic & MyVideos locations searched for by kodi in the log.

ERROR <general>: Unable to open database: MyMusic82 [2003](Can't connect to MySQL server on '192.168.0.9' (111))
2022-09-06 21:31:39.359 T:328     DEBUG <general>: connect replacing configured host 192.168.0.9 with resolved host 192.168.0.9
2022-09-06 21:31:39.359 T:328     ERROR <general>: Unable to open database: MyMusic81 [2003](Can't connect to MySQL server on '192.168.0.9' (111))
2022-09-06 21:31:39.359 T:328     DEBUG <general>: connect replacing configured host 192.168.0.9 with resolved host 192.168.0.9
2022-09-06 21:31:39.359 T:328     ERROR <general>: Unable to open database: MyMusic80 [2003](Can't connect to MySQL server on '192.168.0.9' (111))
2022-09-06 21:31:39.359 T:328     DEBUG <general>: connect replacing configured host 192.168.0.9 with resolved host 192.168.0.9
2022-09-06 21:31:39.360 T:328     ERROR <general>: Unable to open database: MyMusic79 [2003](Can't connect to MySQL server on '192.168.0.9' (111))
2022-09-06 21:31:39.360 T:328     DEBUG <general>: connect replacing configured host 192.168.0.9 with resolved host 192.168.0.9
2022-09-06 21:31:39.360 T:328     ERROR <general>: Unable to open database: MyMusic78 [2003](Can't connect to MySQL server on '192.168.0.9' (111))
2022-09-06 21:31:39.360 T:328     DEBUG <general>: connect replacing configured host 192.168.0.9 with resolved host 192.168.0.9
2022-09-06 21:31:39.360 T:328     ERROR <general>: Unable to open database: MyMusic77 [2003](Can't connect to MySQL server on '192.168.0.9' (111))
2022-09-06 21:31:39.360 T:328     DEBUG <general>: connect replacing configured host 192.168.0.9 with resolved host 192.168.0.9
2022-09-06 21:31:39.360 T:328     ERROR <general>: Unable to open database: MyMusic76 [2003](Can't connect to MySQL server on '192.168.0.9' (111))

I've stopped, deleted and recreated the docker with the same result as above. This feels like a permissions issue but can't trace where in the docker container i'd need to trace it down to.

Thinking of the sequence of events, I looked at the logs of the host machine and can see this snippet:

The following packages will be REMOVED:
  galera-3 libaio1 libcgi-fast-perl libcgi-pm-perl libconfig-inifiles-perl
  libdbd-mysql-perl libdbi-perl libencode-locale-perl libfcgi-perl
  libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl
  libhttp-date-perl libhttp-message-perl libio-html-perl
  liblwp-mediatypes-perl libreadline5 libterm-readkey-perl libtimedate-perl
  liburi-perl mariadb-client-10.3 mariadb-client-core-10.3 mariadb-server-10.3
  mariadb-server-core-10.3 socat
0 upgraded, 0 newly installed, 25 to remove and 0 not upgraded.

So it does look like mariadb has been removed. If this was the issue I had assumed that the mysql engine being used would be inside the docker container or does it need access to a host machine instance of a mysql server.

Any thoughts much appreciated

Pull issue from Docker Hub - Manifest Unknown

Hi Matt
Likely a rookie mistake from my part but getting the following when trying to pull your container:
@raspberrypi:~ $ docker pull matthuisman/kodi-headless
Using default tag: latest
Error response from daemon: manifest for matthuisman/kodi-headless:latest not found: manifest unknown: manifest unknown

Any pointers would be appreciated, thanks

Is it possible to run this with sqlite instead

Id love to use this for local hosting my files. However id rather not run Yet another MySQL any chance to use integrated db and bind to a local volume for easy bootstrapping? I checked the docker file and Compose but still not sure on how to run it as a sqlite.

step-by-step guide for the first configuration

Hello Matt,
is there a step-by-step guide for the first configuration of the container?
Specifically I want to ask how can I add the media sources to the container?
I copied the sources.xml file from my KODI installation and pasted it into the container. However, I don't get any data displayed in the web UI.

initial installation help

Hello, I'd try to install by using docker-compose.yml file
image

but all tabs are empty, nothing there, no video, no audio, no addons
image

I'd try to install by
docker exec kodi-headless install_addon "metadata.tvshows.thetvdb.com.v4.python"
https://github.com/matthuisman/docker-kodi-headless#install-add-ons
1) But nothing changed, what did I wrong ?

image
nothing more in my logs, please help

  1. how to add any files mp4 or another from disk or url? maybe has any addon for just drag&drop ?
  2. there is a folder to upload video/audio inside container?

Add music sources to kodi library

The headless installation of Kodi went smoothly, but I am unable to update the music collection with the music that's stored on an external harddisk.

In the docker-compose.yaml I have created a mapping to this hard disk, and that works: if I open the docker console (docker exec -it kodi-headless sh) I can request a directory list of this mapping ('ls /media ').

I then included a path substitution (as mentioned in the readme) in advancedsettings.xml. I have tried that in different ways, at this moment:
</pathsubstitution> <substitute> <from>smb://<user>:<password>@server ip>/<mnt>/<folder>/</from> <to>/media/</to> </substitute> </pathsubstitution>

Finally, I also included a reference in the sources.xml, but that also produced no results:
<music> default pathversion="1"></default> <source> <name>Auto-mounted drives</name> <path pathversion="1">/media/</path> <allowsharing>true</allowsharing> </source> </music>

Kodi itself works just fine, no error messages in the log. But when I refresh the library, Kodi indicates after 0 sec that it is ready.

How can I solve this?

scanning not working

Hi,

i've trouble to get the scanning to work. Scanning is starting and finished 2ms later. I can browse the files in gui, but can not add them.

Filme, Kodi and Serien are mounted via fstab on host. Even tried to use a local movie for testing with same result.

docker-compose.yml

services:
  kodi-headless:
    image: matthuisman/kodi-headless:Omega
    container_name: kodi-headless
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin
    volumes:
      - ./kodi/:/config/.kodi
      - /media/Filme/:/Filme
      - /media/Serien/:/Serien
      - /media/Kodi/:/Kodi
    ports:
      - 80:8080
      - 9090:9090
      - 9777:9777/udp
    restart: unless-stopped

sources.xml

<sources>
    <programs>
        <default pathversion="1"></default>
    </programs>
    <video>
        <default pathversion="1"></default>
        <source>
            <name>Filme</name>
            <path pathversion="1">/Filme/</path>
            <allowsharing>true</allowsharing>
        </source>
        <source>
            <name>Serien</name>
            <path pathversion="1">/Serien/</path>
            <allowsharing>true</allowsharing>
        </source>
    </video>
    <music>
        <default pathversion="1"></default>
    </music>
    <pictures>
        <default pathversion="1"></default>
    </pictures>
    <files>
        <default pathversion="1"></default>
    </files>
    <games>
        <default pathversion="1"></default>
    </games>
</sources>

advancedsettings.xml

...
	<pathsubstitution>
		<substitute>
			<from>special://profile/favourites.xml</from>
			<to>smb://openmediavault.localdomain/Kodi/favourites.xml</to>
		</substitute>
		<substitute>
			<from>special://profile/Thumbnails/</from>
			<to>smb://openmediavault.localdomain/Kodi/Thumbnails/</to>
		</substitute>
		<substitute>
			<from>smb://nas17c0d4.localdomain/Filme/</from>
			<to>/Filme/</to>
		</substitute>
		<substitute>
			<from>smb://nas17c0d4.localdomain/Serien/</from>
			<to>/Serien/</to>
		</substitute>
		<substitute>
			<from>smb://openmediavault.localdomain/Kodi/Thumbnails/</from>
			<to>/Kodi/Thumbnails/</to>
		</substitute>
	</pathsubstitution>
...

kodi.log

2024-05-22 21:11:37.886 T:175      info <general>: -----------------------------------------------------------------------
2024-05-22 21:11:37.886 T:175      info <general>: Starting Kodi (21.0 (21.0.0) Git:20240406-nogitfound). Platform: Linux x86 64-bit
2024-05-22 21:11:37.886 T:175      info <general>: Using Release Kodi x64
2024-05-22 21:11:37.886 T:175      info <general>: Kodi compiled 2024-04-06 by GCC 11.4.0 for Linux x86 64-bit version 5.15.143 (331663)
2024-05-22 21:11:37.887 T:175      info <general>: Running on Ubuntu 22.04.4 LTS, kernel: Linux x86 64-bit version 6.8.0-31-generic
2024-05-22 21:11:37.887 T:175      info <general>: FFmpeg version/source: 6.0.1-Kodi
2024-05-22 21:11:37.887 T:175      info <general>: Host CPU: QEMU Virtual CPU version 2.5+, 12 cores available
2024-05-22 21:11:37.887 T:175      info <general>: special://xbmc/ is mapped to: /usr/share/kodi
2024-05-22 21:11:37.887 T:175      info <general>: special://xbmcbin/ is mapped to: /usr/lib/kodi
2024-05-22 21:11:37.887 T:175      info <general>: special://xbmcbinaddons/ is mapped to: /usr/lib/kodi/addons
2024-05-22 21:11:37.887 T:175      info <general>: special://masterprofile/ is mapped to: /config/.kodi/userdata
2024-05-22 21:11:37.887 T:175      info <general>: special://envhome/ is mapped to: /config
2024-05-22 21:11:37.887 T:175      info <general>: special://home/ is mapped to: /config/.kodi
2024-05-22 21:11:37.887 T:175      info <general>: special://temp/ is mapped to: /config/.kodi/temp
2024-05-22 21:11:37.887 T:175      info <general>: special://logpath/ is mapped to: /config/.kodi/temp
2024-05-22 21:11:37.887 T:175      info <general>: Webserver extra whitelist paths: 
2024-05-22 21:11:37.887 T:175      info <general>: The executable running is: /usr/lib/kodi/kodi-x11
2024-05-22 21:11:37.887 T:175      info <general>: Local hostname: 2ae9a5da80f1
2024-05-22 21:11:37.887 T:175      info <general>: Log File is located: /config/.kodi/temp/kodi.log
2024-05-22 21:11:37.887 T:175      info <general>: -----------------------------------------------------------------------
2024-05-22 21:11:37.887 T:175      info <general>: loading settings
2024-05-22 21:11:37.887 T:175      info <general>: special://profile/ is mapped to: special://masterprofile/
2024-05-22 21:11:37.893 T:175      info <general>: No settings file to load (special://xbmc/system/advancedsettings.xml)
2024-05-22 21:11:37.893 T:175      info <general>: Loaded settings file from special://profile/advancedsettings.xml
2024-05-22 21:11:37.893 T:175      info <general>: Contents of special://profile/advancedsettings.xml are...
                                                   <advancedsettings>
                                                     <videodatabase>
                                                       <type>mysql</type>
                                                       <host>mariadb.localdomain</host>
                                                       <port>3306</port>
                                                       <user>Kodi</user>
                                                       <pass>*****</pass>
                                                     </videodatabase>
                                                     <musicdatabase>
                                                       <type>mysql</type>
                                                       <host>mariadb.localdomain</host>
                                                       <port>3306</port>
                                                       <user>Kodi</user>
                                                       <pass>*****</pass>
                                                     </musicdatabase>
                                                     <services>
                                                       <devicename>Kodi-HEADLESS</devicename>
                                                       <esenabled>true</esenabled>
                                                       <esallinterfaces>true</esallinterfaces>
                                                       <escontinuousdelay>25</escontinuousdelay>
                                                       <esinitialdelay>750</esinitialdelay>
                                                       <esmaxclients>20</esmaxclients>
                                                       <esport>9777</esport>
                                                       <esportrange>10</esportrange>
                                                       <upnpannounce>false</upnpannounce>
                                                       <upnprenderer>false</upnprenderer>
                                                       <upnpserver>false</upnpserver>
                                                       <webserver>true</webserver>
                                                       <!-- <webserverssl>true</webserverssl> -->
                                                       <webserverpassword />
                                                       <webserverport>8080</webserverport>
                                                       <webserverusername>kodi</webserverusername>
                                                       <webserverauthentication>false</webserverauthentication>
                                                       <zeroconf>false</zeroconf>
                                                     </services>
                                                     <jsonrpc>
                                                       <tcpport>9090</tcpport>
                                                     </jsonrpc>
                                                     <!-- <loglevel>2</loglevel> -->
                                                     <fanartres>360</fanartres>
                                                     <imageres>360</imageres>
                                                     <videolibrary>
                                                       <usefasthash>true</usefasthash>
                                                       <importwatchedstate>true</importwatchedstate>
                                                       <importresumepoint>true</importresumepoint>
                                                     </videolibrary>
                                                     <videoscanner>
                                                       <ignoreerrors>true</ignoreerrors>
                                                     </videoscanner>
                                                     <video>
                                                       <excludefromscan>
                                                         <regexp>@Recycle</regexp>
                                                       </excludefromscan>
                                                       <playcountminimumpercent>84</playcountminimumpercent>
                                                       <ignoresecondsatstart>60</ignoresecondsatstart>
                                                       <ignorepercentatend>16</ignorepercentatend>
                                                     </video>
                                                     <pathsubstitution>
                                                       <substitute>
                                                         <from>special://profile/favourites.xml</from>
                                                         <to>smb://openmediavault.localdomain/Kodi/favourites.xml</to>
                                                       </substitute>
                                                       <substitute>
                                                         <from>special://profile/Thumbnails/</from>
                                                         <to>smb://openmediavault.localdomain/Kodi/Thumbnails/</to>
                                                       </substitute>
                                                       <substitute>
                                                         <from>smb://nas17c0d4.localdomain/Filme/</from>
                                                         <to>/Filme/</to>
                                                       </substitute>
                                                       <substitute>
                                                         <from>smb://nas17c0d4.localdomain/Serien/</from>
                                                         <to>/Serien/</to>
                                                       </substitute>
                                                       <substitute>
                                                         <from>smb://openmediavault.localdomain/Kodi/Thumbnails/</from>
                                                         <to>/Kodi/Thumbnails/</to>
                                                       </substitute>
                                                     </pathsubstitution>
                                                     <network>
                                                       <disableipv6>true</disableipv6>
                                                       <disablehttp2>true</disablehttp2>
                                                       <curlretries>2</curlretries>
                                                       <curlclienttimeout>30</curlclienttimeout>
                                                       <curllowspeedtime>30</curllowspeedtime>
                                                     </network>
                                                     <musiclibrary>
                                                       <backgroundupdate>true</backgroundupdate>
                                                     </musiclibrary>
                                                     <splash>false</splash>
                                                     <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>
                                                     <nodvdrom>true</nodvdrom>
                                                     <input>
                                                       <enablemouse>false</enablemouse>
                                                       <remoteaskeyboard>false</remoteaskeyboard>
                                                     </input>
                                                     <general>
                                                       <addonnotifications>false</addonnotifications>
                                                     </general>
                                                     <skinsettings>
                                                       <setting type="bool" name="skin.estuary.FirstTimeRun">false</setting>
                                                       <setting type="bool" name="skin.confluence.FirstTimeRun">false</setting>
                                                     </skinsettings>
                                                   </advancedsettings>
                                                   
2024-05-22 21:11:37.893 T:175     debug <general>: Configuring path substitutions
2024-05-22 21:11:37.893 T:175     debug <general>:   Registering substitution pair:
2024-05-22 21:11:37.893 T:175     debug <general>:     From: [/config/.kodi/userdata/favourites.xml]
2024-05-22 21:11:37.893 T:175     debug <general>:     To:   [smb://openmediavault.localdomain/Kodi/favourites.xml]
2024-05-22 21:11:37.894 T:175     debug <general>:   Registering substitution pair:
2024-05-22 21:11:37.894 T:175     debug <general>:     From: [/config/.kodi/userdata/Thumbnails/]
2024-05-22 21:11:37.894 T:175     debug <general>:     To:   [smb://openmediavault.localdomain/Kodi/Thumbnails/]
2024-05-22 21:11:37.894 T:175     debug <general>:   Registering substitution pair:
2024-05-22 21:11:37.894 T:175     debug <general>:     From: [smb://nas17c0d4.localdomain/Filme/]
2024-05-22 21:11:37.894 T:175     debug <general>:     To:   [/Filme/]
2024-05-22 21:11:37.894 T:175     debug <general>:   Registering substitution pair:
2024-05-22 21:11:37.894 T:175     debug <general>:     From: [smb://nas17c0d4.localdomain/Serien/]
2024-05-22 21:11:37.894 T:175     debug <general>:     To:   [/Serien/]
2024-05-22 21:11:37.894 T:175     debug <general>:   Registering substitution pair:
2024-05-22 21:11:37.894 T:175     debug <general>:     From: [smb://openmediavault.localdomain/Kodi/Thumbnails/]
2024-05-22 21:11:37.894 T:175     debug <general>:     To:   [/Kodi/Thumbnails/]
2024-05-22 21:11:37.894 T:175   warning <general>: VIDEO database configuration is experimental.
2024-05-22 21:11:37.894 T:175   warning <CSettingsManager>: missing version attribute
2024-05-22 21:11:37.894 T:175      info <general>: Default Video Player: VideoPlayer
2024-05-22 21:11:37.894 T:175      info <general>: Default Audio Player: paplayer
2024-05-22 21:11:37.894 T:175      info <general>: Disabled debug logging due to GUI setting. Level 0.
2024-05-22 21:11:37.894 T:175      info <general>: Log level changed to "info"
2024-05-22 21:11:37.894 T:175      info <general>: CMediaSourceSettings: loading media sources from special://masterprofile/sources.xml
2024-05-22 21:11:37.896 T:175      info <general>: New Cache GUI Settings (replacement of cache in advancedsettings.xml) are:
                                                     Buffer Mode: 4
                                                     Memory Size: 20 MB
                                                     Read Factor: 4.00 x 
                                                     Chunk Size : 131072 bytes
2024-05-22 21:11:37.896 T:175      info <general>: creating subdirectories
2024-05-22 21:11:37.896 T:175      info <general>: userdata folder: special://masterprofile/
2024-05-22 21:11:37.896 T:175      info <general>: recording folder: 
2024-05-22 21:11:37.896 T:175      info <general>: screenshots folder: 
2024-05-22 21:11:37.929 T:175      info <general>: Running database version Addons33
2024-05-22 21:11:37.946 T:175      info <general>: CAddonMgr::FindAddons: audioencoder.kodi.builtin.aac v1.0.2 installed
2024-05-22 21:11:37.947 T:175      info <general>: CAddonMgr::FindAddons: audioencoder.kodi.builtin.wma v1.0.2 installed
2024-05-22 21:11:37.947 T:175      info <general>: CAddonMgr::FindAddons: game.controller.default v1.0.42 installed
2024-05-22 21:11:37.947 T:175      info <general>: CAddonMgr::FindAddons: game.controller.keyboard v1.1.40 installed
2024-05-22 21:11:37.947 T:175      info <general>: CAddonMgr::FindAddons: game.controller.mouse v1.0.26 installed
2024-05-22 21:11:37.947 T:175      info <general>: CAddonMgr::FindAddons: game.controller.snes v1.0.40 installed
2024-05-22 21:11:37.947 T:175      info <general>: CAddonMgr::FindAddons: kodi.binary.global.audioengine v1.1.1 installed
2024-05-22 21:11:37.947 T:175      info <general>: CAddonMgr::FindAddons: kodi.binary.global.filesystem v1.1.8 installed
2024-05-22 21:11:37.947 T:175      info <general>: CAddonMgr::FindAddons: kodi.binary.global.general v1.0.5 installed
2024-05-22 21:11:37.947 T:175      info <general>: CAddonMgr::FindAddons: kodi.binary.global.gui v5.15.0 installed
2024-05-22 21:11:37.947 T:175      info <general>: CAddonMgr::FindAddons: kodi.binary.global.main v2.0.2 installed
2024-05-22 21:11:37.947 T:175      info <general>: CAddonMgr::FindAddons: kodi.binary.global.network v1.0.4 installed
2024-05-22 21:11:37.947 T:175      info <general>: CAddonMgr::FindAddons: kodi.binary.global.tools v1.0.4 installed
2024-05-22 21:11:37.947 T:175      info <general>: CAddonMgr::FindAddons: kodi.binary.instance.audiodecoder v4.0.0 installed
2024-05-22 21:11:37.948 T:175      info <general>: CAddonMgr::FindAddons: kodi.binary.instance.audioencoder v3.0.0 installed
2024-05-22 21:11:37.948 T:175      info <general>: CAddonMgr::FindAddons: kodi.binary.instance.game v3.0.2 installed
2024-05-22 21:11:37.948 T:175      info <general>: CAddonMgr::FindAddons: kodi.binary.instance.imagedecoder v3.0.1 installed
2024-05-22 21:11:37.948 T:175      info <general>: CAddonMgr::FindAddons: kodi.binary.instance.inputstream v3.3.0 installed
2024-05-22 21:11:37.948 T:175      info <general>: CAddonMgr::FindAddons: kodi.binary.instance.peripheral v3.0.2 installed
2024-05-22 21:11:37.948 T:175      info <general>: CAddonMgr::FindAddons: kodi.binary.instance.pvr v8.3.0 installed
2024-05-22 21:11:37.948 T:175      info <general>: CAddonMgr::FindAddons: kodi.binary.instance.screensaver v2.2.0 installed
2024-05-22 21:11:37.948 T:175      info <general>: CAddonMgr::FindAddons: kodi.binary.instance.vfs v3.0.1 installed
2024-05-22 21:11:37.948 T:175      info <general>: CAddonMgr::FindAddons: kodi.binary.instance.videocodec v2.1.0 installed
2024-05-22 21:11:37.948 T:175      info <general>: CAddonMgr::FindAddons: kodi.binary.instance.visualization v4.0.0 installed
2024-05-22 21:11:37.948 T:175      info <general>: CAddonMgr::FindAddons: kodi.resource v1.0.0 installed
2024-05-22 21:11:37.948 T:175      info <general>: CAddonMgr::FindAddons: metadata.album.universal v3.1.9 installed
2024-05-22 21:11:37.948 T:175      info <general>: CAddonMgr::FindAddons: metadata.artists.universal v4.3.11 installed
2024-05-22 21:11:37.949 T:175      info <general>: CAddonMgr::FindAddons: metadata.common.allmusic.com v3.2.2 installed
2024-05-22 21:11:37.949 T:175      info <general>: CAddonMgr::FindAddons: metadata.common.fanart.tv v3.6.4 installed
2024-05-22 21:11:37.949 T:175      info <general>: CAddonMgr::FindAddons: metadata.common.musicbrainz.org v2.2.4 installed
2024-05-22 21:11:37.949 T:175      info <general>: CAddonMgr::FindAddons: metadata.common.theaudiodb.com v2.0.3 installed
2024-05-22 21:11:37.949 T:175      info <general>: CAddonMgr::FindAddons: metadata.generic.albums v1.0.18 installed
2024-05-22 21:11:37.949 T:175      info <general>: CAddonMgr::FindAddons: metadata.generic.artists v1.0.18 installed
2024-05-22 21:11:37.949 T:175      info <general>: CAddonMgr::FindAddons: metadata.local v1.0.1 installed
2024-05-22 21:11:37.949 T:175      info <general>: CAddonMgr::FindAddons: metadata.themoviedb.org.python v3.0.1 installed
2024-05-22 21:11:37.949 T:175      info <general>: CAddonMgr::FindAddons: metadata.tvshows.themoviedb.org.python v1.6.6 installed
2024-05-22 21:11:37.949 T:175      info <general>: CAddonMgr::FindAddons: repository.xbmc.org v3.4.0 installed
2024-05-22 21:11:37.949 T:175      info <general>: CAddonMgr::FindAddons: resource.images.weathericons.default v1.1.9 installed
2024-05-22 21:11:37.949 T:175      info <general>: CAddonMgr::FindAddons: resource.language.de_de v11.0.81 installed
2024-05-22 21:11:37.949 T:175      info <general>: CAddonMgr::FindAddons: resource.language.en_gb v2.0.2 installed
2024-05-22 21:11:37.950 T:175      info <general>: CAddonMgr::FindAddons: resource.uisounds.kodi v1.0.1 installed
2024-05-22 21:11:37.950 T:175      info <general>: CAddonMgr::FindAddons: screensaver.xbmc.builtin.black v1.0.34 installed
2024-05-22 21:11:37.950 T:175      info <general>: CAddonMgr::FindAddons: screensaver.xbmc.builtin.dim v1.0.66 installed
2024-05-22 21:11:37.950 T:175      info <general>: CAddonMgr::FindAddons: script.module.pil v5.1.0 installed
2024-05-22 21:11:37.950 T:175      info <general>: CAddonMgr::FindAddons: script.module.pycryptodome v3.4.3 installed
2024-05-22 21:11:37.950 T:175      info <general>: CAddonMgr::FindAddons: service.xbmc.versioncheck v0.5.30+matrix.1 installed
2024-05-22 21:11:37.950 T:175      info <general>: CAddonMgr::FindAddons: skin.estuary v4.0.0 installed
2024-05-22 21:11:37.950 T:175      info <general>: CAddonMgr::FindAddons: vfs.libarchive v21.0.0 installed
2024-05-22 21:11:37.950 T:175      info <general>: CAddonMgr::FindAddons: vfs.rar v21.0.0 installed
2024-05-22 21:11:37.950 T:175      info <general>: CAddonMgr::FindAddons: vfs.sftp v21.0.0 installed
2024-05-22 21:11:37.950 T:175      info <general>: CAddonMgr::FindAddons: webinterface.default v19.x-2.4.8 installed
2024-05-22 21:11:37.950 T:175      info <general>: CAddonMgr::FindAddons: xbmc.addon v21.0.0 installed
2024-05-22 21:11:37.950 T:175      info <general>: CAddonMgr::FindAddons: xbmc.core v0.1.0 installed
2024-05-22 21:11:37.951 T:175      info <general>: CAddonMgr::FindAddons: xbmc.gui v5.17.0 installed
2024-05-22 21:11:37.951 T:175      info <general>: CAddonMgr::FindAddons: xbmc.json v13.5.0 installed
2024-05-22 21:11:37.951 T:175      info <general>: CAddonMgr::FindAddons: xbmc.metadata v2.1.0 installed
2024-05-22 21:11:37.951 T:175      info <general>: CAddonMgr::FindAddons: xbmc.python v3.0.1 installed
2024-05-22 21:11:37.951 T:175      info <general>: CAddonMgr::FindAddons: xbmc.webinterface v1.0.0 installed
2024-05-22 21:11:37.956 T:175      info <general>: CKeyboardLayoutManager: loading keyboard layouts from special://xbmc/system/keyboardlayouts...
2024-05-22 21:11:37.957 T:175   warning <general>: CKeyboardLayoutManager: unable to open special://xbmc/system/keyboardlayouts/persian.xml
2024-05-22 21:11:37.960 T:175      info <general>: CApplication::CreateGUI - using the headless windowing system
2024-05-22 21:11:37.960 T:175      info <general>: Checking resolution 16
2024-05-22 21:11:37.960 T:175      info <general>: load keymapping
2024-05-22 21:11:37.961 T:175      info <general>: Loading special://xbmc/system/keymaps/appcommand.xml
2024-05-22 21:11:37.961 T:175      info <general>: Loading special://xbmc/system/keymaps/customcontroller.AppleRemote.xml
2024-05-22 21:11:37.961 T:175      info <general>: Loading special://xbmc/system/keymaps/customcontroller.Harmony.xml
2024-05-22 21:11:37.962 T:175      info <general>: Loading special://xbmc/system/keymaps/customcontroller.SiriRemote.xml
2024-05-22 21:11:37.962 T:175      info <general>: Loading special://xbmc/system/keymaps/gamepad.xml
2024-05-22 21:11:37.962 T:175      info <general>: Loading special://xbmc/system/keymaps/joystick.xml
2024-05-22 21:11:37.962 T:175      info <general>: Loading special://xbmc/system/keymaps/keyboard.xml
2024-05-22 21:11:37.963 T:175      info <general>: Loading special://xbmc/system/keymaps/mouse.xml
2024-05-22 21:11:37.963 T:175      info <general>: Loading special://xbmc/system/keymaps/remote.xml
2024-05-22 21:11:37.964 T:175      info <general>: Loading special://xbmc/system/keymaps/touchscreen.xml
2024-05-22 21:11:37.964 T:175      info <general>: GUI format 1280x720, Display 
2024-05-22 21:11:37.964 T:175      info <general>: CLangInfo: loading resource.language.en_gb language information...
2024-05-22 21:11:37.965 T:175      info <general>: global locale set to C
2024-05-22 21:11:37.965 T:175      info <general>: CLangInfo: loading resource.language.en_gb language strings...
2024-05-22 21:11:37.973 T:182      info <general>: Running database version Addons33
2024-05-22 21:11:37.973 T:182      info <general>: Running database version ViewModes6
2024-05-22 21:11:37.974 T:182      info <general>: Running database version Textures13
2024-05-22 21:11:37.978 T:182      info <general>: MYSQL: Connected to version 11.3.2-MariaDB-1:11.3.2+maria~deb12
2024-05-22 21:11:37.980 T:182      info <general>: Running database version MyMusic83
2024-05-22 21:11:37.982 T:182      info <general>: Running database version MyVideos131
2024-05-22 21:11:37.982 T:182      info <general>: Running database version TV44
2024-05-22 21:11:37.983 T:182      info <general>: Running database version Epg16
2024-05-22 21:11:37.987 T:175   warning <general>: JSONRPC: Could not parse type "Setting.Details.SettingList"
2024-05-22 21:11:37.988 T:175      info <general>: JSONRPC: Adding type "Setting.Details.SettingList" to list of incomplete definitions (waiting for "Setting.Details.Setting")
2024-05-22 21:11:37.988 T:175      info <general>: JSONRPC: Resolving incomplete types/methods referencing Setting.Details.Setting
2024-05-22 21:11:37.996 T:175      info <general>: JSONRPC v13.5.0: Successfully initialized
2024-05-22 21:11:37.997 T:175      info <general>: Register - new keyboard device registered on application->keyboard: Keyboard (0000:0000)
2024-05-22 21:11:37.997 T:175      info <general>: Register - new mouse device registered on application->mouse: Mouse (0000:0000)
2024-05-22 21:11:37.997 T:175      info <general>: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
2024-05-22 21:11:37.997 T:175      info <general>: Loaded playercorefactory configuration
2024-05-22 21:11:37.997 T:175      info <general>: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
2024-05-22 21:11:37.997 T:175      info <general>: special://masterprofile/playercorefactory.xml does not exist. Skipping.
2024-05-22 21:11:37.997 T:175      info <general>: removing tempfiles
2024-05-22 21:11:37.998 T:175      info <general>: initialize done
2024-05-22 21:11:37.998 T:175      info <general>: Running the application...
2024-05-22 21:11:37.998 T:187      info <general>: ES: Starting UDP Event server on port 9777
2024-05-22 21:11:37.999 T:187      info <general>: UDP: Listening on port 9777 (ipv6 : true)
2024-05-22 21:11:37.999 T:175      info <general>: JSONRPC Server: Successfully initialized
2024-05-22 21:11:37.999 T:175      info <CWebserver[8080]>: Started
2024-05-22 21:11:37.999 T:175      info <general>: CWSDiscoveryListenerUDP::Start - Started
2024-05-22 21:11:58.610 T:188      info <general>: JSONRPC Server: New connection added
2024-05-22 21:12:11.535 T:196      info <general>: VideoInfoScanner: Starting scan ..
2024-05-22 21:12:11.535 T:196      info <general>: VideoInfoScanner: Finished scan. Scanning for video info took 2 ms

Does the client app have to perform library scans

Hello,
Not an issue but rather a question. I've set up everything and I suppose it works as it should. One thing I am not sure is the way the client apps work now. By client I mean the app on my Android TV and the server being kodi headless. I can see in the logs that the headless app is performing library scan and cleanup whenever something is changed and that is great. On the other hand I was hoping that since the client is pointing to the database then it will always display the up to date library content while the "heavy" stuff is will be done by the headless app. It kind of works that way but the client does not refresh the library locally until I perform library scan in the android tv app as well. It is very quick but still it has to be performed.
I was wondering if I either forgot to setup something or does the android tv app keep some kind of cache and it has to be refreshed after every change in headless? I've managed to kind of work around this by setting the android tv app to perform library scan on startup and additionally running a script that triggers the scan in case I am already running kodi on TV (So I dont have to restart app to refresh) curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": "kodi-script"}' -H 'content-type: application/json;' http://ANDROID-TV-IP/jsonrpc . TLDR I was wondering if I can configure this in a way that the library scans on android TV can be disabled whatsoever.

Can't seem to update TV shows; updating movies work fine

I'm hoping to find some help with getting this container fully up and running on my Synology NAS.

I seem to have everything working properly for movies; I can set content type and information provider for folders in another instance of Kodi (in this case Windows, but also Android Nvidia Shield TV Pro boxes), and scan from the headless web app and have whole folders scraped very fast (compared to any other experience I've had updating libraries with Kodi).

I also seem to have configured both Sonarr and Radarr to send notifications to headless kodi, though I'm not quite sure if that's working properly.

As far as TV shows, I seem to be a bit stumped. Movies don't seem to have a problem with doing an initial scrape from the headless app once the folder is set from Kodi desktop app. Everything I've read says that Kodi headless doesn't quite like doing an initial scan. Though even after an initial scan, no matter what I do I can't seem to get Kodi headless to update TV shows on its own.

kodi.log, for more information:

https://pastebin.com/RQvExSAF

Any help would be very much appreciated! This seems to be the last piece of the puzzle I'm missing for my 'ideal' Kodi setup, almost!

Quick question on the Thumbnails folder...

I noticed my docker config backups growing quite a bit and looking in to it I realise my two Kodi headless containers are the reason - and specifically the userdata/Thumbnails folders are growing.

Is there any reason not to either periodically delete that folder - I mean, a headless install doesn't need Thumbnails right?

I presume Kodi will re-create the folder if it's not there (and continue to create thumbnails), but there's no point keeping them around right? (I let each client make its own thumbs, I don't e.g. use path substitution or anything).

How to edit guisettings.xml?

Hi
I want to edit my guisettings.xml file and change chunksize which are now available via gui Settings > Services
These settings not available in web ui Settings > Services and when I stop kodi headless docker and edit the file it gets overwritten and change back to default at start
I have these in my other kodi setups:

<setting id="smb.chunksize">1024</setting>
<setting id="nfs.chunksize">1024</setting>
<setting id="filecache.chunksize">1048576</setting>


Omega Beta 2

Any chance of an update to accomodate for the recent database change to myvideos123? Thanks in advance for your great work!

LIbrary cleaning / Fast Scanning

I have a scenario like this:

Server with bunch of NFS shares (10 of them)
Another server running dockers, including Kodi Headless dockers. There are sources.xml files in place.

I have things working well in terms of library updates - i.e. new shows when dowloaded are inserted - but as my system will progressively download better quality copies, I am getting multiple inserts into my Kodi DB.

If I run a clean inside the headless Kodi (i.e. a clean after update), the entire library disappears, because (I presume) the Kodi Docker can't see the network the NFS shares are on. Thus I need to run a clean library on my Kodi clients whenever they starts up to get rid of the extra entries. This is janky, obviously, and defeats some of the purpose of the headless Kodi instances.

I am wondering if you have any ideas on how I might go about solving this? I could in theory mount the nfs shares into the docker, but I am not sure if the past substitution trick you offer in 'Fast Scanning' would then work??

(Or should I be able to run a clean, with external NFS sources? To be honest it seems odd the inserts work, if the clean doesn't??)

no smb in 19.3??

So I had version 19.2 version working fine until my server crashed.

Reloaded OS, docker and the new 19.3 image, and copied across the sources.xml mediasources.xml and added the central database info to the advancedsetting.xml. set SMB min to 1 in guisettings.xml as per all my other servers.

BUT now can't get SMB working on this headless instance.

Any idea if something changed? Anyone else got SMB v1 working ok on 19.3?

OR do you have the 19.2 image still available that I can pull form somewhere and check if I've broken it somewhere else?

can't start web interface

for the life of me, I can't get the web interface to start. i'm using non-default ports due to other services running on the usual kodi ports. Here's my create command:

  --name=kodi-headless2 \
  -e PUID=1004 \
  -p 8084:8080 \
  -p 9094:9090 \
  -p 9778:9777/udp \
  -v ~/.kodi2:/config/.kodi \
  -v ~/TV:/TV \
  -v ~/Movies:/Movies \
  --restart unless-stopped \
  matthuisman/kodi-headless:Nexus

I have updated advancedsettings.xml to include this:

  <services>
     <esallinterfaces>true</esallinterfaces>
     <webserver>true</webserver>
     <zeroconf>false</zeroconf>
  <services>

I keep getting "Unable to connect" in my browser when accessing the webserver from my browser, port 8084. I'm pretty sure nothing else is running on 8084 on my host. Any help would be appreciated.

How to add a repository?

I know you have a patch/process for adding addons "from enabled repositories" - how do I add a repository (to a headless install)?

Request: add libbluray support

HI there

I think this maybe a Unraid problem, have everything setup great and almost working 100% except i cannot scan in blu ray rips in folder structure it ignores them completely apart from a message saying trying to load setting definitions from old format..., but iso and mkv scan in fine, i have found this post from 2010

"Yeah, Linux lacks that support currently. The libraries are being worked on, I bet it will work by the next stable release.
Your options basically are use Windows, or point to m2ts files instead (those scrape fine)."

https://forum.kodi.tv/showthread.php?tid=88101

so i am assume Unraid doesn't include those libs or not in the container?

Websocks Connection Lost

I installed the container and am getting a "websocks connection lost" error. The only change I made was on port "myport:8080", which I am exposing to another port. There are no messages in the container log, and it isn't reading the database updates, although they loaded after restart. Is there another log that I can look into? Any other steps or recommendation?

Unable to open MYSQL database

I am getting this error everytime, it seems that Kodi can't connect to my database but it shoukld:
ERROR : Unable to open database: MyVideos92 [2013](Lost connection to MySQL server at 'reading initial communication packet', system error: 2)

I have redacted some data for security reasons.

Feature request: Configure Kodi timezone

It would be nice if Kodi could run under my own timezone, so that when I manually scan in an episode from another instance of Kodi it appears in the correct order in the "latest episodes" section. I have a workaround, but thought it was worth recording here for your consideration. I remember that earlier headless kodi containers allowed this via passing in a TZ environment variable.

I noticed in the headless kodi.log that the time was correct on boot, but by the end of the startup process it had changed to UTC. I had tried to change the timezone in guisettings.xml, but it overwrites on startup (and if I set it to readonly it won't load at all). And when I run "date" in the docker shell it shows my local time, so I wasn't sure what was wrong.

Eventually I found that /etc/localtime was out. Since I am using a Linux host, a workaround that is doing the trick for me is sharing the host version with the container, by setting a volume like this: /etc/localtime:/etc/localtime:ro. And I'm happy to keep doing that if this isn't a change worth making. Love this image!

Add SMB v2 or v3 as minimum to connect to Windows share

Just installed and had issues connecting to my SMB share.
After editing the guisettings.xml and setting SMB minimum version, it worked.

    <setting id="smb.workgroup"></setting>
    <setting id="smb.winsserver" default="true">0.0.0.0</setting>
    <setting id="smb.minprotocol">3</setting>
    <setting id="smb.maxprotocol" default="true">3</setting>
    <setting id="smb.legacysecurity" default="true">false</setting>

Might be an idea to include this in the standard build

Omega Beta 3

Hi, if you have the time would you mind to update the docker image for Kodi Omega Beta 3?

Thank you very much in advance!

Add UI access via KasmVNC

Would it be possible to add UI access for making administration easier? This may be very easy by utilizing the using a different base image "FROM ghcr.io/linuxserver/baseimage-kasmvnc:ubuntujammy" as illustrated in this docker file: https://github.com/linuxserver/docker-calibre/blob/master/Dockerfile

This would allow the user to interact with the UI via a web browser. In the Calibre example, it maps the UI access to 8080 and 8181 for http and https respectively but those could be easily adjusted as to not interfere with Kodi.

Watchdog plugin

This is more of a question than an actual issue, since I absolutely love your headless Docker container. Have you gotten the watchdog plugin to work at all? I tried using it before but I could never get it working properly. If not, then that's fine and this can be closed out.

Kodi crashes after doing a library update

Hi,
I have noticed that kodi in the container is crashing frequently, and I think its after doing a library update.
I currently have a cron job running every 5 minutes to force an update through the API and it look consistent that it crashes after doing the update as I can see new items on my clients.

Ended up with thousands of crash logs in /config that I just cleared out, but here is one. It doesn't really show anything useful unfortunately so any advise would be appreciated.

I have searched the issue but have not really found anything helpful, especially as the following log is pretty uneventful.
After this happens, kodi restarts and continues spitting out these crash logs.


################ SYSTEM INFO ################
 Date: Thu Jun  2 22:22:40 AEST 2022
 Kodi Options: 
 Arch: x86_64
 Kernel: Linux 5.15.0-33-generic #34-Ubuntu SMP Wed May 18 13:34:26 UTC 2022
 Release: Ubuntu 18.04.6 LTS (Bionic Beaver)
############## END SYSTEM INFO ##############

############### STACK TRACE #################
gdb not installed, can't get stack trace.
############# END STACK TRACE ###############

################# LOG FILE ##################

2022-06-02 22:18:18.198 T:920      INFO <general>: -----------------------------------------------------------------------
2022-06-02 22:18:18.198 T:920      INFO <general>: Starting Kodi (19.4 (19.4.0) Git:20220308-nogitfound). Platform: Linux x86 64-bit
2022-06-02 22:18:18.198 T:920      INFO <general>: Using Release Kodi x64
2022-06-02 22:18:18.198 T:920      INFO <general>: Kodi compiled 2022-03-08 by GCC 7.5.0 for Linux x86 64-bit version 4.15.18 (266002)
2022-06-02 22:18:18.198 T:920      INFO <general>: Running on Ubuntu 18.04.6 LTS, kernel: Linux x86 64-bit version 5.15.0-33-generic
2022-06-02 22:18:18.198 T:920      INFO <general>: FFmpeg version/source: 4.3.2-Kodi
2022-06-02 22:18:18.198 T:920      INFO <general>: Host CPU: AMD Ryzen 5 5600G with Radeon Graphics         , 12 cores available
2022-06-02 22:18:18.198 T:920      INFO <general>: special://xbmc/ is mapped to: /usr/share/kodi
2022-06-02 22:18:18.198 T:920      INFO <general>: special://xbmcbin/ is mapped to: /usr/lib/kodi
2022-06-02 22:18:18.198 T:920      INFO <general>: special://xbmcbinaddons/ is mapped to: /usr/lib/kodi/addons
2022-06-02 22:18:18.198 T:920      INFO <general>: special://masterprofile/ is mapped to: /config/.kodi/userdata
2022-06-02 22:18:18.198 T:920      INFO <general>: special://envhome/ is mapped to: /config
2022-06-02 22:18:18.198 T:920      INFO <general>: special://home/ is mapped to: /config/.kodi
2022-06-02 22:18:18.198 T:920      INFO <general>: special://temp/ is mapped to: /config/.kodi/temp
2022-06-02 22:18:18.198 T:920      INFO <general>: special://logpath/ is mapped to: /config/.kodi/temp
2022-06-02 22:18:18.198 T:920      INFO <general>: The executable running is: /usr/lib/kodi/kodi-x11
2022-06-02 22:18:18.198 T:920      INFO <general>: Local hostname: bfddbac85285
2022-06-02 22:18:18.198 T:920      INFO <general>: Log File is located: /config/.kodi/temp/kodi.log
2022-06-02 22:18:18.198 T:920      INFO <general>: -----------------------------------------------------------------------
2022-06-02 22:18:18.198 T:920      INFO <general>: loading settings
2022-06-02 22:18:18.198 T:920      INFO <general>: special://profile/ is mapped to: special://masterprofile/
2022-06-02 22:18:18.202 T:920      INFO <general>: No settings file to load (special://xbmc/system/advancedsettings.xml)
2022-06-02 22:18:18.202 T:920      INFO <general>: Loaded settings file from special://profile/advancedsettings.xml
2022-06-02 22:18:18.203 T:920      INFO <general>: Contents of special://profile/advancedsettings.xml are...
                                                   <advancedsettings version="1.0">
                                                     <!-- 
                                                   #####################################################
                                                   # For more information on the settings available in #
                                                   # this file, refer to the kodi wiki at              #
                                                   # http://kodi.wiki/view/Advancedsettings.xml        #
                                                   #####################################################
                                                   -->
                                                     <videodatabase>
                                                       <type>mysql</type>
                                                       <host>192.168.0.198</host>
                                                       <port>3306</port>
                                                       <user>kodi</user>
                                                       <pass>*****</pass>
                                                     </videodatabase>
                                                     <musicdatabase>
                                                       <type>mysql</type>
                                                       <!-- don't change this value -->
                                                       <host />
                                                       <!-- change this to the IP address of your mysql/mariadb server  -->
                                                       <port>3306</port>
                                                       <!-- change this to the port of your mysql/mariadb server  -->
                                                       <user />
                                                       <!-- change this to the user for your database, not root  -->
                                                       <pass />
                                                       <!-- change this to the password for your database -->
                                                     </musicdatabase>
                                                     <services>
                                                       <devicename>ServerBox Headless</devicename>
                                                       <esallinterfaces>true</esallinterfaces>
                                                       <!-- don't change this value -->
                                                       <escontinuousdelay>25</escontinuousdelay>
                                                       <esenabled>true</esenabled>
                                                       <!-- don't change this value -->
                                                       <esinitialdelay>750</esinitialdelay>
                                                       <esmaxclients>20</esmaxclients>
                                                       <esport>9777</esport>
                                                       <!-- don't change this value -->
                                                       <esportrange>10</esportrange>
                                                       <upnpannounce>true</upnpannounce>
                                                       <upnprenderer>false</upnprenderer>
                                                       <upnpserver>true</upnpserver>
                                                       <webserver>true</webserver>
                                                       <!-- don't change this value -->
                                                       <webserverport>8080</webserverport>
                                                       <!-- don't change this value -->
                                                       <webserverusername>kodi</webserverusername>
                                                       <webserverpassword>kodi</webserverpassword>
                                                       <webserverauthentication>false</webserverauthentication>
                                                       <zeroconf>true</zeroconf>
                                                     </services>
                                                     <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>1</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>
                                                       <!-- don't change this value -->
                                                     </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>
                                                     <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>
                                                   
2022-06-02 22:18:18.203 T:920   WARNING <general>: VIDEO database configuration is experimental.
2022-06-02 22:18:18.203 T:920      INFO <general>: Migrating old music library artwork settings to new GUI settings
2022-06-02 22:18:18.203 T:920      INFO <general>: Migrating old video library artwork settings to new GUI settings
2022-06-02 22:18:18.203 T:920      INFO <general>: Default Video Player: VideoPlayer
2022-06-02 22:18:18.203 T:920      INFO <general>: Default Audio Player: paplayer
2022-06-02 22:18:18.203 T:920      INFO <general>: Disabled debug logging due to GUI setting. Level 0.
2022-06-02 22:18:18.203 T:920      INFO <general>: Log level changed to "INFO"
2022-06-02 22:18:18.203 T:920      INFO <general>: CMediaSourceSettings: loading media sources from special://masterprofile/sources.xml
2022-06-02 22:18:18.203 T:920      INFO <general>: creating subdirectories
2022-06-02 22:18:18.203 T:920      INFO <general>: userdata folder: special://masterprofile/
2022-06-02 22:18:18.203 T:920      INFO <general>: recording folder: 
2022-06-02 22:18:18.203 T:920      INFO <general>: screenshots folder: 
2022-06-02 22:18:18.204 T:920      INFO <general>: Running database version Addons33
2022-06-02 22:18:18.215 T:920      INFO <general>: CAddonMgr::FindAddons: audioencoder.kodi.builtin.aac v1.0.2 installed
2022-06-02 22:18:18.215 T:920      INFO <general>: CAddonMgr::FindAddons: audioencoder.kodi.builtin.wma v1.0.2 installed
2022-06-02 22:18:18.215 T:920      INFO <general>: CAddonMgr::FindAddons: game.controller.default v1.0.20 installed
2022-06-02 22:18:18.215 T:920      INFO <general>: CAddonMgr::FindAddons: game.controller.snes v1.0.19 installed
2022-06-02 22:18:18.215 T:920      INFO <general>: CAddonMgr::FindAddons: kodi.binary.global.audioengine v1.1.1 installed
2022-06-02 22:18:18.215 T:920      INFO <general>: CAddonMgr::FindAddons: kodi.binary.global.filesystem v1.1.6 installed
2022-06-02 22:18:18.215 T:920      INFO <general>: CAddonMgr::FindAddons: kodi.binary.global.general v1.0.5 installed
2022-06-02 22:18:18.215 T:920      INFO <general>: CAddonMgr::FindAddons: kodi.binary.global.gui v5.15.0 installed
2022-06-02 22:18:18.215 T:920      INFO <general>: CAddonMgr::FindAddons: kodi.binary.global.main v1.3.0 installed
2022-06-02 22:18:18.215 T:920      INFO <general>: CAddonMgr::FindAddons: kodi.binary.global.network v1.0.4 installed
2022-06-02 22:18:18.215 T:920      INFO <general>: CAddonMgr::FindAddons: kodi.binary.global.tools v1.0.4 installed
2022-06-02 22:18:18.215 T:920      INFO <general>: CAddonMgr::FindAddons: kodi.binary.instance.audiodecoder v3.0.0 installed
2022-06-02 22:18:18.215 T:920      INFO <general>: CAddonMgr::FindAddons: kodi.binary.instance.audioencoder v2.1.0 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: kodi.binary.instance.game v2.1.1 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: kodi.binary.instance.imagedecoder v2.1.1 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: kodi.binary.instance.inputstream v3.0.1 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: kodi.binary.instance.peripheral v2.0.0 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: kodi.binary.instance.pvr v7.1.0 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: kodi.binary.instance.screensaver v2.1.0 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: kodi.binary.instance.vfs v3.0.0 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: kodi.binary.instance.videocodec v2.0.2 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: kodi.binary.instance.visualization v3.0.0 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: kodi.resource v1.0.0 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: metadata.album.universal v3.1.8 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: metadata.artists.universal v4.3.8 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: metadata.common.allmusic.com v3.2.2 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: metadata.common.fanart.tv v3.6.4 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: metadata.common.imdb.com v3.2.6 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: metadata.common.musicbrainz.org v2.2.4 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: metadata.common.theaudiodb.com v2.0.3 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: metadata.common.themoviedb.org v3.2.18 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: metadata.generic.albums v1.0.14 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: metadata.generic.artists v1.0.14 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: metadata.local v1.0.1 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: metadata.themoviedb.org v5.2.6 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: metadata.themoviedb.org.python v1.6.2+matrix.1 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: metadata.tvshows.themoviedb.org v3.5.14 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: metadata.tvshows.themoviedb.org.python v1.4.11 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: repository.xbmc.org v3.2.5 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: resource.images.weathericons.default v1.1.9 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: resource.language.en_gb v2.0.2 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: resource.uisounds.kodi v1.0.1 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: screensaver.xbmc.builtin.black v1.0.34 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: screensaver.xbmc.builtin.dim v1.0.64 installed
2022-06-02 22:18:18.216 T:920      INFO <general>: CAddonMgr::FindAddons: script.module.pil v5.1.0 installed
2022-06-02 22:18:18.217 T:920      INFO <general>: CAddonMgr::FindAddons: script.module.pycryptodome v3.4.3 installed
2022-06-02 22:18:18.217 T:920      INFO <general>: CAddonMgr::FindAddons: service.xbmc.versioncheck v0.5.23+matrix.1 installed
2022-06-02 22:18:18.217 T:920      INFO <general>: CAddonMgr::FindAddons: skin.estouchy v3.0.6 installed
2022-06-02 22:18:18.217 T:920      INFO <general>: CAddonMgr::FindAddons: skin.estuary v3.0.5 installed
2022-06-02 22:18:18.217 T:920      INFO <general>: CAddonMgr::FindAddons: vfs.libarchive v19.0.1 installed
2022-06-02 22:18:18.217 T:920      INFO <general>: CAddonMgr::FindAddons: vfs.rar v19.0.1 installed
2022-06-02 22:18:18.217 T:920      INFO <general>: CAddonMgr::FindAddons: vfs.sftp v19.0.1 installed
2022-06-02 22:18:18.217 T:920      INFO <general>: CAddonMgr::FindAddons: webinterface.default v19.x-2.4.8 installed
2022-06-02 22:18:18.217 T:920      INFO <general>: CAddonMgr::FindAddons: xbmc.addon v19.1.0 installed
2022-06-02 22:18:18.217 T:920      INFO <general>: CAddonMgr::FindAddons: xbmc.core v0.1.0 installed
2022-06-02 22:18:18.217 T:920      INFO <general>: CAddonMgr::FindAddons: xbmc.gui v5.15.0 installed
2022-06-02 22:18:18.217 T:920      INFO <general>: CAddonMgr::FindAddons: xbmc.json v12.4.0 installed
2022-06-02 22:18:18.217 T:920      INFO <general>: CAddonMgr::FindAddons: xbmc.metadata v2.1.0 installed
2022-06-02 22:18:18.217 T:920      INFO <general>: CAddonMgr::FindAddons: xbmc.python v3.0.0 installed
2022-06-02 22:18:18.217 T:920      INFO <general>: CAddonMgr::FindAddons: xbmc.webinterface v1.0.0 installed
2022-06-02 22:18:18.220 T:920      INFO <general>: CKeyboardLayoutManager: loading keyboard layouts from special://xbmc/system/keyboardlayouts...
2022-06-02 22:18:18.222 T:920      INFO <general>: CApplication::CreateGUI - using the headless windowing system
2022-06-02 22:18:18.222 T:920      INFO <general>: Checking resolution 16
2022-06-02 22:18:18.222 T:920      INFO <general>: load keymapping
2022-06-02 22:18:18.222 T:920      INFO <general>: Loading special://xbmc/system/keymaps/appcommand.xml
2022-06-02 22:18:18.222 T:920      INFO <general>: Loading special://xbmc/system/keymaps/customcontroller.AppleRemote.xml
2022-06-02 22:18:18.223 T:920      INFO <general>: Loading special://xbmc/system/keymaps/customcontroller.Harmony.xml
2022-06-02 22:18:18.223 T:920      INFO <general>: Loading special://xbmc/system/keymaps/customcontroller.SiriRemote.xml
2022-06-02 22:18:18.223 T:920      INFO <general>: Loading special://xbmc/system/keymaps/gamepad.xml
2022-06-02 22:18:18.223 T:920      INFO <general>: Loading special://xbmc/system/keymaps/joystick.xml
2022-06-02 22:18:18.224 T:920      INFO <general>: Loading special://xbmc/system/keymaps/keyboard.xml
2022-06-02 22:18:18.224 T:920      INFO <general>: Loading special://xbmc/system/keymaps/mouse.xml
2022-06-02 22:18:18.225 T:920      INFO <general>: Loading special://xbmc/system/keymaps/remote.xml
2022-06-02 22:18:18.225 T:920      INFO <general>: Loading special://xbmc/system/keymaps/touchscreen.xml
2022-06-02 22:18:18.225 T:920      INFO <general>: GUI format 1280x720, Display 
2022-06-02 22:18:18.225 T:920      INFO <general>: CLangInfo: loading resource.language.en_gb language information...
2022-06-02 22:18:18.226 T:920      INFO <general>: global locale set to en_US.UTF-8
2022-06-02 22:18:18.226 T:920      INFO <general>: CLangInfo: loading resource.language.en_gb language strings...
2022-06-02 22:18:18.230 T:922      INFO <general>: Running database version Addons33
2022-06-02 22:18:18.230 T:922      INFO <general>: Running database version ViewModes6
2022-06-02 22:18:18.230 T:922      INFO <general>: Running database version Textures13
2022-06-02 22:18:18.230 T:922      INFO <general>: Essential mysql database information is missing. Require at least host, user and pass defined.
2022-06-02 22:18:18.230 T:922     ERROR <general>: Unable to create new database
2022-06-02 22:18:18.237 T:922      INFO <general>: MYSQL: Connected to version 5.5.5-10.5.8-MariaDB-log
2022-06-02 22:18:18.405 T:922      INFO <general>: Running database version MyVideos119
2022-06-02 22:18:18.405 T:922      INFO <general>: Running database version TV38
2022-06-02 22:18:18.405 T:922      INFO <general>: Running database version Epg13
2022-06-02 22:18:18.408 T:920   WARNING <general>: JSONRPC: Could not parse type "Setting.Details.SettingList"
2022-06-02 22:18:18.408 T:920      INFO <general>: JSONRPC: Adding type "Setting.Details.SettingList" to list of incomplete definitions (waiting for "Setting.Details.Setting")
2022-06-02 22:18:18.408 T:920      INFO <general>: JSONRPC: Resolving incomplete types/methods referencing Setting.Details.Setting
2022-06-02 22:18:18.414 T:920      INFO <general>: JSONRPC v12.4.0: Successfully initialized
2022-06-02 22:18:18.414 T:920      INFO <general>: Register - new keyboard device registered on application->keyboard: Keyboard (0000:0000)
2022-06-02 22:18:18.414 T:920      INFO <general>: Register - new mouse device registered on application->mouse: Mouse (0000:0000)
2022-06-02 22:18:18.414 T:920      INFO <general>: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
2022-06-02 22:18:18.415 T:920      INFO <general>: Loaded playercorefactory configuration
2022-06-02 22:18:18.415 T:920      INFO <general>: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
2022-06-02 22:18:18.415 T:920      INFO <general>: special://masterprofile/playercorefactory.xml does not exist. Skipping.
2022-06-02 22:18:18.415 T:920      INFO <general>: removing tempfiles
2022-06-02 22:18:18.415 T:920      INFO <general>: initialize done
2022-06-02 22:18:18.415 T:926      INFO <general>: initializing python engine.
2022-06-02 22:18:18.415 T:920      INFO <general>: Running the application...
2022-06-02 22:18:18.415 T:927      INFO <general>: ES: Starting UDP Event server on port 9777
2022-06-02 22:18:18.415 T:927      INFO <general>: UDP: Listening on port 9777 (ipv6 : true)
2022-06-02 22:18:18.415 T:920      INFO <general>: JSONRPC Server: Successfully initialized
2022-06-02 12:18:18.416 T:920      INFO <CWebserver[8080]>: Started
2022-06-02 12:18:23.551 T:926      INFO <general>: CPythonInvoker(0, /config/.kodi/addons/service.xbmc.versioncheck/resources/lib/runner.py): script successfully run
2022-06-02 12:18:23.555 T:926      INFO <general>: Python interpreter stopped
2022-06-02 12:19:18.911 T:928      INFO <general>: JSONRPC Server: New connection added
2022-06-02 12:20:02.863 T:942      INFO <general>: Skipped 1 duplicate messages..
2022-06-02 12:20:02.863 T:942      INFO <general>: VideoInfoScanner: Starting scan ..
2022-06-02 12:20:25.498 T:943      INFO <general>: initializing python engine.
2022-06-02 12:20:25.729 T:943      INFO <general>: CPythonInvoker(1, /config/.kodi/addons/metadata.tvshows.themoviedb.org.python/main.py): script successfully run
2022-06-02 12:20:25.737 T:943      INFO <general>: Python interpreter stopped
2022-06-02 12:20:25.860 T:945      INFO <general>: initializing python engine.
2022-06-02 12:20:26.702 T:945      INFO <general>: CPythonInvoker(2, /config/.kodi/addons/metadata.tvshows.themoviedb.org.python/main.py): script successfully run
2022-06-02 12:20:26.711 T:945      INFO <general>: Python interpreter stopped


############### END LOG FILE ################

############ END Kodi CRASH LOG #############```

SSL on WebServer

Is there a way to enable SSL for the web server?

I have already copied the certificate and key (PEM format, named server.pem and server.key respectively) to userdata folder and enabled it under Settings > Services > Control but I wouldn't be able to connect to the web server. Restarting the docker would get it to fallback to HTTP. I have also looked at guisettings.xml to enable it but same result.

Am I missing something? Any help would be appreciated.

Nexus: unable to iopause: Operation not permitted

Just tried switching matrix to Nexus and seeing this error:

➜  ~ git:(master) ✗ docker-compose up                                                     Creating kodi-headless ... done
Attaching to kodi-headless
kodi-headless | s6-svscan: warning: unable to iopause: Operation not permitted
kodi-headless | s6-svscan: warning: executing into .s6-svscan/crash
kodi-headless | s6-svscan crashed. Killing everything and exiting.
kodi-headless | s6-supervise s6-linux-init-shutdownd: fatal: unable to iopause: Operation not permitted
kodi-headless | s6-linux-init-hpr: fatal: unable to reboot(): Operation not permitted
kodi-headless | s6-svscan: warning: unable to iopause: Operation not permitted
kodi-headless | s6-svscan: warning: executing into .s6-svscan/crash
kodi-headless | s6-svscan crashed. Killing everything and exiting.
kodi-headless | s6-supervise s6-linux-init-shutdownd: fatal: unable to iopause: Operation not permitted
kodi-headless | s6-linux-init-hpr: fatal: unable to reboot(): Operation not permitted
kodi-headless exited with code 111
➜  ~ git:(master) ✗ cat /etc/debian_version                                               10.11
➜  ~ git:(master) ✗ cat /etc/os-release                                                   PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
➜  ~ git:(master) ✗ uname -a                                                              Linux nas 5.10.63-v7l+ #1496 SMP Wed Dec 1 15:58:56 GMT 2021 armv7l GNU/Linux
➜  ~ git:(master) ✗ cat /proc/cpuinfo                                                     processor       : 0
model name      : ARMv7 Processor rev 3 (v7l)
BogoMIPS        : 270.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 3

processor       : 1
model name      : ARMv7 Processor rev 3 (v7l)
BogoMIPS        : 270.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 3

processor       : 2
model name      : ARMv7 Processor rev 3 (v7l)
BogoMIPS        : 270.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 3

processor       : 3
model name      : ARMv7 Processor rev 3 (v7l)
BogoMIPS        : 270.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 3

Hardware        : BCM2711
Revision        : c03111
Serial          : xxxxxxx
Model           : Raspberry Pi 4 Model B Rev 1.1

FEATURE REQUEST - Kodi Media Path - unRAID

Thank you for keeping this alive!

EDIT: Never mind: adding the below to the unRAID template did the trick!!!

image

PLEASE IGNORE - See my edit above

_I use this Docker in my unRAID server to scan for library updates. In the readme you outline a method for faster scans when the the docker and media storage are on the machine.

can you please modify both the Dockerfile and the unRAID template so that my /mnt/user/Media (can be user-modified) folder could be mapped into a folder inside the dockers /config/media folder.

Basically build in this function into the template
eg. --mount type=bind,source=/sharedfolders/pool,target=/media _

i don’t think adding a new path in the template screen works.

Thank you again!

h.

No `VideoLibrary.Scan` method

Hello. I started this container yesterday by doing:

sudo docker run 
-d --name=kodi-headless 
--restart unless-stopped 
-v /kodi:/config/.kodi 
-e TZ=Asia/Calcutta 
-p 8080:8080 
-p 9090:9090 
-p 9777:9777/udp 
matthuisman/kodi-headless:Matrix

I had manually created the /kodi dir on my pi before starting the container.
After starting the container, I went to /kodi/userdata and edited advancedsettings.xml.
I also pasted my sources.xml file there
I put in my host ip and the uname and password
I also changed the services > devicename setting (I hope this is fine) in the advancedsettings.xml

It runs successfully and i can access the web ui at pi_ip:8080 and in the movies section I can see all the movies on my database
but when I do a get request to kodi:[email protected]:8080/jsonrpc, in the methods key of the response, theres no VideoLibrary.Scan method. How do I trigger a scan?

Can vfs.sftp addon be added?

Can the vfs.sftp addon be added? Or is there documentation on how to add an addon that I can be pointed to? Thanks!

Nexus-latest changes /config ownership to '911:1000' ignoring -e PIG/GID

Hi Matt,

Looks like (re)pulling/rebuilding to Nexus-latest causes the ownership of the /config-folder to be changed to UID/GID '911/1000'. This is ignoring explicitly issued '-e PUID= -e PGID=' directives.

Stopping the container, reinstating folder ownership and starting the container seems to work though...

With kind regards,

Jeroen

Error after most recent update

Had this working on Unraid however after docker update I am getting an error
'/usr/lib/kodi/kodi-x11: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory'

Recently added Movies not updating

I've noticed an issue where my recently added movies are not showing in the Recently Added Movies section of the GUI. This is happening in the headless webUI as well as all clients. I was having this issue on 20.2, and it is still an issue after upgrading headless and clients to 20.3.

Weirdly, my newly added TV episodes do show up in the recently added section, so this is limited to an issue with just movies. I have "update library on startup" enabled, but that shouldn't come into play here as I'm not restarting the headless docker container very often. FWIW, in my Sonarr and Radarr, I have the connection to Kodi headless enabled, tested successfully, and the "update library on import & rename" setting enabled.

What can I do to resolve this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.