install gitlab-ce_7.12.2~omnibus-1_amd64.deb fail
Created by: Matrix-Zhang
Starting Chef Client, version 12.4.0.rc.0 resolving cookbooks for run list: ["gitlab"] Synchronizing Cookbooks:
-
package
-
gitlab
-
runit Compiling Cookbooks... Recipe: gitlab::default
-
directory[/etc/gitlab] action create (up to date)
undefined method `[]' for nil:NilClass
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/helper.rb:177:in
block (2 levels) in read_gitlab_secrets' /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/helper.rb:175:in
each' /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/helper.rb:175:inblock in read_gitlab_secrets' /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/helper.rb:174:in
each' /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/helper.rb:174:inread_gitlab_secrets' /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/gitlab.rb:70:in
generate_secrets' /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/gitlab.rb:285:ingenerate_config' /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:37:in
from_file'/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/helper.rb:
170: if File.exists?("/etc/gitlab/gitlab-secrets.json") 171: existing_secrets = Chef::JSONCompat.from_json(File.read("/etc/gitlab/gitlab-secrets.json")) 172: end 173:
174: existing_secrets.each do |k, v| 175: v.each do |pk, p| 176: # Note: Specifiying a secret in gitlab.rb will take precendence over "gitlab-secrets.json" 177>> Gitlab[k][pk] ||= p 178: end 179: end 180: end 181:
182: def self.write_to_gitlab_secrets 183: secret_tokens = { 184: 'gitlab_shell' => { 185: 'secret_token' => Gitlab['gitlab_shell']['secret_token'], 186: },Running handlers: [2015-09-11T13:27:22+08:00] ERROR: Running exception handlers Running handlers complete [2015-09-11T13:27:22+08:00] ERROR: Exception handlers complete [2015-09-11T13:27:22+08:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out Chef Client failed. 0 resources updated in 1.714481982 seconds [2015-09-11T13:27:23+08:00] ERROR: undefined method `[]' for nil:NilClass
I was used bitnami-gitlab stack before, but it upgrade so diffcuty...
so i want to try gitlab-ce, when i installed the newest verison 7.14, and restore the backup....
it told me the version is mismatch....
so i try to install the 7.12.2, but it failed.....