Artix Linux Forum

Init systems => S6 => Topic started by: Anthony on 20 January 2023, 23:47:02

Title: [SOLVED] S6-rc: fatal: unable to take locks
Post by: Anthony on 20 January 2023, 23:47:02
Hi there,

Would you mind telling me what ‘unable to take locks’ means? Having installed a fresh system using the latest ISO I encountered the issue with compiling database in S6. After entering the routine commands such as ‘s6-service add default <service>” and then ‘s6-db-reload’ I would get the following result: S6-rc: fatal: unable to take locks: no such file or directory.

That had never happened before the s6 got updated January 14th.

Thank you in advance.
Title: Re: S6-rc: fatal: unable to take locks
Post by: Dudemanguy on 21 January 2023, 16:46:06
From my experience, this usually means that /run/s6-rc isn't available or something like that. Why this would happen to you, I have no idea.
Title: Re: S6-rc: fatal: unable to take locks
Post by: Anthony on 21 January 2023, 19:06:06
For the sake of testing, I just tried installing from the previous weekly ISO (Artix-plasma 26.12.22) when S6 hadn’t been updated to 2.11.2.0-1, and there were no problems with database compilation. So I’ve had ‘unable to take locks’ message since after S6 got updated.
Title: Re: S6-rc: fatal: unable to take locks
Post by: Dudemanguy on 21 January 2023, 21:32:22
Well there was a major library bump (skalibs) in between that time. I'm not sure if possibly it would require a reboot (?).
Title: Re: S6-rc: fatal: unable to take locks
Post by: Anthony on 22 January 2023, 07:15:38
A reboot won’t take effect either. I even did a clean install using base ISO and all was the same. Could it be a CPU issue, how do you think? I’m using quiet an old laptop, it’s 8 years old Lenovo G50-70.
Title: Re: S6-rc: fatal: unable to take locks
Post by: Dudemanguy on 22 January 2023, 17:06:37
The CPU doesn't matter at all.
Title: Re: S6-rc: fatal: unable to take locks
Post by: Anthony on 22 January 2023, 18:31:16
Well, I don’t know what could cause the error, It may be roughness or something else. I will be waiting till the next release of S6.

Thank you!
Title: Re: S6-rc: fatal: unable to take locks
Post by: Dudemanguy on 22 February 2023, 15:17:00
So after some investigation in IRC, it turns out that this was actually an s6-rc bug. I could trigger it as well, but I just never noticed it. It was fixed in 0.5.4.1 which is in the repos now.
Title: Re: [SOLVED] S6-rc: fatal: unable to take locks
Post by: Anthony on 28 February 2023, 05:45:50
It has solved my problem. Thank you for your assistance!