# Error rebuilding using Gamification plugin

**URL:** https://meta.discourse.org/t/error-rebuilding-using-gamification-plugin/290809
**Category:** Self-hosting
**Tags:** gamification
**Created:** [January 8, 2024, 12:54am UTC](https://meta.discourse.org/t/error-rebuilding-using-gamification-plugin/290809 "2024-01-08T00:54:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![wini](https://avatars.discourse-cdn.com/v4/letter/w/e5b9ba/32.png) [@wini](https://meta.discourse.org/u/wini)
#### Post date: [January 8, 2024, 12:54am UTC](https://meta.discourse.org/t/error-rebuilding-using-gamification-plugin/290809/1 "2024-01-08T00:54:25Z")

</div>

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:

```plaintext
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?

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [January 8, 2024, 1:28am UTC](https://meta.discourse.org/t/error-rebuilding-using-gamification-plugin/290809/2 "2024-01-08T01:28:11Z")

</div>

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

---

<div class="post-metadata">

### Author: ![wini](https://avatars.discourse-cdn.com/v4/letter/w/e5b9ba/32.png) [@wini](https://meta.discourse.org/u/wini)
#### Post date: [January 8, 2024, 1:32am UTC](https://meta.discourse.org/t/error-rebuilding-using-gamification-plugin/290809/3 "2024-01-08T01:32:50Z")

</div>

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

example:  
- git clone [https://github](https://github)[.]com/discourse/discourse-bcc  
- git clone [https://github](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

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [January 8, 2024, 1:41am UTC](https://meta.discourse.org/t/error-rebuilding-using-gamification-plugin/290809/4 "2024-01-08T01:41:05Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [January 8, 2024, 2:14am UTC](https://meta.discourse.org/t/error-rebuilding-using-gamification-plugin/290809/5 "2024-01-08T02:14:40Z")

</div>

Hi @wini 🙂

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

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