[DRE-maint] Bug#925606: gitlab: Fail to upgrade (error with activesupport gem)
Pirate Praveen
praveen at onenetbeyond.org
Sat Jan 4 20:16:48 GMT 2020
On ശ, Jan 4, 2020 at 17:31, Libor Klepáč <libor.klepac at bcom.cz>
wrote:
> rake aborted!
> NoMethodError: undefined method `rails5?' for Gitlab:Module
> /usr/share/gitlab/config/initializers/mysql_set_length_for_binary_index
> es.rb:27:in `<top (required)>'
Usually when you see this error with an initializer, it means that
initializer was removed upstream but since we consider these as
configuration we need to manually remove those in debian package. So
you can just check the source package and see if the initializer is
still present and if not just remove it.
rm
/usr/share/gitlab/config/initializers/mysql_set_length_for_binary_indexes.rb
Sometimes our test environment does not have these initializers from
very old versions so we miss removing them in the maintscripts.
More information about the Pkg-ruby-extras-maintainers
mailing list