I tried searching but could not find an answer.
I’m trying to use this OCI container in Incus: https://hub.docker.com/r/matthuisman/kodi-headless
Default storage pool as root, dir driver.
The startup fails with this error:
Starting Kodi..
terminate called after throwing an instance of 'spdlog::spdlog_ex'
what(): Failed opening file /root/.kodi/temp/kodi.log for writing: Permission denied
Aborted
/usr/bin/kodi: 81: cannot create /root/kodi_crashlog-20250916_122020.log: Permission denied
/usr/bin/kodi: 82: cannot create /root/kodi_crashlog-20250916_122020.log: Permission denied
etc.
So it looks like the kodi binary is trying to start as a normal user but the storage is created as root and so it fails.
I tried “incus storage volume create default kodi_root initial.uid=1000 initial.gid=1000 initial.mode=0700” but I can’t use this for root: “Root disk entry may not have a “source” property set”
Any idea how to make this work?
Edit: Chowning the log file inside container for kodi user works, I guess that gives me some options. I’d gladly still take idea for a best solve.
Edit2: Currently this disk config seems to work with the volume initial.uid=1000 initial.gid=1000.
kodi_root:
path: /root
pool: default
source: kodi_root
type: disk
root:
path: /
pool: default
type: disk
Not sure if it’s the best way to do this, but it works.