Updater failed -> already up to date
Created by: Pro
Updating to version 7.2 now requires cmake
as a dependency and therefore fails (see #7588 (closed)). After installing cmake manually the updater says the update was successful, but it wasn't obviously.
See the following command outputs:
root@ser:/home/git/gitlab# if [ -f bin/upgrade.rb ]; then sudo -u git -H ruby bi n/upgrade.rb; else sudo -u git -H ruby script/upgrade.rb; fi
GitLab 7 upgrade tool
Your version is 7.1.1
Latest available version for GitLab 7 is 7.2.0
Newer GitLab version is available
Do you want to upgrade (yes/no)? yes
Stash changed files
-> git stash
Saved working directory and index state WIP on (no branch): facfec4 Merge branch 'patch-release' into '7-1-stable'
HEAD is now at facfec4 Merge branch 'patch-release' into '7-1-stable'
-> OK
Get latest code
-> git fetch
remote: Counting objects: 1820, done.
remote: Compressing objects: 100% (898/898), done.
remote: Total 1820 (delta 1132), reused 1323 (delta 888)
Receiving objects: 100% (1820/1820), 527.00 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1132/1132), done.
From https://github.com/gitlabhq/gitlabhq
0702bd6..0210da2 5-0-stable -> origin/5-0-stable
* [new branch] 7-2-stable -> origin/7-2-stable
3ed2fce..8b1fe5f master -> origin/master
* [new tag] v7.2.0 -> v7.2.0
* [new tag] v7.2.0.rc1 -> v7.2.0.rc1
* [new tag] v7.2.0.rc2 -> v7.2.0.rc2
* [new tag] v7.2.0.rc3 -> v7.2.0.rc3
* [new tag] v7.2.0.rc4 -> v7.2.0.rc4
* [new tag] v7.2.0.rc5 -> v7.2.0.rc5
-> OK
Switch to new version
-> git checkout v7.2.0
Previous HEAD position was facfec4... Merge branch 'patch-release' into '7-1-sta ble'
HEAD is now at da5d33e... Bump VERSION to 7.2.0
-> OK
Install gems
-> bundle
Fetching source index from https://rubygems.org/
Using rake 10.3.2
Installing RedCloth 4.2.9
Using ace-rails-ap 2.0.1
Installing i18n 0.6.11
Using json 1.8.1
Using minitest 5.3.5
Using thread_safe 0.3.4
Installing tzinfo 1.2.2
Using activesupport 4.1.1
Using builder 3.2.2
Using erubis 2.7.0
Using actionview 4.1.1
Using rack 1.5.2
Using rack-test 0.6.2
Using actionpack 4.1.1
Using mime-types 1.25.1
Using polyglot 0.3.4
Using treetop 1.4.15
Using mail 2.5.4
Using actionmailer 4.1.1
Using activemodel 4.1.1
Using arel 5.0.1.20140414130214
Using activerecord 4.1.1
Using bundler 1.6.3
Using thor 0.19.1
Using railties 4.1.1
Using hike 1.2.3
Using multi_json 1.10.1
Using tilt 1.4.1
Using sprockets 2.11.0
Using sprockets-rails 2.1.3
Using rails 4.1.1
Using acts-as-taggable-on 2.4.1
Using asciidoctor 0.1.4
Using descendants_tracker 0.0.3
Using ice_nine 0.10.0
Using axiom-types 0.0.5
Using bcrypt 3.1.7
Using sass 3.2.19
Using bootstrap-sass 3.0.3.0
Using carrierwave 0.9.0
Using timers 1.1.0
Using celluloid 0.15.2
Using charlock_holmes 0.6.9.4
Using coercible 1.0.0
Using coffee-script-source 1.6.3
Using execjs 2.0.2
Using coffee-script 2.2.0
Using coffee-rails 4.0.1
Using colored 1.2
Using connection_pool 1.2.0
Installing creole 0.3.8
Using d3_rails 3.1.10
Using default_value_for 3.0.0
Using orm_adapter 0.5.0
Using warden 1.2.3
Using devise 3.2.4
Using devise-async 0.9.0
Using diff-lcs 1.2.5
Using diffy 3.0.3
Using dotenv 0.9.0
Using dropzonejs-rails 0.4.14
Using emoji 1.0.1
Using enumerize 0.7.0
Using equalizer 0.0.8
Using escape_utils 0.2.4
Using eventmachine 1.0.3
Using excon 0.32.1
Installing expression_parser 0.9.0
Using multipart-post 1.2.0
Installing faraday 0.8.9
Using faraday_middleware 0.9.0
Using formatador 0.2.4
Using net-ssh 2.8.0
Using net-scp 1.1.2
Using fog-core 1.21.1
Using fog-json 1.0.0
Using fog-brightbox 0.0.1
Using mini_portile 0.6.0
Using nokogiri 1.6.2.1
Using fog 1.21.0
Using font-awesome-rails 3.2.1.3
Using foreman 0.63.0
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
checking for cmake... no
ERROR: CMake is required to build Rugged.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/ruby
extconf failed, exit code 1
Gem files will remain installed in /home/git/gitlab/vendor/bundle/ruby/2.1.0/gem s/rugged-0.21.0 for inspection.
Results logged to /home/git/gitlab/vendor/bundle/ruby/2.1.0/extensions/x86_64-li nux/2.1.0-static/rugged-0.21.0/gem_make.out
An error occurred while installing rugged (0.21.0), and Bundler cannot continue.
Make sure that `gem install rugged -v '0.21.0'` succeeds before bundling.
-> FAILED
Failed to upgrade. Try to repeat task or proceed with upgrade manually
root@ser:/home/git/gitlab# apt-get install cmake
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libjs-jquery-ui-docs libtommath0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
cmake-data emacsen-common
The following NEW packages will be installed:
cmake cmake-data emacsen-common
0 upgraded, 3 newly installed, 0 to remove and 8 not upgraded.
Need to get 6789kB of archives.
After this operation, 17.2MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 ftp://ftp.hosteurope.de/mirror/archive.ubuntu.com/ lucid/main emacsen-common 1.4.19ubuntu1 [19.0kB]
Get:2 http://de.archive.ubuntu.com/ubuntu/ lucid-backports/main cmake-data 2.8.1-4~lucid1 [1979kB]
Get:3 http://de.archive.ubuntu.com/ubuntu/ lucid-backports/main cmake 2.8.1-4~lucid1 [4791kB]
Fetched 6789kB in 0s (13.8MB/s)
Selecting previously deselected package emacsen-common.
(Reading database ... 57342 files and directories currently installed.)
Unpacking emacsen-common (from .../emacsen-common_1.4.19ubuntu1_all.deb) ...
Selecting previously deselected package cmake-data.
Unpacking cmake-data (from .../cmake-data_2.8.1-4~lucid1_all.deb) ...
Selecting previously deselected package cmake.
Unpacking cmake (from .../cmake_2.8.1-4~lucid1_amd64.deb) ...
Setting up emacsen-common (1.4.19ubuntu1) ...
emacsen-common: Handling install of emacsen flavor emacs
Setting up cmake-data (2.8.1-4~lucid1) ...
emacsen-common: Handling install of emacsen flavor emacs
Setting up cmake (2.8.1-4~lucid1) ...
root@ser:/home/git/gitlab# if [ -f bin/upgrade.rb ]; then sudo -u git -H ruby bin/upgrade.rb; else sudo -u git -H ruby script/upgrade.rb; fi
GitLab 7 upgrade tool
Your version is 7.2.0
Latest available version for GitLab 7 is 7.2.0
You are using the latest GitLab version
root@ser:/home/git/gitlab#