gitlab升级出错

大瘦 2017-03-25 05:32:28
[execute] rake aborted!
LoadError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/charlock_holmes-0.7.3/lib/charlock_holmes/charlock_holmes.so) - /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/charlock_holmes-0.7.3/lib/charlock_holmes/charlock_holmes.so
/opt/gitlab/embedded/service/gitlab-rails/config/application.rb:5:in `<top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/Rakefile:5:in `require'
/opt/gitlab/embedded/service/gitlab-rails/Rakefile:5:in `<top (required)>'
/opt/gitlab/embedded/bin/bundle:22:in `load'
/opt/gitlab/embedded/bin/bundle:22:in `<main>'
(See full trace by running task with --trace)

================================================================================
Error executing action `run` on resource 'bash[migrate gitlab-rails database]'
================================================================================

Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of "bash" "/tmp/chef-script20161115-25315-wwigyq" ----
STDOUT: rake aborted!
LoadError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/charlock_holmes-0.7.3/lib/charlock_holmes/charlock_holmes.so) - /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/charlock_holmes-0.7.3/lib/charlock_holmes/charlock_holmes.so
/opt/gitlab/embedded/service/gitlab-rails/config/application.rb:5:in `<top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/Rakefile:5:in `require'
/opt/gitlab/embedded/service/gitlab-rails/Rakefile:5:in `<top (required)>'
/opt/gitlab/embedded/bin/bundle:22:in `load'
/opt/gitlab/embedded/bin/bundle:22:in `<main>'
(See full trace by running task with --trace)
STDERR:
---- End output of "bash" "/tmp/chef-script20161115-25315-wwigyq" ----
Ran "bash" "/tmp/chef-script20161115-25315-wwigyq" returned 1

Resource Declaration:
---------------------
# In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/database_migrations.rb

51: bash "migrate gitlab-rails database" do
52: code <<-EOH
53: set -e
54: log_file="#{node['gitlab']['gitlab-rails']['log_directory']}/gitlab-rails-db-migrate-$(date +%Y-%m-%d-%H-%M-%S).log"
55: umask 077
56: /opt/gitlab/bin/gitlab-rake gitlab:db:configure 2>& 1 | tee ${log_file}
57: STATUS=${PIPESTATUS[0]}
58: echo $STATUS > #{db_migrate_status_file}
59: exit $STATUS
60: EOH
61: environment env_variables unless env_variables.empty?
62: notifies :run, 'execute[enable pg_trgm extension]', :before unless omnibus_helper.not_listening?("postgresql") || !node['gitlab']['postgresql']['enable']
63: notifies :run, "execute[clear the gitlab-rails cache]", :immediately unless omnibus_helper.not_listening?("redis") || !node['gitlab']['gitlab-rails']['rake_cache_clear']
64: dependent_services.each do |svc|
65: notifies :restart, svc, :immediately
66: end
67: not_if "(test -f #{db_migrate_status_file}) && (cat #{db_migrate_status_file} | grep -Fx 0)"
68: only_if { node['gitlab']['gitlab-rails']['auto_migrate'] }
69: end

Compiled Resource:
------------------
# Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/database_migrations.rb:51:in `from_file'

bash("migrate gitlab-rails database") do
action [:run]
retries 0
retry_delay 2
default_guard_interpreter :default
command "migrate gitlab-rails database"
backup 5
returns 0
code " set -e\n log_file=\"/var/log/gitlab/gitlab-rails/gitlab-rails-db-migrate-$(date +%Y-%m-%d-%H-%M-%S).log\"\n umask 077\n /opt/gitlab/bin/gitlab-rake gitlab:db:configure 2>& 1 | tee ${log_file}\n STATUS=${PIPESTATUS[0]}\n echo $STATUS > /var/opt/gitlab/gitlab-rails/upgrade-status/db-migrate-21b9a7f813271c80fcabfc4beb1dcd95-3d2890c\n exit $STATUS\n"
interpreter "bash"
declared_type :bash
cookbook_name "gitlab"
recipe_name "database_migrations"
not_if "(test -f /var/opt/gitlab/gitlab-rails/upgrade-status/db-migrate-21b9a7f813271c80fcabfc4beb1dcd95-3d2890c) && (cat /var/opt/gitlab/gitlab-rails/upgrade-status/db-migrate-21b9a7f813271c80fcabfc4beb1dcd95-3d2890c | grep -Fx 0)"
only_if { #code block }
end

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


Running handlers:
Running handlers complete
Chef Client failed. 4 resources updated in 22 seconds
...全文
1468 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
曹宇飞丶 2017-11-09
  • 打赏
  • 举报
回复
/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found
qq_31086177 2017-11-08
  • 打赏
  • 举报
回复
问下楼主,你是怎么解决的呢
uid123 2017-03-25
  • 打赏
  • 举报
回复
换个更新源试试看。

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧