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

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.

Can you please share the whole log?

2 Likes

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

Discourse AI Plugin Install Error.txt (51.3 KB)

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

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

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.

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.

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

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.

How are you running your PostgreSQL database in this setup?

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

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

1 Like

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