2

I have been trying to launch Kodi on my Raspbian Buster.

I did a fresh install of Raspbian Buster Lite and then installed Kodi.

sudo apt install kodi

As I don't need the GUI I think I just have to manually install a few dependencies for running Kodi as the only UI required app.

I followed the instruction here https://www.raspberrypi.org/forums/viewtopic.php?t=192499 with a small adjustment to the location of the kodi.service to put it in /etc instead of /lib as they mention here.

Tried all following ways to launch Kodi.

kodi
kodi-standalone
sudo systemctl start kodi

All of them fail with same error. As people are saying there is no xserver required I anyhow tried installing xserver, but it still gives me same error when xserver is installed.

Is there any expert out there who knows how to solve or point me in right direction?

On my previous Raspbian Stretch all was working fine, but don't recall if I did anything special 2 years ago, to make this work.

$ cat kodi_crashlog-20190715_212803.log
############## Kodi CRASH LOG ###############

################ SYSTEM INFO ################
 Date: Mon 15 Jul 21:28:03 BST 2019
 Kodi Options:
 Arch: armv7l
 Kernel: Linux 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019
 Release: Raspbian GNU/Linux 10 (buster)
############## END SYSTEM INFO ##############

############### STACK TRACE #################
############# END STACK TRACE ###############

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

21:27:33.630 T:1831238192  NOTICE: special://profile/ is mapped to: special://masterprofile/
21:27:33.631 T:1831238192  NOTICE: -----------------------------------------------------------------------
21:27:33.631 T:1831238192  NOTICE: Starting Kodi from Debian (17.6 Debian package version: 2:17.6+dfsg1-4+b1). Platform: Linux ARM 32-bit
21:27:33.631 T:1831238192  NOTICE: Using Release Kodi from Debian x32 build
21:27:33.631 T:1831238192  NOTICE: Kodi from Debian compiled from 2:17.6+dfsg1-4+b1 by GCC 8.2.0 for Linux ARM 32-bit version 4.18.20 (266772)
21:27:33.631 T:1831238192  NOTICE: Running on Raspbian GNU/Linux 10 (buster), kernel: Linux ARM 32-bit version 4.19.57-v7+
21:27:33.631 T:1831238192  NOTICE: FFmpeg version/source: 4.1.3-1+rpt1
21:27:33.631 T:1831238192  NOTICE: Host CPU: ARMv7 Processor rev 4 (v7l), 4 cores available
21:27:33.631 T:1831238192  NOTICE: ARM Features: Neon disabled
21:27:33.631 T:1831238192  NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
21:27:33.631 T:1831238192  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/arm-linux-gnueabihf/kodi
21:27:33.631 T:1831238192  NOTICE: special://xbmcbinaddons/ is mapped to: /usr/lib/arm-linux-gnueabihf/kodi/addons
21:27:33.631 T:1831238192  NOTICE: special://masterprofile/ is mapped to: /home/pi/.kodi/userdata
21:27:33.631 T:1831238192  NOTICE: special://envhome/ is mapped to: /home/pi
21:27:33.631 T:1831238192  NOTICE: special://home/ is mapped to: /home/pi/.kodi
21:27:33.631 T:1831238192  NOTICE: special://temp/ is mapped to: /home/pi/.kodi/temp
21:27:33.631 T:1831238192  NOTICE: special://logpath/ is mapped to: /home/pi/.kodi/temp
21:27:33.631 T:1831238192  NOTICE: The executable running is: /usr/lib/arm-linux-gnueabihf/kodi/kodi.bin
21:27:33.631 T:1831238192  NOTICE: Local hostname: raspberrypi
21:27:33.631 T:1831238192  NOTICE: Log File is located: /home/pi/.kodi/temp//kodi.log
21:27:33.631 T:1831238192  NOTICE: -----------------------------------------------------------------------
21:27:33.637 T:1831238192   ERROR: DBus: Error org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UPower was not provided by any .service files
21:27:33.701 T:1831238192  NOTICE: load settings...
21:27:33.743 T:1831238192   ERROR: PulseAudio: Failed to connect context
21:27:33.743 T:1831238192  NOTICE: PulseAudio might not be running. Context was not created.
21:27:33.777 T:1831238192  NOTICE: Found 1 Lists of Devices
21:27:33.777 T:1831238192  NOTICE: Enumerated ALSA devices:
21:27:33.777 T:1831238192  NOTICE:     Device 1
21:27:33.778 T:1831238192  NOTICE:         m_deviceName      : @
21:27:33.778 T:1831238192  NOTICE:         m_displayName     : Default (bcm2835 ALSA bcm2835 ALSA)
21:27:33.778 T:1831238192  NOTICE:         m_displayNameExtra:
21:27:33.778 T:1831238192  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
21:27:33.778 T:1831238192  NOTICE:         m_channels        : FL,FR
21:27:33.778 T:1831238192  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000
21:27:33.778 T:1831238192  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_U8
21:27:33.778 T:1831238192  NOTICE:         m_streamTypes     : No passthrough capabilities
21:27:33.788 T:1831238192  NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
21:27:33.788 T:1831238192  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
21:27:33.788 T:1831238192  NOTICE: Default Video Player: VideoPlayer
21:27:33.788 T:1831238192  NOTICE: Default Audio Player: paplayer
21:27:33.788 T:1831238192  NOTICE: Disabled debug logging due to GUI setting. Level 0.
21:27:33.788 T:1831238192  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
21:27:33.789 T:1831238192  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
21:27:33.789 T:1831238192  NOTICE: Loaded playercorefactory configuration
21:27:33.789 T:1831238192  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
21:27:33.789 T:1831238192  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
21:27:33.806 T:1831238192  NOTICE: Running database version Addons27
21:27:33.856 T:1831238192  NOTICE: ADDONS: Using repository repository.xbmc.org
21:27:33.905 T:1831238192   ERROR: X11 Error: No Display found
21:27:33.905 T:1831238192   FATAL: CApplication::Create: Unable to init windowing system


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

############ END Kodi CRASH LOG #############
  • 1
    It's trying to create the UI, and therefore needs a display. Is there a parameter you can give it to not run the visual part? – Panki Jul 16 '19 at 17:39
  • 1
    with raspbian buster i ran into the same problem. Now i am using rapsbian stretch again. That works like charm on my pi3. You can still find a version here distrowatch.com/?newsid=10376 and a comment at the raspberry forum related to this problem raspberrypi.org/forums/viewtopic.php?p=1489278#p1489278 – AlexOnLinux Jul 16 '19 at 18:04
2

I had the same issue on my Raspberry Pi 4 running headless Raspbian Buster.

I've fixed it by installing X11.

sudo apt install xorg dbus-x11

then to run Kodi

sudo /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone -- :0 -nolisten tcp vt7

Idk if its more of a hack than a solution but it works for me.

  • Thanks for this answer. This probably could have worked for me, although I already reverted to stretch by now to be able to also run Kodi 18. I did try some x-11 and dbus stuff, but not the exact stuff you are proposing. For any other people reaching this post, this can be you solution by putting this in a systemd script to launch your kodi like this. – Marco Jul 22 '19 at 9:00
0

As Kodi on Buster is still an older version then available on Stretch I choose to go back to the previous release by reinstalling my Raspberry Pi.

An extensive guide to do so I wrote over here.

https://marcofranssen.nl/install-fresh-raspbian-image-on-your-raspberry-pi-part-1/

In the second part I show you how to securly setup Kodi running as a separate user, and automatically booting. Also show you how to automate some of the configuration steps and how to setup nfs share mounts.

https://marcofranssen.nl/install-fresh-raspbian-image-on-your-raspberry-pi-part-2/

The answer above from @bobfbaby might still be a solution to some of you if you don't care about running the older version of Kodi.

For myself I will wait until Buster also upgrades to Kodi 18 release.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.