Tried skipping the steps and ran ./launcher rebuild app
again. During the process, some errors appeared but it still continued:
I, [2025-09-04T03:40:40.494062 #1] INFO -- :
I, [2025-09-04T03:40:40.494476 #1] INFO -- : > /usr/local/bin/create_db
2025-09-04 03:40:40.678 UTC [63] postgres@postgres ERROR: database "discourse" already exists
2025-09-04 03:40:40.678 UTC [63] postgres@postgres STATEMENT: CREATE DATABASE d iscourse;
createdb: error: database creation failed: ERROR: database "discourse" already exists
2025-09-04 03:40:40.783 UTC [66] postgres@discourse ERROR: role "discourse" alr eady exists
2025-09-04 03:40:40.783 UTC [66] postgres@discourse STATEMENT: create user disc ourse;
ERROR: role "discourse" already exists
最后的输出
112:M 04 Sep 2025 03:42:39.706 # User requested shutdown...
112:M 04 Sep 2025 03:42:39.706 * Saving the final RDB snapshot before exiting.
2025-09-04 03:42:39.726 UTC [45] LOG: database system is shut down
112:M 04 Sep 2025 03:42:39.924 * DB saved on disk
112:M 04 Sep 2025 03:42:39.925 # Redis is now ready to exit, bye bye...
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:m igrate' failed with return #<Process::Status: pid 864 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.3.0/lib/pups/exe