首页 新闻 会员 周边 捐助

gitlab 9.5.8升级至10.1.0后访问一直502

0
悬赏园豆:20 [已解决问题] 解决于 2017-10-22 20:00

将gitlab从9.5.8升级至10.1.0

# rpm -Uvh gitlab-ce-10.1.0-ce.0.el6.x86_64.rpm
...
Chef Client finished, 1/1 resources updated in 04 seconds
Checking PostgreSQL executables: OK
Found /etc/gitlab/skip-auto-migrations, exiting...  
Upgrade complete! If your GitLab server is misbehaving try running
  sudo gitlab-ctl restart
before anything else.
If you need to roll back to the previous version you can use the database
backup made during the upgrade (scroll up for the filename).

但升级后访问gitlab站点一直是502

dudu的主页 dudu | 高人七级 | 园豆:30925
提问于:2017-10-22 19:24
< >
分享
最佳答案
0

运行 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 配置文件中将"#"改为"&num;"后,重新运行 gitlab-ctl reconfigure 问题解决。

dudu | 高人七级 |园豆:30925 | 2017-10-22 19:58
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册