sameersbn / sameersbn/docker-gitlab

Error while runnig 8.11.2

Open
#867 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

wontfix
Dominant language
Shell
Stars
8.1k
Forks
2.1k
Avg merge
17h 47m
Merged PRs (30d)
7

Description

My docker-compose.yml is

version: '2'

services:
  redis:
    restart: always
    image: sameersbn/redis:latest
    command:
    - --loglevel warning
    volumes:
    - /srv/docker/gitlab/redis:/var/lib/redis:Z

  postgresql:
    restart: always
    image: sameersbn/postgresql:9.5-1
    volumes:
    - /srv/docker/gitlab/postgresql:/var/lib/postgresql:Z
    environment:
    - DB_USER=gitlab
    - DB_PASS=password
    - DB_NAME=gitlabhq_production
    - DB_EXTENSION=pg_trgm

  gitlab:
    restart: always
    image: sameersbn/gitlab:8.10.7
    depends_on:
    - redis
    - postgresql
    volumes:
    - /srv/docker/gitlab/gitlab:/home/git/data:Z
    - ./certs:/certs

    environment:
    - DEBUG=false

    - DB_ADAPTER=postgresql
    - DB_HOST=postgresql
    - DB_PORT=5432
    - DB_USER=gitlab
    - DB_PASS=password
    - DB_NAME=gitlabhq_production

    - REDIS_HOST=redis
    - REDIS_PORT=6379

    - TZ=Europe/Moscow
    - GITLAB_TIMEZONE=Moscow

    - GITLAB_HTTPS=true
    - SSL_SELF_SIGNED=false

    - GITLAB_HOST=git.lazyrider.ru
    - GITLAB_PORT=443
    - GITLAB_SSH_PORT=22
    - GITLAB_RELATIVE_URL_ROOT=
    - GITLAB_SECRETS_DB_KEY_BASE=xxxx
    - GITLAB_SECRETS_SECRET_KEY_BASE=yyyy
    - GITLAB_SECRETS_OTP_KEY_BASE=zzzz

    - GITLAB_REGISTRY_ENABLED=true
    - GITLAB_REGISTRY_HOST=registry.lazyrider.ru
    - GITLAB_REGISTRY_PORT=5500
    - GITLAB_REGISTRY_API_URL=http://registry:5000
    - GITLAB_REGISTRY_KEY_PATH=/certs/registry-auth.key
    - SSL_REGISTRY_KEY_PATH=/certs/registry.key
    - SSL_REGISTRY_CERT_PATH=/certs/registry.crt

    - GITLAB_ROOT_PASSWORD=
    - GITLAB_ROOT_EMAIL=

    - GITLAB_NOTIFY_ON_BROKEN_BUILDS=true
    - GITLAB_NOTIFY_PUSHER=false

    - GITLAB_EMAIL=gitlab@larkit.ru
    - GITLAB_EMAIL_REPLY_TO=noreply@larkit.ru
    - GITLAB_INCOMING_EMAIL_ADDRESS=gitlab-admin@larkit.ru

    - GITLAB_BACKUP_SCHEDULE=daily
    - GITLAB_BACKUP_TIME=01:00
    - GITLAB_BACKUP_EXPIRY=259200

    - SMTP_ENABLED=true
    - SMTP_DOMAIN=lazyrider.ru
    - SMTP_HOST=smtp.sparkpostmail.com
    - SMTP_PORT=587
    - SMTP_USER=SMTP_Injection
    - SMTP_PASS=pppppp
    - SMTP_STARTTLS=true
    - SMTP_AUTHENTICATION=login

    - OAUTH_ENABLED=true
    - OAUTH_AUTO_SIGN_IN_WITH_PROVIDER=
    - OAUTH_ALLOW_SSO=
    - OAUTH_BLOCK_AUTO_CREATED_USERS=true
    - OAUTH_AUTO_LINK_LDAP_USER=false
    - OAUTH_AUTO_LINK_SAML_USER=false
    - OAUTH_EXTERNAL_PROVIDERS=

    - OAUTH_CAS3_LABEL=cas3
    - OAUTH_CAS3_SERVER=
    - OAUTH_CAS3_DISABLE_SSL_VERIFICATION=false
    - OAUTH_CAS3_LOGIN_URL=/cas/login
    - OAUTH_CAS3_VALIDATE_URL=/cas/p3/serviceValidate
    - OAUTH_CAS3_LOGOUT_URL=/cas/logout

    - OAUTH_BITBUCKET_API_KEY=aaaaaa
    - OAUTH_BITBUCKET_APP_SECRET=ssssss

  registry:
    restart: always
    image: registry:2.4.1
    volumes:
      - /srv/docker/gitlab/gitlab/shared/registry:/registry
      - ./certs:/certs
    environment:
      - REGISTRY_LOG_LEVEL=info
      - REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/registry
      - REGISTRY_AUTH_TOKEN_REALM=https://git.lazyrider.ru/jwt/auth
      - REGISTRY_AUTH_TOKEN_SERVICE=container_registry
      - REGISTRY_AUTH_TOKEN_ISSUER=gitlab-issuer
      - REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE=/certs/registry-auth.crt
      - REGISTRY_STORAGE_DELETE_ENABLED=true

And after running # docker-compose up
I've got next error

Initializing logdir...
Initializing datadir...
Updating CA certificates...
Installing configuration templates...
SSL key and certificates for Registry were not found
Assuming that the Registry is running behind a HTTPS enabled load balancer.
Configuring gitlab...
Configuring gitlab::database
Configuring gitlab::redis
Configuring gitlab::secrets...
Configuring gitlab::sidekiq...
Configuring gitlab::gitlab-workhorse...
Configuring gitlab::unicorn...
Configuring gitlab::timezone...
Configuring gitlab::rack_attack...
Configuring gitlab::ci...
Configuring gitlab::artifacts...
Configuring gitlab::lfs...
Configuring gitlab::project_features...
Configuring gitlab::smtp_settings...
Configuring gitlab::oauth...
Configuring gitlab::oauth::bitbucket...
Configuring gitlab::ldap...
Configuring gitlab::backups...
Configuring gitlab::backups::schedule...
Configuring gitlab::registry...
Configuring gitlab-shell...
Configuring nginx...
Configuring nginx::gitlab...
Configuring nginx::gitlab::ssl...
Configuring nginx::gitlab::hsts...
Migrating database...
rake aborted!
Bundler::GemRequireError: There was an error while trying to load the gem 'sys-filesystem'.
oem Load Error is:
Backtrace for gem load error is:
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/ffi-1.9.10/lib/ffi/library.rb:263:in `attach'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/ffi-1.9.10/lib/ffi/library.rb:263:in `attach_function'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sys-filesystem-1.1.6/lib/sys/unix/sys/filesystem/functions.rb:13:in `<module:Functions>'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sys-filesystem-1.1.6/lib/sys/unix/sys/filesystem/functions.rb:5:in `<class:Filesystem>'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sys-filesystem-1.1.6/lib/sys/unix/sys/filesystem/functions.rb:4:in `<module:Sys>'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sys-filesystem-1.1.6/lib/sys/unix/sys/filesystem/functions.rb:3:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sys-filesystem-1.1.6/lib/sys/unix/sys/filesystem.rb:3:in `require_relative'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sys-filesystem-1.1.6/lib/sys/unix/sys/filesystem.rb:3:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sys-filesystem-1.1.6/lib/sys/filesystem.rb:11:in `require_relative'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sys-filesystem-1.1.6/lib/sys/filesystem.rb:11:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sys-filesystem-1.1.6/lib/sys-filesystem.rb:1:in `require_relative'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sys-filesystem-1.1.6/lib/sys-filesystem.rb:1:in `<top (required)>'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:86:in `require'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:86:in `block (2 levels) in require'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:81:in `each'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:81:in `block in require'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:70:in `each'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:70:in `require'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler.rb:102:in `require'
/home/git/gitlab/config/application.rb:5:in `<top (required)>'
/home/git/gitlab/Rakefile:5:in `require'
/home/git/gitlab/Rakefile:5:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.5.0/lib/rake/rake_module.rb:28:in `load'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.5.0/lib/rake/rake_module.rb:28:in `load_rakefile'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:689:in `raw_load_rakefile'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:94:in `block in load_rakefile'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:176:in `standard_exception_handling'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:93:in `load_rakefile'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:77:in `block in run'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:176:in `standard_exception_handling'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:75:in `run'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.5.0/bin/rake:33:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/bin/rake:23:in `load'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/bin/rake:23:in `<main>'
Bundler Error Backtrace:
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:89:in `rescue in block (2 levels) in require'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:85:in `block (2 levels) in require'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:81:in `each'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:81:in `block in require'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:70:in `each'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:70:in `require'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler.rb:102:in `require'
/home/git/gitlab/config/application.rb:5:in `<top (required)>'
/home/git/gitlab/Rakefile:5:in `require'
/home/git/gitlab/Rakefile:5:in `<top (required)>'
o
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/ffi-1.9.10/lib/ffi/library.rb:263:in `attach'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/ffi-1.9.10/lib/ffi/library.rb:263:in `attach_function'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sys-filesystem-1.1.6/lib/sys/unix/sys/filesystem/functions.rb:13:in `<module:Functions>'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sys-filesystem-1.1.6/lib/sys/unix/sys/filesystem/functions.rb:5:in `<class:Filesystem>'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sys-filesystem-1.1.6/lib/sys/unix/sys/filesystem/functions.rb:4:in `<module:Sys>'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sys-filesystem-1.1.6/lib/sys/unix/sys/filesystem/functions.rb:3:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sys-filesystem-1.1.6/lib/sys/unix/sys/filesystem.rb:3:in `require_relative'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sys-filesystem-1.1.6/lib/sys/unix/sys/filesystem.rb:3:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sys-filesystem-1.1.6/lib/sys/filesystem.rb:11:in `require_relative'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sys-filesystem-1.1.6/lib/sys/filesystem.rb:11:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sys-filesystem-1.1.6/lib/sys-filesystem.rb:1:in `require_relative'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/sys-filesystem-1.1.6/lib/sys-filesystem.rb:1:in `<top (required)>'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:86:in `require'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:86:in `block (2 levels) in require'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:81:in `each'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:81:in `block in require'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:70:in `each'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:70:in `require'
/var/lib/gems/2.1.0/gems/bundler-1.12.5/lib/bundler.rb:102:in `require'
/home/git/gitlab/config/application.rb:5:in `<top (required)>'
/home/git/gitlab/Rakefile:5:in `require'
/home/git/gitlab/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with docker-compose.yml and reproduce the failure with docker-compose up. Trace the migration startup from config/application.rb and Rakefile into the sys-filesystem and ffi stack shown in the error. Done means the container completes database migration and starts without the Bundler::GemRequireError.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, postgresql, redis, ruby
Domain
backend, databases, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.