TL;DR: I have a Raspberry Pi 3 with an external WD hard drive.
Problem: I removed the external HD and reconnected it again, then the sad face loop started.
osmc to the
Since there was no post with “/dev/fb0 permission denied” here in the forum, I’m documenting this, so maybe it helps someone else in the future.
If anyone has experimented this before, or has an explanation of why the problem appeared in the first place, I’m curious to know why.
I still don’t know what caused the problem, and how it started.
I had the
.kodi directory on the external hard drive, then symlinked to OSMC’s home dir with
ln -s /mnt/hd/.kodi /home/osmc/.kodi.
Restarting the Pi without the hard drive connected would show the sad face loop.
Using ssh, I removed the symlink and moved the
.kodi dir permanently from the HD to the home dir.
But the sad face persisted.
Steps to identify the problem
Connection via ssh worked, so I ran
sudo systemctl status mediacenter and also
sudo journalctl -f.
open /dev/fb0: Permission denied appeared in both.
(...) Nov 08 18:00:43 styx mediacenter: open /dev/fb0: Permission denied Nov 08 18:00:49 styx sudo: pam_unix(sudo:session): session closed for user osmc Nov 08 18:00:49 styx mediacenter: /usr/bin/mediacenter: line 142: 5011 Segmentation fault sudo -u osmc LIRC_SOCKET_PATH=/var/run/lirc/lircd $KODI --standalone -fs Nov 08 18:00:49 styx mediacenter: Kodi exited with return code 139 after 0 hours, 0 minutes and 6 seconds (...)
My logs collected with
sudo grab-logs -a: https://paste.osmc.tv/cemuwopabe
I discovered this “frame buffer” when I stumbled upon this this post: How to turn on/off Raspberry Pi display? (permission errors) - Setup, Configuration and Use / Scripts & Rules - openHAB Community.
Then I ran these commands and Kodi started without errors:
$ sudo systemctl stop mediacenter $ ls -al /dev/fb0 crw-rw---- 1 root video 29, 0 Nov 8 17:29 /dev/fb0 $ sudo usermod -a -G video osmc $ groups osmc osmc : osmc video docker $ sudo systemctl start mediacenter
What didn’t work
- Renaming/removing the
~/.kodidirectory and let Kodi recreate it
- Removing packages I had installed recently:
sudo apt-get purge manpages manpages-dev manpages-posix manpages-posix-dev
- Upgrading the system:
sudo apt-get update && sudo apt-get dist-upgrade