将gitlab从9.5.8升级至10.1.0但升级后访问gitlab站点一直是502
1 回答
POPMUISE
TA贡献1765条经验 获得超5个赞
运行 gitlab-ctl reconfigure 出现下面的错误:
YAML syntax error occurred while parsing /opt/gitlab/embedded/service/gitlab-rails/config/database.yml. Please note that YAML must be consistently indented using spaces. Tabs are not allowed. Error: (<unknown>): found unknown escape character while parsing a quoted scalar at line 12 column 13
打开 database.yml 一看,发现字符串中的"#"被替换成了"\#",到 /etc/gitlab/gitlab.rb 配置文件中将"#"改为"#"后,重新运行 gitlab-ctl reconfigure 问题解决。
- 1 回答
- 0 关注
- 956 浏览
添加回答
举报
0/150
提交
取消