RE: Headless Kodi - celedhrim - 2016-02-15
Hi
point 1 :
Code: Prepare a full kodi profile with the GUI version then take the ~/.kodi
$ cp -r ~/.kodi ~/kodi-server-profile
so here /path/to/kodi-server-profile is ~/kodi-server-profile
RE: Headless Kodi - Saidou - 2016-02-16
I managed to let it work on my Synology DS412+.
Now I want to integrate the Trakt.tv addon.
Copied over the Trakt addon with its addon_data from a working PC client to "../opt/kodi-server/share/kodi/portable_data/", but getting following error:
Quote:22:03:30 T:140068865656576 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: No module named dateutil.parser
Traceback (most recent call last):
File "/opt/kodi-server/share/kodi/portable_data/addons/script.trakt/default.py", line 5, in <module>
import kodilogging
File "/opt/kodi-server/share/kodi/portable_data/addons/script.trakt/kodilogging.py", line 19, in <module>
from utilities import getSettingAsBool
File "/opt/kodi-server/share/kodi/portable_data/addons/script.trakt/utilities.py", line 11, in <module>
import dateutil.parser
ImportError: No module named dateutil.parser
-->End of Python script error report<--
I can't get it to work. Has anyone figured it out yet?
This is the entire Log file:
Code: 15:58:26 T:140715823781824 NOTICE: special://profile/ is mapped to: special://masterprofile/
15:58:26 T:140715823781824 NOTICE: -----------------------------------------------------------------------
15:58:26 T:140715823781824 NOTICE: Starting Kodi (15.1 Git:2015-08-19-f4dda26-dirty). Platform: Linux x86 64-bit
15:58:26 T:140715823781824 NOTICE: Using Release Kodi x64 build
15:58:26 T:140715823781824 NOTICE: Kodi compiled Aug 19 2015 by GCC 4.8.4 for Linux x86 64-bit version 3.13.11 (199947)
15:58:26 T:140715823781824 NOTICE: Running on Ubuntu 14.04.1 LTS, kernel: Linux x86 64-bit version 3.10.35
15:58:26 T:140715823781824 NOTICE: FFmpeg statically linked, version: 2.6.4-kodi-2.6.4-Isengard
15:58:26 T:140715823781824 NOTICE: Host CPU: Intel(R) Atom(TM) CPU D2701 @ 2.13GHz, 4 cores available
15:58:26 T:140715823781824 NOTICE: special://xbmc/ is mapped to: /opt/kodi-server/share/kodi/
15:58:26 T:140715823781824 NOTICE: special://xbmcbin/ is mapped to: /opt/kodi-server/lib/kodi
15:58:26 T:140715823781824 NOTICE: special://masterprofile/ is mapped to: /opt/kodi-server/share/kodi/portable_data/userdata
15:58:26 T:140715823781824 NOTICE: special://home/ is mapped to: /opt/kodi-server/share/kodi/portable_data
15:58:26 T:140715823781824 NOTICE: special://temp/ is mapped to: /opt/kodi-server/share/kodi/portable_data/temp
15:58:26 T:140715823781824 NOTICE: The executable running is: /opt/kodi-server/lib/kodi/kodi.bin
15:58:26 T:140715823781824 NOTICE: Local hostname: Kodi-Isengard
15:58:26 T:140715823781824 NOTICE: Log File is located: /opt/kodi-server/share/kodi/portable_data/temp/kodi.log
15:58:26 T:140715823781824 NOTICE: -----------------------------------------------------------------------
15:58:26 T:140715823781824 NOTICE: load settings...
15:58:26 T:140715823781824 WARNING: CSettingInt: unknown options filler "audiocdactions" of "audiocds.autoaction"
15:58:26 T:140715823781824 NOTICE: CAESinkOSS::EnumerateDevicesEx - No OSS mixer device present: /dev/mixer
15:58:26 T:140715823781824 NOTICE: No Devices found - retry: 4
15:58:27 T:140715823781824 NOTICE: CAESinkOSS::EnumerateDevicesEx - No OSS mixer device present: /dev/mixer
15:58:27 T:140715823781824 NOTICE: No Devices found - retry: 3
15:58:29 T:140715823781824 NOTICE: CAESinkOSS::EnumerateDevicesEx - No OSS mixer device present: /dev/mixer
15:58:29 T:140715823781824 NOTICE: No Devices found - retry: 2
15:58:30 T:140715823781824 NOTICE: CAESinkOSS::EnumerateDevicesEx - No OSS mixer device present: /dev/mixer
15:58:30 T:140715823781824 NOTICE: No Devices found - retry: 1
15:58:32 T:140715823781824 NOTICE: CAESinkOSS::EnumerateDevicesEx - No OSS mixer device present: /dev/mixer
15:58:32 T:140715823781824 NOTICE: Found 0 Lists of Devices
15:58:32 T:140715823781824 NOTICE: CAESinkOSS::EnumerateDevicesEx - No OSS mixer device present: /dev/mixer
15:58:32 T:140715823781824 NOTICE: No Devices found - retry: 4
15:58:33 T:140715823781824 NOTICE: CAESinkOSS::EnumerateDevicesEx - No OSS mixer device present: /dev/mixer
15:58:33 T:140715823781824 NOTICE: No Devices found - retry: 3
15:58:35 T:140715823781824 NOTICE: CAESinkOSS::EnumerateDevicesEx - No OSS mixer device present: /dev/mixer
15:58:35 T:140715823781824 NOTICE: No Devices found - retry: 2
15:58:36 T:140715823781824 NOTICE: CAESinkOSS::EnumerateDevicesEx - No OSS mixer device present: /dev/mixer
15:58:36 T:140715823781824 NOTICE: No Devices found - retry: 1
15:58:38 T:140715823781824 NOTICE: CAESinkOSS::EnumerateDevicesEx - No OSS mixer device present: /dev/mixer
15:58:38 T:140715823781824 NOTICE: Found 0 Lists of Devices
15:58:38 T:140715823781824 NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
15:58:38 T:140715823781824 NOTICE: Loaded settings file from special://profile/advancedsettings.xml
15:58:38 T:140715823781824 NOTICE: Contents of special://profile/advancedsettings.xml are...
<advancedsettings>
<!--
#####################################################
############ DON'T EDIT OR DELETE THIS BLOCK ########
-->
<videodatabase>
<type>mysql</type>
<host>ip.address.nas</host>
<port>3306</port>
<user>username</user>
<pass>password</pass>
</videodatabase>
<musicdatabase>
<type>mysql</type>
<host>ip.address.nas</host>
<port>3306</port>
<user>username</user>
<pass>password</pass>
</musicdatabase>
<services>
<devicename>XBMC Server</devicename>
<esallinterfaces>false</esallinterfaces>
<escontinuousdelay>25</escontinuousdelay>
<esenabled>true</esenabled>
<esinitialdelay>750</esinitialdelay>
<esmaxclients>20</esmaxclients>
<esport>9777</esport>
<esportrange>10</esportrange>
<upnpannounce>true</upnpannounce>
<upnprenderer>false</upnprenderer>
<upnpserver>true</upnpserver>
<webserver>true</webserver>
<webserverpassword>password</webserverpassword>
<webserverport>8080</webserverport>
<webserverusername>username</webserverusername>
<webskin>webinterface.default</webskin>
<zeroconf>true</zeroconf>
</services>
<!--
############ OR THINGS WILL BREAK ###################
#####################################################
########### THINGS BELOW ARE HOWEVER EDITABLE #######
refer to http://kodi.wiki/view/Advancedsettings.xml for info on the various settings -->
<videolibrary>
<importresumepoint>true</importresumepoint>
<!-- import previously exported resume point from .nfo files -->
<importwatchedstate>true</importwatchedstate>
<!-- import previously exported playdate and playcount from .nfo files -->
<backgroundupdate>true</backgroundupdate>
<dateadded>0</dateadded>
<!-- 0 results in using the current datetime when adding a video;
1 (default) results in prefering to use the files mtime (if it's valid) and only using the file's ctime if the mtime isn't valid;
2 results in using the newer datetime of the file's mtime and ctime -->
</videolibrary>
<musiclibrary>
<backgroundupdate>true</backgroundupdate>
</musiclibrary>
<videoscanner>
<ignoreerrors>true</ignoreerrors>
<!-- Set to true to silently ignore errors while scanning videos. This prevents the error dialogue box, so you don't have to keep hitting "yes" to keep scanning.-->
</videoscanner>
<splash>false</splash>
<bginfoloadermaxthreads>2</bginfoloadermaxthreads>
<myvideos>
<extractflags>false</extractflags>
<extractthumb>false</extractthumb>
</myvideos>
<lookandfeel>
<enablerssfeeds>false</enablerssfeeds>
</lookandfeel>
<audiooutput>
<guisoundmode>0</guisoundmode>
<ac3passthrough>false</ac3passthrough>
<dtspassthrough>false</dtspassthrough>
<multichannellpcm>false</multichannellpcm>
<truehdpassthrough>false></truehdpassthrough>
<dtshdpassthrough>false</dtshdpassthrough>
<mode>2</mode>
</audiooutput>
<videoscreen>
<vsync>2</vsync>
</videoscreen>
<input>
<enablemouse>false</enablemouse>
<remoteaskeyboard>false</remoteaskeyboard>
</input>
<general>
<addonnotifications>false</addonnotifications>
</general>
<skinsettings>
<setting type="bool" name="skin.confluence.FirstTimeRun">false</setting>
</skinsettings>
<pathsubstitution>
<substitute>
<from>special://masterprofile/Thumbnails/</from>
<to>nfs://ip.address.nas/volume1/XBMCmedia/Thumbnails/</to>
</substitute>
<substitute>
<from>special://profile/sources.xml</from>
<to>nfs://ip.address.nas/volume1/XBMCmedia/sources.xml</to>
</substitute>
<substitute>
<from>special://profile/mediasources.xml</from>
<to>nfs://ip.address.nas/volume1/XBMCmedia/mediasources.xml</to>
</substitute>
<substitute>
<from>special://profile/favourites.xml</from>
<to>nfs://ip.address.nas/volume1/XBMCmedia/favourites.xml</to>
</substitute>
<substitute>
<from>special://profile/playlists/</from>
<to>nfs://ip.address.nas/volume1/XBMCmedia/playlists/</to>
</substitute>
<substitute>
<from>special://profile/passwords.xml</from>
<to>nfs://ip.address.nas/volume1/XBMCmedia/passwords.xml</to>
</substitute>
</pathsubstitution>
</advancedsettings>
15:58:38 T:140715823781824 WARNING: VIDEO database configuration is experimental.
15:58:38 T:140715823781824 WARNING: CSettingsManager: unable to read value of setting "audiooutput.truehdpassthrough"
15:58:38 T:140715823781824 NOTICE: Default DVD Player: dvdplayer
15:58:38 T:140715823781824 NOTICE: Default Video Player: dvdplayer
15:58:38 T:140715823781824 NOTICE: Default Audio Player: paplayer
15:58:38 T:140715823781824 NOTICE: Disabled debug logging due to GUI setting. Level 0.
15:58:38 T:140715823781824 NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
15:58:38 T:140715823781824 NOTICE: CMediaSourceSettings: loading media sources from special://masterprofile/sources.xml
15:58:38 T:140715823781824 NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
15:58:38 T:140715823781824 NOTICE: Loaded playercorefactory configuration
15:58:38 T:140715823781824 NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
15:58:38 T:140715823781824 NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
15:58:38 T:140715495737088 NOTICE: Thread ActiveAE start, auto delete: false
15:58:38 T:140715487344384 NOTICE: Thread AESink start, auto delete: false
15:58:38 T:140715495737088 NOTICE: CAESinkOSS::EnumerateDevicesEx - No OSS mixer device present: /dev/mixer
15:58:38 T:140715495737088 NOTICE: No Devices found - retry: 4
15:58:39 T:140715495737088 NOTICE: CAESinkOSS::EnumerateDevicesEx - No OSS mixer device present: /dev/mixer
15:58:39 T:140715495737088 NOTICE: No Devices found - retry: 3
15:58:41 T:140715495737088 NOTICE: CAESinkOSS::EnumerateDevicesEx - No OSS mixer device present: /dev/mixer
15:58:41 T:140715495737088 NOTICE: No Devices found - retry: 2
15:58:42 T:140715495737088 NOTICE: CAESinkOSS::EnumerateDevicesEx - No OSS mixer device present: /dev/mixer
15:58:42 T:140715495737088 NOTICE: No Devices found - retry: 1
15:58:44 T:140715495737088 NOTICE: CAESinkOSS::EnumerateDevicesEx - No OSS mixer device present: /dev/mixer
15:58:44 T:140715495737088 NOTICE: Found 0 Lists of Devices
15:58:44 T:140715409536768 NOTICE: Thread AESinkNull start, auto delete: false
15:58:44 T:140715823781824 NOTICE: Running database version Addons19
15:58:44 T:140715823781824 NOTICE: ADDONS: Using repository repository.xbmc.org
15:58:44 T:140715823781824 NOTICE: Running database version Addons19
15:58:44 T:140715823781824 NOTICE: Running database version ViewModes6
15:58:44 T:140715823781824 NOTICE: Running database version Textures13
15:58:44 T:140715823781824 NOTICE: Running database version MyMusic52
15:58:44 T:140715823781824 NOTICE: Running database version MyVideos93
15:58:44 T:140715823781824 NOTICE: Running database version TV29
15:58:44 T:140715823781824 NOTICE: Running database version Epg10
15:58:44 T:140715823781824 WARNING: JSONRPC: Could not parse type "PVR.Details.Channel"
15:58:44 T:140715823781824 WARNING: JSONRPC: Could not parse type "PVR.Details.ChannelGroup.Extended"
15:58:44 T:140715823781824 WARNING: JSONRPC: Could not parse type "GUI.Property.Value"
15:58:44 T:140715823781824 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList"
15:58:44 T:140715372226304 NOTICE: Thread LanguageInvoker start, auto delete: false
15:58:44 T:140715823781824 NOTICE: Previous line repeats 1 times.
15:58:44 T:140715823781824 NOTICE: initialize done
15:58:44 T:140715823781824 NOTICE: Running the application...
15:58:44 T:140715823781824 NOTICE: Webserver: Starting...
15:58:44 T:140715823781824 NOTICE: WebServer: Started the webserver
15:58:44 T:140715823781824 NOTICE: starting upnp client
15:58:44 T:140715823781824 NOTICE: starting upnp server
15:58:44 T:140715823781824 NOTICE: ES: Starting event server
15:58:44 T:140715023636224 NOTICE: Thread EventServer start, auto delete: false
15:58:44 T:140715023636224 NOTICE: ES: Starting UDP Event server on 0.0.0.0:9777
15:58:44 T:140715023636224 NOTICE: UDP: Listening on port 9777
15:58:44 T:140714939774720 NOTICE: Thread TCPServer start, auto delete: false
15:58:45 T:140715372226304 NOTICE: -->Python Interpreter Initialized<--
15:58:45 T:140714931382016 NOTICE: Thread JobWorker start, auto delete: true
15:58:45 T:140715361687296 NOTICE: -->Python Interpreter Initialized<--
15:58:45 T:140715361687296 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: No module named dateutil.parser
Traceback (most recent call last):
File "/opt/kodi-server/share/kodi/portable_data/addons/script.trakt/default.py", line 5, in <module>
import kodilogging
File "/opt/kodi-server/share/kodi/portable_data/addons/script.trakt/kodilogging.py", line 19, in <module>
from utilities import getSettingAsBool
File "/opt/kodi-server/share/kodi/portable_data/addons/script.trakt/utilities.py", line 11, in <module>
import dateutil.parser
ImportError: No module named dateutil.parser
-->End of Python script error report<--
15:58:45 T:140715361687296 NOTICE: Thread FileCache start, auto delete: false
15:59:00 T:140715372226304 NOTICE: Previous line repeats 1 times.
15:59:00 T:140715372226304 ERROR: EXCEPTION: Error: Window is NULL, this is not possible :-)
15:59:00 T:140715372226304 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.RuntimeError'>
Error Contents: Error: Window is NULL, this is not possible :-)
Traceback (most recent call last):
File "/opt/kodi-server/share/kodi/portable_data/addons/service.xbmc.versioncheck/service.py", line 104, in <module>
Main()
File "/opt/kodi-server/share/kodi/portable_data/addons/service.xbmc.versioncheck/service.py", line 45, in __init__
_upgrademessage2( version_installed, version_available, version_stable, oldversion, False)
File "/opt/kodi-server/share/kodi/portable_data/addons/service.xbmc.versioncheck/lib/common.py", line 139, in upgrade_message2
localise(32033))
RuntimeError: Error: Window is NULL, this is not possible :-)
-->End of Python script error report<--
RE: Headless Kodi - bauruine - 2016-02-22
(2016-02-16, 17:57)Saidou Wrote: I managed to let it work on my Synology DS412+.
Now I want to integrate the Trakt.tv addon.
I can't get it to work. Has anyone figured it out yet?
Trackt.tv needs the dateutil module. should be under .kodi/addons/script.module.dateutil on your pc.
RE: Headless Kodi - celedhrim - 2016-02-22
(2016-02-22, 18:14)bauruine Wrote: (2016-02-16, 17:57)Saidou Wrote: I managed to let it work on my Synology DS412+.
Now I want to integrate the Trakt.tv addon.
I can't get it to work. Has anyone figured it out yet?
Trackt.tv needs the dateutil module. should be under .kodi/addons/script.module.dateutil on your pc.
That's why you should prepare a full profile with the normal kodi version , then switch this profile to the headless version
RE: Headless Kodi - quixers - 2016-02-23
Will this Jarvis RC patch work on Jarvis Final 16.0 ok?
https://github.com/Celedhrim/docker-kodi-server/blob/jarvis/src/headless.patch
Cheers guys!
RE: Headless Kodi - gutz-pilz - 2016-02-24
howto trigger a library scan?
Cant figure out the docker ip to run Code: curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": "mybash"}' -H 'content-type: application/json;' http://localhost:9191/jsonrpc
Code: docker inspect -f '{{.Name}} - {{.NetworkSettings.IPAddress }}' $(docker ps -aq)
will give:
there is no ipadress
log is saying
Code: 22:12:41 T:140410481870848 NOTICE: starting upnp client
22:12:41 T:140409703483136 NOTICE: ES: Starting UDP Event server on 0.0.0.0:9777
22:12:41 T:140409703483136 NOTICE: UDP: Listening on port 9777
RE: Headless Kodi - celedhrim - 2016-02-24
(2016-02-23, 21:48)quixers Wrote: Will this Jarvis RC patch work on Jarvis Final 16.0 ok?
https://github.com/Celedhrim/docker-kodi-server/blob/jarvis/src/headless.patch
Cheers guys!
jarvis and master brand 16.0 ready
Docker hub no more build images , I can't figure why because my debian testing and archlinux , both up to date build fine.
But it's ok for the patch
RE: Headless Kodi - celedhrim - 2016-02-24
(2016-02-24, 00:15)gutz-pilz Wrote: howto trigger a library scan?
I run container with --net=host , this way port bind to the host machine directly
Then I use kodi-send to scan (https://packages.debian.org/stretch/kodi-eventclients-kodi-send for debian testing)
using this way :
Code: kodi-send --action 'UpdateLibrary(video)'
kodi-send --action 'UpdateLibrary(music)'
RE: Headless Kodi - gutz-pilz - 2016-02-24
howto install kodi send on debian ?
i use debian wheezy
RE: Headless Kodi - Saidou - 2016-02-25
(2016-02-22, 18:16)celedhrim Wrote: (2016-02-22, 18:14)bauruine Wrote: (2016-02-16, 17:57)Saidou Wrote: I managed to let it work on my Synology DS412+.
Now I want to integrate the Trakt.tv addon.
I can't get it to work. Has anyone figured it out yet?
Trackt.tv needs the dateutil module. should be under .kodi/addons/script.module.dateutil on your pc.
That's why you should prepare a full profile with the normal kodi version , then switch this profile to the headless version ![Smile Smile](https://forum.kodi.tv/images/smilies/smile.png)
What part of the profile folder am I 'allowed' to copy? Everything in "portable data"? Or just the "userdata" folder?
RE: Headless Kodi - gutz-pilz - 2016-02-28
installed
xbmc-eventclients-xbmc-send
and command to scan is
kodi-send --action 'UpdateLibrary(video)'
Thanks for all your work!
RE: Headless Kodi - greyslater - 2016-03-09
Hi
i'm running Celedhrim/docker-kodi-server - jarvis branch and everything works pretty fine except movie thumbnails are not shown over UPnP like it is standard with native KODI
could it be there is a little bit to much disabled from xbmc dependencies - although i can't figure out what/where
any ideas?
thank u guys!
RE: Headless Kodi - celedhrim - 2016-03-10
Sorry I don't have any Upnp setup , but if you find the issue , I'll commiit it.
Note : Docker no more build the container ( 2 hours build limit). You should build it from repo.
If I can find how to reduce build time , docker hub image will come again.
RE: Headless Kodi - greyslater - 2016-03-10
building the image is a really time consuming process - indeed - found it out the hard way with a temporary slow internet connection
so what i'm looking for is a clue on where to start searching - maybe most important here: anybody else knows the issue when using UPnP?
the files itself are perfectly forwarded to my client/player - only the thumbnails are missing
could imagine it has something to do with the userdata/Thumbnails Folder which is used from an existing OpenELEC/KODI and is already pre-filled with thumbnails
i'll try to get rid of the thumbnails - the headless-kodi should get them again from mySQL when needed i guess
RE: Headless Kodi - celedhrim - 2016-03-10
I think kodi take thumb when need to display them.
With the headless version , You don't navigate , so thumb never fetch.
Have you try the web interface. Mine have thumb ( maybe be web interface , like gui , trigger a thumb fetch)
|