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

Pranith Kumar bobby.prani at gmail.com
Thu Dec 13 07:08:10 GMT 2018


Purging still does not fix this.

$ sudo apt-get purge gitaly\* gitlab\*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'gitaly' for glob 'gitaly*'
Note, selecting 'gitlab-shell' for glob 'gitlab*'
Note, selecting 'gitlab-common' for glob 'gitlab*'
Note, selecting 'gitlab-cli' for glob 'gitlab*'
Note, selecting 'gitlab' for glob 'gitlab*'
Note, selecting 'gitlab-runner' for glob 'gitlab*'
Note, selecting 'gitlab-workhorse' for glob 'gitlab*'
Note, selecting 'gitlab-ci-multi-runner' for glob 'gitlab*'
Note, selecting 'gitlab-runner' instead of 'gitlab-ci-multi-runner'
Package 'gitlab-cli' is not installed, so not removed
Package 'gitlab-runner' is not installed, so not removed
...
The following packages will be REMOVED:
  gitaly* gitlab* gitlab-common* gitlab-shell* gitlab-workhorse*
0 upgraded, 0 newly installed, 5 to remove and 37 not upgraded.
1 not fully installed or removed.
After this operation, 165 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 766431 files and directories currently installed.)
Removing gitlab (11.3.11+dfsg-1) ...
/etc/gitlab/gitlab-debian.conf not found. Not removing anything.
Removing gitaly (0.125.1+debian-3) ...
Removing gitlab-common (11.3.11+dfsg-1) ...
Removing gitlab-shell (8.3.3+dfsg-2) ...
Removing gitlab-workhorse (7.4.0+debian-2) ...
(Reading database ... 749351 files and directories currently installed.)
Purging configuration files for gitlab-common (11.3.11+dfsg-1) ...
Removing user: gitlab
127
userdel: gitlab mail spool (/var/mail/gitlab) not found
Purging configuration files for gitlab (11.3.11+dfsg-1) ...
/var/lib/gitlab-common/gitlab-common.defaults not found. Not removing anything.
dpkg: warning: while removing gitlab, directory '/var/log/gitlab' not
empty so not removed
Purging configuration files for gitaly (0.125.1+debian-3) ...
Processing triggers for systemd (239-13) ...


Now trying to install gitlab:

$ sudo apt-get install gitlab
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  ecj ecj-gcj ecj1 gcj-6-jre-lib libantlr-java libecj-java
libecj-java-gcj libgcj-bc libgcj-common libgcj17 libqt4-dbus
libqt4-xml libqtcore4 libqtdbus4 libqtgui4 qdbus qt-at-spi
  qtcore4-l10n
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  gitaly gitlab-common gitlab-shell gitlab-workhorse
The following NEW packages will be installed:
  gitaly gitlab gitlab-common gitlab-shell gitlab-workhorse
0 upgraded, 5 newly installed, 0 to remove and 37 not upgraded.
Need to get 0 B/56.7 MB of archives.
After this operation, 165 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Preconfiguring packages ...
Selecting previously unselected package gitlab-common.
(Reading database ... 749170 files and directories currently installed.)
Preparing to unpack .../gitlab-common_11.3.11+dfsg-1_all.deb ...
Unpacking gitlab-common (11.3.11+dfsg-1) ...
Selecting previously unselected package gitaly.
Preparing to unpack .../gitaly_0.125.1+debian-3_amd64.deb ...
Unpacking gitaly (0.125.1+debian-3) ...
Selecting previously unselected package gitlab-shell.
Preparing to unpack .../gitlab-shell_8.3.3+dfsg-2_amd64.deb ...
Unpacking gitlab-shell (8.3.3+dfsg-2) ...
Selecting previously unselected package gitlab-workhorse.
Preparing to unpack .../gitlab-workhorse_7.4.0+debian-2_amd64.deb ...
Unpacking gitlab-workhorse (7.4.0+debian-2) ...
Selecting previously unselected package gitlab.
Preparing to unpack .../gitlab_11.3.11+dfsg-1_all.deb ...
Unpacking gitlab (11.3.11+dfsg-1) ...
Setting up gitlab-common (11.3.11+dfsg-1) ...
Creating/updating gitlab user account...
adduser: Warning: The home directory `/var/lib/gitlab' does not belong
to the user you are currently creating.
Registering /etc/gitlab-common/gitlab-common.conf via ucf

Creating config file /etc/gitlab-common/gitlab-common.conf with new version
Setting up gitaly (0.125.1+debian-3) ...
Resolving dependencies...
Using concurrent-ruby 1.1.3
Following files may not be writable, so sudo is needed:
  /usr/local/bin
  /var/lib/gems/2.5.0
  /var/lib/gems/2.5.0/build_info
  /var/lib/gems/2.5.0/cache
  /var/lib/gems/2.5.0/doc
  /var/lib/gems/2.5.0/extensions
  /var/lib/gems/2.5.0/gems
  /var/lib/gems/2.5.0/specifications
Using i18n 1.1.1
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.2.2
Using bundler 1.17.1
Using charlock_holmes 0.7.6
Using crass 1.0.4
Using escape_utils 1.2.1
Using multipart-post 2.0.0
Using faraday 0.15.4
Using json 2.1.0
Using gemojione 3.3.0
Using google-protobuf 3.6.1
Using googleapis-common-protos-types 1.0.2
Using grpc 1.17.0 (x86_64-linux)
Using gitaly-proto 0.118.1
Using mime-types-data 3.2018.0812
Using mime-types 3.2.2
Using rugged 0.27.7
Using github-linguist 5.3.3
Using github-markup 1.7.0
Using gitlab-gollum-rugged_adapter 0.4.4.1
Using mini_portile2 2.3.0
Using nokogiri 1.8.5
Using rouge 3.3.0
Using nokogumbo 1.4.2
Using sanitize 4.6.6
Using stringex 2.8.5
Using gitlab-gollum-lib 4.2.7.5
Using licensee 8.9.2
Using rdoc 6.0.4
Using sentry-raven 2.7.4
Bundle complete! 13 Gemfile dependencies, 34 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Created symlink
/etc/systemd/system/multi-user.target.wants/gitaly.service →
/lib/systemd/system/gitaly.service.
Setting up gitlab-shell (8.3.3+dfsg-2) ...
Processing triggers for systemd (239-13) ...
Setting up gitlab-workhorse (7.4.0+debian-2) ...
Setting up gitlab (11.3.11+dfsg-1) ...
Creating runtime directories for gitlab...
Updating file permissions...
Configuring hostname and email...
sed: -e expression #1, char 41: unknown option to `s'
dpkg: error processing package gitlab (--configure):
 installed gitlab package post-installation script subprocess returned
error exit status 1
Processing triggers for systemd (239-13) ...
Errors were encountered while processing:
 gitlab
E: Sub-process /usr/bin/dpkg returned an error code (1)
On Wed, Dec 12, 2018 at 10:56 PM Pirate Praveen
<praveen at onenetbeyond.org> wrote:
>
> On Wed, 12 Dec 2018 12:49:37 -0800 Pranith Kumar <bobby.prani at gmail.com>
> wrote:
> > Package: gitlab
> > Version: 11.3.11+dfsg-1
> > Severity: normal
> >
> > Dear Maintainer,
> >
> > While installing gitlab, I am getting the following error. Please fix.
> >
> > Setting up gitlab (11.3.11+dfsg-1) ...
> > Creating runtime directories for gitlab...
> > Updating file permissions...
> > Configuring hostname and email...
> > sed: -e expression #1, char 41: unknown option to `s'
> > 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)
> >
>
> I think the previous choices are still interfering in new installation.
>
> For example,
>
> * gitlab/remote/host: localhost
>   gitlab/db/app-user: www-data at localhost
>
> I suggest you do a purge and then install gitlab again.
>


-- 
Pranith



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