I was unable to take a backup in discourse. The update web page said there was a newer version, but it would not upgrade because the actual page after the update page said there were no updates. So, I ended up doing:
cd /var/discourse
./launcher rebuild app
It went on for a long time and then I saw these errors and not sure where to go next.
rake aborted!
NoMethodError: undefined method `path' for nil:NilClass
/var/www/discourse/lib/discourse_ip_info.rb:48:in `mmdb_download'
/var/www/discourse/lib/tasks/assets.rake:281:in `block (3 levels) in <main>'
/var/www/discourse/lib/tasks/assets.rake:281:in `each'
/var/www/discourse/lib/tasks/assets.rake:281:in `block (2 levels) in <main>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
I, [2023-03-10T02:47:53.924124 #1] INFO -- : yarn run v1.22.19
$ /var/www/discourse/app/assets/javascripts/node_modules/.bin/ember build -prod
WARNING: Node v18.14.2 is not tested against Ember CLI on your platform. We recommend that you use the most-recent "Active LTS" version of Node.js. See https://git.io/v7S5n for details.
Environment: production
cleaning up...
Built project successfully. Stored in "dist/".
File sizes:
- dist/assets/activate-account.js: 641 B (323 B gzipped)
- dist/assets/admin.js: 853.83 KB (137.75 KB gzipped)
- dist/assets/auto-redirect.js: 207 B (173 B gzipped)
- dist/assets/browser-detect.js: 1001 B (579 B gzipped)
- dist/assets/browser-update.js: 3.06 KB (1.4 KB gzipped)
- dist/assets/chunk.13.3ea54e76d8a870a97956.js: 325.32 KB (99.79 KB gzipped)
- dist/assets/chunk.143.d0263a9558a16acd6ccf.js: 3.83 KB (1.36 KB gzipped)
- dist/assets/chunk.178.447d3f0e9dcbd06e6f4b.js: 2.06 KB (1.01 KB gzipped)
- dist/assets/chunk.682.e020248dda65e1c89c3c.js: 831.77 KB (281.53 KB gzipped)
- dist/assets/core-tests.js: 2.49 MB (323.2 KB gzipped)
- dist/assets/discourse.js: 3.1 MB (623.23 KB gzipped)
- dist/assets/embed-application.js: 1.87 KB (757 B gzipped)
- dist/assets/google-tag-manager.js: 1.01 KB (558 B gzipped)
- dist/assets/google-universal-analytics-v3.js: 942 B (499 B gzipped)
- dist/assets/google-universal-analytics-v4.js: 702 B (349 B gzipped)
- dist/assets/highlightjs/highlight-test-bundle.min.js: 133.83 KB (42.86 KB gzipped)
- dist/assets/markdown-it-bundle.js: 129.78 KB (43.63 KB gzipped)
- dist/assets/onpopstate-handler.js: 265 B (206 B gzipped)
- dist/assets/plugins/chat.js: 575.33 KB (97.76 KB gzipped)
- dist/assets/plugins/discourse-details.js: 1.32 KB (674 B gzipped)
- dist/assets/plugins/discourse-local-dates.js: 34.7 KB (9.34 KB gzipped)
- dist/assets/plugins/discourse-narrative-bot.js: 1.66 KB (791 B gzipped)
- dist/assets/plugins/discourse-presence.js: 10.95 KB (2.63 KB gzipped)
- dist/assets/plugins/docker_manager_admin.js: 36.42 KB (6.96 KB gzipped)
- dist/assets/plugins/lazy-yt.js: 4.12 KB (1.89 KB gzipped)
- dist/assets/plugins/poll.js: 56 KB (15.31 KB gzipped)
- dist/assets/plugins/styleguide.js: 93.27 KB (12.69 KB gzipped)
- dist/assets/plugins/test/chat_tests.js: 173.71 KB (22.68 KB gzipped)
- dist/assets/plugins/test/discourse-details_tests.js: 3.94 KB (1.13 KB gzipped)
- dist/assets/plugins/test/discourse-local-dates_tests.js: 28.71 KB (5.54 KB gzipped)
- dist/assets/plugins/test/discourse-presence_tests.js: 5.55 KB (1.24 KB gzipped)
- dist/assets/plugins/test/docker_manager_tests.js: 6.16 KB (1.74 KB gzipped)
- dist/assets/plugins/test/poll_tests.js: 58.71 KB (8.42 KB gzipped)
- dist/assets/print-page.js: 118 B (130 B gzipped)
- dist/assets/scripts/discourse-boot.js: 449 B (312 B gzipped)
- dist/assets/scripts/discourse-test-listen-boot.js: 99 B (101 B gzipped)
- dist/assets/scripts/discourse-test-load-dynamic-js.js: 637 B (400 B gzipped)
- dist/assets/scripts/discourse-test-trigger-ember-cli-boot.js: 110 B (104 B gzipped)
- dist/assets/scripts/module-shims.js: 944 B (471 B gzipped)
- dist/assets/scripts/start-app.js: 201 B (174 B gzipped)
- dist/assets/splash-screen.js: 1.8 KB (690 B gzipped)
- dist/assets/start-discourse.js: 798 B (462 B gzipped)
- dist/assets/test-helpers.js: 1.02 MB (148.68 KB gzipped)
- dist/assets/test-i18n.js: 508.32 KB (119.64 KB gzipped)
- dist/assets/test-site-settings.js: 9.46 KB (3.67 KB gzipped)
- dist/assets/vendor.css: 0 B
- dist/assets/vendor.js: 1.07 MB (295.04 KB gzipped)
- dist/assets/wizard.js: 113.27 KB (34.56 KB gzipped)
- dist/javascripts/@json-editor/json-editor/2.6.1/jsoneditor.js: 425.11 KB (79.36 KB gzipped)
- dist/javascripts/ace.js/1.4.13/ace.js: 363.09 KB (98.66 KB gzipped)
- dist/javascripts/ace.js/1.4.13/ext-searchbox.js: 11.63 KB (3.49 KB gzipped)
- dist/javascripts/ace.js/1.4.13/mode-html.js: 59.46 KB (17.82 KB gzipped)
- dist/javascripts/ace.js/1.4.13/mode-scss.js: 23.47 KB (7.79 KB gzipped)
- dist/javascripts/ace.js/1.4.13/mode-sql.js: 4.73 KB (1.82 KB gzipped)
- dist/javascripts/ace.js/1.4.13/mode-yaml.js: 4.97 KB (1.73 KB gzipped)
- dist/javascripts/ace.js/1.4.13/theme-chaos.js: 3.11 KB (1.01 KB gzipped)
- dist/javascripts/ace.js/1.4.13/theme-chrome.js: 2.97 KB (1.03 KB gzipped)
- dist/javascripts/ace.js/1.4.13/worker-html.js: 203.22 KB (46.33 KB gzipped)
- dist/javascripts/ace/ace.js: 362.06 KB (98.41 KB gzipped)
- dist/javascripts/ace/ext-searchbox.js: 11.63 KB (3.49 KB gzipped)
- dist/javascripts/ace/mode-html.js: 59.46 KB (17.82 KB gzipped)
- dist/javascripts/ace/mode-scss.js: 23.47 KB (7.79 KB gzipped)
- dist/javascripts/ace/mode-sql.js: 2.16 KB (1009 B gzipped)
- dist/javascripts/ace/mode-yaml.js: 4.97 KB (1.73 KB gzipped)
- dist/javascripts/ace/theme-chrome.js: 2.97 KB (1.03 KB gzipped)
- dist/javascripts/ace/worker-html.js: 203.22 KB (46.33 KB gzipped)
- dist/javascripts/chart.js/3.5.1/chart.min.js: 183.95 KB (63.67 KB gzipped)
- dist/javascripts/chartjs-plugin-datalabels/2.0.0/chartjs-plugin-datalabels.min.js: 12.59 KB (5.09 KB gzipped)
- dist/javascripts/count.js: 1.41 KB (636 B gzipped)
- dist/javascripts/diffhtml/1.0.0-beta.20/diffhtml.min.js: 26.98 KB (9.88 KB gzipped)
- dist/javascripts/embed-topics.js: 1.31 KB (630 B gzipped)
- dist/javascripts/embed.js: 2.41 KB (1010 B gzipped)
- dist/javascripts/magnific-popup/1.1.0/jquery.magnific-popup.min.js: 19.74 KB (7.18 KB gzipped)
- dist/javascripts/media-optimization-worker.js: 4.89 KB (1.71 KB gzipped)
- dist/javascripts/pikaday/1.8.2/pikaday.js: 41.55 KB (9.44 KB gzipped)
- dist/javascripts/squoosh/mozjpeg_enc.js: 38.12 KB (10.49 KB gzipped)
- dist/javascripts/squoosh/squoosh_resize.js: 4.42 KB (1.26 KB gzipped)
- dist/javascripts/workbox/workbox-cacheable-response.dev.js: 6.58 KB (1.73 KB gzipped)
- dist/javascripts/workbox/workbox-cacheable-response.prod.js: 579 B (345 B gzipped)
- dist/javascripts/workbox/workbox-core.dev.js: 48.27 KB (11.21 KB gzipped)
- dist/javascripts/workbox/workbox-core.prod.js: 5.75 KB (2.42 KB gzipped)
- dist/javascripts/workbox/workbox-expiration.dev.js: 20.83 KB (5.48 KB gzipped)
- dist/javascripts/workbox/workbox-expiration.prod.js: 2.82 KB (1.22 KB gzipped)
- dist/javascripts/workbox/workbox-routing.dev.js: 31.54 KB (7.58 KB gzipped)
- dist/javascripts/workbox/workbox-routing.prod.js: 3.32 KB (1.44 KB gzipped)
- dist/javascripts/workbox/workbox-strategies.dev.js: 34.65 KB (4.79 KB gzipped)
- dist/javascripts/workbox/workbox-strategies.prod.js: 4.75 KB (1.16 KB gzipped)
- dist/javascripts/workbox/workbox-sw.js: 1.3 KB (741 B gzipped)
Done in 123.18s.
Downloading MaxMindDB...
Compressing Javascript and Generating Source Maps
I, [2023-03-10T02:47:53.924439 #1] INFO -- : Terminating async processes
I, [2023-03-10T02:47:53.924471 #1] INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main pid: 42
I, [2023-03-10T02:47:53.924522 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 103
2023-03-10 02:47:53.924 UTC [42] LOG: received fast shutdown request
103:signal-handler (1678416473) Received SIGTERM scheduling shutdown...
2023-03-10 02:47:53.931 UTC [42] LOG: aborting any active transactions
2023-03-10 02:47:53.934 UTC [42] LOG: background worker "logical replication launcher" (PID 51) exited with exit code 1
2023-03-10 02:47:53.938 UTC [46] LOG: shutting down
103:M 10 Mar 2023 02:47:53.972 # User requested shutdown...
103:M 10 Mar 2023 02:47:53.972 * Saving the final RDB snapshot before exiting.
103:M 10 Mar 2023 02:47:54.001 * DB saved on disk
103:M 10 Mar 2023 02:47:54.001 # Redis is now ready to exit, bye bye...
2023-03-10 02:47:54.041 UTC [42] LOG: database system is shut down
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile' failed with return #<Process::Status: pid 1005 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.1.1/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'"]}
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.
5115b973666558d470cf5d4548ea7d20e13f03bd084ac50477a7edca2f1a5bc1
root@Discourse-1:/var/discourse#