Skip to content

General 500 error after 10.5 update

Summary

General 500 error after 10.5 update

Steps to reproduce

Update gitlab-ee to 10.5

Relevant logs and/or screenshots

None found.

Output of checks

See below

Results of GitLab environment info

Expand for output related to GitLab environment info
System information
System:		Debian 8.10
Proxy:		no
Current User:	git
Using RVM:	no
Ruby Version:	2.3.6p384
Gem Version:	2.6.13
Bundler Version:1.13.7
Rake Version:	12.3.0
Redis Version:	3.2.11
Git Version:	2.14.3
Sidekiq Version:5.0.5
Go Version:	unknown

GitLab information Version: 10.5.0-ee Revision: 0ee5f75 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql DB Version: 9.6.5 URL: https://git.example.com HTTP Clone URL: https://git.example.com/some-group/some-project.git SSH Clone URL: git@git.example.com:some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: yes Using Omniauth: yes Omniauth Providers: google_oauth2, saml

GitLab Shell Version: 6.0.3 Repository storage paths:

  • default: /mnt/disks/storage/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git

Results of GitLab application Check

Expand for output related to the GitLab application check

Checking GitLab Shell ...

GitLab Shell version >= 6.0.3 ? ... OK (6.0.3) Repo base directory exists? default... yes Repo storage directories are symlinks? default... no Repo paths owned by git:root, or git:git? default... yes Repo paths access is drwxrws---? default... yes hooks directories in repos are links: ... 59/2 ... ok 7/3 ... ok 7/4 ... ok 7/5 ... ok 5/8 ... ok 5/9 ... ok 5/10 ... ok 5/11 ... ok 7/12 ... ok 5/15 ... ok 5/16 ... ok 5/17 ... ok 5/18 ... ok 60/19 ... ok 10/20 ... ok 5/21 ... ok 5/22 ... ok 5/24 ... ok 5/26 ... ok 5/28 ... ok 5/29 ... ok 5/30 ... ok 5/31 ... ok 5/32 ... ok 5/33 ... ok 5/34 ... ok 60/35 ... ok 60/36 ... ok 59/38 ... ok 59/39 ... ok 59/40 ... ok 5/41 ... ok 5/42 ... ok 59/43 ... ok 2/45 ... ok 5/46 ... ok 5/49 ... ok 5/51 ... ok 5/52 ... ok 5/54 ... ok Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK

Access to /var/opt/gitlab/.ssh/authorized_keys: OK gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Checking Reply by email ...

IMAP server credentials are correct? ... yes Init.d configured correctly? ... skipped MailRoom running? ... skipped

Checking Reply by email ... Finished

Checking LDAP ...

Server: ldapmain LDAP authentication... Success LDAP users with access to your GitLab server (only showing the first 100 results) [Omitted]

Checking LDAP ... Finished

Checking GitLab ...

Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 59/2 ... yes 7/3 ... yes 7/4 ... yes 7/5 ... yes 5/8 ... yes 5/9 ... yes 5/10 ... yes 5/11 ... yes 7/12 ... yes 5/15 ... yes 5/16 ... yes 5/17 ... yes 5/18 ... yes 60/19 ... yes 10/20 ... yes 5/21 ... yes 5/22 ... yes 5/24 ... yes 5/26 ... yes 5/28 ... yes 5/29 ... yes 5/30 ... yes 5/31 ... yes 5/32 ... yes 5/33 ... yes 5/34 ... yes 60/35 ... yes 60/36 ... yes 59/38 ... yes 59/39 ... yes 59/40 ... yes 5/41 ... yes 5/42 ... yes 59/43 ... yes 2/45 ... yes 5/46 ... yes 5/49 ... yes 5/51 ... yes 5/52 ... yes 5/54 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.3.6) Git version >= 2.9.5 ? ... yes (2.14.3) Git user has default SSH configuration? ... yes Active users: ... 16 Elasticsearch version 5.1 - 5.5? ... skipped (elasticsearch is disabled)

Checking GitLab ... Finished

Possible fixes

No idea, however see the output of gitlab-ctl reconfigure below:

Starting Chef Client, version 12.21.31
resolving cookbooks for run list: ["gitlab-ee"]
Synchronizing Cookbooks:
  - gitlab-ee (0.0.1)
  - package (0.1.0)
  - gitlab (0.0.1)
  - consul (0.0.0)
  - repmgr (0.1.0)
  - runit (0.14.2)
  - postgresql (0.1.0)
  - registry (0.1.0)
  - mattermost (0.1.0)
  - gitaly (0.1.0)
  - letsencrypt (0.1.0)
  - nginx (0.1.0)
  - acme (3.1.0)
  - compat_resource (12.19.0)
Installing Cookbook Gems:
Compiling Cookbooks...

================================================================================
Recipe Compile Error in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab-ee/recipes/default.rb
================================================================================

TypeError
---------
no implicit conversion of nil into String

Cookbook Trace:
---------------
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitaly/libraries/gitaly.rb:92:in `join'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitaly/libraries/gitaly.rb:92:in `block in parse_git_data_dirs'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitaly/libraries/gitaly.rb:89:in `each'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitaly/libraries/gitaly.rb:89:in `map'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitaly/libraries/gitaly.rb:89:in `parse_git_data_dirs'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitaly/libraries/gitaly.rb:21:in `parse_variables'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/settings_helper.rb:174:in `block in generate_config'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/settings_helper.rb:172:in `each'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/settings_helper.rb:172:in `generate_config'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/config.rb:26:in `from_file'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:26:in `from_file'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab-ee/recipes/default.rb:20:in `from_file'

Relevant File Content:
----------------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitaly/libraries/gitaly.rb:

 85:      end
 86:  
 87:      def parse_git_data_dirs
 88:        Gitlab['gitlab_rails']['repositories_storages'] =
 89:          Hash[converted_git_data_dirs.map do |name, data_directory|
 90:            shard_gitaly_address = data_directory['gitaly_address'] || gitaly_address
 91:  
 92>>           defaults = { 'path' => File.join(data_directory['path'], 'repositories'), 'gitaly_address' => shard_gitaly_address }
 93:            params = data_directory.merge(defaults)
 94:  
 95:            [name, params]
 96:          end]
 97:      end
 98:  
 99:      def parse_gitaly_storages
100:        return unless Gitlab['gitaly']['storage'].nil?
101:  

System Info:
------------
chef_version=12.21.31
platform=debian
platform_version=8.10
ruby=ruby 2.3.6p384 (2017-12-14 revision 61254) [x86_64-linux]
program_name=chef-client worker: ppid=28195;start=17:00:44;
executable=/opt/gitlab/embedded/bin/chef-client


Running handlers:
There was an error running gitlab-ctl reconfigure:

no implicit conversion of nil into String

Running handlers complete
Chef Client failed. 0 resources updated in 06 seconds
Edited by Christian Daguerre