# La reconstruction donne une erreur db:migrate à cause d'un plugin cassé

**URL:** https://meta.discourse.org/t/rebuilding-gives-db-migrate-error-due-to-broken-plugin/220264
**Category:** Self-hosting
**Created:** [Mars 7, 2022, 10:42 UTC](https://meta.discourse.org/t/rebuilding-gives-db-migrate-error-due-to-broken-plugin/220264 "2022-03-07T10:42:20Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Kumar\_Karuppaiah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kumar_karuppaiah/32/243669_2.png) [@Kumar\_Karuppaiah](https://meta.discourse.org/u/Kumar_Karuppaiah)
#### Post date: [Mars 7, 2022, 10:42 UTC](https://meta.discourse.org/t/rebuilding-gives-db-migrate-error-due-to-broken-plugin/220264/1 "2022-03-07T10:42:20Z")

</div>

Salut,

Je souhaite connecter Discourse à un serveur SQL **PostgreSQL** distinct. J’ai créé un serveur de base de données dans Azure et j’ai suivi les mêmes étapes que celles mentionnées dans le lien ci-dessous.

> [@Configure Discourse to use a separate PostgreSQL server](https://meta.discourse.org/t/running-discourse-with-a-separate-postgresql-server/46375):
>
> Let’s say you’re using AWS RDS, or an existing PostgreSQL server managed elsewhere. It’s fairly straightforward to get Discourse to use such a setup, without needing to grant superuser privileges to anything that Discourse itself runs. Here’s how. Prerequisites Discourse requires PostgreSQL 13; if you try to run on a newer or older version, it might work, but we don’t guarantee it, and if something breaks in the future, you get to keep both pieces. We also require some extensions that are di…

Je reçois l’erreur suivante lors de la reconstruction de l’application. Le forum est également tombé en panne.

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/f/9f9f6bb5004a40825b18937be93f6a441ecd6643.png)

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/6/665bef0e11240d85a005dc6a0a9451cfcf92abbb.png)

Quelqu’un peut-il m’aider avec ce problème ?

Veuillez me faire savoir si vous avez besoin d’informations supplémentaires.

[Discourse\_Error\_Logs.txt](https://meta.discourse.org/uploads/short-url/yuTcYjymLlgWGG6JESOkwnJBxKw.txt) (53,7 Ko)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [Mars 7, 2022, 11:32 UTC](https://meta.discourse.org/t/rebuilding-gives-db-migrate-error-due-to-broken-plugin/220264/2 "2022-03-07T11:32:14Z")

</div>

Quelle version de postgres utilisez-vous ? Je pense que la version 12 est requise. La version 13 est recommandée.

---

<div class="post-metadata">

### Author: ![Kumar\_Karuppaiah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kumar_karuppaiah/32/243669_2.png) [@Kumar\_Karuppaiah](https://meta.discourse.org/u/Kumar_Karuppaiah)
#### Post date: [Mars 7, 2022, 11:48 UTC](https://meta.discourse.org/t/rebuilding-gives-db-migrate-error-due-to-broken-plugin/220264/3 "2022-03-07T11:48:14Z")

</div>

Version PostgreSQL : 13.4

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [Mars 7, 2022, 12:57 UTC](https://meta.discourse.org/t/rebuilding-gives-db-migrate-error-due-to-broken-plugin/220264/4 "2022-03-07T12:57:14Z")

</div>

`https://github.com/liip/discourse-multilingual-support` est un plugin défectueux.

```plaintext
I, [2022-03-07T10:24:30.440910 #1] INFO -- : cd /var/www/discourse & su discourse -c 'bundle exec rake db:migrate'
rake aborted!
LoadError: cannot load such file -- single_sign_on
...
/var/www/discourse/plugins/discourse-multilingual-support/plugin.rb:18:in `block (2 levels) in activate!'
...

```

---

<div class="post-metadata">

### Author: ![Kumar\_Karuppaiah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kumar_karuppaiah/32/243669_2.png) [@Kumar\_Karuppaiah](https://meta.discourse.org/u/Kumar_Karuppaiah)
#### Post date: [Mars 8, 2022, 6:02 UTC](https://meta.discourse.org/t/rebuilding-gives-db-migrate-error-due-to-broken-plugin/220264/5 "2022-03-08T06:02:17Z")

</div>

Ça marche !!! 🙂. Merci beaucoup de m’avoir répondu rapidement pour résoudre ce problème.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [Avril 7, 2022, 6:02 UTC](https://meta.discourse.org/t/rebuilding-gives-db-migrate-error-due-to-broken-plugin/220264/6 "2022-04-07T06:02:53Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
