Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: s6-rc-bundle-update: fatal: unable to take lock on /run/s6-rc/compiled (Read 1179 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

s6-rc-bundle-update: fatal: unable to take lock on /run/s6-rc/compiled

Hi, I'm following the installation instructions and when i run s6-rc-bundle-update add chrony i get s6-rc-bundle-update: fatal: unable to take lock on /run/s6-rc/compiled: Permission denied even though i am root
TIA

Re: s6-rc-bundle-update: fatal: unable to take lock on /run/s6-rc/compiled

Reply #1
Oh, I see you're following the wiki guide. The s6-rc example command is incorrect. Because you are chrooted into a system which is not actually running s6-rc (there is no /run directory in the chroot), s6-rc-bundle-update finds no lock and fails. What the command should actually be is.

Code: [Select]
s6-rc-bundle-update -c /etc/s6/rc/compiled add default chrony

The -c argument merely specifies a path to the actual database you want to modify. I'll update the wiki entry.

Re: s6-rc-bundle-update: fatal: unable to take lock on /run/s6-rc/compiled

Reply #2
Oh, I see you're following the wiki guide. The s6-rc example command is incorrect. Because you are chrooted into a system which is not actually running s6-rc (there is no /run directory in the chroot), s6-rc-bundle-update finds no lock and fails. What the command should actually be is.

Code: [Select]
s6-rc-bundle-update -c /etc/s6/rc/compiled add default chrony

The -c argument merely specifies a path to the actual database you want to modify. I'll update the wiki entry.

Thanks for your reply, but when i run the command i get s6-rc-bundle: fatal: identifier chrony does not exist in database /etc/s6/rc/compiled although i have chrony-s6 installed

Re: s6-rc-bundle-update: fatal: unable to take lock on /run/s6-rc/compiled

Reply #3
I double checked and it's actually "chronyd" heh.