Install fail, please help

== 20181221121805 CreateThemeTranslationOverride: migrating ===================
– create_table(:theme_translation_overrides)
→ 0.0102s
== 20181221121805 CreateThemeTranslationOverride: migrated (0.0111s) ==========

== 20190103051737 AddVersionToOptimizedImages: migrating ======================
– add_column(:optimized_images, :version, :integer)
→ 0.0008s
== 20190103051737 AddVersionToOptimizedImages: migrated (0.0012s) =============

== 20190103060819 ForceRebakeOnPostsWithImages: migrating =====================
– execute(“UPDATE posts SET baked_version = 0\nWHERE id IN (SELECT post_id FROM post_uploads)\n”)
→ 0.0007s
== 20190103060819 ForceRebakeOnPostsWithImages: migrated (0.0011s) ============

== 20190103065652 RemoveUploadedMetaIdFromCategory: migrating =================
== 20190103065652 RemoveUploadedMetaIdFromCategory: migrated (0.0019s) ========

== 20190103160533 CreateReviewables: migrating ================================
– create_table(:reviewables)
→ 0Last failed login: Mon Feb 24 20:33:37 CST 2025 from 218.92.0.198 on ssh:notty
There were 2 failed login attempts since the last successful login.
Last login: Mon Feb 24 20:30:46 2025 from 127.0.0.1
[root@VM-0-11-opencloudos ~]#


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile:build' failed with return #<Process::Status: pid 881 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"=>"build", "hook"=>"assets_precompile_build", "cmd"=>["su discourse -c 'bundle exec rake assets:precompile:build'"]}
bootstrap failed with exit code 1
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
30348f30e7ed7ca4cc5f7202e9358c63736d3e04fd8bb63d3d1cabf47d6b0dbc
[root@VM-0-11-opencloudos discourse]#

Hi, welcome,

Can you do that, please?

1 Like

How much RAM and swap do you have?

 free -h
           total        used        free      shared  buff/cache   available

Mem: 3.6Gi 2.1Gi 607Mi 117Mi 1.3Gi 1.4Gi
Swap: 1.0Gi 600Mi 424Mi

Increase your swap size, as part of the build process is memory-intensive. Increasing it to 2 GB or more might help. Then, try rebuilding your app.