GitLab Unicorn Web 服务器不是 运行
GitLab Unicorn web server is not running
我使用这些说明安装了 gilab:gitlab.com
当 gitlab 启动时,我在控制台中收到一条消息:GitLab Unicorn Web 服务器不是 运行。
当我访问服务器时,在浏览器中出现 502 错误。
是unicorn.stderr.log
:link to plunker
出现这个错误的原因是什么?
NGINX 配置:link to plunker
gitlab.yml: link to plunker
您的 Unicorn 日志中的第一行突出了问题:
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/connection_specification.rb:177:in `rescue in spec': Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError)
您已指定要在 config/database.yml 文件中使用 MySQL,但 Gem mysql2
似乎未安装. mysql2
Gem 包含与 MySQL 数据库交互所必需的库。
以下命令:
gem list
将列出当前安装的 Gem,让您验证 mysql2
是否在其中。
安装文档的这一部分涵盖了安装 GitLab 所需的 Gems:
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md#install-gems
我使用这些说明安装了 gilab:gitlab.com
当 gitlab 启动时,我在控制台中收到一条消息:GitLab Unicorn Web 服务器不是 运行。
当我访问服务器时,在浏览器中出现 502 错误。
是unicorn.stderr.log
:link to plunker
出现这个错误的原因是什么?
NGINX 配置:link to plunker
gitlab.yml: link to plunker
您的 Unicorn 日志中的第一行突出了问题:
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/connection_specification.rb:177:in `rescue in spec': Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError)
您已指定要在 config/database.yml 文件中使用 MySQL,但 Gem mysql2
似乎未安装. mysql2
Gem 包含与 MySQL 数据库交互所必需的库。
以下命令:
gem list
将列出当前安装的 Gem,让您验证 mysql2
是否在其中。
安装文档的这一部分涵盖了安装 GitLab 所需的 Gems:
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md#install-gems