[DRE-maint] Bug#897444: Gitlab: Change repository path does not work

David L er_maqui at darkbolt.net
Wed May 2 18:32:56 BST 2018


Package: gitlab
Version: 10.6.5+dfsg-1
Severity: normal

Changing gitlab repository path does not work.

Checking installation give this:

GitLab Shell version >= 6.0.4 ? ... OK (6.0.4)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by gitlab:root, or gitlab:gitlab?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ... 
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty
x / x ... repository is empty

Configuration changes:

/etc/gitlab/gitlab.yml

  #
  # 4. Advanced settings
  # ==========================

  ## Repositories settings
  repositories:
    storages: # You must have at least a `default` storage path.
      default:
        path: /home/repositories/
#        path: /var/lib/gitlab/repositories/


/etc/gitlab-shell/config.yml

# Repositories path
# Give the canonicalized absolute pathname,
# REPOS_PATH MUST NOT CONTAIN ANY SYMLINK!!!
# Check twice that none of the components is a symlink, including "/home".
#repos_path: "/var/lib/gitlab/repositories"
repos_path: "/home/repositories"


/etc/gitaly/config.toml

[[storage]]
name = "default"
#path = "/var/lib/gitlab/repositories"
path = "/home/repositories"


Gitlab starts correctly. On Admin Area -> Overview -> Projects I can see all repositories with their size computed.
On Gitlab interface, entering any project I see message "No repository". At database level, "repository_storage" column contains "default", not any absolute path.
Entering on /home/repositories and going to some correct namespace (group / project) I can do a git log and see information.
Path are not a symlink. /home is a complete mount point and repositories is a folder inside it. Permission are correct (drwxrws--- 11 gitlab   gitlab        4096 Nov  4 20:01 repositories).

Where's the problem? Maybe I failed changing some configuration? I'm missing some file for detect it correctly?


Thanks for your help.


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.23-xxxx-grs-ipv6-64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gitlab depends on:
ii  adduser                                    3.117
ii  asciidoctor                                1.5.6.2-2
ii  bc                                         1.07.1-2
ii  bundler                                    1.16.1-1
ii  dbconfig-pgsql                             2.0.9
ii  debconf [debconf-2.0]                      1.5.66
ii  exim4-daemon-light [mail-transport-agent]  4.91-3
ii  git                                        1:2.17.0-1
ii  gitlab-shell                               6.0.4+dfsg-1
ii  gitlab-workhorse                           4.0.0+debian-1
ii  lsb-base                                   9.20170808
ii  nginx                                      1.13.12-1
ii  nginx-full [nginx]                         1.13.12-1
ii  nodejs                                     8.11.1~dfsg-2
ii  npm                                        1.4.21+ds-2
ii  openssh-client                             1:7.7p1-2
ii  postgresql-client                          10+190
ii  postgresql-client-10 [postgresql-client]   10.3-2
ii  postgresql-contrib                         10+190
ii  rake                                       12.3.1-2
ii  redis-server                               5:4.0.9-1
ii  ruby                                       1:2.5.1
ii  ruby-ace-rails-ap                          4.1.1-1
ii  ruby-acts-as-taggable-on                   5.0.0-2
ii  ruby-addressable                           2.5.2-1
ii  ruby-akismet                               2.0.0-1
ii  ruby-allocations                           1.0.3-1+b4
ii  ruby-arel                                  6.0.4-1
ii  ruby-asana                                 0.6.0-1
ii  ruby-asciidoctor-plantuml                  0.0.8-1
ii  ruby-asset-sync                            2.2.0-2
ii  ruby-attr-encrypted                        3.0.1-2
ii  ruby-babosa                                1.0.2-2
ii  ruby-base32                                0.3.2-3
ii  ruby-batch-loader                          1.2.1-1
ii  ruby-bcrypt-pbkdf                          1.0.0-1+b2
ii  ruby-bootstrap-form                        2.7.0-1
ii  ruby-bootstrap-sass                        3.3.5.1-5
ii  ruby-browser                               2.2.0-2
ii  ruby-carrierwave                           1.2.2-1
ii  ruby-charlock-holmes                       0.7.5-1+b1
ii  ruby-chronic                               0.10.2-3
ii  ruby-chronic-duration                      0.10.6-1
ii  ruby-commonmarker                          0.17.9-1
ii  ruby-connection-pool                       2.2.0-1
ii  ruby-creole                                0.5.0-2
ii  ruby-d3-rails                              3.5.6+dfsg-1
ii  ruby-default-value-for                     3.0.1-1
ii  ruby-devise                                4.4.3-1
ii  ruby-devise-two-factor                     3.0.0-2
ii  ruby-diffy                                 3.1.0-1
ii  ruby-doorkeeper                            4.3.1-1
ii  ruby-doorkeeper-openid-connect             1.3.0-1
ii  ruby-dropzonejs-rails                      0.7.1-1
ii  ruby-email-reply-trimmer                   0.1.6-1
ii  ruby-escape-utils                          1.2.1-1+b1
ii  ruby-excon                                 0.60.0-1
ii  ruby-faraday                               0.13.1-2
ii  ruby-fast-blank                            1.0.0-1+b1
ii  ruby-flipper                               0.13.0-3
pn  ruby-flipper-active-record                 <none>
pn  ruby-flipper-active-support-cache-store    <none>
ii  ruby-fog-aliyun                            0.2.0-1
ii  ruby-fog-aws                               2.0.1-1
ii  ruby-fog-core                              1.45.0-2
ii  ruby-fog-google                            0.5.3-1
ii  ruby-fog-local                             0.3.0-1
ii  ruby-fog-openstack                         0.1.6-4
ii  ruby-fog-rackspace                         0.1.1-4
ii  ruby-fogbugz                               0.2.1-3
ii  ruby-font-awesome-rails                    4.7.0.2-1
ii  ruby-gemnasium-gitlab-service              0.2.6-2
ii  ruby-gemojione                             3.3.0-1
ii  ruby-gettext-i18n-rails                    1.8.0-1
ii  ruby-gettext-i18n-rails-js                 1.3.0+dfsg-1
ii  ruby-gitaly                                0.89.0+dfsg-1
ii  ruby-github-linguist                       5.3.3-1
ii  ruby-github-markup                         1.6.3-1
ii  ruby-gitlab-flowdock-git-hook              1.0.1-4
ii  ruby-gollum-lib                            4.2.7-1
ii  ruby-gollum-rugged-adapter                 0.4.4-2
ii  ruby-gon                                   6.1.0-1
ii  ruby-google-api-client                     0.19.8-1
ii  ruby-google-protobuf                       3.2.0-2+b2
ii  ruby-gpgme                                 2.0.16-1+b1
ii  ruby-grape                                 1.0.2-1
ii  ruby-grape-entity                          0.7.1-1
ii  ruby-grape-logging                         1.7.0-1
ii  ruby-grape-route-helpers                   2.1.0-3
ii  ruby-grpc                                  1.3.2+debian-4+b1
ii  ruby-hamlit                                2.8.7-2+b1
ii  ruby-hashie-forbidden-attributes           0.1.1-1
ii  ruby-health-check                          2.6.0-1
ii  ruby-hipchat                               1.5.2-3
ii  ruby-html-pipeline                         1.11.0-1
ii  ruby-html2text                             0.2.0-1
ii  ruby-http                                  2.2.2-1
ii  ruby-httparty                              0.15.6-1
ii  ruby-influxdb                              0.2.3-2
ii  ruby-jira                                  1.4.3-1
ii  ruby-jquery-atwho-rails                    1.3.2-2
ii  ruby-jquery-rails                          4.3.1-1
ii  ruby-jwt                                   1.5.6-1
ii  ruby-kaminari                              1.0.1-3
ii  ruby-kgio                                  2.11.2-1+b1
ii  ruby-kubeclient                            3.0.0-2
ii  ruby-licensee                              8.9.2-1
ii  ruby-lograge                               0.5.0-1
ii  ruby-loofah                                2.2.2-1
ii  ruby-mail-room                             0.9.1-2
ii  ruby-method-source                         0.9.0-1
ii  ruby-mousetrap-rails                       1.4.6-6
ii  ruby-net-ldap                              0.16.1-1
ii  ruby-net-ssh                               1:4.2.0-2
ii  ruby-nokogiri                              1.8.2-1+b1
ii  ruby-ntlm                                  0.6.1-2
ii  ruby-oauth2                                1.4.0-3
ii  ruby-octokit                               4.8.0-1
ii  ruby-oj                                    3.4.0-1+b1
ii  ruby-omniauth                              1.8.1-1
ii  ruby-omniauth-auth0                        2.0.0-1
ii  ruby-omniauth-authentiq                    0.3.1-1
ii  ruby-omniauth-azure-oauth2                 0.0.9-2
ii  ruby-omniauth-cas3                         1.1.4-1
ii  ruby-omniauth-crowd                        2.2.3-3
ii  ruby-omniauth-facebook                     4.0.0-2
ii  ruby-omniauth-github                       1.3.0-1
ii  ruby-omniauth-gitlab                       1.0.2-1
ii  ruby-omniauth-google-oauth2                0.5.3-1
ii  ruby-omniauth-kerberos                     0.3.0-3
ii  ruby-omniauth-ldap                         2.0.4-2
ii  ruby-omniauth-oauth2-generic               0.2.2-1
ii  ruby-omniauth-saml                         1.10.0-1
ii  ruby-omniauth-shibboleth                   1.2.1-1
ii  ruby-omniauth-twitter                      1.4.0-1
ii  ruby-org                                   0.9.12-2
ii  ruby-paranoia                              2.3.1-1
ii  ruby-parser                                3.8.2-1
ii  ruby-peek                                  1.0.1-1
ii  ruby-peek-gc                               0.0.2-1
ii  ruby-peek-host                             1.0.0-1
ii  ruby-peek-performance-bar                  1.3.0-1
ii  ruby-peek-pg                               1.3.0-1
ii  ruby-peek-rblineprof                       0.2.0-1
ii  ruby-peek-redis                            1.2.0-1
ii  ruby-peek-sidekiq                          1.0.3-2
ii  ruby-pg                                    0.19.0-2+b1
ii  ruby-posix-spawn                           0.3.13-2+b1
ii  ruby-premailer-rails                       1.9.7-1
ii  ruby-prof                                  0.17.0+dfsg-3+b1
ii  ruby-prometheus-client-mmap                0.9.1-1+b1
ii  ruby-rack-attack                           4.4.1-1
ii  ruby-rack-cors                             1.0.1-2
ii  ruby-rack-oauth2                           1.4.0-1
ii  ruby-rack-proxy                            0.6.1-2
ii  ruby-rack-test                             0.7.0-1
ii  ruby-rails                                 2:4.2.10-1
ii  ruby-rails-deprecated-sanitizer            1.0.3-2
ii  ruby-rails-dom-testing                     1.0.6-2
ii  ruby-rails-i18n                            4.0.9-1
ii  ruby-rainbow                               2.2.2-1
ii  ruby-raindrops                             0.19.0-1+b2
ii  ruby-rbnacl [ruby-rbnacl-libsodium]        5.0.0-3
ii  ruby-re2                                   1.1.1-2+b2
ii  ruby-recaptcha                             3.2.0-3
ii  ruby-redcarpet                             3.4.0-4+b1
ii  ruby-redcloth                              4.3.2-3+b1
ii  ruby-redis                                 3.3.3-1
ii  ruby-redis-namespace                       1.5.2-3
ii  ruby-redis-rails                           5.0.2-3
ii  ruby-request-store                         1.3.0-1
ii  ruby-responders                            2.4.0-1
ii  ruby-rouge                                 2.2.1-1
ii  ruby-rqrcode-rails3                        0.1.7-1
ii  ruby-rufus-scheduler                       3.4.2-1
ii  ruby-rugged                                0.26.0-2+b2
ii  ruby-sanitize                              2.1.0-2
ii  ruby-sass-rails                            5.0.6-1
ii  ruby-seed-fu                               2.3.7-1
ii  ruby-select2-rails                         3.5.9.3-2
ii  ruby-sentry-raven                          2.7.2-1
ii  ruby-settingslogic                         2.0.9-3
ii  ruby-sidekiq                               5.0.4+dfsg-2
ii  ruby-sidekiq-cron                          0.6.3-4
ii  ruby-sidekiq-limit-fetch                   3.4.0-2
ii  ruby-slack-notifier                        1.5.1-1
ii  ruby-sprockets                             3.7.0-1
ii  ruby-sshkey                                1.9.0-1
ii  ruby-state-machines-activerecord           0.4.0-1
ii  ruby-sys-filesystem                        1.1.7-2
ii  ruby-task-list                             2.0.0-2
ii  ruby-toml-rb                               1.0.0-1
ii  ruby-truncato                              0.7.9-1
ii  ruby-u2f                                   0.2.1-2
ii  ruby-uglifier                              2.7.2+dfsg-2
ii  ruby-unf                                   0.1.4-2
ii  ruby-unf-ext                               0.0.7.4-1+b2
ii  ruby-unicorn-worker-killer                 0.4.4-1
ii  ruby-validates-hostname                    1.0.7-1
ii  ruby-version-sorter                        2.1.0+dfsg-1+b2
ii  ruby-virtus                                1.0.5-3
ii  ruby-vmstat                                2.3.0-2+b1
ii  ruby-webpack-rails                         0.9.11-2
ii  ruby-wikicloth                             0.8.1+dfsg-4
ii  ucf                                        3.0038
ii  unicorn                                    5.4.0-1+b1

Versions of packages gitlab recommends:
ii  certbot  0.23.0-1
ii  gitaly   0.96.1+debian-1

gitlab suggests no packages.

-- debconf information:
* gitlab/app-password-confirm: (password omitted)
* gitlab/pgsql/app-pass: (password omitted)
  gitlab/password-confirm: (password omitted)
  gitlab/pgsql/admin-pass: (password omitted)
  gitlab/pgsql/admin-user: postgres
  gitlab/upgrade-error: abort
  gitlab/missing-db-package-error: abort
* gitlab/ssl: true
  gitlab/remove-error: abort
  gitlab/dbconfig-remove: true
  gitlab/db/app-user: gitlab at localhost
  gitlab/pgsql/changeconf: false
  gitlab/install-error: abort
* gitlab/dbconfig-install: true
* gitlab/database-type: pgsql
  gitlab/remote/port:
  gitlab/pgsql/authmethod-admin: ident
  gitlab/db/dbname: gitlab_production
* gitlab/letsencrypt_email: domains at darkbolt.net
* gitlab/user: gitlab
* gitlab/remote/host: localhost
  gitlab/pgsql/no-empty-passwords:
  gitlab/dbconfig-reinstall: false
  gitlab/pgsql/manualconf:
* gitlab/fqdn: git.darkbolt.net
  gitlab/upgrade-backup: true
  gitlab/dbconfig-upgrade: true
* gitlab/letsencrypt: true
  gitlab/pgsql/method: TCP/IP
  gitlab/pgsql/authmethod-user: password
  gitlab/passwords-do-not-match:
  gitlab/internal/skip-preseed: true
  gitlab/internal/reconfiguring: false
  gitlab/remote/newhost: localhost
  gitlab/purge_data: true
  gitlab/purge: false



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