Recipe Compile Error -- node['cpu']['total'].to_i is null?

Hello,

I'm trying to install gitlab-ee (without licence so ce) in an ubuntu jail on my vServer (no Docker support). When executing gitlab-ctl reconfigure

I'm getting following error: `Starting Chef Client, version 13.6.4 resolving cookbooks for run list: ["gitlab-ee"] Synchronizing Cookbooks:

  • gitlab-ee (0.0.1)
  • package (0.1.0)
  • gitlab (0.0.1)
  • consul (0.1.0)
  • runit (4.3.0)
  • repmgr (0.1.0)
  • postgresql (0.1.0)
  • redis (0.1.0)
  • mattermost (0.1.0)
  • registry (0.1.0)
  • gitaly (0.1.0)
  • letsencrypt (0.1.0)
  • nginx (0.1.0)
  • acme (3.1.0)
  • crond (0.1.0)
  • compat_resource (12.19.1) Installing Cookbook Gems: Compiling Cookbooks...

================================================================================ Recipe Compile Error in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/attributes/default.rb

NoMethodError

undefined method `[]' for nil:NilClass

Cookbook Trace:

/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/attributes/default.rb:653:in `from_file'

Relevant File Content:

/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/attributes/default.rb:

646: #### 647: # Nginx 648: #### 649: default['gitlab']['nginx']['enable'] = false 650: default['gitlab']['nginx']['ha'] = false 651: default['gitlab']['nginx']['dir'] = "/var/opt/gitlab/nginx" 652: default['gitlab']['nginx']['log_directory'] = "/var/log/gitlab/nginx" 653>> default['gitlab']['nginx']['worker_processes'] = node['cpu']['total'].to_i 654: default['gitlab']['nginx']['worker_connections'] = 10240 655: default['gitlab']['nginx']['log_format'] = '$remote_addr - remote_user [time_local] "$request_method $filtered_request_uri $server_protocol" $status body_bytes_sent "filtered_http_referer" "$http_user_agent"' # NGINX 'combined' format without query strings 656: default['gitlab']['nginx']['sendfile'] = 'on' 657: default['gitlab']['nginx']['tcp_nopush'] = 'on' 658: default['gitlab']['nginx']['tcp_nodelay'] = 'on' 659: default['gitlab']['nginx']['gzip'] = "on" 660: default['gitlab']['nginx']['gzip_http_version'] = "1.0" 661: default['gitlab']['nginx']['gzip_comp_level'] = "2" 662: default['gitlab']['nginx']['gzip_proxied'] = "any"

System Info:

chef_version=13.6.4 platform=ubuntu platform_version=16.04 ruby=ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux] program_name=/opt/gitlab/embedded/bin/chef-client executable=/opt/gitlab/embedded/bin/chef-client

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

undefined method `[]' for nil:NilClass

Running handlers complete Chef Client failed. 0 resources updated in 03 seconds`

Where is node['cpu']['total'] set? Maybe I can set it manually?