Omnibus update and reconfigure issue


#1

Hello guys,
I updated from 11.4 to 11.5 and I receive this error.
Spent 3 days and I don’t know how to fix it. Tried many times going from scratch and reapplying the update.
Gitlab.rb config is empty except for the url to the git and LDAP information.

There was an error running gitlab-ctl reconfigure:

bash[migrate gitlab-rails database] (gitlab::database_migrations line 50) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received ‘1’
---- Begin output of “bash” “/tmp/chef-script20181212-1319-elxre4” ----
STDOUT: rake aborted!
StandardError: An error has occurred, all later migrations canceled:

the column: argument must be set to a column name to use for ordering rows
/opt/gitlab/embedded/service/gitlab-rails/app/models/concerns/each_batch.rb:52:in each_batch' /opt/gitlab/embedded/service/gitlab-rails/db/post_migrate/20181014121030_enqueue_redact_links.rb:59:inschedule_migration’
/opt/gitlab/embedded/service/gitlab-rails/db/post_migrate/20181014121030_enqueue_redact_links.rb:43:in block in up' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/migration_helpers.rb:254:indisable_statement_timeout’
/opt/gitlab/embedded/service/gitlab-rails/db/post_migrate/20181014121030_enqueue_redact_links.rb:42:in up' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:52:inblock (3 levels) in <top (required)>’
/opt/gitlab/embedded/bin/bundle:23:in load' /opt/gitlab/embedded/bin/bundle:23:in

Caused by:
ArgumentError: the column: argument must be set to a column name to use for ordering rows
/opt/gitlab/embedded/service/gitlab-rails/app/models/concerns/each_batch.rb:52:in each_batch' /opt/gitlab/embedded/service/gitlab-rails/db/post_migrate/20181014121030_enqueue_redact_links.rb:59:inschedule_migration’
/opt/gitlab/embedded/service/gitlab-rails/db/post_migrate/20181014121030_enqueue_redact_links.rb:43:in block in up' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/database/migration_helpers.rb:254:indisable_statement_timeout’
/opt/gitlab/embedded/service/gitlab-rails/db/post_migrate/20181014121030_enqueue_redact_links.rb:42:in up' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:52:inblock (3 levels) in <top (required)>’
/opt/gitlab/embedded/bin/bundle:23:in load' /opt/gitlab/embedded/bin/bundle:23:in
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
== 20181014121030 EnqueueRedactLinks: migrating ===============================
– execute(“SET statement_timeout TO 0”)
-> 0.0007s
– execute(“RESET ALL”)
-> 0.0003s
STDERR:
---- End output of “bash” “/tmp/chef-script20181212-1319-elxre4” ----
Ran “bash” “/tmp/chef-script20181212-1319-elxre4” returned 1