ruby-arel (>= 6.0.4~) is crucial.

Fixes the following problem:

~~~~
TypeError: Cannot visit Integer
/usr/share/gitlab/app/models/application_setting.rb:243:in `rescue in current'
/usr/share/gitlab/app/models/application_setting.rb:232:in `current'
/usr/share/gitlab/lib/gitlab/current_settings.rb:43:in `uncached_application_settings'
/usr/share/gitlab/lib/gitlab/current_settings.rb:29:in `ensure_application_settings!'
/usr/share/gitlab/lib/gitlab/current_settings.rb:8:in `current_application_settings'
/usr/share/gitlab/lib/gitlab/metrics/influx_db.rb:21:in `settings'
/usr/share/gitlab/lib/gitlab/metrics/influx_db.rb:14:in `influx_metrics_enabled?'
/usr/share/gitlab/lib/gitlab/metrics.rb:7:in `enabled?'
/usr/share/gitlab/config/initializers/8_metrics.rb:122:in `<top (required)>'
/usr/share/gitlab/config/environment.rb:5:in `<top (required)>'

Caused by:
NoMethodError: undefined method `visit_Integer' for #<Arel::Visitors::PostgreSQL:0x00005648fdfdb190>
Did you mean?  visit_String
/usr/share/gitlab/app/models/application_setting.rb:243:in `rescue in current'
/usr/share/gitlab/app/models/application_setting.rb:232:in `current'
/usr/share/gitlab/lib/gitlab/current_settings.rb:43:in `uncached_application_settings'
/usr/share/gitlab/lib/gitlab/current_settings.rb:29:in `ensure_application_settings!'
/usr/share/gitlab/lib/gitlab/current_settings.rb:8:in `current_application_settings'
/usr/share/gitlab/lib/gitlab/metrics/influx_db.rb:21:in `settings'
/usr/share/gitlab/lib/gitlab/metrics/influx_db.rb:14:in `influx_metrics_enabled?'
/usr/share/gitlab/lib/gitlab/metrics.rb:7:in `enabled?'
/usr/share/gitlab/config/initializers/8_metrics.rb:122:in `<top (required)>'
/usr/share/gitlab/config/environment.rb:5:in `<top (required)>'

Caused by:
TypeError: Cannot visit Integer
/usr/share/gitlab/app/models/application_setting.rb:236:in `block in current'
/usr/share/gitlab/app/models/application_setting.rb:235:in `current'
/usr/share/gitlab/lib/gitlab/current_settings.rb:43:in `uncached_application_settings'
/usr/share/gitlab/lib/gitlab/current_settings.rb:29:in `ensure_application_settings!'
/usr/share/gitlab/lib/gitlab/current_settings.rb:8:in `current_application_settings'
/usr/share/gitlab/lib/gitlab/metrics/influx_db.rb:21:in `settings'
/usr/share/gitlab/lib/gitlab/metrics/influx_db.rb:14:in `influx_metrics_enabled?'
/usr/share/gitlab/lib/gitlab/metrics.rb:7:in `enabled?'
/usr/share/gitlab/config/initializers/8_metrics.rb:122:in `<top (required)>'
/usr/share/gitlab/config/environment.rb:5:in `<top (required)>'

Caused by:
NoMethodError: undefined method `visit_Integer' for #<Arel::Visitors::PostgreSQL:0x00005648fdfdb190>
Did you mean?  visit_String
/usr/share/gitlab/app/models/application_setting.rb:236:in `block in current'
/usr/share/gitlab/app/models/application_setting.rb:235:in `current'
/usr/share/gitlab/lib/gitlab/current_settings.rb:43:in `uncached_application_settings'
/usr/share/gitlab/lib/gitlab/current_settings.rb:29:in `ensure_application_settings!'
/usr/share/gitlab/lib/gitlab/current_settings.rb:8:in `current_application_settings'
/usr/share/gitlab/lib/gitlab/metrics/influx_db.rb:21:in `settings'
/usr/share/gitlab/lib/gitlab/metrics/influx_db.rb:14:in `influx_metrics_enabled?'
/usr/share/gitlab/lib/gitlab/metrics.rb:7:in `enabled?'
/usr/share/gitlab/config/initializers/8_metrics.rb:122:in `<top (required)>'
/usr/share/gitlab/config/environment.rb:5:in `<top (required)>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
dpkg: error processing package gitlab (--configure):
~~~~
This commit is contained in:
Dmitry Smirnov 2018-04-16 16:02:16 +10:00
parent bc55a2bc45
commit 8f0df06c7c

3
debian/control vendored
View file

@ -21,10 +21,10 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter,
rake (>= 12.3.0~),
bundler,
postgresql-client,
postgresql-contrib,
dbconfig-pgsql | dbconfig-no-thanks,
adduser (>= 3.34~),
bc,
postgresql-contrib,
redis-server (>= 2:2.8~),
nodejs (>= 4~),
nginx | httpd,
@ -37,6 +37,7 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter,
ruby-rails (<< 2:5),
ruby-rack-test (>= 0.7.0~),
ruby-rails-dom-testing (>= 1.0.6-2~),
ruby-arel (>= 6.0.4~),
ruby-rails-deprecated-sanitizer (>= 1.0.3~),
ruby-responders (>= 2.0~),
ruby-sprockets (>= 3.7~),