Post-install script failed during an install with Geo secondary enabled
I think @regisF ran into something similar a while back. When I attempted to install this custom package with geo_secondary_role['enable'] = true
, the install went through fine but somehow the post-install script reported a failure:
$ sudo dpkg -i gitlab-ee_8.1.0+git.2533.61e9f1d-rc1.ce.0_amd64.deb
(Reading database ... 343072 files and directories currently installed.)
Preparing to unpack gitlab-ee_8.1.0+git.2533.61e9f1d-rc1.ce.0_amd64.deb ...
gitlab preinstall: Automatically backing up only the GitLab SQL database (excluding everything else!)
Dumping database ...
Dumping PostgreSQL database gitlabhq_production ... [DONE]
done
Dumping repositories ...
[SKIPPED]
Dumping uploads ...
[SKIPPED]
Dumping builds ...
[SKIPPED]
Dumping artifacts ...
[SKIPPED]
Dumping pages ...
[SKIPPED]
Dumping lfs objects ...
[SKIPPED]
Dumping container registry images ...
[DISABLED]
Creating backup archive: 1491541372_2017_04_07_gitlab_backup.tar ... done
Uploading backup archive to remote storage ... skipped
Deleting tmp directories ... done
done
Deleting old backups ... skipping
Unpacking gitlab-ee (8.1.0+git.2533.61e9f1d-rc1.ce.0) over (8.1.0+git.2495.2704e0c-rc1.ce.0) ...
Setting up gitlab-ee (8.1.0+git.2533.61e9f1d-rc1.ce.0) ...
*. *.
*** ***
***** *****
.****** *******
******** ********
,,,,,,,,,***********,,,,,,,,,
,,,,,,,,,,,*********,,,,,,,,,,,
.,,,,,,,,,,,*******,,,,,,,,,,,,
,,,,,,,,,*****,,,,,,,,,.
,,,,,,,****,,,,,,
.,,,***,,,,
,*,.
_______ __ __ __
/ ____(_) /_/ / ____ _/ /_
/ / __/ / __/ / / __ `/ __ \
/ /_/ / / /_/ /___/ /_/ / /_/ /
\____/_/\__/_____/\__,_/_.___/
gitlab: Thank you for installing GitLab!
gitlab: To configure and start GitLab, RUN THE FOLLOWING COMMAND:
sudo gitlab-ctl reconfigure
gitlab: GitLab should be reachable at http://stanhu-geo-secondary.gitlap.com
gitlab: Otherwise configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
gitlab: And running reconfigure again.
gitlab:
gitlab: For a comprehensive list of configuration options please see the Omnibus GitLab readme
gitlab: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
gitlab:
Checking PostgreSQL executables:Starting Chef Client, version 12.12.15
resolving cookbooks for run list: ["gitlab::postgresql-bin"]
Synchronizing Cookbooks:
- package (0.0.0)
- gitlab (0.0.1)
- runit (0.14.2)
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
Chef Client finished, 0/1 resources updated in 02 seconds
Checking PostgreSQL executables: OK
Shutting down all GitLab services except those needed for migrations
ok: down: geo-postgresql: 176296s, normally up
ok: down: gitaly: 176295s, normally up
ok: down: gitlab-monitor: 176295s, normally up
ok: down: gitlab-workhorse: 176294s, normally up
ok: down: logrotate: 176294s, normally up
ok: down: nginx: 176294s, normally up
ok: down: node-exporter: 176293s, normally up
ok: down: postgres-exporter: 176293s, normally up
ok: down: postgresql: 0s, normally up
ok: down: prometheus: 176292s, normally up
ok: down: redis: 1s, normally up
ok: down: redis-exporter: 176292s, normally up
ok: down: sidekiq: 176291s, normally up
ok: down: unicorn: 176291s, normally up
ok: run: postgresql: (pid 11999) 0s
ok: run: redis: (pid 12006) 1s
run: postgresql: (pid 11999) 1s; run: log: (pid 1661) 1317774s
run: redis: (pid 12006) 1s; run: log: (pid 1506) 1317774s
Reconfiguring GitLab to apply migrations
Starting Chef Client, version 12.12.15
resolving cookbooks for run list: ["gitlab-ee"]
Synchronizing Cookbooks:
- runit (0.14.2)
- package (0.0.0)
- gitlab-ee (0.0.1)
- gitlab (0.0.1)
Installing Cookbook Gems:
Compiling Cookbooks...
Recipe: gitlab::default
* directory[/etc/gitlab] action create (up to date)
/sbin/init: unrecognized option '--version'
-.mount loaded active mounted /
Converging 405 resources
Running handlers:
Running handlers complete
Chef Client failed. 0 resources updated in 07 seconds
dpkg: error processing package gitlab-ee (--install):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
gitlab-ee