Kodi just lost my profiles

I just restarted my box, and it did an autologin as master, and when I checked my two profiles are gone.

When I SSH to the box, I still see the profile directories at: /home/osmc/.kodi/userdata/profiles

Is there a config file I can modify so that I don’t lose all of my settings, as that would be a HUGE pain!

Thanks!
-Zac

Hi Zac,

If the directories are still there, then dubbing logs may throw some light on why they haven’t load. Please provide.

Thanks Tom.

Sorry, panic mode.

Ok, I’ve uploaded the logs: https://paste.osmc.io/abuwilovan

But to fix the issue, I made a quick copy of my existing profiles directory:

sudo cp -rf ~/.kodi/userdata/profiles ~/.kodi/userdata/profiles_bak

I then try to recreate a user via the GUI, and it found the existing profile directory, but when I selected ok/done it gave me an error about the directory needed to be rw?

So I deleted the exsiting profiles directory:

sudo rm -rf ~/.kodi/userdata/profiles

Then I went back to GUI and re-created the user, which completed successfully. I did that for each of my users.

Then via SSH, I copied all the contents of the individual user directories from my profiles_bak folder, over the existing contents of ~/.kodi/userdata/profiles/{each user}

Just to make sure, I then executed the following:

sudo chown -R osmc:osmc ~/.kodi/userdata/profiles
reboot

And everything is back to the way it was {phew}.

-Zac

Kodi was losing settings before. This should now be fixed in this update. Unfortunately I could only work with (a limited number of) logs provided to me, as I’ve struggled to replicate the problem myself

Sam

Was there an upgrade last night? I was replacing my cable-modem/router last night.

When I woke up I saw an OMSC msg, about a filed upgrade, but I assumed it was just related to the network being up and down.

I just ran:
sudo apt-get update
sudo apt-get dist-upgrade

and I get:

Get:1 http://security.debian.org/ jessie/updates/main libfreetype6-dev armhf 2.5.2-3+deb8u2 [590 kB]
Get:2 Index of /debian jessie/main libenca0 armhf 1.16-1 [54.9 kB]
Get:3 http://security.debian.org/ jessie/updates/main libfreetype6 armhf 2.5.2-3+deb8u2 [417 kB]
Get:4 http://security.debian.org/ jessie/updates/main libicu52 armhf 52.1-8+deb8u5 [6582 kB]
Get:5 http://apt.osmc.tv/ jessie/main smb-app-osmc all 1.1.9 [3518 B]
Get:6 http://apt.osmc.tv/ jessie/main vero364-image-3.14.29-17-osmc arm64 17 [12.9 MB]
Get:7 http://security.debian.org/ jessie/updates/main mysql-common all 5.5.55-0+deb8u1 [86.0 kB]
Get:8 http://security.debian.org/ jessie/updates/main libmysqlclient18 armhf 5.5.55-0+deb8u1 [633 kB]
Get:9 http://security.debian.org/ jessie/updates/main ghostscript armhf 9.06~dfsg-2+deb8u5 [83.9 kB]
Get:10 http://security.debian.org/ jessie/updates/main libgs9 armhf 9.06~dfsg-2+deb8u5 [1657 kB]
Get:11 http://apt.osmc.tv/ jessie/main base-files-osmc all 2.1.4 [15.7 kB]
Get:12 http://apt.osmc.tv/ jessie/main mediacenter-addon-osmc all 3.0.646 [4422 kB]
Get:13 http://security.debian.org/ jessie/updates/main libgs9-common all 9.06~dfsg-2+deb8u5 [1980 kB]
Get:14 http://apt.osmc.tv/ jessie/main mediacenter-skin-osmc all 17.0.2-3 [8254 kB]
Get:15 http://apt.osmc.tv/ jessie/main vero3-libcec-osmc armhf 4.0.2-4 [312 kB]
Get:16 http://apt.osmc.tv/ jessie/main armv7-libass-osmc armhf 0.13.5 [120 kB]
Get:17 http://apt.osmc.tv/ jessie/main vero3-mediacenter-osmc armhf 17.1.0-3 [41.2 MB]
Get:18 http://apt.osmc.tv/ jessie/main vero364-kernel-osmc arm64 3.5.6 [994 B]
Get:19 http://apt.osmc.tv/ jessie/main armv7-connman-osmc armhf 1.3.4-2 [352 kB]
Fetched 79.7 MB in 13s (5919 kB/s)
Preconfiguring packages …
Selecting previously unselected package libenca0:armhf.
(Reading database … 43148 files and directories currently installed.)
Preparing to unpack …/libenca0_1.16-1_armhf.deb …
Unpacking libenca0:armhf (1.16-1) …
Preparing to unpack …/libfreetype6-dev_2.5.2-3+deb8u2_armhf.deb …
Unpacking libfreetype6-dev (2.5.2-3+deb8u2) over (2.5.2-3+deb8u1) …
Preparing to unpack …/libfreetype6_2.5.2-3+deb8u2_armhf.deb …
Unpacking libfreetype6:armhf (2.5.2-3+deb8u2) over (2.5.2-3+deb8u1) …
Preparing to unpack …/libicu52_52.1-8+deb8u5_armhf.deb …
Unpacking libicu52:armhf (52.1-8+deb8u5) over (52.1-8+deb8u4) …
Preparing to unpack …/mysql-common_5.5.55-0+deb8u1_all.deb …
Unpacking mysql-common (5.5.55-0+deb8u1) over (5.5.54-0+deb8u1) …
Preparing to unpack …/libmysqlclient18_5.5.55-0+deb8u1_armhf.deb …
Unpacking libmysqlclient18:armhf (5.5.55-0+deb8u1) over (5.5.54-0+deb8u1) …
Preparing to unpack …/smb-app-osmc_1.1.9_all.deb …
Unpacking smb-app-osmc (1.1.9) over (1.1.8) …
Selecting previously unselected package vero364-image-3.14.29-17-osmc.
Preparing to unpack …/vero364-image-3.14.29-17-osmc_17_arm64.deb …
Examining /etc/kernel/preinst.d/
Done.
Unpacking vero364-image-3.14.29-17-osmc (17) …
Preparing to unpack …/base-files-osmc_2.1.4_all.deb …
Unpacking base-files-osmc (2.1.4) over (2.1.1) …
Preparing to unpack …/mediacenter-addon-osmc_3.0.646_all.deb …
Unpacking mediacenter-addon-osmc (3.0.646) over (3.0.631) …
Preparing to unpack …/mediacenter-skin-osmc_17.0.2-3_all.deb …
Unpacking mediacenter-skin-osmc (17.0.2-3) over (17.0.2-1) …
Preparing to unpack …/vero3-libcec-osmc_4.0.2-4_armhf.deb …
Unpacking vero3-libcec-osmc (4.0.2-4) over (4.0.2-2) …
Preparing to unpack …/armv7-libass-osmc_0.13.5_armhf.deb …
Unpacking armv7-libass-osmc (0.13.5) over (0.13.4) …
Preparing to unpack …/vero3-mediacenter-osmc_17.1.0-3_armhf.deb …
Unpacking vero3-mediacenter-osmc (17.1.0-3) over (17.1.0-1) …
Preparing to unpack …/vero364-kernel-osmc_3.5.6_arm64.deb …
Unpacking vero364-kernel-osmc (3.5.6) over (3.4.8) …
Preparing to unpack …/armv7-connman-osmc_1.3.4-2_armhf.deb …
Unpacking armv7-connman-osmc (1.3.4-2) over (1.3.3-1) …
Preparing to unpack …/ghostscript_9.06~dfsg-2+deb8u5_armhf.deb …
Unpacking ghostscript (9.06~dfsg-2+deb8u5) over (9.06~dfsg-2+deb8u4) …
Preparing to unpack …/libgs9_9.06~dfsg-2+deb8u5_armhf.deb …
Unpacking libgs9 (9.06~dfsg-2+deb8u5) over (9.06~dfsg-2+deb8u4) …
Preparing to unpack …/libgs9-common_9.06~dfsg-2+deb8u5_all.deb …
Unpacking libgs9-common (9.06~dfsg-2+deb8u5) over (9.06~dfsg-2+deb8u4) …
Processing triggers for man-db (2.7.0.2-5) …
Processing triggers for desktop-file-utils (0.22-1) …
Processing triggers for mime-support (3.58) …
Processing triggers for dbus (1.8.22-0+deb8u1) …
Setting up libenca0:armhf (1.16-1) …
Setting up libfreetype6:armhf (2.5.2-3+deb8u2) …
Setting up libfreetype6-dev (2.5.2-3+deb8u2) …
Setting up libicu52:armhf (52.1-8+deb8u5) …
Setting up mysql-common (5.5.55-0+deb8u1) …
Setting up libmysqlclient18:armhf (5.5.55-0+deb8u1) …
Setting up smb-app-osmc (1.1.9) …
Setting up vero364-image-3.14.29-17-osmc (17) …

Hmm. There is a symbolic link /lib/modules/3.14.29-17-osmc/build
However, I can not read it: No such file or directory
Therefore, I am deleting /lib/modules/3.14.29-17-osmc/build

Hmm. The package shipped with a symbolic link /lib/modules/3.14.29-17-osmc/source
However, I can not read the target: No such file or directory
Therefore, I am deleting /lib/modules/3.14.29-17-osmc/source

Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.14.29-17-osmc /boot/vmlinuz-3.14.29-17-osmc
run-parts: executing /etc/kernel/postinst.d/inform-updater 3.14.29-17-osmc /boot/vmlinuz-3.14.29-17-osmc
run-parts: executing /etc/kernel/postinst.d/upload-to-emmc 3.14.29-17-osmc /boot/vmlinuz-3.14.29-17-osmc
7+1 records in
7+1 records out
8007680 bytes (8.0 MB) copied, 0.57723 s, 13.9 MB/s
0+1 records in
0+1 records out
37884 bytes (38 kB) copied, 0.0180295 s, 2.1 MB/s
Setting up base-files-osmc (2.1.4) …
Setting up mediacenter-addon-osmc (3.0.646) …
Setting up mediacenter-skin-osmc (17.0.2-3) …
Setting up vero3-libcec-osmc (4.0.2-4) …
Setting up armv7-libass-osmc (0.13.5) …
Setting up vero3-mediacenter-osmc (17.1.0-3) …
Setting up vero364-kernel-osmc (3.5.6) …
Setting up armv7-connman-osmc (1.3.4-2) …
Setting up libgs9-common (9.06~dfsg-2+deb8u5) …
Setting up libgs9 (9.06~dfsg-2+deb8u5) …
Setting up ghostscript (9.06~dfsg-2+deb8u5) …
Processing triggers for libc-bin (2.19-18+deb8u7) …

No, the update was released today, just a few hours ago:

All updates are announced on the blog.

Great, I’ll make a note of that.

Is doing the upgrade via apt-get sufficient, or should I do it through the GUI as well?

Thanks for the help.

I’ll keep a backup of my profiles directory incase this happens again. Let me know if I can profile any additional information.

THANKS!
-Zac

It’s the same process.

Hopefully no more loss of settings now.

Hi,

I must had misread the first post, I was under the impression this was after the update. Anyway glad its sorted.

Thanks Tom.