KODI won't start after update to Bullseye

I’ve update OSMC through GUI to to new Bullseye version. After update KODI will not start. Instead some logon screen appear. If I try to login (KODI season) it does something and return back to logon screen in few seconds.

some info:

osmc@osmc:/$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye

osmc@osmc:/$ sudo kodi
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

osmc@osmc:/$ sudo systemctl status mediacenter
● mediacenter.service - media center application
Loaded: loaded (/lib/systemd/system/mediacenter.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2022-09-23 08:46:43 CEST; 3h 31min ago
Main PID: 724 (mediacenter)
Tasks: 41 (limit: 3931)
CPU: 1h 26min 34.191s
CGroup: /system.slice/mediacenter.service
├─724 /bin/bash /usr/bin/mediacenter
├─762 sudo -u osmc LIRC_SOCKET_PATH=/var/run/lirc/lircd /usr/lib/kodi/kodi.bin --standalone -fs
└─763 /usr/lib/kodi/kodi.bin --standalone -fs

zář 23 10:09:24 osmc mediacenter[1572]: 2022-09-23 10:09:24.431658 apt_cache_action.py sending response
zář 23 10:09:24 osmc mediacenter[1572]: 2022-09-23 10:09:24.915007 apt_cache_action.py sending response
zář 23 10:09:24 osmc mediacenter[1572]: 2022-09-23 10:09:24.916032 apt_cache_action.py sending response
zář 23 10:09:24 osmc mediacenter[1572]: 2022-09-23 10:09:24.926018 apt_cache_action.py sending response
zář 23 10:09:24 osmc mediacenter[1572]: 2022-09-23 10:09:24.926869 apt_cache_action.py exiting
zář 23 10:09:24 osmc mediacenter[1572]: ===================================================================
zář 23 10:09:24 osmc sudo[1571]: pam_unix(sudo:session): session closed for user root
zář 23 10:09:32 osmc mediacenter[763]: [1.3K blob data]
zář 23 10:09:33 osmc mediacenter[763]: [196B blob data]
zář 23 10:09:33 osmc mediacenter[763]: [101B blob data]

I’ve tried to upload log. But it returned error:

osmc@osmc:/$ grab-logs -A
Grabbing log UNAME …
Grabbing log cmdline …
Grabbing log Debian version …
Grabbing log OSMC Build Information …
An error occurred while grabbing OSMC Build Information:
FileNotFoundError: [Errno 2] No such file or directory: ‘/etc/osmc_build_info’
Grabbing log Pi config …
Grabbing log Pi config-user …
Grabbing log GUI Settings (abridged) …
Grabbing log guisettings.xml …
Masking private information …
Grabbing log advancedsettings.xml …
An error occurred while grabbing advancedsettings.xml:
FileNotFoundError: [Errno 2] No such file or directory: ‘/home/osmc/.kodi/userdata/advancedsettings.xml’
Grabbing log sources.xml …
Masking private information …
Grabbing log fstab …
Masking private information …
Grabbing log mounts …
Grabbing log OSMC Packages …
Grabbing log All Other Packages …
Grabbing log APT term.log …
Grabbing log APT history.log …
Grabbing log APT sources.list …
Grabbing log APT apt.conf.d …
Grabbing log APT preferences.d …
Grabbing log APT sources.list.d …
Grabbing log System Journal …
Grabbing log lircd.conf …
Grabbing log init.d …
Grabbing log systemd …
Grabbing log Kernel Message Log …
Grabbing log Memory …
Grabbing log Diskspace …
Grabbing log /boot Contents …
Grabbing log edid-decode …
/sys/class/drm/card0-HDMI-A-1/edid: No such file or directory
An error occurred while grabbing edid-decode:
subprocess.CalledProcessError: Command ‘[’/usr/bin/edid-decode’, ‘/sys/class/drm/card0-HDMI-A-1/edid’]’ returned non-zero exit status 255.
Grabbing log ifconfig …
Grabbing log Kodi Log …
Masking private information …
Grabbing log Kodi Old Log …
Masking private information …
Writing logs to temp file …
Dispatching logs …
Exception Details:

Traceback (most recent call last):
File “/usr/bin/grab-logs”, line 1031, in dispatch_logs
raise ValueError(‘Upload Returned Empty String’)
ValueError: Upload Returned Empty String

Failed to upload log files, copying to /boot instead. (Unable to verify)

Try grab-logs -a

osmc@osmc:/$ grab-logs -a
Grabbing log APT term.log …
Grabbing log APT history.log …
Grabbing log APT sources.list …
Grabbing log APT apt.conf.d …
Grabbing log APT preferences.d …
Grabbing log APT sources.list.d …
Writing logs to temp file …
Dispatching logs …
Logs successfully uploaded.
Logs available at https://paste.osmc.tv/modenuhaja

Try grab-logs -X to upload Kodi logs

Not working. Probably because created file has 48MB.

osmc@osmc:/$ grab-logs -X
Grabbing log Kodi Log …
Masking private information …
Grabbing log Kodi Old Log …
Masking private information …
Writing logs to temp file …
Dispatching logs …
Exception Details:

Traceback (most recent call last):
File “/usr/bin/grab-logs”, line 1031, in dispatch_logs
raise ValueError(‘Upload Returned Empty String’)
ValueError: Upload Returned Empty String

Failed to upload log files, copying to /boot instead. (Unable to verify)

ls -lah .kodi/temp/

Old log is very big. Full of:
2022-09-22 22:19:17.433 T:824 INFO : CActiveAESink::OpenSink - initialize sink
2022-09-22 22:19:17.433 T:824 INFO : CAESinkALSA::Initialize - Attempting to open device “default”
2022-09-22 22:19:17.439 T:824 INFO : CAESinkALSA - Unable to open device “default” for playback
2022-09-22 22:19:17.439 T:824 ERROR : CAESinkALSA::Initialize - failed to initialize device “default”
2022-09-22 22:19:17.439 T:824 ERROR : CActiveAESink::OpenSink - no sink was returned
2022-09-22 22:19:17.439 T:823 ERROR : ActiveAE::InitSink - returned error

I have deleted old log and rebooted. I’ve been able to upload logs now:

osmc@osmc:~$ grab-logs -A
Grabbing log UNAME …
Grabbing log cmdline …
Grabbing log Debian version …
Grabbing log OSMC Build Information …
An error occurred while grabbing OSMC Build Information:
FileNotFoundError: [Errno 2] No such file or directory: ‘/etc/osmc_build_info’
Grabbing log Pi config …
Grabbing log Pi config-user …
Grabbing log GUI Settings (abridged) …
Grabbing log guisettings.xml …
Masking private information …
Grabbing log advancedsettings.xml …
An error occurred while grabbing advancedsettings.xml:
FileNotFoundError: [Errno 2] No such file or directory: ‘/home/osmc/.kodi/userdata/advancedsettings.xml’
Grabbing log sources.xml …
Masking private information …
Grabbing log fstab …
Masking private information …
Grabbing log mounts …
Grabbing log OSMC Packages …
Grabbing log All Other Packages …
Grabbing log APT term.log …
Grabbing log APT history.log …
Grabbing log APT sources.list …
Grabbing log APT apt.conf.d …
Grabbing log APT preferences.d …
Grabbing log APT sources.list.d …
Grabbing log System Journal …
Grabbing log lircd.conf …
Grabbing log init.d …
Grabbing log systemd …
Grabbing log Kernel Message Log …
Grabbing log Memory …
Grabbing log Diskspace …
Grabbing log /boot Contents …
Grabbing log edid-decode …
/sys/class/drm/card0-HDMI-A-1/edid: No such file or directory
An error occurred while grabbing edid-decode:
subprocess.CalledProcessError: Command ‘[’/usr/bin/edid-decode’, ‘/sys/class/drm/card0-HDMI-A-1/edid’]’ returned non-zero exit status 255.
Grabbing log ifconfig …
Grabbing log Kodi Log …
Masking private information …
Grabbing log Kodi Old Log …
Masking private information …
Writing logs to temp file …
Dispatching logs …
Logs successfully uploaded.
Logs available at https://paste.osmc.tv/qehocaduhe

Your system is heavily customised – you have Chrome and an X display server installed. I suspect that you probably have installed an incompatible version of MESA which is preventing Kodi from starting. The upgrade to Bullseye didn’t complete successfully – there are issues with udisks; likely because there is another automount daemon that has been installed.

You have installed PulseAudio as well which will lead to problems.

I would suggest reinstalling OSMC.

Hi, thank you for checking logs.

Chrome and X display server come from Chromium plugin:

I’m not aware of installing MESA drivers. It may come with other package.

There shouldn’t be any other automount deamon. I’ve added USB disk to fstab to make it available at boot time:
osmc@osmc:~$ cat /etc/fstab
/dev/mmcblk0p1 /boot vfat defaults,noatime,noauto,x-systemd.automount 0 0
UUID=“95e13a90-40c4-4f8a-b19c-efc20f1f2f51” /mnt/data ext4 defaults,nofail,noatime 0 0

There is no PulseAudio right now. I’ve removed it few minutes after installing it. (Trying to make bluetooth keybord connection persistent. It didn’t help. I managed it later without PulseAudio lib.)

I would rather not reinstall OSMC. :frowning: I’ve put to much work into system.

Unfortunately this is not a setup that we can support. From our opinion you are no slinger running an OSMC installation.

I’ve fixed it by removing X11 and Chromium plugin

Seem like I have to look this over again:

Got two ideas to check against:

  • graphics driver is compiled against older libs?
  • due to distribution upgrade, the dependency of graphical login service is actuated again, but the service is disabled?