Error on the Update

Hello,

I have a problem with my GitLab

Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état... Fait Les paquets suivants seront mis à jour : gitlab-ce linux-libc-dev 2 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour. 8 partiellement installés ou enlevés. Il est nécessaire de prendre 268 Mo dans les archives. Après cette opération, 18,3 Mo d'espace disque seront libérés. Souhaitez-vous continuer [O/n] ? o Réception de : 1 https://packages.gitlab.com/gitlab/gitlab-ce/debian/ wheezy/main gitlab-ce amd64 8.5.3-ce.0 [267 MB] Réception de : 2 http://security.debian.org/ wheezy/updates/main linux-libc-dev amd64 3.2.73-2+deb7u3 [848 kB] 268 Mo réceptionnés en 2min 6s (2 127 ko/s) debconf: la configuration des paquets est différée, car apt-utils n'est pas installé (Lecture de la base de données... 108061 fichiers et répertoires déjà installés.) Préparation du remplacement de linux-libc-dev:amd64 3.2.73-2+deb7u2 (en utilisant .../linux-libc-dev_3.2.73-2+deb7u3_amd64.deb) ... Dépaquetage de la mise à jour de linux-libc-dev:amd64 ... Préparation du remplacement de gitlab-ce 8.4.4-ce.0 (en utilisant .../gitlab-ce_8.5.3-ce.0_amd64.deb) ... gitlab preinstall: Backing up GitLab SQL database (excluding Git repositories, uploads) D, [2016-03-03T23:30:46.350752 #10251] DEBUG -- : ** [Raven] Event not sent due to excluded environment: production rake aborted! PG::ConnectionBad: could not connect to server: Connection refused Is the server running locally and accepting connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"? /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in initialize’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in new' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in connect’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:242:in initialize' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:44:in new’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:44:in postgresql_connection' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:438:in new_connection’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:448:in checkout_new_connection' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:422:in acquire_connection’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:349:in block in checkout' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:348:in checkout’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:263:in block in connection' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:262:in connection’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:571:in retrieve_connection' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_handling.rb:113:in retrieve_connection’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_handling.rb:87:in connection' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/current_settings.rb:41:in connect_to_db?’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/current_settings.rb:7:in current_application_settings' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics.rb:11:in settings’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics.rb:22:in enabled?' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics.rb:75:in module:Metrics
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics.rb:2:in <module:Gitlab>' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics.rb:1:in <top (required)>’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in require' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in block in require’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:in load_dependency' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in require’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:360:in require_or_load' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:494:in load_missing_constant’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:184:in const_missing' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/metrics.rb:1:in <top (required)>’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:268:in load' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:268:in block in load’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:in load_dependency' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:268:in load’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/engine.rb:652:in block in load_config_initializer' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:166:in instrument’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/engine.rb:651:in load_config_initializer' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/engine.rb:616:in block (2 levels) in class:Engine
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/engine.rb:615:in each' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/engine.rb:615:in block in class:Engine
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in instance_exec' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in run’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/initializable.rb:55:in block in run_initializers' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/initializable.rb:44:in each’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/initializable.rb:44:in tsort_each_child' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/initializable.rb:54:in run_initializers’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/application.rb:352:in initialize!' /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:5:in <top (required)>’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in require' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in block in require’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:in load_dependency' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in require’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/application.rb:328:in require_environment!' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/application.rb:457:in block in run_tasks_blocks’
Tasks: TOP => gitlab:backup:create => environment
(See full trace by running task with --trace)
gitlab preinstall:
gitlab preinstall: Backup failed! If you want to skip this backup, run the following command and
gitlab preinstall: try again:
gitlab preinstall:
gitlab preinstall: sudo touch /etc/gitlab/skip-auto-migrations
gitlab preinstall:
dpkg: erreur de traitement de /var/cache/apt/archives/gitlab-ce_8.5.3-ce.0_amd64.deb (–unpack) :
le sous-processus nouveau script pre-installation a retourné une erreur de sortie d’état 1
gitlab: Thank you for installing GitLab!
gitlab: To configure and start GitLab, RUN THE FOLLOWING COMMAND:

sudo gitlab-ctl reconfigure

gitlab: GitLab should be reachable at http://git.XXXXXX.fr
gitlab: Otherwise configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
gitlab: And running reconfigure again.
gitlab:
gitlab: For a comprehensive list of configuration options please see the Omnibus GitLab readme
gitlab: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
gitlab:
Des erreurs ont été rencontrées pendant l’exécution :
/var/cache/apt/archives/gitlab-ce_8.5.3-ce.0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)`

I launch “sudo gitlab-ctl reconfigure”
`[2016-03-03T23:40:45+01:00] WARN: Ohai::Config[:disabled_plugins] is set. Ohai::Config[:disabled_plugins] is deprecated and will be removed in future releases of ohai. Use ohai.disabled_plugins in your configuration file to configure :disabled_plugins for ohai.
Starting Chef Client, version 12.5.1
[2016-03-03T23:40:46+01:00] WARN: [inet6] no ip address on venet0:0
resolving cookbooks for run list: [“gitlab”]
Synchronizing Cookbooks:

  • gitlab (0.0.1)
  • package (0.0.0)
  • runit (0.14.2)
    Compiling Cookbooks…
    Recipe: gitlab::default
  • directory[/etc/gitlab] action create (up to date)
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for directory[/var/opt/gitlab] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous directory[/var/opt/gitlab]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:43:in from_file' [2016-03-03T23:40:47+01:00] WARN: Current directory[/var/opt/gitlab]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/users.rb:24:in from_file’
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for cron[gitlab-ci schedule builds] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous cron[gitlab-ci schedule builds]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/cron.rb:20:in from_file' [2016-03-03T23:40:47+01:00] WARN: Current cron[gitlab-ci schedule builds]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/cron.rb:25:in from_file’
    init (upstart 1.6.1)
    [2016-03-03T23:40:47+01:00] WARN: Selected upstart because /sbin/init --version is showing upstart.
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for directory[/etc/sysctl.d] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous directory[/etc/sysctl.d]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:22:in block in from_file' [2016-03-03T23:40:47+01:00] WARN: Current directory[/etc/sysctl.d]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:22:in block in from_file’
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for file[/etc/sysctl.d/90-postgresql.conf] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous file[/etc/sysctl.d/90-postgresql.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file' [2016-03-03T23:40:47+01:00] WARN: Current file[/etc/sysctl.d/90-postgresql.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file’
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for file[/etc/sysctl.d/90-unicorn.conf] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous file[/etc/sysctl.d/90-unicorn.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file' [2016-03-03T23:40:47+01:00] WARN: Current file[/etc/sysctl.d/90-unicorn.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file’
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for file[/opt/gitlab/embedded/etc/90-omnibus-gitlab.conf] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous file[/opt/gitlab/embedded/etc/90-omnibus-gitlab.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file' [2016-03-03T23:40:47+01:00] WARN: Current file[/opt/gitlab/embedded/etc/90-omnibus-gitlab.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file’
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for file[/etc/sysctl.d/90-omnibus-gitlab.conf] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous file[/etc/sysctl.d/90-omnibus-gitlab.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file' [2016-03-03T23:40:47+01:00] WARN: Current file[/etc/sysctl.d/90-omnibus-gitlab.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file’
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for execute[load sysctl conf] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous execute[load sysctl conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:52:in block in from_file' [2016-03-03T23:40:47+01:00] WARN: Current execute[load sysctl conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:52:in block in from_file’
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for directory[/etc/sysctl.d] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous directory[/etc/sysctl.d]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:22:in block in from_file' [2016-03-03T23:40:47+01:00] WARN: Current directory[/etc/sysctl.d]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:22:in block in from_file’
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for file[/etc/sysctl.d/90-postgresql.conf] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous file[/etc/sysctl.d/90-postgresql.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file' [2016-03-03T23:40:47+01:00] WARN: Current file[/etc/sysctl.d/90-postgresql.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file’
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for file[/etc/sysctl.d/90-unicorn.conf] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous file[/etc/sysctl.d/90-unicorn.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file' [2016-03-03T23:40:47+01:00] WARN: Current file[/etc/sysctl.d/90-unicorn.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file’
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for file[/opt/gitlab/embedded/etc/90-omnibus-gitlab.conf] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous file[/opt/gitlab/embedded/etc/90-omnibus-gitlab.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file' [2016-03-03T23:40:47+01:00] WARN: Current file[/opt/gitlab/embedded/etc/90-omnibus-gitlab.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file’
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for file[/etc/sysctl.d/90-omnibus-gitlab.conf] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous file[/etc/sysctl.d/90-omnibus-gitlab.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file' [2016-03-03T23:40:47+01:00] WARN: Current file[/etc/sysctl.d/90-omnibus-gitlab.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file’
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for execute[load sysctl conf] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous execute[load sysctl conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:52:in block in from_file' [2016-03-03T23:40:47+01:00] WARN: Current execute[load sysctl conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:52:in block in from_file’
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for directory[/var/opt/gitlab/gitlab-rails/etc] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous directory[/var/opt/gitlab/gitlab-rails/etc]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-rails.rb:68:in block in from_file' [2016-03-03T23:40:47+01:00] WARN: Current directory[/var/opt/gitlab/gitlab-rails/etc]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/unicorn_config.rb:21:in block in from_file’
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for service[unicorn] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous service[unicorn]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:86:in block in from_file' [2016-03-03T23:40:47+01:00] WARN: Current service[unicorn]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/definitions/runit_service.rb:191:in block in from_file’
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for directory[/etc/sysctl.d] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous directory[/etc/sysctl.d]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:22:in block in from_file' [2016-03-03T23:40:47+01:00] WARN: Current directory[/etc/sysctl.d]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:22:in block in from_file’
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for file[/etc/sysctl.d/90-postgresql.conf] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous file[/etc/sysctl.d/90-postgresql.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file' [2016-03-03T23:40:47+01:00] WARN: Current file[/etc/sysctl.d/90-postgresql.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file’
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for file[/etc/sysctl.d/90-unicorn.conf] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous file[/etc/sysctl.d/90-unicorn.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file' [2016-03-03T23:40:47+01:00] WARN: Current file[/etc/sysctl.d/90-unicorn.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file’
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for file[/opt/gitlab/embedded/etc/90-omnibus-gitlab.conf] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous file[/opt/gitlab/embedded/etc/90-omnibus-gitlab.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file' [2016-03-03T23:40:47+01:00] WARN: Current file[/opt/gitlab/embedded/etc/90-omnibus-gitlab.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file’
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for file[/etc/sysctl.d/90-omnibus-gitlab.conf] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous file[/etc/sysctl.d/90-omnibus-gitlab.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file' [2016-03-03T23:40:47+01:00] WARN: Current file[/etc/sysctl.d/90-omnibus-gitlab.conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:45:in block (2 levels) in from_file’
    [2016-03-03T23:40:47+01:00] WARN: Cloning resource attributes for execute[load sysctl conf] from prior resource (CHEF-3694)
    [2016-03-03T23:40:47+01:00] WARN: Previous execute[load sysctl conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:52:in block in from_file' [2016-03-03T23:40:47+01:00] WARN: Current execute[load sysctl conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:52:in block in from_file’
    [2016-03-03T23:40:48+01:00] WARN: Cloning resource attributes for service[sidekiq] from prior resource (CHEF-3694)
    [2016-03-03T23:40:48+01:00] WARN: Previous service[sidekiq]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:86:in block in from_file' [2016-03-03T23:40:48+01:00] WARN: Current service[sidekiq]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/definitions/runit_service.rb:191:in block in from_file’
    Converging 264 resources

  • directory[/etc/gitlab] action nothing (skipped due to action :nothing)

  • directory[/var/opt/gitlab] action create (up to date)

  • directory[/opt/gitlab/embedded/etc] action create (up to date)

  • template[/opt/gitlab/embedded/etc/gitconfig] action create (up to date)
    Recipe: gitlab::web-server

  • group[gitlab-www] action create (up to date)

  • user[gitlab-www] action create (up to date)
    Recipe: gitlab::users

  • directory[/var/opt/gitlab] action create (up to date)

  • group[git] action create (up to date)

  • user[git] action create (up to date)

  • template[/var/opt/gitlab/.gitconfig] action create (up to date)
    Recipe: gitlab::gitlab-shell

  • directory[/var/opt/gitlab/git-data/repositories] action create (up to date)

  • directory[/var/opt/gitlab/.ssh] action create (up to date)

  • file[/var/opt/gitlab/.ssh/authorized_keys] action create (up to date)

  • directory[/opt/gitlab/embedded/service/gitlab-shell/hooks/] action create

    • change owner from ‘root’ to ‘git’
    • change group from ‘root’ to ‘git’
  • file[/opt/gitlab/embedded/service/gitlab-shell/authorized_keys.lock] action create (up to date)

  • execute[chcon --recursive --type ssh_home_t /var/opt/gitlab/.ssh] action run (skipped due to only_if)

  • directory[/var/log/gitlab/gitlab-shell/] action create (up to date)

  • directory[/var/opt/gitlab/gitlab-shell] action create (up to date)

  • directory[/var/opt/gitlab/git-data] action create (up to date)

  • template[/var/opt/gitlab/gitlab-shell/config.yml] action create (up to date)

  • link[/opt/gitlab/embedded/service/gitlab-shell/config.yml] action create (up to date)

  • template[/var/opt/gitlab/gitlab-shell/gitlab_shell_secret] action create (up to date)

  • link[/opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret] action create (up to date)
    Recipe: gitlab::gitlab-rails

  • directory[/var/log/gitlab] action create (up to date)

  • directory[/var/opt/gitlab/gitlab-rails/shared] action create (up to date)

  • directory[/var/opt/gitlab/gitlab-rails/etc] action create (up to date)

  • directory[/opt/gitlab/etc/gitlab-rails] action create (up to date)

  • directory[/var/opt/gitlab/gitlab-rails/working] action create (up to date)

  • directory[/var/opt/gitlab/gitlab-rails/tmp] action create (up to date)

  • directory[/var/opt/gitlab/gitlab-ci/builds] action create (up to date)

  • directory[/var/opt/gitlab/gitlab-rails/shared/artifacts] action create (up to date)

  • directory[/var/opt/gitlab/gitlab-rails/shared/lfs-objects] action create (up to date)

  • directory[/var/log/gitlab/gitlab-rails] action create (up to date)

  • directory[/var/opt/gitlab/backups] action create (up to date)

  • directory[/var/opt/gitlab/gitlab-rails] action create (up to date)

  • directory[/var/opt/gitlab/gitlab-ci] action create (up to date)

  • directory[/var/opt/gitlab/gitlab-rails/uploads] action create (up to date)

  • directory[/var/opt/gitlab/gitlab-rails/shared/pages] action create (up to date)

  • template[/opt/gitlab/etc/gitlab-rails/gitlab-rails-rc] action create (up to date)

  • template[/var/opt/gitlab/gitlab-rails/config.ru] action create (up to date)

  • link[/opt/gitlab/embedded/service/gitlab-rails/config.ru] action create (up to date)

  • template[/var/opt/gitlab/gitlab-rails/etc/secret] action create (up to date)

  • link[/opt/gitlab/embedded/service/gitlab-rails/.secret] action create (up to date)

  • template[/var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date)

  • link[/opt/gitlab/embedded/service/gitlab-rails/config/database.yml] action create (up to date)

  • template[/var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date)

  • link[/opt/gitlab/embedded/service/gitlab-rails/config/secrets.yml] action create (up to date)

  • template[/var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date)

  • link[/opt/gitlab/embedded/service/gitlab-rails/config/resque.yml] action create (up to date)

  • template[/var/opt/gitlab/gitlab-rails/etc/aws.yml] action delete (up to date)

  • link[/opt/gitlab/embedded/service/gitlab-rails/config/aws.yml] action delete (up to date)

  • template[/var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action delete (up to date)

  • link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/smtp_settings.rb] action delete (up to date)

  • template[/var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create (up to date)

  • link[/opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml] action create (up to date)

  • template[/var/opt/gitlab/gitlab-rails/etc/rack_attack.rb] action create (up to date)

  • link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/rack_attack.rb] action create (up to date)

  • link[/opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret] action create (up to date)

  • directory[/opt/gitlab/etc/gitlab-rails/env] action create (up to date)

  • file[/opt/gitlab/etc/gitlab-rails/env/HOME] action create (up to date)

  • file[/opt/gitlab/etc/gitlab-rails/env/RAILS_ENV] action create (up to date)

  • file[/opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS] action create (up to date)

  • file[/opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE] action create (up to date)

  • file[/opt/gitlab/etc/gitlab-rails/env/PATH] action create (up to date)

  • link[/opt/gitlab/embedded/service/gitlab-rails/tmp] action create (up to date)

  • link[/opt/gitlab/embedded/service/gitlab-rails/public/uploads] action create (up to date)

  • link[/opt/gitlab/embedded/service/gitlab-rails/log] action create (up to date)

  • link[/var/log/gitlab/gitlab-rails/sidekiq.log] action create (skipped due to not_if)

  • file[/opt/gitlab/embedded/service/gitlab-rails/db/schema.rb] action create (up to date)

  • remote_file[/var/opt/gitlab/gitlab-rails/VERSION] action create (up to date)

  • execute[chown -R root:root /opt/gitlab/embedded/service/gitlab-rails/public] action run

    • execute chown -R root:root /opt/gitlab/embedded/service/gitlab-rails/public
  • execute[clear the gitlab-rails cache] action nothing (skipped due to action :nothing)
    Recipe: gitlab::gitlab-ci_disable

  • template[/var/opt/gitlab/nginx/conf/gitlab-ci-http.conf] action delete (up to date)
    Recipe: gitlab::cron

  • cron[gitlab-ci schedule builds] action delete (up to date)

  • cron[gitlab-ci schedule builds] action delete (up to date)
    Recipe: gitlab::default

  • service[unicorn] action nothing (skipped due to action :nothing)

  • service[ci-unicorn] action nothing (skipped due to action :nothing)

  • service[sidekiq] action nothing (skipped due to action :nothing)

  • service[ci-sidekiq] action nothing (skipped due to action :nothing)
    Recipe: runit::upstart

  • cookbook_file[/etc/init/gitlab-runsvdir.conf] action create (up to date)

  • execute[initctl reload-configuration] action run

    ================================================================================
    Error executing action run on resource ‘execute[initctl reload-configuration]’

    Mixlib::ShellOut::ShellCommandFailed

    Expected process to exit with [0], but received ‘1’
    ---- Begin output of initctl reload-configuration ----
    STDOUT:
    STDERR: initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
    ---- End output of initctl reload-configuration ----
    Ran initctl reload-configuration returned 1

    Resource Declaration:

    In /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/recipes/upstart.rb

    29: execute “initctl reload-configuration” do
    30: command “initctl reload-configuration”
    31: end
    32:

    Compiled Resource:

    Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/recipes/upstart.rb:29:in `from_file’

    execute(“initctl reload-configuration”) do
    action [:run]
    retries 0
    retry_delay 2
    default_guard_interpreter :execute
    command “initctl reload-configuration”
    backup 5
    returns 0
    declared_type :execute
    cookbook_name “runit”
    recipe_name “upstart”
    end

Running handlers:
[2016-03-03T23:40:48+01:00] ERROR: Running exception handlers
Running handlers complete
[2016-03-03T23:40:48+01:00] ERROR: Exception handlers complete
Chef Client failed. 2 resources updated in 02 seconds
[2016-03-03T23:40:48+01:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out
[2016-03-03T23:40:48+01:00] ERROR: execute[initctl reload-configuration] (runit::upstart line 29) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received ‘1’
---- Begin output of initctl reload-configuration ----
STDOUT:
STDERR: initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
---- End output of initctl reload-configuration ----
Ran initctl reload-configuration returned 1
[2016-03-03T23:40:48+01:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)`

I can not run GitLab
sudo gitlab-ctl start fail: gitlab-workhorse: runsv not running fail: logrotate: runsv not running fail: nginx: runsv not running fail: postgresql: runsv not running fail: redis: runsv not running fail: sidekiq: runsv not running fail: unicorn: runsv not running

Cordialy

Hi

Cant make out much from the error log. please paste the o/p of the below cmd.
sudo gitlab-rake gitlab:env:info --trace

Have a look at the below logs to identify the problem.
You can paste the errors of the below logs

/var/log/gitlab/gitlab-shell/gitlab-shell.log
/var/log/gitlab/gitlab-rails/production.log
/var/log/gitlab/nginx/gitlab_access.log
/var/log/gitlab/nginx/gitlab_error.log

You can also use gitlab-ctl tail (this will show the trace from all imp. logs)

@normanfeltz [quote=“normanfeltz, post:1, topic:2474”]
PG::ConnectionBad: could not connect to server: Connection refused Is the server running locally and accepting connections on Unix domain socket “/var/opt/gitlab/postgresql/.s.PGSQL.5432”?
[/quote]

This seems like a database connection issue.

  • Could you please
  1. Share your /etc/gitlab/gitlab.rb file?
  2. Paste the result of sudo gitlab-ctl status

`sudo gitlab-rake gitlab:env:info --trace

** Invoke gitlab:env:info (first_time)
** Invoke environment (first_time)
** Execute environment
D, [2016-03-04T15:12:29.260992 #23029] DEBUG – : ** [Raven] Event not sent due to excluded environment: production
rake aborted!
PG::ConnectionBad: could not connect to server: Connection refused
Is the server running locally and accepting
connections on Unix domain socket “/var/opt/gitlab/postgresql/.s.PGSQL.5432”?
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in initialize' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in new’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in connect' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:242:in initialize’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:44:in new' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:44:in postgresql_connection’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:438:in new_connection' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:448:in checkout_new_connection’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:422:in acquire_connection' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:349:in block in checkout’
/opt/gitlab/embedded/lib/ruby/2.1.0/monitor.rb:211:in mon_synchronize' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:348:in checkout’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:263:in block in connection' /opt/gitlab/embedded/lib/ruby/2.1.0/monitor.rb:211:in mon_synchronize’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:262:in connection' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:571:in retrieve_connection’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_handling.rb:113:in retrieve_connection' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_handling.rb:87:in connection’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/current_settings.rb:41:in connect_to_db?' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/current_settings.rb:7:in current_application_settings’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics.rb:11:in settings' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics.rb:22:in enabled?’
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics.rb:75:in <module:Metrics>' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics.rb:2:in module:Gitlab
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics.rb:1:in <top (required)>' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in require’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in block in require' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:in load_dependency’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in require' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:360:in require_or_load’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:494:in load_missing_constant' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:184:in const_missing’
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/metrics.rb:1:in <top (required)>' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:268:in load’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:268:in block in load' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:in load_dependency’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:268:in load' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/engine.rb:652:in block in load_config_initializer’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:166:in instrument' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/engine.rb:651:in load_config_initializer’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/engine.rb:616:in block (2 levels) in <class:Engine>' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/engine.rb:615:in each’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/engine.rb:615:in block in <class:Engine>' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in instance_exec’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in run' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/initializable.rb:55:in block in run_initializers’
/opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:226:in block in tsort_each' /opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:348:in block (2 levels) in each_strongly_connected_component’
/opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:418:in block (2 levels) in each_strongly_connected_component_from' /opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:427:in each_strongly_connected_component_from’
/opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:417:in block in each_strongly_connected_component_from' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/initializable.rb:44:in each’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/initializable.rb:44:in tsort_each_child' /opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:411:in call’
/opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:411:in each_strongly_connected_component_from' /opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:347:in block in each_strongly_connected_component’
/opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:345:in each' /opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:345:in call’
/opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:345:in each_strongly_connected_component' /opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:224:in tsort_each’
/opt/gitlab/embedded/lib/ruby/2.1.0/tsort.rb:205:in tsort_each' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/initializable.rb:54:in run_initializers’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/application.rb:352:in initialize!' /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:5:in <top (required)>’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in require' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in block in require’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:in load_dependency' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in require’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/application.rb:328:in require_environment!' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/application.rb:457:in block in run_tasks_blocks’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:240:in call' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:240:in block in execute’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:235:in each' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:235:in execute’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:179:in block in invoke_with_call_chain' /opt/gitlab/embedded/lib/ruby/2.1.0/monitor.rb:211:in mon_synchronize’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:172:in invoke_with_call_chain' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:201:in block in invoke_prerequisites’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:199:in each' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:199:in invoke_prerequisites’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:178:in block in invoke_with_call_chain' /opt/gitlab/embedded/lib/ruby/2.1.0/monitor.rb:211:in mon_synchronize’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:172:in invoke_with_call_chain' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:165:in invoke’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:150:in invoke_task' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:106:in block (2 levels) in top_level’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:106:in each' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:106:in block in top_level’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:115:in run_with_threads' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:100:in top_level’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:78:in block in run' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:176:in standard_exception_handling’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:75:in run' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/rake-10.5.0/bin/rake:33:in <top (required)>’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/bin/rake:23:in load' /opt/gitlab/embedded/service/gem/ruby/2.1.0/bin/rake:23:in
Tasks: TOP => gitlab:env:info => environment`

`sudo gitlab-ctl tail
==> /var/log/gitlab/gitlab-workhorse/state <==

==> /var/log/gitlab/gitlab-workhorse/current <==
2016-02-29_18:50:39.58118 2016/02/29 19:50:39 Send file “/opt/gitlab/embedded/service/gitlab-rails/public/uploads/project/avatar/17/terminal_application-512.png” for GET “/uploads/project/avatar/17/terminal_application-512.png”
2016-02-29_18:50:39.58153 localhost:8000 @ - - [2016-02-29 19:50:39.506866021 +0100 CET] “GET /uploads/project/avatar/17/terminal_application-512.png HTTP/1.1” 200 15808 “https://git.unikube.fr/” “Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0” 0.074617
2016-02-29_18:50:39.59854 2016/02/29 19:50:39 Send file “/opt/gitlab/embedded/service/gitlab-rails/public/uploads/project/avatar/4/icon-mysql.jpg” for GET “/uploads/project/avatar/4/icon-mysql.jpg”
2016-02-29_18:50:39.60561 localhost:8000 @ - - [2016-02-29 19:50:39.485699606 +0100 CET] “GET /uploads/project/avatar/4/icon-mysql.jpg HTTP/1.1” 200 23405 “https://git.unikube.fr/” “Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0” 0.119676
2016-02-29_18:50:39.62261 2016/02/29 19:50:39 Send file “/opt/gitlab/embedded/service/gitlab-rails/public/uploads/project/avatar/10/4350249.png” for GET “/uploads/project/avatar/10/4350249.png”
2016-02-29_18:50:39.62463 localhost:8000 @ - - [2016-02-29 19:50:39.506684782 +0100 CET] “GET /uploads/project/avatar/10/4350249.png HTTP/1.1” 200 52091 “https://git.unikube.fr/” “Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0” 0.117909
2016-02-29_18:50:39.62649 2016/02/29 19:50:39 Send file “/opt/gitlab/embedded/service/gitlab-rails/public/uploads/project/avatar/8/Glowstone__poudre_.png” for GET “/uploads/project/avatar/8/Glowstone__poudre_.png”
2016-02-29_18:50:39.62677 localhost:8000 @ - - [2016-02-29 19:50:39.066717371 +0100 CET] “GET /uploads/project/avatar/8/Glowstone__poudre_.png HTTP/1.1” 200 400 “https://git.unikube.fr/” “Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0” 0.559967
2016-02-29_18:50:39.62805 2016/02/29 19:50:39 Send file “/opt/gitlab/embedded/service/gitlab-rails/public/uploads/project/avatar/9/icon_core_2x.png” for GET “/uploads/project/avatar/9/icon_core_2x.png”
2016-02-29_18:50:39.62854 localhost:8000 @ - - [2016-02-29 19:50:39.017087241 +0100 CET] “GET /uploads/project/avatar/9/icon_core_2x.png HTTP/1.1” 200 25722 “https://git.unikube.fr/” “Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0” 0.611425

==> /var/log/gitlab/redis/state <==

==> /var/log/gitlab/redis/current <==
2016-03-01_02:12:46.05349 [31459] 01 Mar 03:12:46.053 * 10 changes in 300 seconds. Saving…
2016-03-01_02:12:46.05372 [31459] 01 Mar 03:12:46.053 * Background saving started by pid 31954
2016-03-01_02:12:46.06077 [31954] 01 Mar 03:12:46.060 * DB saved on disk
2016-03-01_02:12:46.06125 [31954] 01 Mar 03:12:46.061 * RDB: 0 MB of memory used by copy-on-write
2016-03-01_02:12:46.15409 [31459] 01 Mar 03:12:46.154 * Background saving terminated with success
2016-03-01_02:17:47.06493 [31459] 01 Mar 03:17:47.064 * 10 changes in 300 seconds. Saving…
2016-03-01_02:17:47.06523 [31459] 01 Mar 03:17:47.065 * Background saving started by pid 32285
2016-03-01_02:17:47.06897 [32285] 01 Mar 03:17:47.068 * DB saved on disk
2016-03-01_02:17:47.06919 [32285] 01 Mar 03:17:47.069 * RDB: 0 MB of memory used by copy-on-write
2016-03-01_02:17:47.16589 [31459] 01 Mar 03:17:47.165 * Background saving terminated with success

==> /var/log/gitlab/sidekiq/state <==

==> /var/log/gitlab/sidekiq/current <==
2016-02-29_23:00:11.34430 2016-02-29T23:00:11.344Z 27603 TID-bhrg4 StuckCiBuildsWorker JID-c49299a3235c069d691f2b1c INFO: start
2016-02-29_23:00:11.34701 2016-02-29T23:00:11.346Z 27603 TID-bn1xw INFO: Cron Jobs - add job with name: stuck_ci_builds_worker
2016-02-29_23:00:11.41019 2016-02-29T23:00:11.410Z 27603 TID-bhrg4 StuckCiBuildsWorker JID-c49299a3235c069d691f2b1c INFO: done: 0.066 sec

==> /var/log/gitlab/gitlab-rails/githost.log <==

==> /var/log/gitlab/gitlab-rails/application.log <==

==> /var/log/gitlab/gitlab-rails/production.log <==

==> /var/log/gitlab/unicorn/state <==

==> /var/log/gitlab/unicorn/unicorn_stdout.log <==

==> /var/log/gitlab/unicorn/unicorn_stderr.log <==

==> /var/log/gitlab/unicorn/current <==

==> /var/log/gitlab/gitlab-shell/gitlab-shell.log <==

==> /var/log/gitlab/postgresql/state <==

==> /var/log/gitlab/postgresql/current <==

==> /var/log/gitlab/nginx/gitlab_access.log <==
127.0.0.1 - - [04/Mar/2016:08:55:49 +0100] “GET /favicon.ico HTTP/1.0” 502 166 “-” “Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0”
127.0.0.1 - - [04/Mar/2016:08:55:49 +0100] “GET /favicon.ico HTTP/1.0” 502 166 “-” “Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0”
127.0.0.1 - - [04/Mar/2016:08:55:59 +0100] “GET / HTTP/1.0” 502 166 “-” “Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0”
127.0.0.1 - - [04/Mar/2016:08:57:40 +0100] “GET / HTTP/1.0” 502 166 “-” “Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0”
127.0.0.1 - - [04/Mar/2016:11:07:41 +0100] “GET / HTTP/1.0” 502 166 “-” “Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0”
127.0.0.1 - - [04/Mar/2016:11:07:46 +0100] “GET /favicon.ico HTTP/1.0” 502 166 “-” “Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0”
127.0.0.1 - - [04/Mar/2016:11:07:46 +0100] “GET /favicon.ico HTTP/1.0” 502 166 “-” “Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0”
127.0.0.1 - - [04/Mar/2016:15:10:30 +0100] “GET /favicon.ico HTTP/1.0” 502 166 “-” “Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0”
127.0.0.1 - - [04/Mar/2016:15:10:30 +0100] “GET /favicon.ico HTTP/1.0” 502 166 “-” “Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0”
127.0.0.1 - - [04/Mar/2016:15:10:34 +0100] “GET / HTTP/1.0” 502 166 “-” “Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0”

==> /var/log/gitlab/nginx/error.log <==

==> /var/log/gitlab/nginx/current <==

==> /var/log/gitlab/nginx/gitlab_error.log <==
2016/03/04 08:55:49 [error] 32302#0: *577 connect() to unix:/var/opt/gitlab/gitlab-workhorse/socket failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: git.unikube.fr, request: “GET /favicon.ico HTTP/1.0”, upstream: “http://unix:/var/opt/gitlab/gitlab-workhorse/socket:/favicon.ico”, host: “localhost:8000”
2016/03/04 08:55:49 [error] 32302#0: *579 connect() to unix:/var/opt/gitlab/gitlab-workhorse/socket failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: git.unikube.fr, request: “GET /favicon.ico HTTP/1.0”, upstream: “http://unix:/var/opt/gitlab/gitlab-workhorse/socket:/favicon.ico”, host: “localhost:8000”
2016/03/04 08:55:59 [error] 32302#0: *581 connect() to unix:/var/opt/gitlab/gitlab-workhorse/socket failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: git.unikube.fr, request: “GET / HTTP/1.0”, upstream: “http://unix:/var/opt/gitlab/gitlab-workhorse/socket:/”, host: “localhost:8000”
2016/03/04 08:57:40 [error] 32302#0: *583 connect() to unix:/var/opt/gitlab/gitlab-workhorse/socket failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: git.unikube.fr, request: “GET / HTTP/1.0”, upstream: “http://unix:/var/opt/gitlab/gitlab-workhorse/socket:/”, host: “localhost:8000”
2016/03/04 11:07:41 [error] 32302#0: *585 connect() to unix:/var/opt/gitlab/gitlab-workhorse/socket failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: git.unikube.fr, request: “GET / HTTP/1.0”, upstream: “http://unix:/var/opt/gitlab/gitlab-workhorse/socket:/”, host: “localhost:8000”
2016/03/04 11:07:46 [error] 32302#0: *587 connect() to unix:/var/opt/gitlab/gitlab-workhorse/socket failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: git.unikube.fr, request: “GET /favicon.ico HTTP/1.0”, upstream: “http://unix:/var/opt/gitlab/gitlab-workhorse/socket:/favicon.ico”, host: “localhost:8000”
2016/03/04 11:07:46 [error] 32302#0: *589 connect() to unix:/var/opt/gitlab/gitlab-workhorse/socket failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: git.unikube.fr, request: “GET /favicon.ico HTTP/1.0”, upstream: “http://unix:/var/opt/gitlab/gitlab-workhorse/socket:/favicon.ico”, host: “localhost:8000”
2016/03/04 15:10:30 [error] 32302#0: *591 connect() to unix:/var/opt/gitlab/gitlab-workhorse/socket failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: git.unikube.fr, request: “GET /favicon.ico HTTP/1.0”, upstream: “http://unix:/var/opt/gitlab/gitlab-workhorse/socket:/favicon.ico”, host: “localhost:8000”
2016/03/04 15:10:30 [error] 32302#0: *593 connect() to unix:/var/opt/gitlab/gitlab-workhorse/socket failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: git.unikube.fr, request: “GET /favicon.ico HTTP/1.0”, upstream: “http://unix:/var/opt/gitlab/gitlab-workhorse/socket:/favicon.ico”, host: “localhost:8000”
2016/03/04 15:10:34 [error] 32302#0: *595 connect() to unix:/var/opt/gitlab/gitlab-workhorse/socket failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: git.unikube.fr, request: “GET / HTTP/1.0”, upstream: “http://unix:/var/opt/gitlab/gitlab-workhorse/socket:/”, host: “localhost:8000”

==> /var/log/gitlab/logrotate/state <==

==> /var/log/gitlab/logrotate/current <==

`

Please share your /etc/gitlab/gitlab.rb file.

My gitlab.rb file: http://pastebin.com/rrnNFzZC

Hi

I could see two problems

  1. Postgresql is unable to start.
  2. Unicorn and nginx might be conflicting for port number.

Try these solutions :

  1. Postgresql: Try restarting Postgress and then GitLab
  2. Port conflict: Try this link for more info about PortConfiguration

Paste the result of sudo gitlab-ctl status

Hi,

Gitlab had great works before the update.

~$ sudo gitlab-ctl start fail: gitlab-workhorse: runsv not running fail: logrotate: runsv not running fail: nginx: runsv not running fail: postgresql: runsv not running fail: redis: runsv not running fail: sidekiq: runsv not running fail: unicorn: runsv not running
~$ sudo gitlab-ctl start postgresql fail: postgresql: runsv not running

Cordialy

Hi

Where you able to recover your Gitlab. There are multiple errors.

gitlab preinstall: Backing up GitLab SQL database (excluding Git repositories, uploads)
PG::ConnectionBad: could not connect to server: Connection refused
gitlab preinstall: Backup failed! If you want to skip this backup, run the following command and

What did you try to do, Did you try to upgrade ?
Postgresql is not coming up. Please try to recover db, then you can solve other errors.

Looks like runsv is not running

  1. First let’s confirm if you are on systemd or upstart. To confirm check for the existence of the following directories.
  • /usr/lib/systemd tells you you’re on a systemd based system

  • /usr/share/upstart is an indicator that you’re on an Upstart-based system.

  • /etc/init.d tells you the box has SysV init in its history

  1. Manually setup gitlab-runsvdir with your service
  • On upstart and SysV do:
    sudo cp /opt/gitlab/embedded/cookbooks/runit/files/default/gitlab-runsvdir* /etc/init/

  • On systemd do:
    sudo cp /opt/gitlab/embedded/cookbooks/runit/files/default/gitlab-runsvdir.service /usr/lib/systemd/system

  1. Start runsv
  • Upstart: sudo initctl start gitlab-runsvdir
  • systemd:
    • sudo systemctl daemon-reload
    • sudo systemctl start gitlab-runsvdir
  1. Start GitLab
  • sudo gitlab-ctl start
2 Likes

Hello,

It was SysV.

sudo initctl start gitlab-runsvdir initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connexion refusée

Cordialy

Thanks for the feedback.

Just to provide some more context. What is the output of the following command uname -a?

Are you running your ubuntu under a virtual host?

I running on Debian 7.

After a reboot, GitLab working again normally

2 Likes

Good to hear :slight_smile: