Gitlab-ce 8.0.2 8.2.0 upgrade fail

Hi,
I have trouble to upgrade vom gitlab 8.0.2 to 8.2.0.
I am running Debian 7.8

Have you got any ideas?
Install log is attached.
Please let me know, If you need any further details.

Thanks for your help!
mbstud

root@gitlab.sccdaems.com:~# apt-get install gitlab-ce
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be upgraded:
gitlab-ce
1 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.
Need to get 371 MB of archives.
After this operation, 33.4 MB of additional disk space will be used.
Get:1 https://packages.gitlab.com/gitlab/gitlab-ce/debian/ wheezy/main gitlab-ce amd64 8.2.0-ce.0 [371 MB]
Fetched 371 MB in 60s (6,131 kB/s)
Reading changelogs… Done
(Reading database … 112571 files and directories currently installed.)
Preparing to replace gitlab-ce 8.0.2-ce.1 (using …/gitlab-ce_8.2.0-ce.0_amd64.deb) …
gitlab preinstall: Backing up GitLab SQL database (excluding Git repositories, uploads)
Dumping database …
Dumping PostgreSQL database gitlabhq_production … [DONE]
Compressing database … [DONE]
done
Dumping repositories …
[SKIPPED]
Dumping uploads …
[SKIPPED]
Dumping builds …
[SKIPPED]
Creating backup archive: 1448354661_gitlab_backup.tar … done
Uploading backup archive to remote storage … skipped
Deleting tmp directories … done
done
Deleting old backups … skipping
Unpacking replacement gitlab-ce …
Setting up gitlab-ce (8.2.0-ce.0) …
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 =
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:
Shutting down all GitLab services except those needed for migrations
ok: down: gitlab-git-http-server: 0s, normally up
ok: down: logrotate: 1s, normally up
ok: down: mattermost: 0s, normally up
ok: down: nginx: 0s, normally up
ok: down: postgresql: 1s, normally up
ok: down: redis: 0s, normally up
ok: down: sidekiq: 0s, normally up
ok: down: unicorn: 0s, normally up
ok: run: postgresql: (pid 1436) 0s
ok: run: redis: (pid 1439) 2s
run: postgresql: (pid 1436) 2s; run: log: (pid 2707) 4317813s
run: redis: (pid 1439) 2s; run: log: (pid 2705) 4317813s
Reconfiguring GitLab to apply migrations
[2015-11-24T09:46:39+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
resolving cookbooks for run list: [“gitlab”]
Synchronizing Cookbooks:

  • package (0.0.0)
  • runit (0.14.2)
  • gitlab (0.0.1)
    Compiling Cookbooks…
    Recipe: gitlab::default
  • directory[/etc/gitlab] action create (up to date)
    [2015-11-24T09:46:50+01:00] WARN: Cloning resource attributes for directory[/var/opt/gitlab] from prior resource (CHEF-3694)
    [2015-11-24T09:46:50+01:00] WARN: Previous directory[/var/opt/gitlab]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:43:in from_file' [2015-11-24T09:46:50+01:00] WARN: Current directory[/var/opt/gitlab]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/users.rb:24:in from_file’
    [2015-11-24T09:46:50+01:00] WARN: Cloning resource attributes for directory[/var/opt/gitlab/backups] from prior resource (CHEF-3694)
    [2015-11-24T09:46:50+01:00] WARN: Previous directory[/var/opt/gitlab/backups]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-rails.rb:50:in block in from_file' [2015-11-24T09:46:50+01:00] WARN: Current directory[/var/opt/gitlab/backups]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-rails.rb:57:in from_file’
    [2015-11-24T09:46:50+01:00] WARN: Cloning resource attributes for cron[gitlab-ci schedule builds] from prior resource (CHEF-3694)
    [2015-11-24T09:46:50+01:00] WARN: Previous cron[gitlab-ci schedule builds]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/cron.rb:20:in from_file' [2015-11-24T09:46:50+01:00] WARN: Current cron[gitlab-ci schedule builds]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/cron.rb:25:in from_file’
    /sbin/init: invalid option – ‘-’
    Usage: init {-e VAR[=VAL] | [-t SECONDS] {0|1|2|3|4|5|6|S|s|Q|q|A|a|B|b|C|c|U|u}}
    sh: 1: systemctl: not found
    [2015-11-24T09:46:50+01:00] WARN: Selected sysvinit because it looks like it is not upstart or systemd.
    [2015-11-24T09:46:50+01:00] WARN: Cloning resource attributes for directory[/etc/sysctl.d] from prior resource (CHEF-3694)
    [2015-11-24T09:46:50+01:00] WARN: Previous directory[/etc/sysctl.d]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:22:in block in from_file' [2015-11-24T09:46:50+01:00] WARN: Current directory[/etc/sysctl.d]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:22:in block in from_file’
    [2015-11-24T09:46:50+01:00] WARN: Cloning resource attributes for file[/etc/sysctl.d/90-postgresql.conf] from prior resource (CHEF-3694)
    [2015-11-24T09:46:50+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' [2015-11-24T09:46:50+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’
    [2015-11-24T09:46:50+01:00] WARN: Cloning resource attributes for file[/etc/sysctl.d/90-unicorn.conf] from prior resource (CHEF-3694)
    [2015-11-24T09:46:50+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' [2015-11-24T09:46:50+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’
    [2015-11-24T09:46:50+01:00] WARN: Cloning resource attributes for file[/opt/gitlab/embedded/etc/90-omnibus-gitlab.conf] from prior resource (CHEF-3694)
    [2015-11-24T09:46:50+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' [2015-11-24T09:46:50+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’
    [2015-11-24T09:46:50+01:00] WARN: Cloning resource attributes for file[/etc/sysctl.d/90-omnibus-gitlab.conf] from prior resource (CHEF-3694)
    [2015-11-24T09:46:50+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' [2015-11-24T09:46:50+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’
    [2015-11-24T09:46:50+01:00] WARN: Cloning resource attributes for execute[load sysctl conf] from prior resource (CHEF-3694)
    [2015-11-24T09:46:50+01:00] WARN: Previous execute[load sysctl conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:52:in block in from_file' [2015-11-24T09:46:50+01:00] WARN: Current execute[load sysctl conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:52:in block in from_file’
    [2015-11-24T09:46:50+01:00] WARN: Cloning resource attributes for directory[/etc/sysctl.d] from prior resource (CHEF-3694)
    [2015-11-24T09:46:50+01:00] WARN: Previous directory[/etc/sysctl.d]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:22:in block in from_file' [2015-11-24T09:46:50+01:00] WARN: Current directory[/etc/sysctl.d]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:22:in block in from_file’
    [2015-11-24T09:46:50+01:00] WARN: Cloning resource attributes for file[/etc/sysctl.d/90-postgresql.conf] from prior resource (CHEF-3694)
    [2015-11-24T09:46:50+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' [2015-11-24T09:46:50+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’
    [2015-11-24T09:46:50+01:00] WARN: Cloning resource attributes for file[/etc/sysctl.d/90-unicorn.conf] from prior resource (CHEF-3694)
    [2015-11-24T09:46:50+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' [2015-11-24T09:46:50+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’
    [2015-11-24T09:46:50+01:00] WARN: Cloning resource attributes for file[/opt/gitlab/embedded/etc/90-omnibus-gitlab.conf] from prior resource (CHEF-3694)
    [2015-11-24T09:46:50+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' [2015-11-24T09:46:50+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’
    [2015-11-24T09:46:50+01:00] WARN: Cloning resource attributes for file[/etc/sysctl.d/90-omnibus-gitlab.conf] from prior resource (CHEF-3694)
    [2015-11-24T09:46:50+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' [2015-11-24T09:46:50+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’
    [2015-11-24T09:46:50+01:00] WARN: Cloning resource attributes for execute[load sysctl conf] from prior resource (CHEF-3694)
    [2015-11-24T09:46:50+01:00] WARN: Previous execute[load sysctl conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:52:in block in from_file' [2015-11-24T09:46:50+01:00] WARN: Current execute[load sysctl conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:52:in block in from_file’
    [2015-11-24T09:46:51+01:00] WARN: Cloning resource attributes for directory[/var/opt/gitlab/gitlab-rails/etc] from prior resource (CHEF-3694)
    [2015-11-24T09:46:51+01:00] WARN: Previous directory[/var/opt/gitlab/gitlab-rails/etc]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-rails.rb:50:in block in from_file' [2015-11-24T09:46:51+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’
    [2015-11-24T09:46:51+01:00] WARN: Cloning resource attributes for service[unicorn] from prior resource (CHEF-3694)
    [2015-11-24T09:46:51+01:00] WARN: Previous service[unicorn]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:86:in block in from_file' [2015-11-24T09:46:51+01:00] WARN: Current service[unicorn]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/definitions/runit_service.rb:191:in block in from_file’
    [2015-11-24T09:46:51+01:00] WARN: Cloning resource attributes for directory[/etc/sysctl.d] from prior resource (CHEF-3694)
    [2015-11-24T09:46:51+01:00] WARN: Previous directory[/etc/sysctl.d]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:22:in block in from_file' [2015-11-24T09:46:51+01:00] WARN: Current directory[/etc/sysctl.d]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:22:in block in from_file’
    [2015-11-24T09:46:51+01:00] WARN: Cloning resource attributes for file[/etc/sysctl.d/90-postgresql.conf] from prior resource (CHEF-3694)
    [2015-11-24T09:46:51+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' [2015-11-24T09:46:51+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’
    [2015-11-24T09:46:51+01:00] WARN: Cloning resource attributes for file[/etc/sysctl.d/90-unicorn.conf] from prior resource (CHEF-3694)
    [2015-11-24T09:46:51+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' [2015-11-24T09:46:51+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’
    [2015-11-24T09:46:51+01:00] WARN: Cloning resource attributes for file[/opt/gitlab/embedded/etc/90-omnibus-gitlab.conf] from prior resource (CHEF-3694)
    [2015-11-24T09:46:51+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' [2015-11-24T09:46:51+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’
    [2015-11-24T09:46:51+01:00] WARN: Cloning resource attributes for file[/etc/sysctl.d/90-omnibus-gitlab.conf] from prior resource (CHEF-3694)
    [2015-11-24T09:46:51+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' [2015-11-24T09:46:51+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’
    [2015-11-24T09:46:51+01:00] WARN: Cloning resource attributes for execute[load sysctl conf] from prior resource (CHEF-3694)
    [2015-11-24T09:46:51+01:00] WARN: Previous execute[load sysctl conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:52:in block in from_file' [2015-11-24T09:46:51+01:00] WARN: Current execute[load sysctl conf]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sysctl.rb:52:in block in from_file’
    [2015-11-24T09:46:51+01:00] WARN: Cloning resource attributes for service[sidekiq] from prior resource (CHEF-3694)
    [2015-11-24T09:46:51+01:00] WARN: Previous service[sidekiq]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:86:in block in from_file' [2015-11-24T09:46:51+01:00] WARN: Current service[sidekiq]: /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/definitions/runit_service.rb:191:in block in from_file’
    [2015-11-24T09:46:52+01:00] WARN: Connecting to GitLab to generate new app_id and app_secret for GitLab Mattermost.

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

NoMethodError

undefined method `chomp’ for nil:NilClass

Cookbook Trace:

/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/helper.rb:215:in `authorize_with_gitlab'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/mattermost.rb:89:in `from_file'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:109:in `block in from_file'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:107:in `each'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:107:in `from_file'

Relevant File Content:

/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/helper.rb:

208: app_name = “GitLab Mattermost”
209:
210: o = query_gitlab_rails(redirect_uri, app_name)
211:
212: app_id, app_secret = nil
213: if o.exitstatus == 0
214: app_id, app_secret = o.stdout.chomp.split(" “)
215>> gitlab_url = gitlab_external_url.chomp(”/")
216:
217: Gitlab[‘mattermost’][‘gitlab_enable’] = true
218: Gitlab[‘mattermost’][‘gitlab_secret’] = app_secret
219: Gitlab[‘mattermost’][‘gitlab_id’] = app_id
220: Gitlab[‘mattermost’][‘gitlab_scope’] = “”
221: Gitlab[‘mattermost’][‘gitlab_auth_endpoint’] = “#{gitlab_url}/oauth/authorize”
222: Gitlab[‘mattermost’][‘gitlab_token_endpoint’] = “#{gitlab_url}/oauth/token”
223: Gitlab[‘mattermost’][‘gitlab_user_api_endpoint’] = “#{gitlab_url}/api/v3/user”
224:

Running handlers:
[2015-11-24T09:47:37+01:00] ERROR: Running exception handlers
Running handlers complete
[2015-11-24T09:47:37+01:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 57 seconds
[2015-11-24T09:47:37+01:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out
[2015-11-24T09:47:37+01:00] ERROR: undefined method `chomp’ for nil:NilClass
[2015-11-24T09:47:37+01:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
dpkg: error processing gitlab-ce (–configure):
subprocess installed post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)