I have Gitlab-CE version 13.1.3, currently, I’m unable to create by using [gitlab-rake gitlab:backup:create] command. I’m unable to understand the issue, below is the error log
rake aborted!
ActiveRecord::IrreversibleOrderError: Relation has no current order and table has no primary key to be used as default order
/opt/gitlab/embedded/service/gitlab-rails/app/models/concerns/cacheable_attributes.rb:19:in current_without_cache' /opt/gitlab/embedded/service/gitlab-rails/app/models/concerns/cacheable_attributes.rb:63:in
rescue in current’
/opt/gitlab/embedded/service/gitlab-rails/app/models/concerns/cacheable_attributes.rb:51:in current' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/current_settings.rb:48:in
uncached_application_settings’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/current_settings.rb:30:in ensure_application_settings!' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/current_settings.rb:7:in
block in current_application_settings’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/null_request_store.rb:34:in fetch' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/safe_request_store.rb:12:in
fetch’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/current_settings.rb:7:in current_application_settings' /opt/gitlab/embedded/service/gitlab-rails/lib/banzai/filter/asset_proxy_filter.rb:40:in
initialize_settings’
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/asset_proxy_settings.rb:5:in block in <top (required)>' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/asset_proxy_settings.rb:4:in
<top (required)>’
/opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:5:in <top (required)>' /opt/gitlab/embedded/bin/bundle:23:in
load’
/opt/gitlab/embedded/bin/bundle:23:in `’
Caused by:
ActiveRecord::IrreversibleOrderError: Relation has no current order and table has no primary key to be used as default order
/opt/gitlab/embedded/service/gitlab-rails/app/models/concerns/cacheable_attributes.rb:19:in current_without_cache' /opt/gitlab/embedded/service/gitlab-rails/app/models/concerns/cacheable_attributes.rb:55:in
current’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/current_settings.rb:48:in uncached_application_settings' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/current_settings.rb:30:in
ensure_application_settings!’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/current_settings.rb:7:in block in current_application_settings' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/null_request_store.rb:34:in
fetch’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/safe_request_store.rb:12:in fetch' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/current_settings.rb:7:in
current_application_settings’
/opt/gitlab/embedded/service/gitlab-rails/lib/banzai/filter/asset_proxy_filter.rb:40:in initialize_settings' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/asset_proxy_settings.rb:5:in
block in <top (required)>’
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/asset_proxy_settings.rb:4:in <top (required)>' /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:5:in
<top (required)>’
/opt/gitlab/embedded/bin/bundle:23:in load' /opt/gitlab/embedded/bin/bundle:23:in
’
Tasks: TOP => gitlab:backup:create => gitlab_environment => environment
(See full trace by running task with --trace) Kindly please help me…Thanks in advance!