将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
运行 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 问题解决。