ubuntu14.04安装gitlab后执行gitlab-ctl reconfigure报错

执行gitlab-ctl reconfigure时报错

报错如下:

……
Errorexecutingaction`run`onresource'bash[migrategitlab-railsdatabase]'
……
CompiledResource:
------------------
#Declaredin/opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/recipes/sysvinit.rb:28:in`from_file'

execute("initq")do
action[:nothing]
retries0
retry_delay2
default_guard_interpreter:execute
command"initq"
backup5
returns0
declared_type:execute
cookbook_name"runit"
recipe_name"sysvinit"
end

Platform:
---------
x86_64-linux


Runninghandlers:
Runninghandlerscomplete
ChefClientfailed.3resourcesupdatedin03seconds
root@kickseed:~#


原因:ubuntu14.04版本应该是trusty 版本,而下载的gitlab软件包却是 xenial版本的

解决:下载trusty版本的 gitlab 进行安装


查看ubuntu版本的方法:

root@kickseed:~#lsb_release-a
NoLSBmodulesareavailable.
DistributorID:	Ubuntu
Description:	Ubuntu14.04.5LTS
Release:	14.04
Codename:	trusty



参考:

https://gitlab.com/gitlab-org/omnibus-gitlab/issues/721

其中的

Update

Ireinstalledgitlab-ce_8.11.4-ce.0_amd64.debwithcorrectflavourubuntu\trustyandnoweverythingisgood.

相关文章

ubuntu退出redis的示例:指定配置文件方式启动源码redis:roo...
ubuntu中mysql改密码忘了的解决方法:1.在终端中切换到root权...
ubuntu安装mysql失败的解决方法原因:可能是原有的MySQL还有...
使用centos和ubuntu建站的区别有以下几点1.CentOS是Linux发行...
ubuntu图形界面和字符界面切换的方法:可以通过快捷键CTRL+A...
ubuntu中重启mysql失败的解决方法1.首先,在ubuntu命令行中,...