I’m using gitlab-ce package on Centos 7. Updated version today and was warned that prometheus v 1.X is being deprecated, and to run gitlab-ctl prometheus-upgrade to go to version 2.
Deprecations:
== Prometheus ==
Detected Prometheus version 1.x. Version 1.x has been deprecated and support will be removed in GitLab version 12.0.
To upgrade to Promtheus 2.x, use `gitlab-ctl prometheus-upgrade` command.
Running this command will migrate all your existing data to format supported by Prometheus 2.x.
This can be a time consuming operation. To skip migrating the data, and instead remove and start fresh, run `gitlab-ctl prometheus-upgrade --skip-data-migration`.
Check https://docs.gitlab.com/omnibus/update/gitlab_11_changes.html#11-4 for details.
---
gitlab Reconfigured!
Upon running the command I get an error about a undefined method doing a version check, see below. Any help is appreciated.
[user@server]$ sudo gitlab-ctl prometheus-upgrade
/opt/gitlab/embedded/service/omnibus-ctl/lib/gitlab_ctl/prometheus_upgrade.rb:31:in `version_string_check': undefined method `[]' for nil:NilClass (NoMethodError)
from /opt/gitlab/embedded/service/omnibus-ctl/lib/gitlab_ctl/prometheus_upgrade.rb:22:in `is_version_2?'
from /opt/gitlab/embedded/service/omnibus-ctl/prometheus-upgrade.rb:35:in `block in load_file'
from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:197:in `block in add_command'
from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:746:in `run'
from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/omnibus-ctl-0.6.0/bin/omnibus-ctl:31:in `<top (required)>'
from /opt/gitlab/embedded/bin/omnibus-ctl:23:in `load'
from /opt/gitlab/embedded/bin/omnibus-ctl:23:in `<main>'