Issue with Hosting Discourse on Amazon Lightsail

I launched an instance on AWS Lightsail, running Ubuntu 24.04 with 2GB RAM. However, when trying to connect via SSH, I encountered the following error:

should i proceed with this action ??

FAILED

--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with r
eturn #<Process::Status: pid 1758 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 disco
urse -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 tha
n one.
./discourse-doctor may help diagnose the problem.
37df797fd5ae932a447677fb319c8720db3416d8e3a63a745f397130d7d4beb6
root@ip-172-26-13-68:/var/discourse#
1 Like

Looks like we need a few more lines of the logs.

running a new instance, would share the error logs soon