cannot load such file -- awesome_print
Summary
Install gitlab-ce version 10.3.3 by downloading deb package and using dpkg to install. An error occurs and the process is stopped.
Steps to reproduce
wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/debian/stretch/gitlab-ce_10.3.3-ce.0_amd64.deb/download.deb
sudo EXTERNAL_URL="http://127.0.0.1" dpkg -i gitlab-ce_10.3.3-ce.0_amd64.deb
What is the expected correct behavior?
Finish installing gitlab old version.
Relevant logs and/or screenshots
Preparing to unpack gitlab-ce_10.3.3-ce.0_amd64.deb ... [22/135]
gitlab preinstall:
gitlab preinstall: This node does not appear to be running a database
gitlab preinstall: Skipping version check, if you think this is an error exit now
gitlab preinstall:
Unpacking gitlab-ce (10.3.3-ce.0) over (10.3.3-ce.0) ...
Setting up gitlab-ce (10.3.3-ce.0) ...
Starting Chef Client, version 12.12.15
resolving cookbooks for run list: ["gitlab"]
Synchronizing Cookbooks:
- gitlab (0.0.1)
- package (0.1.0)
- registry (0.1.0)
- mattermost (0.1.0)
- consul (0.1.0)
- gitaly (0.1.0)
- runit (0.14.2)
Installing Cookbook Gems:
Compiling Cookbooks...
================================================================================ [2/135]
Recipe Compile Error in /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/output_helper.rb
================================================================================
LoadError
---------
cannot load such file -- awesome_print
Cookbook Trace:
---------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/output_helper.rb:1:in `<top (required)>'
Relevant File Content:
----------------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/output_helper.rb:
1>> require 'awesome_print'
2:
3: module OutputHelper
4: def quote(string)
5: string.to_s.inspect unless string.nil?
6: end
7:
8: def print_ruby_object(object)
9: object.ai(plain: true)
10: end
Platform:
---------
x86_64-linux
Running handlers:
There was an error running gitlab-ctl reconfigure:
cannot load such file -- awesome_print
Running handlers complete
Chef Client failed. 0 resources updated in 02 seconds
dpkg: error processing package gitlab-ce (--install):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
gitlab-ce