Instance created from a Docker image does not start

Hello,
new user here!

I’m tring to create a new LMS instance using the official Docker image https://hub.docker.com/r/epoupon/lms

This is what I did:

incus create docker:epoupon/lms:3.66.0 lms
incus storage volume create default lms-data
incus storage volume attach default lms-data lms /var/lms
incus config device add lms lms-mnt disk source=/mnt/nas/music path=/music
incus start lms

but the instance does not start because I get some errors:

incus /src/lxc/cgroups/cgfsng.c:cgfsng_monitor_destroy:925 - Device or resource busy - Failed to destroy 10
Failed to receive file descriptors for command "get_init_pid"

I noticed that if I don’t attach the lms-data volume then the instance will start without errors. I don’t understand why… Any ideas? Thx!

edit: I’m using Incus 6.12 on Debian 12.

Try incus console --show-log lms

Thank you,
this is the show-log output:

Caught std::exception: filesystem error: cannot create directories: Permission denied [/var/lms/cache]

(in the first message I reported the content of lxc.log from the ui, I thought it was the same thing)

I think the issue here is that the lms service use the lms user to creates its stuff but it cannot write to the attached volume. Is there a workaround?

I’m an idiot, I forgot to add shift=true to the volume :sweat_smile:

I changed the attach command to incus storage volume attach default lms-data lms /var/lms shift=true and now it works!

1 Like