Tried to upgrade from GITLAB v9 to v10.5 on CENTOS 7. But getting the following errors:
[root@msspxsrp01 sri]# yum install -y gitlab-ce
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
–> Running transaction check
—> Package gitlab-ce.x86_64 0:10.5.2-ce.0.el7 will be installed
–> Processing Dependency: policycoreutils-python for package: gitlab-ce-10.5.2-ce.0.el7.x86_64
–> Running transaction check
—> Package policycoreutils-python.x86_64 0:2.5-17.1.el7 will be installed
–> Processing Dependency: setools-libs >= 3.3.8-1 for package: policycoreutils-python-2.5-17.1.el7.x86_64
–> Processing Dependency: libsemanage-python >= 2.5-5 for package: policycoreutils-python-2.5-17.1.el7.x86_64
–> Processing Dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.5-17.1.el7.x86_64
–> Processing Dependency: python-IPy for package: policycoreutils-python-2.5-17.1.el7.x86_64
–> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: policycoreutils-python-2.5-17.1.el7.x86_64
–> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: policycoreutils-python-2.5-17.1.el7.x86_64
–> Processing Dependency: libcgroup for package: policycoreutils-python-2.5-17.1.el7.x86_64
–> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: policycoreutils-python-2.5-17.1.el7.x86_64
–> Processing Dependency: checkpolicy for package: policycoreutils-python-2.5-17.1.el7.x86_64
–> Processing Dependency: libqpol.so.1()(64bit) for package: policycoreutils-python-2.5-17.1.el7.x86_64
–> Processing Dependency: libapol.so.4()(64bit) for package: policycoreutils-python-2.5-17.1.el7.x86_64
–> Running transaction check
—> Package audit-libs-python.x86_64 0:2.7.6-3.el7 will be installed
—> Package checkpolicy.x86_64 0:2.5-4.el7 will be installed
—> Package libcgroup.x86_64 0:0.41-13.el7 will be installed
—> Package libsemanage-python.x86_64 0:2.5-8.el7 will be installed
—> Package python-IPy.noarch 0:0.75-6.el7 will be installed
—> Package setools-libs.x86_64 0:3.3.8-1.1.el7 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================================
Package Arch Version Repository Size
Installing:
gitlab-ce x86_64 10.5.2-ce.0.el7 localrepo 407 M
Installing for dependencies:
audit-libs-python x86_64 2.7.6-3.el7 localrepo 73 k
checkpolicy x86_64 2.5-4.el7 localrepo 290 k
libcgroup x86_64 0.41-13.el7 localrepo 65 k
libsemanage-python x86_64 2.5-8.el7 localrepo 104 k
policycoreutils-python x86_64 2.5-17.1.el7 localrepo 446 k
python-IPy noarch 0.75-6.el7 localrepo 32 k
setools-libs x86_64 3.3.8-1.1.el7 localrepo 612 k
Transaction Summary
Install 1 Package (+7 Dependent packages)
Total download size: 409 M
Installed size: 1.2 G
Downloading packages:
Total 363 MB/s | 409 MB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : setools-libs-3.3.8-1.1.el7.x86_64 [ ] 1/8
Installing : checkpolicy-2.5-4.el7.x86_64 [ ] 2/8
Installing : libcgroup-0.41-13.el7.x86_64 [ ] 3/8
Installing : python-IPy-0.75-6.el7.noarch [ ] 4/8
Installing : audit-libs-python-2.7.6-3.el7.x86_64 [ ] 5/8
Installing : libsemanage-python-2.5-8.el7.x86_64 [ ] 6/8
Installing : policycoreutils-python-2.5-17.1.el7.x86_64 [ ] 7/8
Installing : gitlab-ce-10.5.2-ce.0.el7.x86_64 8/8
Checking PostgreSQL executables:Starting Chef Client, version 12.21.31
resolving cookbooks for run list: [“gitlab::postgresql-bin”]
Synchronizing Cookbooks:
- gitlab (0.0.1)
- package (0.1.0)
- postgresql (0.1.0)
- registry (0.1.0)
- mattermost (0.1.0)
- consul (0.0.0)
- gitaly (0.1.0)
- letsencrypt (0.1.0)
- nginx (0.1.0)
- runit (0.14.2)
- acme (3.1.0)
- compat_resource (12.19.0)
Installing Cookbook Gems:
Compiling Cookbooks…
Converging 1 resources
Recipe: gitlab::postgresql-bin
- ruby_block[Link postgresql bin files to the correct version] action run (skipped due to only_if)
Running handlers:
Running handlers complete
Deprecated features used!
Property notifies
of resource templatesymlink
overwrites an existing method. Please use a different property name. This will raise an exception in Chef 13. at 1 location:
- /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/resources/templatesymlink.rb:32:in class_from_file' See https://docs.chef.io/deprecations_property_name_collision.html for further details. Property
sensitiveof resource
templatesymlinkoverwrites an existing method. Please use a different property name. This will raise an exception in Chef 13. at 1 location: - /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/resources/templatesymlink.rb:34:in
class_from_file’
See https://docs.chef.io/deprecations_property_name_collision.html for further details.
Chef Client finished, 0/1 resources updated in 03 seconds
Checking PostgreSQL executables: OK
Shutting down all GitLab services except those needed for migrations
ok: down: gitaly: 0s, normally up
ok: down: gitlab-monitor: 1s, normally up
ok: down: gitlab-workhorse: 0s, normally up
ok: down: logrotate: 1s, normally up
ok: down: nginx: 0s, normally up
ok: down: node-exporter: 0s, normally up
ok: down: postgres-exporter: 1s, normally up
ok: down: postgresql: 0s, normally up
ok: down: prometheus: 1s, normally up
ok: down: redis: 0s, normally up
ok: down: redis-exporter: 1s, normally up
ok: down: sidekiq: 0s, normally up
ok: down: unicorn: 1s, normally up
ok: run: postgresql: (pid 20280) 0s
ok: run: redis: (pid 20288) 1s
run: postgresql: (pid 20280) 1s; run: log: (pid 1062) 9710s
run: redis: (pid 20288) 1s; run: log: (pid 1065) 9710s
Reconfiguring GitLab to apply migrations
Starting Chef Client, version 12.21.31
resolving cookbooks for run list: [“gitlab”]
Synchronizing Cookbooks:
- gitlab (0.0.1)
- package (0.1.0)
- postgresql (0.1.0)
- registry (0.1.0)
- mattermost (0.1.0)
- consul (0.0.0)
- gitaly (0.1.0)
- letsencrypt (0.1.0)
- nginx (0.1.0)
- runit (0.14.2)
- acme (3.1.0)
- compat_resource (12.19.0)
Installing Cookbook Gems:
Compiling Cookbooks…
================================================================================
Recipe Compile Error in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb
NoMethodError
undefined method `parse_variables’ for GitlabWorkhorse:Module
Did you mean? instance_variables
Cookbook Trace:
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/gitlab.rb:241:in generate_config' /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/config.rb:26:in
from_file’
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:26:in `from_file’
Relevant File Content:
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/gitlab.rb:
234: end
235:
236: results
237: end
238:
239: def generate_config(node_name)
240: generate_secrets(node_name)
241>> GitlabWorkhorse.parse_variables
242: # Parse Gitaly before gitlab-shell and gitlab-rails
243: # because we need details for repositories_storages
244: Gitaly.parse_variables
245: GitlabShell.parse_variables
246: GitlabRails.parse_variables
247: Logging.parse_variables
248: Redis.parse_variables
249: Postgresql.parse_variables
250: Unicorn.parse_variables
System Info:
chef_version=12.21.31
platform=centos
platform_version=7.4.1708
ruby=ruby 2.3.6p384 (2017-12-14 revision 61254) [x86_64-linux]
program_name=chef-client worker: ppid=20295;start=12:01:29;
executable=/opt/gitlab/embedded/bin/chef-client
Running handlers:
There was an error running gitlab-ctl reconfigure:
undefined method `parse_variables’ for GitlabWorkhorse:Module
Did you mean? instance_variables
Running handlers complete
Chef Client failed. 0 resources updated in 03 seconds
Ensuring PostgreSQL is updated:
Checking for an omnibus managed postgresql:
Checking for an omnibus managed postgresql: OK
Checking for a newer version of PostgreSQL to install
No new version of PostgreSQL installed, nothing to upgrade to
Ensuring PostgreSQL is updated: OK
Restarting previously running GitLab services
timeout: down: gitaly: 1s, normally up, want up
ok: run: gitlab-monitor: (pid 21048) 0s
ok: run: gitlab-workhorse: (pid 21051) 0s
ok: run: logrotate: (pid 21064) 0s
ok: run: nginx: (pid 21082) 1s
timeout: down: node-exporter: 0s, normally up, want up
timeout: down: postgres-exporter: 0s, normally up, want up
ok: run: postgresql: (pid 20280) 103s
ok: run: prometheus: (pid 22597) 1s
ok: run: redis: (pid 20288) 104s
ok: run: redis-exporter: (pid 22628) 0s
ok: run: sidekiq: (pid 22647) 0s
ok: run: unicorn: (pid 22670) 1s
_______ __ __ __
/ ____(_) /_/ / ____ _/ /_
/ / / / / / / __ `/ __
/ // / / // // // / // /
_//_/___/_,/./
Upgrade complete! If your GitLab server is misbehaving try running
sudo gitlab-ctl restart
before anything else.
If you need to roll back to the previous version you can use the database
backup made during the upgrade (scroll up for the filename).
Verifying : libsemanage-python-2.5-8.el7.x86_64 1/8
Verifying : audit-libs-python-2.7.6-3.el7.x86_64 2/8
Verifying : python-IPy-0.75-6.el7.noarch 3/8
Verifying : gitlab-ce-10.5.2-ce.0.el7.x86_64 4/8
Verifying : policycoreutils-python-2.5-17.1.el7.x86_64 5/8
Verifying : libcgroup-0.41-13.el7.x86_64 6/8
Verifying : checkpolicy-2.5-4.el7.x86_64 7/8
Verifying : setools-libs-3.3.8-1.1.el7.x86_64 8/8
Installed:
gitlab-ce.x86_64 0:10.5.2-ce.0.el7
Dependency Installed:
audit-libs-python.x86_64 0:2.7.6-3.el7 checkpolicy.x86_64 0:2.5-4.el7 libcgroup.x86_64 0:0.41-13.el7
libsemanage-python.x86_64 0:2.5-8.el7 policycoreutils-python.x86_64 0:2.5-17.1.el7 python-IPy.noarch 0:0.75-6.el7
setools-libs.x86_64 0:3.3.8-1.1.el7
Complete!
[root@msspxsrp01 sri]#