# Help with Installing AI Plugin on Discourse v3.4.0.beta1

**URL:** https://meta.discourse.org/t/help-with-installing-ai-plugin-on-discourse-v3-4-0-beta1/327364
**Category:** Support
**Tags:** ai
**Created:** [September 20, 2024, 6:50am UTC](https://meta.discourse.org/t/help-with-installing-ai-plugin-on-discourse-v3-4-0-beta1/327364 "2024-09-20T06:50:16Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![riderdivyanshu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riderdivyanshu/32/449608_2.png) [@riderdivyanshu](https://meta.discourse.org/u/riderdivyanshu)
#### Post date: [September 20, 2024, 6:50am UTC](https://meta.discourse.org/t/help-with-installing-ai-plugin-on-discourse-v3-4-0-beta1/327364/1 "2024-09-20T06:50:16Z")

</div>

Not able to install the AI Plugin in the Discourse v3.4.0.beta1 +352. Can anyone help me out how to solve this

Getting this error while rebuilding the app  
FAILED

* * *

Pups::ExecError: cd /var/www/discourse && su discourse -c ‘bundle exec rake db:migrate’ failed with return #\<Process::Status: pid 1754 exit 1\>  
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.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [September 20, 2024, 6:51am UTC](https://meta.discourse.org/t/help-with-installing-ai-plugin-on-discourse-v3-4-0-beta1/327364/2 "2024-09-20T06:51:06Z")

</div>

Can you please share the whole log?

---

<div class="post-metadata">

### Author: ![riderdivyanshu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riderdivyanshu/32/449608_2.png) [@riderdivyanshu](https://meta.discourse.org/u/riderdivyanshu)
#### Post date: [September 21, 2024, 4:09pm UTC](https://meta.discourse.org/t/help-with-installing-ai-plugin-on-discourse-v3-4-0-beta1/327364/3 "2024-09-21T16:09:51Z")

</div>

@Falco Kindly find the attached whole log of the rebuild of the discourse app

[Discourse AI Plugin Install Error.txt](https://meta.discourse.org/uploads/short-url/tNQCWUk4TGIK5cczd4RASCkWlrd.txt) (51.3 KB)

Kindly check the log and kindly let me know how to solve this.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [September 21, 2024, 4:19pm UTC](https://meta.discourse.org/t/help-with-installing-ai-plugin-on-discourse-v3-4-0-beta1/327364/4 "2024-09-21T16:19:19Z")

</div>

I don’t know but should you fix first email, domain and CDN?

---

<div class="post-metadata">

### Author: ![riderdivyanshu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riderdivyanshu/32/449608_2.png) [@riderdivyanshu](https://meta.discourse.org/u/riderdivyanshu)
#### Post date: [September 21, 2024, 4:23pm UTC](https://meta.discourse.org/t/help-with-installing-ai-plugin-on-discourse-v3-4-0-beta1/327364/5 "2024-09-21T16:23:46Z")

</div>

I have already provided the email and domain name but haven’t configured CDN till now will be configuring it later on. But I don’t think these parameters will impact the Discource AI plugin installation.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [September 21, 2024, 4:36pm UTC](https://meta.discourse.org/t/help-with-installing-ai-plugin-on-discourse-v3-4-0-beta1/327364/6 "2024-09-21T16:36:29Z")

</div>

I’m not sure if it is matter of AI plugin, but more something else and/or database.

But your error.txt says email and domain are broken. CDN is easy to comment out if you don’t use it.

Well, I’m sure someone who knows, not just make wild guesses, weill chime in at some point.

---

<div class="post-metadata">

### Author: ![riderdivyanshu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riderdivyanshu/32/449608_2.png) [@riderdivyanshu](https://meta.discourse.org/u/riderdivyanshu)
#### Post date: [September 21, 2024, 5:43pm UTC](https://meta.discourse.org/t/help-with-installing-ai-plugin-on-discourse-v3-4-0-beta1/327364/7 "2024-09-21T17:43:18Z")

</div>

Hi Jake,

Totally agree with your point about the error it is showing but while setting it up I have entered the AWS SMTP setting and also the domain which is currently working. I haven’t set up CDN currently now.  
But I don’t know why both errors related to the email and sub domain are showing in the log.

Also, I have found some error which is present in the log on line no. 432, 479, 526 which as below  
on 432  
`ERROR: current transaction is aborted, commands ignored until end of transaction block`

on 479  
`PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block (PG::InFailedSqlTransaction)`

on 526

```plaintext
ActiveRecord::StatementInvalid: PG::InsufficientPrivilege: ERROR: permission denied to create extension "vector" (ActiveRecord::StatementInvalid)
HINT: Must be superuser to create this extension.

```

if anyone has an idea why this error is showing kindly let me know how to fix this.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 1, 2024, 4:07pm UTC](https://meta.discourse.org/t/help-with-installing-ai-plugin-on-discourse-v3-4-0-beta1/327364/8 "2024-10-01T16:07:08Z")

</div>

> [@riderdivyanshu](#):
>
> @Falco Kindly find the attached whole log of the rebuild of the discourse app

How are you running your PostgreSQL database in this setup?

---

<div class="post-metadata">

### Author: ![riderdivyanshu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riderdivyanshu/32/449608_2.png) [@riderdivyanshu](https://meta.discourse.org/u/riderdivyanshu)
#### Post date: [October 2, 2024, 4:39pm UTC](https://meta.discourse.org/t/help-with-installing-ai-plugin-on-discourse-v3-4-0-beta1/327364/9 "2024-10-02T16:39:22Z")

</div>

I am running PostgreSQL on the AWS RDS and setting the path for the database on the docker composer file.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 2, 2024, 9:14pm UTC](https://meta.discourse.org/t/help-with-installing-ai-plugin-on-discourse-v3-4-0-beta1/327364/10 "2024-10-02T21:14:33Z")

</div>

You will need to enable the `vector` instance there in order to use Discourse AI.

---

<div class="post-metadata">

### Author: ![riderdivyanshu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riderdivyanshu/32/449608_2.png) [@riderdivyanshu](https://meta.discourse.org/u/riderdivyanshu)
#### Post date: [October 3, 2024, 6:10pm UTC](https://meta.discourse.org/t/help-with-installing-ai-plugin-on-discourse-v3-4-0-beta1/327364/11 "2024-10-03T18:10:21Z")

</div>

How can I enable it in the AWS RDS PostgreSQL any idea about this
