שגיאה ב-rebuilding עם תוסף Gamification

סיכום מבוסס בינה מלאכותית

User wini is encountering a database error while trying to rebuild Discourse after installing the Gamification plugin, specifically a PG::UndefinedTable error referencing gamification_leaderboards. They suspect the issue may stem from improper formatting or extra quotes in the app.yml file, as the build succeeds when the plugin is removed. Heliosurge requests a screenshot or copy of the plugin entry in app.yml and asks for the Discourse branch being used — wini confirms they’re on 3.2.0.beta4-dev and added the plugin in the same format as others. Heliosurge notes they’re on test-passed with no issues, suggesting a possible compatibility problem with the beta branch and recommending reporting the issue directly to the Gamification plugin repository. JammyDodger advises against crossposting and removes a duplicate post to keep the discussion focused here. The core issue appears to be a schema or migration problem during plugin installation on a beta version of Discourse, possibly related to YAML formatting or plugin compatibility.

I’m trying to install the gamification plugin as the other plugins by adding the repo into the app.yml and then rebuilding but the build fails everytime.

The error is a database relation:

Caused by:
PG::UndefinedTable: ERROR:  relation "gamification_leaderboards" does not exist (PG::UndefinedTable)
LINE 9:  WHERE a.attrelid = '"gamification_leaderboards"'::regclass

I think is caused by the extra "
Anybody knows how/where to fix it?

Can you post a SS or a copy of just where you added plugin(s)?

App.yml files ar very finicky on format. If you can also post what branch of discourse are you running. Stable/test-passed/beta

@Heliosurge
I added it right after the other plugins in the same format

example:
- git clone https://github[.]com/discourse/discourse-bcc
- git clone https://github[.]com/discourse/discourse-automation

By removing the gamification plugin its all good and its able to rebuild and get up again.

I am using the 3.2.0.beta4-dev version of discourse

I am on Test-passed and seems okay. There might be a compat issue on beta but would need others to weigh in Might be an idea to report but on gamification for extra visibility.

Hi @wini :slight_smile:

There’s no need to crosspost your issue. Having a dedicated topic is actually preferred as it saves splitting it off later. :+1:

I’ll remove your other post so we can keep the conversation centred on this one.