Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2018 17:19:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 233640] www/gitlab-ce rake tasks are failing
Message-ID:  <bug-233640-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233640

            Bug ID: 233640
           Summary: www/gitlab-ce rake tasks are failing
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: mfechner@FreeBSD.org
          Reporter: hakan@siktas.com
             Flags: maintainer-feedback?(mfechner@FreeBSD.org)
          Assignee: mfechner@FreeBSD.org

Hi,

I am not sure if this is a gitlab-ce bug or if I just messed up my setup.
Initially, the upgrade to www/gitlab-ce 11.5.0 went smoothly but a few days
later I got it in a state where it would refuse to stop/restart the service
because it could not regenerate its Gemfile.lock anymore. Afair, this was t=
he
result of some updated rubygem ports that I installed in the meantime.
After rebooting the server, GitLab does not work anymore. I did reinstall t=
he
port several times and also did the update to 11.5.1 but somehow it got
worse...

When I try to run the database migration I get:

su -l git -c "cd /usr/local/www/gitlab-ce && rake db:migrate
RAILS_ENV=3Dproduction"
/usr/local/www/gitlab-ce/lib/api/events.rb:21: warning: already initialized
constant API::Events::RedactedEvent
/usr/local/www/gitlab-ce/lib/api/events.rb:21: warning: previous definition=
 of
RedactedEvent was here
rake aborted!
NoMethodError: undefined method `demodulize' for nil:NilClass
/usr/local/www/gitlab-ce/lib/api/custom_attributes_endpoints.rb:8:in `block=
 in
<module:CustomAttributesEndpoints>'
/usr/local/www/gitlab-ce/lib/api/groups.rb:85:in `include'
/usr/local/www/gitlab-ce/lib/api/groups.rb:85:in `block in <class:Groups>'
/usr/local/www/gitlab-ce/lib/api/groups.rb:84:in `<class:Groups>'
/usr/local/www/gitlab-ce/lib/api/groups.rb:4:in `<module:API>'
/usr/local/www/gitlab-ce/lib/api/groups.rb:3:in `<top (required)>'
/usr/local/www/gitlab-ce/lib/api/api.rb:107:in `<class:API>'
/usr/local/www/gitlab-ce/lib/api/api.rb:4:in `<module:API>'
/usr/local/www/gitlab-ce/lib/api/api.rb:3:in `<top (required)>'
/usr/local/www/gitlab-ce/config/initializers/rack_attack.rb:9:in `<top
(required)>'
/usr/local/www/gitlab-ce/config/environment.rb:11:in `<top (required)>'
Tasks: TOP =3D> db:migrate =3D> environment
(See full trace by running task with --trace)

Here is the same command with --trace:

su -l git -c "cd /usr/local/www/gitlab-ce && rake db:migrate
RAILS_ENV=3Dproduction --trace"
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
/usr/local/www/gitlab-ce/lib/api/events.rb:21: warning: already initialized
constant API::Events::RedactedEvent
/usr/local/www/gitlab-ce/lib/api/events.rb:21: warning: previous definition=
 of
RedactedEvent was here
rake aborted!
NoMethodError: undefined method `demodulize' for nil:NilClass
/usr/local/www/gitlab-ce/lib/api/custom_attributes_endpoints.rb:8:in `block=
 in
<module:CustomAttributesEndpoints>'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/c=
oncern.rb:120:in
`class_eval'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/c=
oncern.rb:120:in
`append_features'
/usr/local/www/gitlab-ce/lib/api/groups.rb:85:in `include'
/usr/local/www/gitlab-ce/lib/api/groups.rb:85:in `block in <class:Groups>'
/usr/local/lib/ruby/gems/2.4/gems/grape-1.2.0/lib/grape/api/instance.rb:84:=
in
`instance_eval'
/usr/local/lib/ruby/gems/2.4/gems/grape-1.2.0/lib/grape/api/instance.rb:84:=
in
`block in nest'
/usr/local/lib/ruby/gems/2.4/gems/grape-1.2.0/lib/grape/api/instance.rb:84:=
in
`each'
/usr/local/lib/ruby/gems/2.4/gems/grape-1.2.0/lib/grape/api/instance.rb:84:=
in
`nest'
/usr/local/lib/ruby/gems/2.4/gems/grape-1.2.0/lib/grape/dsl/routing.rb:168:=
in
`block in namespace'
/usr/local/lib/ruby/gems/2.4/gems/grape-1.2.0/lib/grape/dsl/settings.rb:158=
:in
`within_namespace'
/usr/local/lib/ruby/gems/2.4/gems/grape-1.2.0/lib/grape/dsl/routing.rb:165:=
in
`namespace'
/usr/local/lib/ruby/gems/2.4/gems/grape-1.2.0/lib/grape/api.rb:106:in `bloc=
k in
add_setup'
/usr/local/lib/ruby/gems/2.4/gems/grape-1.2.0/lib/grape/api.rb:105:in `each'
/usr/local/lib/ruby/gems/2.4/gems/grape-1.2.0/lib/grape/api.rb:105:in
`add_setup'
/usr/local/lib/ruby/gems/2.4/gems/grape-1.2.0/lib/grape/api.rb:36:in `block=
 (2
levels) in override_all_methods!'
/usr/local/www/gitlab-ce/lib/api/groups.rb:84:in `<class:Groups>'
/usr/local/www/gitlab-ce/lib/api/groups.rb:4:in `<module:API>'
/usr/local/www/gitlab-ce/lib/api/groups.rb:3:in `<top (required)>'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:274:in
`require'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:274:in
`block in require'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:240:in
`load_dependency'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:274:in
`require'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:360:in
`require_or_load'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:494:in
`load_missing_constant'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:184:in
`const_missing'
/usr/local/www/gitlab-ce/lib/api/api.rb:107:in `<class:API>'
/usr/local/www/gitlab-ce/lib/api/api.rb:4:in `<module:API>'
/usr/local/www/gitlab-ce/lib/api/api.rb:3:in `<top (required)>'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:274:in
`require'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:274:in
`block in require'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:240:in
`load_dependency'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:274:in
`require'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:360:in
`require_or_load'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:494:in
`load_missing_constant'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:184:in
`const_missing'
/usr/local/www/gitlab-ce/config/initializers/rack_attack.rb:9:in `<top
(required)>'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:268:in
`load'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:268:in
`block in load'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:240:in
`load_dependency'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:268:in
`load'
/usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/engine.rb:652:in
`block in load_config_initializer'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/n=
otifications.rb:166:in
`instrument'
/usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/engine.rb:651:in
`load_config_initializer'
/usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/engine.rb:616:in
`block (2 levels) in <class:Engine>'
/usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/engine.rb:615:in
`each'
/usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/engine.rb:615:in
`block in <class:Engine>'
/usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/initializable.r=
b:30:in
`instance_exec'
/usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/initializable.r=
b:30:in
`run'
/usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/initializable.r=
b:55:in
`block in run_initializers'
/usr/local/lib/ruby/2.4/tsort.rb:228:in `block in tsort_each'
/usr/local/lib/ruby/2.4/tsort.rb:350:in `block (2 levels) in
each_strongly_connected_component'
/usr/local/lib/ruby/2.4/tsort.rb:422:in `block (2 levels) in
each_strongly_connected_component_from'
/usr/local/lib/ruby/2.4/tsort.rb:431:in
`each_strongly_connected_component_from'
/usr/local/lib/ruby/2.4/tsort.rb:421:in `block in
each_strongly_connected_component_from'
/usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/initializable.r=
b:44:in
`each'
/usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/initializable.r=
b:44:in
`tsort_each_child'
/usr/local/lib/ruby/2.4/tsort.rb:415:in `call'
/usr/local/lib/ruby/2.4/tsort.rb:415:in
`each_strongly_connected_component_from'
/usr/local/lib/ruby/2.4/tsort.rb:349:in `block in
each_strongly_connected_component'
/usr/local/lib/ruby/2.4/tsort.rb:347:in `each'
/usr/local/lib/ruby/2.4/tsort.rb:347:in `call'
/usr/local/lib/ruby/2.4/tsort.rb:347:in `each_strongly_connected_component'
/usr/local/lib/ruby/2.4/tsort.rb:226:in `tsort_each'
/usr/local/lib/ruby/2.4/tsort.rb:205:in `tsort_each'
/usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/initializable.r=
b:54:in
`run_initializers'
/usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/application.rb:=
352:in
`initialize!'
/usr/local/www/gitlab-ce/config/environment.rb:11:in `<top (required)>'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:274:in
`require'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:274:in
`block in require'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:240:in
`load_dependency'
/usr/local/lib/ruby/gems/2.4/gems/activesupport-4.2.10/lib/active_support/d=
ependencies.rb:274:in
`require'
/usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/application.rb:=
328:in
`require_environment!'
/usr/local/lib/ruby/gems/2.4/gems/railties-4.2.10/lib/rails/application.rb:=
457:in
`block in run_tasks_blocks'
/usr/local/lib/ruby/gems/2.4/gems/rake-12.3.1/lib/rake/task.rb:271:in `bloc=
k in
execute'
/usr/local/lib/ruby/gems/2.4/gems/rake-12.3.1/lib/rake/task.rb:271:in `each'
/usr/local/lib/ruby/gems/2.4/gems/rake-12.3.1/lib/rake/task.rb:271:in `exec=
ute'
/usr/local/lib/ruby/gems/2.4/gems/rake-12.3.1/lib/rake/task.rb:213:in `bloc=
k in
invoke_with_call_chain'
/usr/local/lib/ruby/2.4/monitor.rb:214:in `mon_synchronize'
/usr/local/lib/ruby/gems/2.4/gems/rake-12.3.1/lib/rake/task.rb:193:in
`invoke_with_call_chain'
/usr/local/lib/ruby/gems/2.4/gems/rake-12.3.1/lib/rake/task.rb:237:in `bloc=
k in
invoke_prerequisites'
/usr/local/lib/ruby/gems/2.4/gems/rake-12.3.1/lib/rake/task.rb:235:in `each'
/usr/local/lib/ruby/gems/2.4/gems/rake-12.3.1/lib/rake/task.rb:235:in
`invoke_prerequisites'
/usr/local/lib/ruby/gems/2.4/gems/rake-12.3.1/lib/rake/task.rb:212:in `bloc=
k in
invoke_with_call_chain'
/usr/local/lib/ruby/2.4/monitor.rb:214:in `mon_synchronize'
/usr/local/lib/ruby/gems/2.4/gems/rake-12.3.1/lib/rake/task.rb:193:in
`invoke_with_call_chain'
/usr/local/lib/ruby/gems/2.4/gems/rake-12.3.1/lib/rake/task.rb:182:in `invo=
ke'
/usr/local/lib/ruby/gems/2.4/gems/rake-12.3.1/lib/rake/application.rb:160:in
`invoke_task'
/usr/local/lib/ruby/gems/2.4/gems/rake-12.3.1/lib/rake/application.rb:116:in
`block (2 levels) in top_level'
/usr/local/lib/ruby/gems/2.4/gems/rake-12.3.1/lib/rake/application.rb:116:in
`each'
/usr/local/lib/ruby/gems/2.4/gems/rake-12.3.1/lib/rake/application.rb:116:in
`block in top_level'
/usr/local/lib/ruby/gems/2.4/gems/rake-12.3.1/lib/rake/application.rb:125:in
`run_with_threads'
/usr/local/lib/ruby/gems/2.4/gems/rake-12.3.1/lib/rake/application.rb:110:in
`top_level'
/usr/local/lib/ruby/gems/2.4/gems/rake-12.3.1/lib/rake/application.rb:83:in
`block in run'
/usr/local/lib/ruby/gems/2.4/gems/rake-12.3.1/lib/rake/application.rb:186:in
`standard_exception_handling'
/usr/local/lib/ruby/gems/2.4/gems/rake-12.3.1/lib/rake/application.rb:80:in
`run'
/usr/local/lib/ruby/gems/2.4/gems/rake-12.3.1/exe/rake:27:in `<top (require=
d)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'
Tasks: TOP =3D> db:migrate =3D> environment

Actually, every rake task fails with the same error. Before upgrading to 11=
.5.1
I tried to reinstall 11.5.0 and `rake gettext:compile RAILS_ENV=3Dproductio=
n` and
`rake yarn:install gitlab:assets:clean gitlab:assets:compile
RAILS_ENV=3Dproduction NODE_ENV=3Dproduction` showed the same error.

Does someone have an idea? I am not a ruby developer but even `rake -T` and
`rake -A` are also failing with the same error:

/usr/local/www/gitlab-ce # rake -T
rake aborted!
LoadError: cannot load such file -- haml_lint/rake_task
/usr/local/www/gitlab-ce/lib/tasks/haml-lint.rake:2:in `<top (required)>'
/usr/local/www/gitlab-ce/Rakefile:10:in `<top (required)>'
(See full trace by running task with --trace)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-233640-7788>