# Plugin AI Discourse falha na reconstrução/bootstrapping de containers

**URL:** <https://meta.discourse.org/t/discourse-ai-plugin-failing-container-rebuilds-bootstrappings/320875>\
**Category:** Self-hosting\
**Tags:** two-container, ai\
**Created:** [Agosto 9, 2024, 11:03am UTC](https://meta.discourse.org/t/discourse-ai-plugin-failing-container-rebuilds-bootstrappings/320875 "2024-08-09T11:03:24Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)\
**Post date:** [Agosto 9, 2024, 11:03am UTC](https://meta.discourse.org/t/discourse-ai-plugin-failing-container-rebuilds-bootstrappings/320875/1 "2024-08-09T11:03:24Z")

</div>

Hoje tentei atualizar através da UI/Atualização de Um Clique. Falhou.  
Atualmente estou em: 3.4.0.beta1-dev ([65895f44e9](https://github.com/discourse/discourse/commits/65895f44e94907c16de8278bfee19ea5308d3670))

- Tentei reconstruir o container `web_only`, mas também falhou, e só funciona quando desabilito o plugin Discourse AI do meu arquivo `web_only.yml`.

- Estou na build ‘Tests-Passed’ (sempre estive, não mudou recentemente).

- Quando executo este comando:

```plaintext
./launcher enter app
LOAD_PLUGINS=1 bundle exec rake db:migrate

```

Eu obtenho este resultado:

```plaintext
root@cx32-i4s-8gb-80gb-helsinki-frm-sshot-web-only:/var/www/discourse# LOAD_PLUGINS=1 bundle exec rake db:migrate
fatal: detected dubious ownership in repository at '/var/www/discourse'
To add an exception for this directory, call:

        git config --global --add safe.directory /var/www/discourse

```

- Eu atualizei (e fiz upgrade) meu ubuntu 22.04 esta manhã, das maneiras normais que todos fazemos, com o comando `sudo apt`.
- Eu também tentei comentar minha chave de licença MaxMind, mas ainda falha.

Estou recebendo esta mensagem de erro no console:

```plaintext
Pups::ExecError: cd /var/www/discourse &amp;&amp; su discourse -c 'bundle exec rake db:migrate' failed with return #&lt;Process::Status: pid 868 exit 1&gt;
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "tag"=>"migrate", "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.

```

Captura de tela dos logs:

 ![This image shows a computer screen with a text-based message in a chat window. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/8/0/0/8002da7da5167c7b59ce6cecd937277e47c53c6d.png)

---

_[View the full topic](https://meta.discourse.org/t/discourse-ai-plugin-failing-container-rebuilds-bootstrappings/320875)._
