# Urgente, reconstrução falhou da versão antiga

**URL:** <https://meta.discourse.org/t/urgent-rebuild-failed-from-old-version/264287>\
**Category:** Self-hosting\
**Created:** [Maio 8, 2023, 4:18pm UTC](https://meta.discourse.org/t/urgent-rebuild-failed-from-old-version/264287 "2023-05-08T16:18:25Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Alienazk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alienazk/32/261130_2.png) [@Alienazk](https://meta.discourse.org/u/Alienazk)\
**Post date:** [Maio 8, 2023, 4:18pm UTC](https://meta.discourse.org/t/urgent-rebuild-failed-from-old-version/264287/1 "2023-05-08T16:18:25Z")

</div>

Olá, nosso fórum está rodando em uma versão antiga (por alguns motivos de front-end).

```plaintext
version: 7647cf6a22aa7f9454123b24262ca04290b4d774 # v2.9.0.beta9

```

Hoje tentei reconstruir o aplicativo, mas falhei com o seguinte erro:

```plaintext
2023-05-08 15:04:08.108 UTC [55] postgres@postgres ERROR: database "discourse" already exists
2023-05-08 15:04:08.108 UTC [55] postgres@postgres STATEMENT: CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR: database "discourse" already exists
I, [2023-05-08T15:04:08.110303 #1] INFO -- :
I, [2023-05-08T15:04:08.110584 #1] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2023-05-08 15:04:08.178 UTC [59] postgres@discourse ERROR: role "discourse" already exists
2023-05-08 15:04:08.178 UTC [59] postgres@discourse STATEMENT: create user discourse;
ERROR: role "discourse" already exists

```

```plaintext
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse & su discourse -c 'bundle install --retry 3 --jobs 4' failed with return #<Process::Status: pid 455 exit 16>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle config --local deployment true'", "su discourse -c 'bundle config --local without \\"development test\\\"'", "su discourse -c 'bundle install --retry 3 --jobs 4'"]}
bootstrap failed with exit code 16
**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.

```

Existe alguma maneira de reconstruir com sucesso?  
Se não funcionar, acho que tudo bem restaurar o estado da última operação bem-sucedida.  
Tentei iniciar o contêiner antigo com o comando `./launcher restart app`, mas recebi um erro 502.  
Muito obrigado!

---

_[View the full topic](https://meta.discourse.org/t/urgent-rebuild-failed-from-old-version/264287)._
