[DRE-maint] Bug#821377: gitlab: update fails

Hanspeter Kunz hkunz at ifi.uzh.ch
Mon Jun 6 10:45:45 UTC 2016


On Sat, 2016-06-04 at 00:54 +0200, Hanspeter Kunz wrote:
> On Don, 2016-06-02 at 21:51 +0530, Pirate Praveen wrote:
> > 
> > On Mon, 18 Apr 2016 10:10:04 +0200 Xavier Bestel <xavier.bestel at fre
> > e.
> > fr>
> > wrote:
> > > 
> > > rake aborted!
> > > TypeError: no implicit conversion of Pathname into String
> > > /usr/share/gitlab/lib/tasks/migrate/add_limits_mysql.rake:1:in
> > > `<top
> > > (required)>'
> > are you using mysql?
> I see exactly the same error as Xavier, and yes, I am using mysql.

I was able to "fix" my system doing the following steps:

1. make a symbolic link /usr/share/gitlab/db => /var/lib/gitlab/db

why: the db migration scripts are looking in /usr/share/... for
snippets (at least
/usr/share/gitlab/lib/tasks/migrate/add_limits_mysql.rake does), but
the snippets are actually installed under /var/lib/...

2. change the first line of
/usr/share/gitlab/lib/tasks/migrate/add_limits_mysql.rake to:

require Rails.root.join('db/migrate/limits_to_mysql').to_s
                                                     ^^^^^

I doubt that the above workarounds are the proper fixes. But at least
my system is now up and running again.

Anyway, I hope this helps others and the maintainer to resolve the bug.

Best,
Hp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5367 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20160606/63646be2/attachment-0001.bin>


More information about the Pkg-ruby-extras-maintainers mailing list