Issue running OSMC/KODI

Hello,

I’m a newbie in OSMC and in Raspberry pi. I have an issue with the running of OSMC. It begin but than crash and show the sad face. I checked on the log and I saw this message file : “ERROR: Unable to create application. Exiting”.
I check online the reason that might cause this issue but don’t know which on it is:
I check the SD card by creating a file in the commend line and it did work even after rebooting the file was still there.
I did run the commend line “sudo systemctl start mediacenter” to restart the media center and it didn’t work.
I have access of each file in the folder /kodi/osmc/.kodi.
I also check the profile.xml as explained in some tutorial.

I’m lost and I don’t know what to check now. Can someone help me, please?
My logs : https://paste.osmc.tv/doligokogu
I don’t want to lose my data in it.

Thanks in advance.

Well done for running those tests first.

Kodi is crashing out with a segmentation error.

The first two steps you can take are to rename the directory /home/osmc/.kodi to something else, eg /home/osmc/kodi-backup. Then try to start mediacenter.

If Kodi fails to start, rename /home/osmc/kodi-backup back to /home/osmc/.kodi and reinstall the mediacenter package:

sudo apt-get install --reinstall rbp2-mediacenter-osmc

Let us know how you get on.

Thank you for the replay @dillthedog .

The second solution did work. Thank you. But Sadly I lost all my add-on and my previous setting. is it possible to get them back?

The second solution being the reinstall? If so, all your settings and add-ons were preserved in /home/osmc/kodi-backup, which you should have renamed to /home/osmc/.kodi before reinstalling.

Yes the second solution was indeed the reinstall.
I did renamed /home/osmc/kodi-backup into /home/osmc/.kodi just before the reinstalling.
But since I’m really a newbie, do you have a possible solution to me to recover those information?
I checked on the storage and I can see that my previous kodi is in the filesystem /dev/mmcblk0p2 and the new installation is in /dev/mmcblk0p1.

That’s not right. /dev/mmcblk0p1 is used for /boot only. Your log file shows this:

====================== Diskspace =================== qZy25Yas
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        369M     0  369M   0% /dev
tmpfs           374M  9.7M  364M   3% /run
/dev/mmcblk0p2   29G  6.2G   21G  24% /
tmpfs           374M     0  374M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           374M     0  374M   0% /sys/fs/cgroup
/dev/mmcblk0p1  240M   36M  204M  15% /boot
tmpfs            75M     0   75M   0% /run/user/1000

with only 30 MB used in /boot. Could you run another grab-logs -A and post the URL?

This is my new log file : https://paste.osmc.tv/mamapivabi
Thank you so much for staying and helping me!

I can’t see anything to support this theory. /boot is still 36 MB (I misread it as 30 MB). What makes you think that this is the case?

What’s the output from running ls -la ~ and ls -la ~/.kodi

Oh ok.
I thought so because of the 6.2Gb used. It’s closer to what I previously had. But now the new installation is empty. So I don’t know otherwise why does it take 6.2Gb? So I thought that my data from before the re-installation was in it.
Because I want to find them back and if possible re-install them. Is it possible?

Oh sorry this is the output from running ls -la ~/.kodi:
osmc@osmc:/dev$ ls -la ~/.kodi
total 32
drwxr-xr-x 8 osmc osmc 4096 Oct 30 22:25 .
drwxr-xr-x 11 osmc osmc 4096 Oct 30 22:25 …
drwxr-xr-x 18 osmc osmc 4096 Oct 30 23:30 addons
drwxr-xr-x 8 osmc osmc 4096 Oct 10 2017 kodi-backup
drwxr-xr-x 2 osmc osmc 4096 Oct 30 22:23 media
drwxr-xr-x 2 osmc osmc 4096 Oct 30 22:23 system
drwxr-xr-x 4 osmc osmc 4096 Oct 30 23:29 temp
drwxr-xr-x 9 osmc osmc 4096 Oct 30 23:29 userdata

There it is. Run the following:

cd
sudo systemctl stop mediacenter
mv .kodi/kodi-backup .
mv .kodi kodi-save
mv kodi-backup .kodi
sudo systemctl start mediacenter

You should then be running on the original configuration.

1 Like

cd
sudo systemctl stop mediacenter
mv .kodi/kodi-backup .
mv .kodi kodi-save
mv kodi-backup .kodi
sudo systemctl start mediacenter

Thank you so so much it work!! I got all my previous data back.
Did I made a mistake in the previous rename of the folder?

Thank you for your time and help !

Very likely.

Good to hear that you’re back up and running. I’m off to bed.

1 Like

Good night and thank you again for your help.