./launcher Rebuild App Failed During `rake themes:update assets:precompile`

Although this was triggered when I added 2 plugins (discourse-reactions and discourse-ratings) then rebuilt the app, I know the issue is not caused by plugins because I later commented out all of them (except discourse-docker) and the rebuild still fails.

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile' failed with return #<Process::Status: pid 5607 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"assets_precompile", "cmd"=>["su discourse -c 'bundle exec rake themes:update assets:precompile'"]}
21101bda0823bb7aa87a097acb0a43dde61b26e18dc39eec3e439e75871c9efe
** 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.

I am unsure of the cause. There seem to be a few possibilities.

Uglifier Error
Uglifier::Error: Unexpected token: keyword (const). To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true).
--
e[36m 92843e[0m "use strict";
e[36m 92844e[0m 
e[36m 92845e[0m function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; }
e[36m 92846e[0m 
e[36m 92847e[0m var id = 0;
e[36m 92848e[0m 
e[36m 92849e[0m function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
e[36m 92850e[0m 
e[91m    => e[0me[91mconst {e[0m
e[36m 92852e[0m   AbortController,
e[36m 92853e[0m   createAbortError
e[36m 92854e[0m } = require('@uppy/utils/lib/AbortController');
e[36m 92855e[0m 
e[36m 92856e[0m const delay = require('@uppy/utils/lib/delay');
e[36m 92857e[0m 
e[36m 92858e[0m const MB = 1024 * 1024;
e[36m 92859e[0m const defaultOptions = {
==
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/uglifier-4.2.0/lib/uglifier.rb:291:in `parse_result'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/uglifier-4.2.0/lib/uglifier.rb:221:in `run_uglifyjs'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/uglifier-4.2.0/lib/uglifier.rb:176:in `compile_with_map'
/var/www/discourse/lib/tasks/assets.rake:135:in `compress_ruby'
/var/www/discourse/lib/tasks/assets.rake:178:in `compress'
/var/www/discourse/lib/tasks/assets.rake:376:in `block (6 levels) in <main>'
/var/www/discourse/lib/tasks/assets.rake:199:in `log_task_duration'
/var/www/discourse/lib/tasks/assets.rake:371:in `block (5 levels) in <main>'
/var/www/discourse/lib/tasks/assets.rake:189:in `block in concurrent?'
/var/www/discourse/lib/tasks/assets.rake:370:in `block (4 levels) in <main>'
/var/www/discourse/lib/tasks/assets.rake:359:in `each'
/var/www/discourse/lib/tasks/assets.rake:359:in `block (3 levels) in <main>'
/var/www/discourse/lib/tasks/assets.rake:189:in `concurrent?'
/var/www/discourse/lib/tasks/assets.rake:356:in `block (2 levels) in <main>'
/var/www/discourse/lib/tasks/assets.rake:199:in `log_task_duration'
/var/www/discourse/lib/tasks/assets.rake:355:in `block in <main>'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)

Similar issues include:

Broken Theme Component
Updating 'Category Headers theme component' for 'default'...
Updating 'Toggle Whisper' for 'default'...
Updating 'Discourse Clickable Topic' for 'default'...
Downloading MaxMindDB...
Compressing Javascript and Generating Source Maps

I, [2021-12-20T13:14:25.975333 #1]  INFO -- : Terminating async processes
I, [2021-12-20T13:14:25.975386 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 32
32:signal-handler (1640006065) Received SIGTERM scheduling shutdown...
32:M 20 Dec 2021 13:14:26.048 # User requested shutdown...
32:M 20 Dec 2021 13:14:26.048 * Saving the final RDB snapshot before exiting.
32:M 20 Dec 2021 13:14:26.161 * DB saved on disk
32:M 20 Dec 2021 13:14:26.161 # Redis is now ready to exit, bye bye...

Similar issue: Error when "./discourse rebuild app" due to theme error
However this issue has the following line, which I couldn’t find any equivalents for in my discourse-doctor log.

Failed to update 'Alternative Logos': about.json contains invalid values: Maximum discourse version is invalid
rake aborted!
MaxMind
MaxMind IP database updates require a license
Please set DISCOURSE_MAXMIND_LICENSE_KEY to one you generated at https://www.maxmind.com
Compressing: vendor-e9ee842d7242168f7caf93b4baf7ca88f9a272c7febf7dc3def79d67a758d3c3.js
MaxMind IP database updates require a license
Please set DISCOURSE_MAXMIND_LICENSE_KEY to one you generated at https://www.maxmind.com
rake aborted!
Here is more of the discourse-doctor log
...
Post-install message from rubyzip:
RubyZip 3.0 is coming!
**********************

The public API of some Rubyzip classes has been modernized to use named
parameters for optional arguments. Please check your usage of the
following classes:
  * `Zip::File`
  * `Zip::Entry`
  * `Zip::InputStream`
  * `Zip::OutputStream`

Please ensure that your Gemfiles and .gemspecs are suitably restrictive
to avoid an unexpected breakage when 3.0 is released (e.g. ~> 2.3.0).
See https://github.com/rubyzip/rubyzip for details. The Changelog also
lists other enhancements and bugfixes that have been implemented since
version 2.3.0.

I, [2021-12-20T13:12:37.894528 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake plugin:pull_compatible_all'
I, [2021-12-20T13:12:49.820220 #1]  INFO -- : gem install rrule -v 0.4.2 -i /var/www/discourse/plugins/discourse-calendar/gems/2.7.2 --no-document --ignore-dependencies --no-user-install
Successfully installed rrule-0.4.2
1 gem installed
gem install sawyer -v 0.8.2 -i /var/www/discourse/plugins/discourse-github/gems/2.7.2 --no-document --ignore-dependencies --no-user-install
Successfully installed sawyer-0.8.2
1 gem installed
gem install octokit -v 4.21.0 -i /var/www/discourse/plugins/discourse-github/gems/2.7.2 --no-document --ignore-dependencies --no-user-install
Successfully installed octokit-4.21.0
1 gem installed
discourse-footnote is already at latest compatible version
discourse-assign is already at latest compatible version
discourse-question-answer is already at latest compatible version
discourse-translator is already at latest compatible version
discourse-reactions is already at latest compatible version
discourse-policy is already at latest compatible version
discourse-canned-replies is already at latest compatible version
discourse-layouts is already at latest compatible version
discourse-github is already at latest compatible version
discourse-user-notes is already at latest compatible version
discourse-checklist is already at latest compatible version
discourse-chat-integration is already at latest compatible version
discourse-calendar is already at latest compatible version
discourse-docs is already at latest compatible version
discourse-shared-edits is already at latest compatible version
discourse-restricted-replies is already at latest compatible version
discourse-tickets is already at latest compatible version
discourse-solved is already at latest compatible version
discourse-push-notifications is already at latest compatible version
docker_manager is already at latest compatible version
discourse-ratings is already at latest compatible version

I, [2021-12-20T13:12:49.820894 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
I, [2021-12-20T13:12:58.083024 #1]  INFO -- : 
I, [2021-12-20T13:12:58.083656 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile'
Purging temp files
Bundling assets
W, [2021-12-20T13:13:06.944261 #5609]  WARN -- : Removed sourceMappingURL comment for missing asset '/popper.js.map' from /var/www/discourse/vendor/assets/javascripts/popper.js
I, [2021-12-20T13:13:09.983924 #5609]  INFO -- : Writing /var/www/discourse/public/assets/vendor-e9ee842d7242168f7caf93b4baf7ca88f9a272c7febf7dc3def79d67a758d3c3.js
I, [2021-12-20T13:13:18.662546 #5609]  INFO -- : Writing /var/www/discourse/public/assets/admin-5e06131e11cb44646976c19f43a9bb635ee8c04e12420f953a2ec65825bffba8.js
I, [2021-12-20T13:13:18.668035 #5609]  INFO -- : Writing /var/www/discourse/public/assets/browser-detect-16ca87077aead9f656700e192992122d3a7eee8c1bb76da992127945464d4777.js
I, [2021-12-20T13:13:18.672115 #5609]  INFO -- : Writing /var/www/discourse/public/assets/browser-update-eec13eb6f8386f18f10b5dd6ebb7a3598d28421bb796e539b91a7e4a4c5d4c08.js
I, [2021-12-20T13:13:18.676160 #5609]  INFO -- : Writing /var/www/discourse/public/assets/break_string-cc617154cd957804f2f6a1f3bc68258c9cdca3d4b9a322bf777d145fed04790e.js
I, [2021-12-20T13:13:19.006443 #5609]  INFO -- : Writing /var/www/discourse/public/assets/ember_jquery-df193a07e40c10f08984596aa18293f2eb14d62ef491be1a5f9a8e7a9a5feefb.js
I, [2021-12-20T13:13:19.047333 #5609]  INFO -- : Writing /var/www/discourse/public/assets/pretty-text-bundle-07f3c7210671282fca694d938eec4f4e2c00ee30f98ddd82fe1adad9aab3bb5b.js
I, [2021-12-20T13:13:23.309962 #5609]  INFO -- : Writing /var/www/discourse/public/assets/wizard-application-a1cf2c3f5d4d7813dca5a44508daafbfc72b3fe5d172e20aee6c6b1d252da8b5.js
I, [2021-12-20T13:13:23.751839 #5609]  INFO -- : Writing /var/www/discourse/public/assets/wizard-vendor-9b07e12b8f325bed16e88c977e0c08f3432365a970b331fb606ae44b77aa3ceb.js
I, [2021-12-20T13:13:24.600307 #5609]  INFO -- : Writing /var/www/discourse/public/assets/markdown-it-bundle-9fbfb0b2590d074454474eb3bf37eab3675db1e737557bdfe8fbedb4d6e8dff4.js
I, [2021-12-20T13:13:24.748475 #5609]  INFO -- : Writing /var/www/discourse/public/assets/service-worker-40422fcc3408be31f986b7c843e04661ec33002b76d2f9c83c03b17fb8282f85.js
I, [2021-12-20T13:13:24.785809 #5609]  INFO -- : Writing /var/www/discourse/public/assets/google-tag-manager-207e4e7db708ead224f0e2ee6d92492abfe9a29e717480b6f6f2614fa7873019.js
I, [2021-12-20T13:13:24.798550 #5609]  INFO -- : Writing /var/www/discourse/public/assets/google-universal-analytics-v3-706f1d28f0a97f67a47515c96189277240ec4940d968955042066d7873fd1fe8.js
I, [2021-12-20T13:13:24.808845 #5609]  INFO -- : Writing /var/www/discourse/public/assets/google-universal-analytics-v4-3f290b57b4e029da9e59f074043a0c8e816f099ef4ccffe82b821ff43e9a4c7f.js
I, [2021-12-20T13:13:24.816233 #5609]  INFO -- : Writing /var/www/discourse/public/assets/start-discourse-330ecabb99d562b3be656b4bfb638312addb2e0ee5f5780aa47d519efd0b53f4.js
I, [2021-12-20T13:13:24.822382 #5609]  INFO -- : Writing /var/www/discourse/public/assets/print-page-e36056a4075e3fd3032cbf30b45aa1ce743abe55bf79f9e92429f33446f0801b.js
I, [2021-12-20T13:13:24.840122 #5609]  INFO -- : Writing /var/www/discourse/public/assets/activate-account-a1f1c2df02186f5182c09abcba45827d0284071678fabffc91ef23b17add35bb.js
I, [2021-12-20T13:13:24.852017 #5609]  INFO -- : Writing /var/www/discourse/public/assets/auto-redirect-4629c3e3258ec7a5a9aafe3dc77db2bdaa15db2ac68275e549bdb0e708643e34.js
I, [2021-12-20T13:13:24.863119 #5609]  INFO -- : Writing /var/www/discourse/public/assets/wizard-start-f142a86a7c6379e363875dc55b832b2c0ecd6d59c391af4c9d00ff34e41f9ed0.js
I, [2021-12-20T13:13:24.868802 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/i18n-d1738f49705b8e1eb156739cbcc3cb1183e60f56a2a1227aa9811b513cb5276d.js
I, [2021-12-20T13:13:24.904876 #5609]  INFO -- : Writing /var/www/discourse/public/assets/discourse/app/lib/webauthn-5b4061034a2b990280a830d330832f2099fa7e0f9a8b6c0b3fd924ca004b1720.js
I, [2021-12-20T13:13:24.921324 #5609]  INFO -- : Writing /var/www/discourse/public/assets/confirm-new-email/confirm-new-email-35282b052451b4a25beca1667e4cf7ce022121f8d2107a078251a042e9c38419.js
I, [2021-12-20T13:13:24.932788 #5609]  INFO -- : Writing /var/www/discourse/public/assets/confirm-new-email/bootstrap-52b6b6b3fa62d64b09775e2803255326bef3a94a16063a8c191a37e0909f59d1.js
I, [2021-12-20T13:13:24.942929 #5609]  INFO -- : Writing /var/www/discourse/public/assets/onpopstate-handler-417528e7d5f1058afdf6002e7606a3f51c2abc04573b72c85a24374a343448f2.js
I, [2021-12-20T13:13:24.956148 #5609]  INFO -- : Writing /var/www/discourse/public/assets/embed-application-9cef8308c816fc1d83137e63d6c556c6cc2b68fe2b6e5ce16cca6766ba2c0ae4.js
I, [2021-12-20T13:13:25.614631 #5609]  INFO -- : Writing /var/www/discourse/public/assets/discourse/tests/theme_qunit_ember_jquery-fdc4d6700a44009947060c0b4299a9b52f26d97e58e7f36a573f8213587bb2f4.js
I, [2021-12-20T13:13:25.788596 #5609]  INFO -- : Writing /var/www/discourse/public/assets/discourse/tests/theme_qunit_vendor-262077abd492844c707f8c2d8eae8e1c75e60f9c3ca5a1a267c13a4a6beb7e4d.js
W, [2021-12-20T13:13:25.867561 #5609]  WARN -- : Removed sourceMappingURL comment for missing asset 'fake_xml_http_request.js.map' from /var/www/discourse/vendor/assets/javascripts/fake_xml_http_request.js
W, [2021-12-20T13:13:25.875481 #5609]  WARN -- : Removed sourceMappingURL comment for missing asset 'route-recognizer.js.map' from /var/www/discourse/vendor/assets/javascripts/route-recognizer.js
I, [2021-12-20T13:13:26.866056 #5609]  INFO -- : Writing /var/www/discourse/public/assets/discourse/tests/theme_qunit_tests_vendor-e9d31cad4ea7c8be4526672bee4a28bc1a9f21ee8aed74751404412a62bd13cb.js
I, [2021-12-20T13:13:29.974615 #5609]  INFO -- : Writing /var/www/discourse/public/assets/discourse/tests/theme_qunit_helper-f2f4f1eba4d7e410aeb2dc4d62e6bbf86cc274670553411ddc95ed96448a219c.js
I, [2021-12-20T13:13:29.988064 #5609]  INFO -- : Writing /var/www/discourse/public/assets/discourse/tests/test_starter-6d76887d5efc8e84ac17848670668d568137ad14f96a7108ffe4ef60dfff168c.js
I, [2021-12-20T13:13:30.538471 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/fa_IR-cf7420cf510b518673f8afd1b1950b93d35897b1d2be7d08ec379043a09c083c.js
I, [2021-12-20T13:13:30.916273 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/th-2c2604ad1ed695747b62cc799ae83d4cd00a284fc52df047877d203310139ece.js
I, [2021-12-20T13:13:31.132485 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/sw-0df594dd888a9cdf44f8e56d057058961714181c6e518d7a2f62f4ab5ec89a0c.js
I, [2021-12-20T13:13:31.355896 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/ja-f516db7f33e0c456d656cd1e0f9af1ed4e0185efd425489704df102ef796d9ed.js
I, [2021-12-20T13:13:31.585714 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/hu-ea63957b256d802f7fa881120a58160dd65e170d304a6af195df11d321171926.js
I, [2021-12-20T13:13:31.810483 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/et-425787bd0cec006bad813e6912dec39b7e650c76fe5daac7442186a486770290.js
I, [2021-12-20T13:13:31.971806 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/en_GB-90ce6e6cbe2b093f35f84dd2d58abe0275c995b17090ea922aba6d98dc1275be.js
I, [2021-12-20T13:13:32.230230 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/el-41865c8c1eef0338a03e1dba83ec450291545b761c0cd0011f1598fb7174f540.js
I, [2021-12-20T13:13:32.482048 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/bg-ed0ba5b7a68f6929b288011a090660f7032e3806043f0ea7d3c54239e9093954.js
I, [2021-12-20T13:13:32.726500 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/hy-458e0e535b53b83589ad527c08dd982f570bc0aa606165b27301b59abd595298.js
I, [2021-12-20T13:13:32.981369 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/sv-77387df0bf7fc26da0b11bdb6627cdb8ac69db47cfe460b8b1d10e17e27c5049.js
I, [2021-12-20T13:13:33.227142 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/ur-b6bc69561df30f773a2aceaa1f51eea8eeba43419fd103f34d2c98ae522d8ac2.js
I, [2021-12-20T13:13:33.458324 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/sq-23c09ef16af225b738001f56c53588a4a12fd2ab3c928c52497fa720b0412a13.js
I, [2021-12-20T13:13:33.779855 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/lt-3ed97f8122207414bb6c396429ad9c40e8212eeebc2a78f884d52c2624cb0bbf.js
I, [2021-12-20T13:13:34.119792 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/tr_TR-c063ba7997bfa7cef1465529fc6600259ff2496a2f4db12d481bce8670b5e481.js
I, [2021-12-20T13:13:34.387272 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/ko-f42ca197bd9cbe6d53101432104bb121dd487cd9847182dfdb3274e1b0b7d547.js
I, [2021-12-20T13:13:34.611383 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/cs-401a3dc59060c6840f082d8954a10cb3e91256b37b1807f043fd0038969fe7a6.js
I, [2021-12-20T13:13:34.825937 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/te-71944a9afe557bdced0288fa679785d7144c3c03e1a5f5ab177ca07b31504de0.js
I, [2021-12-20T13:13:35.049545 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/pt-e39a3bd49a2ea61d0f826153ba6e591c6efef73f42754851ebae1f5bec365283.js
I, [2021-12-20T13:13:35.281458 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/sl-971ae823c7f9991d901afc4b9544acaaf9f0878885f7cff5a72c06972872bfd5.js
I, [2021-12-20T13:13:35.474580 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/id-053829bc95bf33639a24176c4160884b526aa8607eaf052aba371d2dbd5374b5.js
I, [2021-12-20T13:13:35.712328 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/it-f2d07dbc4e988427703ea5c70473898a349ae8ca356b214f760ff09c9d3dbebf.js
I, [2021-12-20T13:13:35.914171 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/sk-5226065f9e7bc8d4a8b768d017bf02e653a4732a491d15cda53411e6cd148dbc.js
I, [2021-12-20T13:13:36.158483 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/nl-fdd27b93359398791d426cf7757fc6218812a24207c461838d2626e34927b534.js
I, [2021-12-20T13:13:36.394164 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/fr-767a73080fe8d9c51989e06263ae4a4d1b00da38b18b9c9d3a3c76ccb0dc8250.js
I, [2021-12-20T13:13:36.617862 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/ca-8b3a5390c1a87d1e854af4ae3639d51e66115f86d01a79f2230fd9c5e6afa2e0.js
I, [2021-12-20T13:13:36.766702 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/en-dddbe51538a3d7e3876ac62056c56b193ffc4847df05421cc28ce332d896b4db.js
I, [2021-12-20T13:13:36.997696 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/fi-9a3a1148d36f7c8242d84ecf6921fc73742b1a80e614efa927b80bdd462a5048.js
I, [2021-12-20T13:13:37.250681 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/da-660e3372c162aaf62113e9985a617c372c097ea81d341ec6c9957a34a5f8396c.js
I, [2021-12-20T13:13:37.494193 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/pl_PL-a9769b7c0a52ab117fbf9b604a73b5e797edb8b5399d9070a6daab09dd156b91.js
I, [2021-12-20T13:13:37.812227 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/ar-29bfb6d8768febce2b6b1ebf4a8ba80e3c60431e6ac1f0497aa6ba5d769fb2cb.js
I, [2021-12-20T13:13:38.172518 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/de-e049285aeb6fb4086a8bd0e8228f8325663783d6da752246f13dd06d6e11baaa.js
I, [2021-12-20T13:13:38.507412 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/ro-963489a97ed74bf2f02fe3f9765e172ccdc889534dc4b57bcf26c783fd60be3b.js
I, [2021-12-20T13:13:38.745833 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/gl-18ea737f0fbe5459af3d207276b456245f8ba8906ed973e2fca51e8fe8f0f343.js
I, [2021-12-20T13:13:38.947588 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/sr-c552c3db1b5d236047d7a2e45622abd36e79034d9361800bdbdfe128a65e12e5.js
I, [2021-12-20T13:13:39.242622 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/he-34daa5dcdad71cf66cdf1e7b8225d3450144c0fe25cdd165e6701c6dc22832ba.js
I, [2021-12-20T13:13:39.486223 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/vi-b6c93e6e2e24ba709d4941de21d3599db924f475fae18c99bb48120d8119ad99.js
I, [2021-12-20T13:13:39.768006 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/uk-2a382b805e43e78200e2e2996d25001020ed155788760e24706beb0681797f81.js
I, [2021-12-20T13:13:39.980029 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/lv-28fba3e7176a8f186674339169dc40b2484c8096188f10e50f653fb5984a0e3c.js
I, [2021-12-20T13:13:40.240552 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/es-1a8fa4d4eb97092e7cfb73634bf0b3d3c4618e24fc7523008160cd687998cc65.js
I, [2021-12-20T13:13:40.536643 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/ru-ada425d4ebb6bac508205db7ac44a4d0142f560fb0a6e66fbf8a951748c096e5.js
I, [2021-12-20T13:13:40.778321 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/zh_CN-418af97ae0a76acf7c46e7229681e69c637bc14b995dc28994028152cd3d888a.js
I, [2021-12-20T13:13:41.003443 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/bs_BA-7f9c762b8f6cfec602d003d7d1c34eaa3bc7ece1b17d895cb7f39005b8d09ced.js
I, [2021-12-20T13:13:41.233480 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/pt_BR-72be82f153b8a421d144b60df8f2356db129b46d262c39b204a8a51f625b987b.js
I, [2021-12-20T13:13:41.458420 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/nb_NO-340db10cd16c8d5e1c64d9a2dee9cb1faa0d7eb362310331dc94f9544326b559.js
I, [2021-12-20T13:13:41.694931 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/zh_TW-848c3b4c4d01b73075b7ee142be52dff72e5eb3535aebf8a6d07fa6063e649d3.js
I, [2021-12-20T13:13:41.885276 #5609]  INFO -- : Writing /var/www/discourse/public/assets/locales/be-bd469cd96ccf1c26db2d20a781146a112d95bd04bfe1eb788daa7fca21a1af94.js
I, [2021-12-20T13:13:41.899607 #5609]  INFO -- : Writing /var/www/discourse/public/assets/docker-manager-app-a6e4e0ba9aa49e105c6f66e99233950ec9f5c9b3558f2e3804a242d35564ce11.js
I, [2021-12-20T13:13:42.038479 #5609]  INFO -- : Writing /var/www/discourse/public/assets/docker-manager-app-5256678af40d7479a0d37d3bddcca6fa5c2505b83a654a6d23e9d6f4f5fd406a.css
I, [2021-12-20T13:13:42.197143 #5609]  INFO -- : Writing /var/www/discourse/public/assets/docker-manager-vendor-9709990270a4ade37544c98dda3cfad18f77cdf6cd433291c3c5ef7bd25cb50d.js
I, [2021-12-20T13:13:42.205668 #5609]  INFO -- : Writing /var/www/discourse/public/assets/docker-manager-vendor-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css
I, [2021-12-20T13:13:42.214860 #5609]  INFO -- : Writing /var/www/discourse/public/assets/images/docker-manager-aff8eaea0445c0488c19f8cfd14faa8c2b278924438f19048eacc175d7d134e4.png
I, [2021-12-20T13:13:43.651938 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-assign-68ac75ee332bf30aefcf695447fb99340fc60896807e4143cbfc2d4cb45c1c48.js
I, [2021-12-20T13:13:45.618798 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-calendar-234a1adaa5b6f0042085ca2e8e114cdd752401ae332249b485ceb13423017669.js
I, [2021-12-20T13:13:45.830296 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-canned-replies-33e4732aee5d0bec3cee72adc45b9a5f41c8eaf95bdddb5b4d3026ec6280af09.js
I, [2021-12-20T13:13:46.219129 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-chat-integration-1e370e72673cc748b58474d7e8a230b6ce85c9c79f8cadebd5d4f5b488796f09.js
I, [2021-12-20T13:13:46.292281 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-checklist-1e07a6f8feed538735d6b92a0ab960ace8430ada4cec9ba1f112d3fdab3b9844.js
I, [2021-12-20T13:13:46.325647 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-details-a5c71c75398c735e851440262e3c9ba43f9d8a2a7d81d8ecec16c8b2dbf452c3.js
I, [2021-12-20T13:13:46.701246 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-docs-980e78e4501b66aec0d0d1e0b9690a419f1a1f097182a21901d8cd119a3ec828.js
I, [2021-12-20T13:13:46.761571 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-footnote-9b63d2c7e0607e2d27114241862d87eaaad8f39cf68679c6e12aa1ed65a9b0af.js
I, [2021-12-20T13:13:47.292540 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-layouts-f50307f88d7434d73730d8792d976b18f110cf35b21a85269ce027f36e06ddbd.js
I, [2021-12-20T13:13:47.767885 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-local-dates-8f1e7b3adec2176faf7c3013e32e0151d0db362d12f5a9ee2d73771a194379e8.js
I, [2021-12-20T13:13:47.816376 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-narrative-bot-bc7c0392ef6abf0858f0d6a20600eb7f84d741b114e64c2a736831b45a1339c3.js
I, [2021-12-20T13:13:48.103607 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-policy-baf8ae929817a7e5fc7e6ce5c93762a5eba79a138259a491fe81daf5db46173c.js
I, [2021-12-20T13:13:48.297408 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-presence-bc826a395189b32e4676ad0c4414f821f9bab8245747789b6d555fc16581dacd.js
I, [2021-12-20T13:13:48.350207 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-push-notifications-a2db1e7e1640a211665334d6bf5a602ab959874ed65999069d9a77f98b179f62.js
I, [2021-12-20T13:13:48.716571 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-question-answer-87c9b370e563f1f870eb72b32a1ddeb02800f1572c637f5447a8b574ed2affcf.js
I, [2021-12-20T13:13:49.360560 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-ratings-d61957ae5b4665fd0d2b381d3c208e9b449f7db4325d5ef0a81358126d1c0314.js
I, [2021-12-20T13:13:49.961616 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-reactions-5fc9e3766afe5934b8a46ebdc4de0052991c738821d6e823306f74637bdc20df.js
I, [2021-12-20T13:13:49.995015 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-restricted-replies-b6bf8d192904a4138017b01ade91b5596ff9ad754630d8f6d8898ef06b368a5a.js
I, [2021-12-20T13:13:50.138985 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-shared-edits-ed5c6114ec6de075b1f25b76fa15b5c9d2f94e65f53b962e3692e8258812ee34.js
I, [2021-12-20T13:13:50.337022 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-solved-1d049391309fb9a395d9b8256e40abc9a2ef8c52347eb31277248ceff5fe7b4e.js
I, [2021-12-20T13:13:50.613542 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-tickets-c5e6f3d44798024806c5f7ba5fbdd0c5ab55d05aca95a46701dd1c4942902278.js
I, [2021-12-20T13:13:50.683353 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-translator-3e89c38955210a46a07e2b93cb6b7d309cf950be1d7cdf604e99b8e8847ad66c.js
I, [2021-12-20T13:13:50.883465 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/discourse-user-notes-c1c4a60a3023ddfc97f9a5bae3b5e3da802e458a4dacc81e0f9153205b238335.js
I, [2021-12-20T13:13:50.906869 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/docker_manager-4ced9f9c7bda9ba563c04006dbb93828d43f2c7d5b533065717c5a63da77d5fc.js
I, [2021-12-20T13:13:50.962773 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/lazy-yt-362fd991a752ebdc53b9b3b70aea43cb46676f634c323d6c79c0bef4c6bebad3.js
I, [2021-12-20T13:13:51.764233 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/poll-388d992e7cce4bd8f7d5a1f1a0666143cab925ef911a97333edd41b56029a2bd.js
I, [2021-12-20T13:13:52.253544 #5609]  INFO -- : Writing /var/www/discourse/public/assets/plugins/styleguide-3e93957d059f9119b2872b96bba8e9bd7b465c00c39588f719e40975b9bc9dc4.js
I, [2021-12-20T13:14:24.514216 #5609]  INFO -- : Writing /var/www/discourse/public/assets/application-9ceb460c52a9220a7ffe67c651d51187effe3a8127a40c16ec81a7c38628334b.js
I, [2021-12-20T13:14:24.519647 #5609]  INFO -- : Writing /var/www/discourse/public/assets/favicon-24b22a63aae0cf353d72b6b728504377bfc42edc6563f202e3a1401763497249.ico
I, [2021-12-20T13:14:24.523016 #5609]  INFO -- : Writing /var/www/discourse/public/assets/logo-dev-0b53838dc1ee09248b94e3d4aa5c70d4a9897f26b8133d147e17bf8d41d3be7b.png
I, [2021-12-20T13:14:24.526565 #5609]  INFO -- : Writing /var/www/discourse/public/assets/logo-single-dev-5545f7e0d4d1d1d5ba821a6d8c1e394033558324e90acc1c6045cf382b4880c8.png
I, [2021-12-20T13:14:24.529631 #5609]  INFO -- : Writing /var/www/discourse/public/assets/logo-single-d7a0dacc998273856c42737dba8693fbdb9e5fd929d36afeb3f13844f147e865.png
I, [2021-12-20T13:14:24.533824 #5609]  INFO -- : Writing /var/www/discourse/public/assets/logo-ba2f2da6eac779d8b34d4aa977be739e4de07f7d34e970f4b8ac32682706c122.png
I, [2021-12-20T13:14:24.537316 #5609]  INFO -- : Writing /var/www/discourse/public/assets/push-notifications/check-f64a79b1bde9a9e1f6fdc1ab382163596a06e3ae71443bb8c8231aa595bcbc80.png
I, [2021-12-20T13:14:24.540769 #5609]  INFO -- : Writing /var/www/discourse/public/assets/push-notifications/discourse-bdbc548a4e328f39b017bb143b679c5dfe7b060574760cd71d77971c2a9eff1f.png
I, [2021-12-20T13:14:24.544020 #5609]  INFO -- : Writing /var/www/discourse/public/assets/push-notifications/group_mentioned-012ba348812e600c5532b8ccc08e8767b16fd126f3c7bcedcbdedaba640721d6.png
I, [2021-12-20T13:14:24.546697 #5609]  INFO -- : Writing /var/www/discourse/public/assets/push-notifications/linked-02191f88212f5cba22760235346da4e238eb9a4c9056cac92965a940eeaa02d0.png
I, [2021-12-20T13:14:24.549549 #5609]  INFO -- : Writing /var/www/discourse/public/assets/push-notifications/mentioned-012ba348812e600c5532b8ccc08e8767b16fd126f3c7bcedcbdedaba640721d6.png
I, [2021-12-20T13:14:24.552093 #5609]  INFO -- : Writing /var/www/discourse/public/assets/push-notifications/posted-918b5c4333d62ea140dfc63a49d1ee60e71f00418b8f2f7fa91bb65a2c995830.png
I, [2021-12-20T13:14:24.555214 #5609]  INFO -- : Writing /var/www/discourse/public/assets/push-notifications/private_message-77576c8c5017882f813792be99ee57b2ddaa417c2baf74255a9899867ad66b97.png
I, [2021-12-20T13:14:24.557863 #5609]  INFO -- : Writing /var/www/discourse/public/assets/push-notifications/quoted-a1bf4d7b4f4ad6b34b43d60143a7e07ddc030855eae2cf9308011ba91a3ce168.png
I, [2021-12-20T13:14:24.560478 #5609]  INFO -- : Writing /var/www/discourse/public/assets/push-notifications/replied-918b5c4333d62ea140dfc63a49d1ee60e71f00418b8f2f7fa91bb65a2c995830.png
MaxMind IP database updates require a license
Please set DISCOURSE_MAXMIND_LICENSE_KEY to one you generated at https://www.maxmind.com
Compressing: vendor-e9ee842d7242168f7caf93b4baf7ca88f9a272c7febf7dc3def79d67a758d3c3.js
MaxMind IP database updates require a license
Please set DISCOURSE_MAXMIND_LICENSE_KEY to one you generated at https://www.maxmind.com
rake aborted!
Uglifier::Error: Unexpected token: keyword (const). To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true).
--
e[36m 92843e[0m "use strict";
e[36m 92844e[0m 
e[36m 92845e[0m function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; }
e[36m 92846e[0m 
e[36m 92847e[0m var id = 0;
e[36m 92848e[0m 
e[36m 92849e[0m function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
e[36m 92850e[0m 
e[91m    => e[0me[91mconst {e[0m
e[36m 92852e[0m   AbortController,
e[36m 92853e[0m   createAbortError
e[36m 92854e[0m } = require('@uppy/utils/lib/AbortController');
e[36m 92855e[0m 
e[36m 92856e[0m const delay = require('@uppy/utils/lib/delay');
e[36m 92857e[0m 
e[36m 92858e[0m const MB = 1024 * 1024;
e[36m 92859e[0m const defaultOptions = {
==
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/uglifier-4.2.0/lib/uglifier.rb:291:in `parse_result'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/uglifier-4.2.0/lib/uglifier.rb:221:in `run_uglifyjs'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/uglifier-4.2.0/lib/uglifier.rb:176:in `compile_with_map'
/var/www/discourse/lib/tasks/assets.rake:135:in `compress_ruby'
/var/www/discourse/lib/tasks/assets.rake:178:in `compress'
/var/www/discourse/lib/tasks/assets.rake:376:in `block (6 levels) in <main>'
/var/www/discourse/lib/tasks/assets.rake:199:in `log_task_duration'
/var/www/discourse/lib/tasks/assets.rake:371:in `block (5 levels) in <main>'
/var/www/discourse/lib/tasks/assets.rake:189:in `block in concurrent?'
/var/www/discourse/lib/tasks/assets.rake:370:in `block (4 levels) in <main>'
/var/www/discourse/lib/tasks/assets.rake:359:in `each'
/var/www/discourse/lib/tasks/assets.rake:359:in `block (3 levels) in <main>'
/var/www/discourse/lib/tasks/assets.rake:189:in `concurrent?'
/var/www/discourse/lib/tasks/assets.rake:356:in `block (2 levels) in <main>'
/var/www/discourse/lib/tasks/assets.rake:199:in `log_task_duration'
/var/www/discourse/lib/tasks/assets.rake:355:in `block in <main>'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
I, [2021-12-20T13:14:25.973454 #1]  INFO -- : Updating 'Layouts Category List Widget' for 'default'...
Updating 'Category Headers theme component' for 'default'...
Updating 'Toggle Whisper' for 'default'...
Updating 'Discourse Clickable Topic' for 'default'...
Downloading MaxMindDB...
Compressing Javascript and Generating Source Maps

I, [2021-12-20T13:14:25.975333 #1]  INFO -- : Terminating async processes
I, [2021-12-20T13:14:25.975386 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 32
32:signal-handler (1640006065) Received SIGTERM scheduling shutdown...
32:M 20 Dec 2021 13:14:26.048 # User requested shutdown...
32:M 20 Dec 2021 13:14:26.048 * Saving the final RDB snapshot before exiting.
32:M 20 Dec 2021 13:14:26.161 * DB saved on disk
32:M 20 Dec 2021 13:14:26.161 # Redis is now ready to exit, bye bye...


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile' failed with return #<Process::Status: pid 5607 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"assets_precompile", "cmd"=>["su discourse -c 'bundle exec rake themes:update assets:precompile'"]}
21101bda0823bb7aa87a097acb0a43dde61b26e18dc39eec3e439e75871c9efe
** 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.
==================== END REBUILD LOG ====================
Failed to rebuild app.

Checking your domain name . . .

Connection to 443 succeeded.
You should probably remove any non-standard plugins and rebuild.
Attempting to restart existing container. . . 

starting up existing container
+ /usr/bin/docker start app
app
Restarted the container.


==================== PLUGINS ====================
            - git clone https://github.com/discourse/docker_manager.git
            - git clone https://github.com/discourse/discourse-chat-integration.git
            - git clone https://github.com/discourse/discourse-policy.git
            - git clone https://github.com/discourse/discourse-assign.git
            - git clone https://github.com/discourse/discourse-restricted-replies.git
            - git clone https://github.com/discourse/discourse-calendar.git
            - git clone https://github.com/discourse/discourse-solved.git
            - git clone https://github.com/discourse/discourse-footnote.git
            - git clone https://github.com/discourse/discourse-checklist.git
            - git clone https://github.com/discourse/discourse-docs.git
            - git clone https://github.com/discourse/discourse-github.git
            - git clone https://github.com/discourse/discourse-canned-replies.git
            - git clone https://github.com/discourse/discourse-user-notes.git
            - git clone https://github.com/discourse/discourse-push-notifications.git
            - git clone https://github.com/discourse/discourse-translator.git
            - git clone https://github.com/discourse/discourse-shared-edits.git
            - git clone https://github.com/paviliondev/discourse-question-answer.git
            - git clone https://github.com/paviliondev/discourse-tickets.git
            - git clone https://github.com/paviliondev/discourse-layouts.git
            - git clone https://github.com/discourse/discourse-reactions.git
            - git clone https://github.com/paviliondev/discourse-ratings.git

WARNING:
You have what appear to be non-official plugins.
If you are having trouble, you should disable them and try rebuilding again.

See https://github.com/discourse/discourse/blob/master/lib/plugin/metadata.rb for the official list.

========================================
Discourse version at : NOT FOUND
Discourse version at localhost: NOT FOUND


==================== MEMORY INFORMATION ====================
OS: Linux
RAM (MB): 4044

              total        used        free      shared  buff/cache   available
Mem:           3950         286        1835          52        1828        3267
Swap:             0           0           0

==================== DISK SPACE CHECK ====================
---------- OS Disk Space ----------
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1       39G   23G   17G  58% /

Looks like you need to follow this here:

1 Like

Will commenting out parts of the app before rebuilding result in any data loss?

Part of my problem is that I don’t know which theme component is the culprit, if any are. That user had a specific error message about Alternative Logo. My error message has nothing like this. See here from my original post:

Can I assume that the culprit is Discourse Clickable Topic since this was the last component being updated before it failed?

Does this tell me anything that could help identify the specific culprit?

If you can restart the instance from before you tried to upgrade, you could delete the theme component from the UI -
./launcher start app

(It might not be possible though if you’ve already run ./launcher cleanup)

1 Like

Hmmm how did you install Discourse? It looks like you are stuck in an old container image somehow.

If you followed our official install guide, can you share your app.yml file?

Turns out our docker image was pretty outdated, which I assume caused issues with dependencies, perhaps the Clickable Topic component since it’s relatively recent and presumably depends on a more recent docker image.

I tried a git pull last night which failed due to uncommitted edits but when we resolved that and updated to the latest image the rebuild worked without issues.

We’ll now be making sure we follow best practices for staying up-to-date so that I can install plugins/themes without causing rebuild failures.

3 Likes

Since following our official install guide results in automatic image updates when running ./launcher rebuild app I assume you have a custom setup.

Nope, I’m pretty sure we’re using the default. I believe that the automatic image update didn’t work due to git issues

Fetching origin
Launcher has diverged source, this is only expected in Dev mode

This is either because of local edits we made or because you changed the branch name to main from master. When we were cleaning up the commits in order to git pull again I noticed that your “change from master to main” commit was in there.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.