On ശ, Jan 4, 2020 at 17:31, Libor Klepáč <[email protected]> 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.

