[DRE-maint] Bug#916306: gitlab: Error during gitlab installation

Pranith Kumar bobby.prani at gmail.com
Mon Dec 17 22:31:01 GMT 2018


After starting nginx manually, the gems issue seems to be back again.
Any idea on how to clean up gems and let the installation proceed?

Running final rake tasks and tweaks...
Initializing database...
rake aborted!
NoMethodError: undefined method `allow_access_with_scope' for
#<Class:0x000055ada85bacd8>
/usr/share/gitlab/lib/gitlab/patch/draw_route.rb:30:in `instance_eval'
/var/lib/gems/2.5.0/gems/grape-1.2.2/lib/grape/api/instance.rb:88:in
`instance_eval'
/var/lib/gems/2.5.0/gems/grape-1.2.2/lib/grape/api/instance.rb:88:in
`block in nest'
/var/lib/gems/2.5.0/gems/grape-1.2.2/lib/grape/api/instance.rb:88:in `each'
/var/lib/gems/2.5.0/gems/grape-1.2.2/lib/grape/api/instance.rb:88:in `nest'
/var/lib/gems/2.5.0/gems/grape-1.2.2/lib/grape/dsl/routing.rb:168:in
`block in namespace'
/var/lib/gems/2.5.0/gems/grape-1.2.2/lib/grape/dsl/settings.rb:158:in
`within_namespace'
/var/lib/gems/2.5.0/gems/grape-1.2.2/lib/grape/dsl/routing.rb:165:in `namespace'
/var/lib/gems/2.5.0/gems/grape-1.2.2/lib/grape/api.rb:119:in `block in
add_setup'
/var/lib/gems/2.5.0/gems/grape-1.2.2/lib/grape/api.rb:118:in `each'
/var/lib/gems/2.5.0/gems/grape-1.2.2/lib/grape/api.rb:118:in `add_setup'
/var/lib/gems/2.5.0/gems/grape-1.2.2/lib/grape/api.rb:40:in `block (2
levels) in override_all_methods!'
/usr/share/gitlab/lib/api/events.rb:46:in `<class:Events>'
/usr/share/gitlab/lib/api/events.rb:4:in `<module:API>'
/usr/share/gitlab/lib/api/events.rb:3:in `<top (required)>'
/usr/share/gitlab/lib/api/api.rb:102:in `<class:API>'
/usr/share/gitlab/lib/api/api.rb:4:in `<module:API>'
/usr/share/gitlab/lib/api/api.rb:3:in `<top (required)>'
(eval):6:in `draw_route'
/usr/share/gitlab/lib/gitlab/patch/draw_route.rb:30:in `instance_eval'
/usr/share/gitlab/lib/gitlab/patch/draw_route.rb:30:in `draw_route'
/usr/share/gitlab/lib/gitlab/patch/draw_route.rb:17:in `draw_ce'
/usr/share/gitlab/lib/gitlab/patch/draw_route.rb:11:in `draw'
/usr/share/gitlab/config/routes.rb:111:in `block in <top (required)>'
/usr/share/gitlab/config/routes.rb:4:in `<top (required)>'
/usr/share/gitlab/config/application.rb:219:in `block in <class:Application>'
/usr/share/gitlab/config/environment.rb:11:in `<top (required)>'
/var/lib/gems/2.5.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
/var/lib/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/cli/exec.rb:74:in `load'
/var/lib/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/cli/exec.rb:74:in
`kernel_load'
/var/lib/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/cli/exec.rb:28:in `run'
/var/lib/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/cli.rb:463:in `exec'
/var/lib/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in
`run'
/var/lib/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in
`invoke_command'
/var/lib/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/vendor/thor/lib/thor.rb:387:in
`dispatch'
/var/lib/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/cli.rb:27:in `dispatch'
/var/lib/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/vendor/thor/lib/thor/base.rb:466:in
`start'
/var/lib/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/cli.rb:18:in `start'
/var/lib/gems/2.5.0/gems/bundler-1.17.2/exe/bundle:30:in `block in
<top (required)>'
/var/lib/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/friendly_errors.rb:124:in
`with_friendly_errors'
/var/lib/gems/2.5.0/gems/bundler-1.17.2/exe/bundle:22:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => db:schema:load => environment
(See full trace by running task with --trace)
dpkg: error processing package gitlab (--configure):
 installed gitlab package post-installation script subprocess returned
error exit status 1
Errors were encountered while processing:
 gitlab
E: Sub-process /usr/bin/dpkg returned an error code (1)
On Thu, Dec 13, 2018 at 11:21 PM Pirate Praveen
<praveen at onenetbeyond.org> wrote:
>
>
>
> On 2018, ഡിസംബർ 14 1:22:52 AM IST, Pranith Kumar <bobby.prani at gmail.com> wrote:
> >OK. I manually copied gitlab-debian.conf from /var/lib/gitlab/ to
> >/etc/gitlab/ and it was overwritten during the configure step with the
> >package maintainers version. It now proceeds past the previous error
> >message.
> >
> >Now, I am seeing a new error as follows:
> >
> >$ sudo dpkg --configure gitlab
> >Setting up gitlab (11.3.11+dfsg-1) ...
> >Creating runtime directories for gitlab...
> >Updating file permissions...
> >Configuring hostname and email...
> >Registering /usr/lib/tmpfiles.d/gitlab.conf via ucf
> >/etc/systemd/system/gitlab-mailroom.service.d/override.conf already
> >exist
> >/etc/systemd/system/gitlab-unicorn.service.d/override.conf already
> >exist
> >/etc/systemd/system/gitlab-sidekiq.service.d/override.conf already
> >exist
> >/etc/systemd/system/gitlab-workhorse.service.d/override.conf already
> >exist
> >Registering /etc/gitlab-shell/config.yml via ucf
> >Registering /etc/gitlab/gitlab.yml via ucf
> >Registering /etc/gitlab/gitlab-debian.conf via ucf
> >Reloading nginx configuration...
> >nginx.service is not active, cannot reload.
> >invoke-rc.d: initscript nginx, action "reload" failed.
> >dpkg: error processing package gitlab (--configure):
> > installed gitlab package post-installation script subprocess returned
> >error exit status 1
> >Errors were encountered while processing:
> > gitlab
> >
> >Thanks,
> >
>
> That is a known bug which is not yet fixed. If you start nginx manually, the installation should proceed. We stop nginx for letsencrypt, but does not start it again.
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.



-- 
Pranith



More information about the Pkg-ruby-extras-maintainers mailing list