# Error updating

**URL:** <https://meta.discourse.org/t/error-updating/246652>\
**Category:** Self-hosting\
**Created:** [November 24, 2022, 2:32pm UTC](https://meta.discourse.org/t/error-updating/246652 "2022-11-24T14:32:20Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![undasein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/undasein/32/222392_2.png) [@undasein](https://meta.discourse.org/u/undasein)\
**Post date:** [November 24, 2022, 2:32pm UTC](https://meta.discourse.org/t/error-updating/246652/1 "2022-11-24T14:32:20Z")

</div>

Today I get this error updating:

> FAILED -------------------- Pups::ExecError: cd /var/www/discourse && su discourse -c ‘bundle exec rake db:migrate’ failed with return #\<Process::Status: pid 1494 exit 1\> Location of failure: /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/exec\_command.rb:117:in `spawn’ exec failed with the params {“cd”=\>“$home”, “hook”=\>“db\_migrate”, “cmd”=\>[“su discourse -c ‘bundle exec rake db:migrate’”]} bootstrap failed with exit code 1 \*\* FAILED TO BOOTSTRAP \*\* please scroll up and look for earlier error messages, there may be more than one. ./discourse-doctor may help diagnose the problem. 77d614688bcd29bc5bb4ee1b28ed08423dea795d5f25b985e245390dd5707ad9

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [November 24, 2022, 2:34pm UTC](https://meta.discourse.org/t/error-updating/246652/2 "2022-11-24T14:34:40Z")

</div>

> [@undasein](#):
>
> please scroll up and look for earlier error messages, there may be more than one.

Could you scroll up and see what error messages you got and share them here?

---

<div class="post-metadata">

**Author:** ![undasein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/undasein/32/222392_2.png) [@undasein](https://meta.discourse.org/u/undasein)\
**Post date:** [November 24, 2022, 2:51pm UTC](https://meta.discourse.org/t/error-updating/246652/3 "2022-11-24T14:51:01Z")

</div>

I searched the log for error and found this:

> ERROR: duplicate key value violates unique constraint “index\_badges\_on\_name” 2022-11-24 14:43:25.194 UTC [1522] discourse@discourse DETAIL: Key (name)=(First Reaction) already exists. 2022-11-24 14:43:25.194 UTC [1522] discourse@discourse STATEMENT: UPDATE badges SET name = ‘First Reaction’, description = NULL, long\_description = NULL WHERE name = ‘Primera reacción’ rake aborted! StandardError: An error has occurred, this and all later migrations canceled: ERROR: duplicate key value violates unique constraint “index\_badges\_on\_name” DETAIL: Key (name)=(First Reaction) already exists.

---

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [November 24, 2022, 3:05pm UTC](https://meta.discourse.org/t/error-updating/246652/5 "2022-11-24T15:05:41Z")

</div>

Oh, this must be related to [FIX: Use generic, static name for badge · discourse/discourse-reactions@c648af5 · GitHub](https://github.com/discourse/discourse-reactions/commit/c648af55c16b6f80278c4946f13bee9c1902ca37).

I didn’t account for the fact that a “First Reaction” badge already exists. Previously the plugin created a new badge whenever the translation changed, so multiple badges is a possibility. I’ll fix the migration…

---

<div class="post-metadata">

**Author:** ![undasein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/undasein/32/222392_2.png) [@undasein](https://meta.discourse.org/u/undasein)\
**Post date:** [November 24, 2022, 3:23pm UTC](https://meta.discourse.org/t/error-updating/246652/6 "2022-11-24T15:23:41Z")

</div>

Thanks! Should we wait for a fix and then rebuild app?

---

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [November 24, 2022, 3:25pm UTC](https://meta.discourse.org/t/error-updating/246652/7 "2022-11-24T15:25:18Z")

</div>

Yes, I’m currently testing a solution. Shouldn’t be long…

---

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [November 24, 2022, 3:39pm UTC](https://meta.discourse.org/t/error-updating/246652/8 "2022-11-24T15:39:18Z")

</div>

It’s fixed. Please try rebuilding.

[https://github.com/discourse/discourse-reactions/pull/200](https://github.com/discourse/discourse-reactions/pull/200)

---

<div class="post-metadata">

**Author:** ![Peter\_G60](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/peter_g60/32/283116_2.png) [@Peter\_G60](https://meta.discourse.org/u/Peter_G60)\
**Post date:** [November 24, 2022, 4:16pm UTC](https://meta.discourse.org/t/error-updating/246652/9 "2022-11-24T16:16:38Z")

</div>

Hi, as of today, I also have some issues when trying to clone and build.  
It tries to donwload a base image from August, the docker pull gives me an error  
“ERRO[0001] Metadata for targets expired”  
Otherwise I get:  
“Pups::ExecError: cd /var/www/discourse && su discourse -c ‘bundle exec rake themes:update assets:precompile’ failed with return #\<Process::Status: pid 1298 exit 1\>”

“exec failed with the params {“cd”=\>”$home", “hook”=\>“assets\_precompile”, “cmd”=\>[“su discourse -c ‘bundle exec rake themes:update assets:precompile’”]}"

“Sprockets::FileNotFound: couldn’t find file ‘/var/www/discourse/plugins/docker\_manager/assets/javascripts/upgrade-header.js.handlebars’ with type ‘application/javascript’”

Could you help me with that? I did not find anything else yet.

---

<div class="post-metadata">

**Author:** ![spirobel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/spirobel/32/170908_2.png) [@spirobel](https://meta.discourse.org/u/spirobel)\
**Post date:** [November 24, 2022, 4:27pm UTC](https://meta.discourse.org/t/error-updating/246652/10 "2022-11-24T16:27:50Z")

</div>

> [@Peter\_G60](#):
>
> “Sprockets::FileNotFound: couldn’t find file ‘/var/www/discourse/plugins/docker\_manager/assets/javascripts/upgrade-header.js.handlebars’ with type ‘application/javascript’”

I had the same issue. I removed the  
` - git clone https://github.com/discourse/docker_manager.git`  
line from my app.yml to get to it to rebuild for now.

---

<div class="post-metadata">

**Author:** ![undasein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/undasein/32/222392_2.png) [@undasein](https://meta.discourse.org/u/undasein)\
**Post date:** [November 24, 2022, 4:29pm UTC](https://meta.discourse.org/t/error-updating/246652/11 "2022-11-24T16:29:55Z")

</div>

That problem seems solved, but now I get:

> FAILED -------------------- Pups::ExecError: cd /var/www/discourse && su discourse -c ‘bundle exec rake themes:update assets:precompile’ failed with return #\<Process::Status: pid 1513 exit 1\> Location of failure: /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/exec\_command.rb:117:in `spawn’ exec failed with the params {“cd”=\>“$home”, “hook”=\>“assets\_precompile”, “cmd”=\>[“su discourse -c ‘bundle exec rake themes:update assets:precompile’”]} bootstrap failed with exit code 1 \*\* FAILED TO BOOTSTRAP \*\* please scroll up and look for earlier error messages, there may be more than one. ./discourse-doctor may help diagnose the problem.

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [November 24, 2022, 4:47pm UTC](https://meta.discourse.org/t/error-updating/246652/13 "2022-11-24T16:47:04Z")

</div>

Thanks @Peter_G60 @spirobel @undasein - this error was caused by something totally separate to the reactions issue @gerhard mentioned above. I just merged a fix to docker\_manager - please can you try updating again? Sorry for the disruption!

> <https://github.com/discourse/docker_manager/commit/9658f080e0c44f753413efff61f2cccdde0d5297>
>
> This was relying on Sprockets to compile an Ember template. Discourse core dropp…ed support for that in https://github.com/discourse/discourse/commit/84bec1cbae0c9bdf4fd7909abe173262b61cbb66. This commit moves the template under the ember-cli-managed directory and updates the file extension.

---

<div class="post-metadata">

**Author:** ![undasein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/undasein/32/222392_2.png) [@undasein](https://meta.discourse.org/u/undasein)\
**Post date:** [November 24, 2022, 5:01pm UTC](https://meta.discourse.org/t/error-updating/246652/14 "2022-11-24T17:01:17Z")

</div>

Thank you for your work. Doesn’t work for me, could be somenthing related to `themes:update `?

---

<div class="post-metadata">

**Author:** ![spirobel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/spirobel/32/170908_2.png) [@spirobel](https://meta.discourse.org/u/spirobel)\
**Post date:** [November 24, 2022, 5:21pm UTC](https://meta.discourse.org/t/error-updating/246652/15 "2022-11-24T17:21:10Z")

</div>

amazing! 😀 👍 Thanks for the quick fix! I re-added the docker\_manager and it works again. Great to see we found the error!

---

<div class="post-metadata">

**Author:** ![Peter\_G60](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/peter_g60/32/283116_2.png) [@Peter\_G60](https://meta.discourse.org/u/Peter_G60)\
**Post date:** [November 24, 2022, 5:21pm UTC](https://meta.discourse.org/t/error-updating/246652/16 "2022-11-24T17:21:45Z")

</div>

Thank you @david, it ran fine this time. Need time to check everything, but it is a good sign it came back online. I really appreciate the quick fix!

---

<div class="post-metadata">

**Author:** ![undasein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/undasein/32/222392_2.png) [@undasein](https://meta.discourse.org/u/undasein)\
**Post date:** [November 24, 2022, 5:31pm UTC](https://meta.discourse.org/t/error-updating/246652/17 "2022-11-24T17:31:45Z")

</div>

> [@spirobel](#):
>
> amazing! 😀 👍 Thanks for the quick fix! I re-added the docker\_manager and it works again. Great to see we found the error!

> [@Peter\_G60](#):
>
> Thank you @david, it ran fine this time. Need time to check everything, but it is a good sign it came back online. I really appreciate the quick fix!

`./launcher rebuild app`?

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [November 24, 2022, 5:32pm UTC](https://meta.discourse.org/t/error-updating/246652/18 "2022-11-24T17:32:44Z")

</div>

> [@undasein](#):
>
> Doesn’t work for me

Please can you share the original error from the log? You’ll need to scroll up from the “Failed------” summary line you shared earlier.

Also, can you share a list of the plugins you have installed?

---

<div class="post-metadata">

**Author:** ![undasein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/undasein/32/222392_2.png) [@undasein](https://meta.discourse.org/u/undasein)\
**Post date:** [November 24, 2022, 6:06pm UTC](https://meta.discourse.org/t/error-updating/246652/19 "2022-11-24T18:06:37Z")

</div>

Ok, the issue was `discourse-signatures` plugin. Sorry the delay, I was removing plugins one-by-one 🙃

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [November 24, 2022, 6:10pm UTC](https://meta.discourse.org/t/error-updating/246652/20 "2022-11-24T18:10:22Z")

</div>

Aha - thanks so much for tracking it down @undasein! Here’s a PR to fix: [FIX: Remove register\_asset call for `.hbs` file by davidtaylorhq · Pull Request #34 · discourse/discourse-signatures · GitHub](https://github.com/discourse/discourse-signatures/pull/34)

I’m going to do another search through all our official plugins to see if any others have the same issue 👀

---

<div class="post-metadata">

**Author:** ![StonkGodCapital](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stonkgodcapital/32/242643_2.png) [@StonkGodCapital](https://meta.discourse.org/u/StonkGodCapital)\
**Post date:** [November 24, 2022, 6:30pm UTC](https://meta.discourse.org/t/error-updating/246652/21 "2022-11-24T18:30:13Z")

</div>

Yeah this one hit me as well

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/8/9/b89ec95c37465282307d84eb71b993bf10ee7471.png)

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [November 24, 2022, 6:55pm UTC](https://meta.discourse.org/t/error-updating/246652/22 "2022-11-24T18:55:57Z")

</div>

Signatures fix is now merged.

I found a couple more non-official plugins that have the same issue - PRs opened on [discourse-nationalflags](https://github.com/Ebsy/discourse-nationalflags/pull/25) (cc @ebs) and [browser\_history](https://github.com/SamSaffron/browser_history/pull/2) (cc @sam).

I’ve also added a [more useful error message](https://github.com/discourse/discourse/pull/19185) in core so that it’s easier to identify the problem if there are any more plugins with the issue.

[Next page](https://meta.discourse.org/t/error-updating/246652.md?page=2)
