Rebuilding gives db:migrate error due to broken plugin

AI-generated summary

User Kumar_Karuppaiah encountered a db:migrate error while rebuilding Discourse after connecting it to a separate PostgreSQL server (v13.4 on Azure), causing the forum to go down. The error logs pointed to a broken plugin, discourse-multilingual-support, which failed to load the single_sign_on module RGJ identified. After removing or disabling the plugin, the rebuild succeeded and the forum was restored Kumar_Karuppaiah. pfaffman had initially asked about the PostgreSQL version, confirming v13.4 was acceptable (12+ required, 13+ recommended). The issue was resolved by addressing the incompatible plugin, not the database configuration.

Hi,

I want to connect the discourse with a separate a postgre SQL server. I have created a database server in Azure and I have followed the same steps that are mentioned in the below link.

I am getting the below error when I am rebuilding the app. The forum also went down.

Can someone please help me on this issue?

Please let me if you need any further information.

Discourse_Error_Logs.txt (53.7 KB)

What version of postgres are you using? I think that 12 is required. 13 is recommended.

PostgreSQL version: 13.4

https://github.com/liip/discourse-multilingual-support is a broken plugin.

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!'
...

It works !!! :slightly_smiling_face:. Thank you so much for replying me quickly to fix this issue.