# Current docker upgrade fails

**URL:** https://meta.discourse.org/t/current-docker-upgrade-fails/50850
**Category:** Bug
**Created:** [2016年九月29日 10:30 UTC](https://meta.discourse.org/t/current-docker-upgrade-fails/50850 "2016-09-29T10:30:57Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![carlokok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlokok/32/115951_2.png) [@carlokok](https://meta.discourse.org/u/carlokok)
#### Post date: [2016年九月29日 10:30 UTC](https://meta.discourse.org/t/current-docker-upgrade-fails/50850/1 "2016-09-29T10:30:57Z")

</div>

````plaintext

rake aborted!
NoMethodError: undefined method `each_pair' for nil:NilClass
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/core_ext/hash/deep_merge.rb:22:in
 `deep_merge!'
/var/www/discourse/lib/js_locale_helper.rb:10:in `block in 
plugin_translations'
/var/www/discourse/lib/js_locale_helper.rb:9:in `each'
/var/www/discourse/lib/js_locale_helper.rb:9:in `plugin_translations'
/var/www/discourse/lib/js_locale_helper.rb:30:in `load_translations'
/var/www/discourse/lib/js_locale_helper.rb:67:in `block in 
load_translations_merged'
/var/www/discourse/lib/js_locale_helper.rb:66:in `each'
/var/www/discourse/lib/js_locale_helper.rb:66:in 
`load_translations_merged'
/var/www/discourse/lib/js_locale_helper.rb:89:in `translations_for'
/var/www/discourse/lib/js_locale_helper.rb:101:in `output_locale'
/var/www/discourse/app/assets/javascripts/locales/nl.js.erb:3:in 
`_evaluate_template'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/erb_processor.rb:26:in
 `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/erb_processor.rb:13:in
 `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/processor_utils.rb:75:in
 `call_processor'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/processor_utils.rb:57:in
 `block in call_processors'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/processor_utils.rb:56:in
 `reverse_each'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/processor_utils.rb:56:in
 `call_processors'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/loader.rb:134:in
 `load_from_unloaded'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/loader.rb:60:in
 `block in load'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/loader.rb:317:in
 `fetch_asset_from_dependency_cache'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/loader.rb:44:in
 `load'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/cached_environment.rb:20:in
 `block in initialize'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/cached_environment.rb:47:in
 `load'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/bundle.rb:23:in
 `block in call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/utils.rb:196:in
 `dfs'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/bundle.rb:24:in
 `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/processor_utils.rb:75:in
 `call_processor'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/processor_utils.rb:57:in
 `block in call_processors'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/processor_utils.rb:56:in
 `reverse_each'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/processor_utils.rb:56:in
 `call_processors'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/loader.rb:134:in
 `load_from_unloaded'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/loader.rb:60:in
 `block in load'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/loader.rb:317:in
 `fetch_asset_from_dependency_cache'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/loader.rb:44:in
 `load'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/cached_environment.rb:20:in
 `block in initialize'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/cached_environment.rb:47:in
 `load'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/base.rb:66:in
 `find_asset'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/base.rb:73:in
 `find_all_linked_assets'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/manifest.rb:134:in
 `block in find'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/manifest.rb:133:in
 `each'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/manifest.rb:133:in
 `find'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/sprockets/manifest.rb:185:in
 `compile'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-rails-3.1.1/lib/sprockets/rails/task.rb:68:in
 `block (3 levels) in define'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-3.6.3/lib/rake/sprocketstask.rb:147:in
 `with_logger'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/sprockets-rails-3.1.1/lib/sprockets/rails/task.rb:67:in
 `block (2 levels) in define'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in
 `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
Bundling assets
```
````

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [2016年九月29日 10:50 UTC](https://meta.discourse.org/t/current-docker-upgrade-fails/50850/2 "2016-09-29T10:50:23Z")

</div>

I’ll have a look. Recent commit of mine broke this.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [2016年九月29日 21:25 UTC](https://meta.discourse.org/t/current-docker-upgrade-fails/50850/4 "2016-09-29T21:25:56Z")

</div>

Can I check what plugins do you have installed? The failing error is really odd

---

<div class="post-metadata">

### Author: ![robbyoconnor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robbyoconnor/32/120330_2.png) [@robbyoconnor](https://meta.discourse.org/u/robbyoconnor)
#### Post date: [2016年九月30日 04:48 UTC](https://meta.discourse.org/t/current-docker-upgrade-fails/50850/5 "2016-09-30T04:48:25Z")

</div>

Looks like someone reported this and I did a dupe but:

> [@Latest automatic backup failed](https://meta.discourse.org/t/latest-automatic-backup-failed/50890):
>
> Looks like the latest update to tests-passed failed in our Docker Manager: I was updating to cde1883 Currently at 119225e \*\*\* Bundling assets. This might take a while \*\*\* $ bundle exec rake assets:precompile Purging temp files rake aborted! NoMethodError: undefined method `each_pair' for nil:NilClass /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/core_ext/hash/deep_merge.rb:22:in `deep\_merge!' /var/www/discourse/lib/js\_locale\_helper.rb:10:in `block …

---

<div class="post-metadata">

### Author: ![carlokok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlokok/32/115951_2.png) [@carlokok](https://meta.discourse.org/u/carlokok)
#### Post date: [2016年九月30日 05:49 UTC](https://meta.discourse.org/t/current-docker-upgrade-fails/50850/6 "2016-09-30T05:49:56Z")

</div>

I’m using:

```plaintext
  discourse (9859bfb)
  babble (604bbdb)
  RO buttons (adds some buttons, very simple plgin)  
  discourse-details
  discourse-feature-voting (811f5e3)
  discourse-nginx-performance-report
  discourse-push-notifications (c4d91a2)
  discourse-solved (ed0a294)
  staff-notes (d9db406)
  docker_manager (a7b2562)
  lazyYT  
  poll 
  roauth_strategy (our login system)

```

Nothing fancy.

Also note your own travis-ci fails with the same error:

> **[Travis CI](https://app.travis-ci.com/discourse/discourse/jobs/163850017)**
>
> Travis CI enables your team to test and ship your apps with confidence. Easily sync your projects with Travis CI and you'll be testing your code in minutes.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年九月30日 06:07 UTC](https://meta.discourse.org/t/current-docker-upgrade-fails/50850/7 "2016-09-30T06:07:07Z")

</div>

@eviltrout this has to be somehow related to the locale splitting you did

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [2016年九月30日 07:07 UTC](https://meta.discourse.org/t/current-docker-upgrade-fails/50850/9 "2016-09-30T07:07:16Z")

</div>

@carlokok Turns out it was blowing up due to discourse-feature-voting because it had a translation file with an incorrect locale key in it.

[https://github.com/discourse/discourse-feature-voting/commit/116ff4cf86baaebc561aa41fa3b19eccf1494f71](https://github.com/discourse/discourse-feature-voting/commit/116ff4cf86baaebc561aa41fa3b19eccf1494f71)

I also made sure we don’t blow up if the locale key cannot be found.

[https://github.com/discourse/discourse/commit/1c3992e57543699e1a0788cfb90a40404ae18161](https://github.com/discourse/discourse/commit/1c3992e57543699e1a0788cfb90a40404ae18161)  
[https://github.com/discourse/discourse/commit/ccd75cf98704752525717be721fe87c6dab203b8](https://github.com/discourse/discourse/commit/ccd75cf98704752525717be721fe87c6dab203b8)

Thank you for reporting!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2016年九月30日 09:14 UTC](https://meta.discourse.org/t/current-docker-upgrade-fails/50850/10 "2016-09-30T09:14:29Z")

</div>


