# FALHA ao reconstruir discourse -- OpenURI::HTTPError: 401 Erro: Chave de licença inválida

**URL:** <https://meta.discourse.org/t/failed-to-rebuild-discourse-openuri-401-error-invalid-license-key/178630>\
**Category:** Self-hosting\
**Created:** [Fevereiro 6, 2021, 5:13am UTC](https://meta.discourse.org/t/failed-to-rebuild-discourse-openuri-401-error-invalid-license-key/178630 "2021-02-06T05:13:25Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![e-learning-109](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/e-learning-109/32/209786_2.png) [@e-learning-109](https://meta.discourse.org/u/e-learning-109)\
**Post date:** [Fevereiro 6, 2021, 5:13am UTC](https://meta.discourse.org/t/failed-to-rebuild-discourse-openuri-401-error-invalid-license-key/178630/1 "2021-02-06T05:13:25Z")

</div>

Quero reconstruir meu Discourse, mas estou recebendo este erro. Alguém pode ajudar?

```plaintext
2021-02-06 05:02:28.893 UTC [49] LOG: received fast shutdown request
2021-02-06 05:02:28.906 UTC [49] LOG: aborting any active transactions
2021-02-06 05:02:28.910 UTC [49] LOG: background worker "logical replication launcher" (PID 58) exited with exit code 1
2021-02-06 05:02:28.913 UTC [53] LOG: shutting down
2021-02-06 05:02:28.955 UTC [49] LOG: database system is shut down

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 4094 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home",

"hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
6abb1b6cb59d34e7c02e8d6a8a9435a6b1ca88168f893b567d1120ac3c43d817
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one.

```

Obrigado.

---

_[View the full topic](https://meta.discourse.org/t/failed-to-rebuild-discourse-openuri-401-error-invalid-license-key/178630)._
