[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Redmine and Gemfile.lock problem



On Sunday, March 9, 2025 12:33:49 AM MST Pirate Praveen wrote:

> On 8/3/25 11:43 PM, Soren Stoutner wrote:

> > In updating to the latest Redmine (6.0.3) which is compatible with

> > Rails 7 a problem has manifested with the Gemfile.lock file during

> > configuration.

> >

> >

> > Errno::ENOENT: No such file or directory @ rb_sysopen -

> > /usr/share/redmine/Gemfile.lock

>

> See gitlab's postinst, Gemfile.lock is generated early in postinst. We

> also generate it in systemd service since we can't set dpkg trigger for

> native packages.


Thanks for the pointer.  Looking at gitlab’s postinst was helpful for me.


In redmine’s case, the problem ended up being that /var/lib/redmine was not being automatically created, or at least not in time, which caused the creation of /var/lib/redmine/Gemfile.lock to fail.


It isn’t clear to me why this change manifested with this release and why it worked earlier, but I was able to resolve it by manually creating /var/lib/redmine if needed in postinst.


https://salsa.debian.org/ruby-team/redmine/-/blob/master/debian/redmine.postinst?ref_type=heads#L19-20


--

Soren Stoutner

soren@debian.org

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: