FS#60639 - [gitlab] Broken dependency to icu 62

Attached to Project: Community Packages
Opened by Jonas Hahnfeld (hahnjo) - Tuesday, 30 October 2018, 07:44 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 31 October 2018, 07:46 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
GitLab 11.4.3 fails to run migrations and probably also fails to start:
rake aborted!
LoadError: libicuuc.so.62: cannot open shared object file: No such file or directory - /usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/charlock_holmes-0.7.6/lib/charlock_holmes/charlock_holmes.so
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `require'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `block in require'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in `load_dependency'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `require'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/charlock_holmes-0.7.6/lib/charlock_holmes.rb:1:in `<top (required)>'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `require'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `block in require'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in `load_dependency'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `require'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/github-linguist-5.3.3/lib/linguist/blob_helper.rb:2:in `<top (required)>'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `require'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `block in require'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in `load_dependency'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `require'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/github-linguist-5.3.3/lib/linguist.rb:1:in `<top (required)>'
/usr/share/webapps/gitlab/config/application.rb:5:in `<top (required)>'
/usr/share/webapps/gitlab/Rakefile:5:in `require'
/usr/share/webapps/gitlab/Rakefile:5:in `<top (required)>'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
(See full trace by running task with --trace)

Additional info:
$ pacman -Q icu gitlab
icu 63.1-2
gitlab 11.4.3-1
$ ldd /usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/charlock_holmes-0.7.6/lib/charlock_holmes/charlock_holmes.so
linux-vdso.so.1 (0x00007ffe5dbbf000)
libruby.so.2.3 => /usr/lib/libruby.so.2.3 (0x00007f22056b2000)
libicuuc.so.62 => not found
libicui18n.so.62 => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f2205523000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f220535f000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f2205345000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f2205322000)
libgmp.so.10 => /usr/lib/libgmp.so.10 (0x00007f220508f000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f220508a000)
libcrypt.so.1 => /usr/lib/libcrypt.so.1 (0x00007f2205050000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007f2204ecb000)
/usr/lib64/ld-linux-x86-64.so.2 (0x00007f2205957000)

Steps to reproduce:
Try to run migrations or start GitLab
This task depends upon

Closed by  Doug Newgard (Scimmia)
Wednesday, 31 October 2018, 07:46 GMT
Reason for closing:  Fixed
Additional comments about closing:  gitlab 11.4.3-2
Comment by ShihHsien Chan (wood1978) - Tuesday, 30 October 2018, 09:27 GMT
Have the same problem and gitlab.target fails to start also.
Comment by Nils Czernia (freaknils) - Tuesday, 30 October 2018, 12:25 GMT
Dito
Comment by Sven-Hendrik Haase (Svenstaro) - Tuesday, 30 October 2018, 15:06 GMT
Try rel -2
Comment by ShihHsien Chan (wood1978) - Wednesday, 31 October 2018, 02:25 GMT
gitLab.target success start after below step:
1. upgrade gitlab 11.4.3-2
2. change permission under /etc/webapps/ as below:

# ls -l /etc/webapps/
total 8
drwxrwxr-x 2 root gitlab 4096 Oct 31 09:36 gitlab
drwxrwx--- 2 root gitlab 4096 Oct 30 14:49 gitlab-shell

3. upgrade your database

# su - gitlab -s /bin/sh -c "cd '/usr/share/webapps/gitlab'; EXECJS_RUNTIME=Disabled bundle-2.3 exec rake db:migrate RAILS_ENV=production --trace"
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:migrate
== 20180910153412 AddTokenDigestToPersonalAccessTokens: migrating =============
-- change_column(:personal_access_tokens, :token, :string, {:null=>true})
-> 0.2686s
-- add_column(:personal_access_tokens, :token_digest, :string)
-> 0.0008s
== 20180910153412 AddTokenDigestToPersonalAccessTokens: migrated (0.2696s) ====

== 20180910153413 AddIndexToTokenDigestOnPersonalAccessTokens: migrating ======
-- transaction_open?()
-> 0.0000s
-- index_exists?(:personal_access_tokens, :token_digest, {:unique=>true, :algorithm=>:concurrently})
-> 0.0163s
-- execute("SET statement_timeout TO 0")
-> 0.0004s
-- add_index(:personal_access_tokens, :token_digest, {:unique=>true, :algorithm=>:concurrently})
-> 0.0825s
-- execute("RESET ALL")
-> 0.0006s
== 20180910153413 AddIndexToTokenDigestOnPersonalAccessTokens: migrated (0.1006s)

== 20180913142237 ScheduleDigestPersonalAccessTokens: migrating ===============
== 20180913142237 ScheduleDigestPersonalAccessTokens: migrated (0.0240s) ======

== 20181014121030 EnqueueRedactLinks: migrating ===============================
-- execute("SET statement_timeout TO 0")
-> 0.0005s
-- execute("RESET ALL")
-> 0.0007s
== 20181014121030 EnqueueRedactLinks: migrated (0.2267s) ======================

** Invoke db:_dump (first_time)
** Execute db:_dump
** Invoke db:schema:dump (first_time)
** Invoke environment
** Invoke db:load_config
** Execute db:schema:dump

4. Restart service

# systemctl daemon-reload
# systemctl restart gitlab-sidekiq gitlab-unicorn gitlab-workhorse gitlab-gitaly gitlab-mailroom.service

Comment by Jonas Hahnfeld (hahnjo) - Wednesday, 31 October 2018, 07:41 GMT
Fixes the problem for me, but gitlab-gitaly is still broken (see https://bugs.archlinux.org/task/60654)

Loading...