Migration failure: TypeError: can't quote Array
Description
New Gitlab chart installations using an external RDS database report migration failure:
rake aborted!
TypeError: can't quote Array
/srv/gitlab/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/quoting.rb:25:in `quote'
/srv/gitlab/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/postgresql/quoting.rb:69:in `quote'
/srv/gitlab/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.7/lib/arel/collectors/substitute_binds.rb:20:in `add_bind'
/srv/gitlab/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.7/lib/arel/visitors/to_sql.rb:743:in `visit_ActiveModel_Att
Environment
Impacted environment:
- GitLab Helm Chart
- External RDS database
Impacted offerings:
- GitLab Self-Managed
Impacted versions:
- 17.10.3
Solution
Disable the quote_all_identifiers parameter in the RDS for PostgreSQL DB.
Cause
There is an open Issue to determine the cause and fix.