Bug 254954 - www/gitlab-ce 13.10.2 rake db:migrate task fails
Summary: www/gitlab-ce 13.10.2 rake db:migrate task fails
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Matthias Fechner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-10 19:28 UTC by hakan
Modified: 2021-04-11 12:29 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (mfechner)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hakan 2021-04-10 19:28:36 UTC
Hello,

I tried to update from 13.9.4 to 13.10.2, and after successfully building everything with portmaster, I got stopped at the following step:

```
su -l git -c "cd /usr/local/www/gitlab-ce && rake db:migrate RAILS_ENV=production"
rake aborted!
LoadError: /usr/local/lib/libgrpc.so.14: Undefined symbol "_ZN4absl14lts_2020_09_2319str_format_internal13FormatArgImpl8DispatchINS1_7VoidPtrEEEbNS2_4DataENS1_24FormatConversionSpecImplEPv" - /usr/local/lib/ruby/gems/2.7/gems/grpc-1.30.2/src/ruby/lib/grpc/grpc_c.so
/usr/local/www/gitlab-ce/config/application.rb:15:in `<top (required)>'
/usr/local/www/gitlab-ce/Rakefile:7:in `<top (required)>'
(See full trace by running task with --trace)
```

Are my installed grpc dependencies somehow wrong?

```
pkg info | grep grpc
grpc134-1.34.0_1               HTTP/2-based RPC framework
rubygem-grpc130-1.30.2_3       Ruby implementation of gRPC
```
Comment 1 Matthias Fechner freebsd_committer 2021-04-10 19:58:29 UTC
Make sure you very carefully follow the manual:
https://gitlab.fechner.net/mfechner/Gitlab-docu/-/blob/master/update/13.9-13.10-freebsd.md

Executing pkg autoremove is crucial.
Comment 2 hakan 2021-04-11 12:29:41 UTC
Thanks for the fast reply.

`pkg autoremove` did not help here.

Instead, I had to delete the `gitlab-ce` package and run `pkg autoremove` again to purge all of its dependencies from my system.

After that, portmaster successfully built `www/gitlab-ce` with all of its dependencies, and the rake tasks did not fail anymore. :)