执行gitlab-ctl reconfigure时报错
报错如下:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
……
Error executing action `run` on resource 'bash[migrate gitlab-rails database]'
……
Compiled Resource:
------------------
# Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/recipes/sysvinit.rb:28:in `from_file'
execute("init q") do
action [:nothing]
retries 0
retry_delay 2
default_guard_interpreter :execute
command "init q"
backup 5
returns 0
declared_type :execute
cookbook_name "runit"
recipe_name "sysvinit"
end
Platform:
---------
x86_64-linux
Running handlers:
Running handlers complete
Chef Client failed. 3 resources updated in 03 seconds
root@kickseed:~#
|
原因:ubuntu14.04版本应该是 trusty 版本,而下载的gitlab软件包却是 xenial版本的
解决:下载trusty版本的 gitlab 进行安装
查看ubuntu版本的方法:
1
2
3
4
5
6
|
root@kickseed:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
|
参考:
1
|
https://gitlab.com/gitlab-org/omnibus-gitlab/issues/721
|
其中的
1
2
3
|
Update
I reinstalled gitlab-ce_8.11.4-ce.0_amd64.deb with correct flavourubuntu\trusty and now everything is good.
|
本文转自 f_066 51CTO博客,原文链接:http://blog.51cto.com/ganmu/1954285,如需转载请自行联系原作者