Hello everyone,
I am attempting to migrate my Discourse forum to a new server located in Shanghai, but I’ve encountered an issue that I can’t resolve and would greatly appreciate your assistance.
Here is what I have done so far:
-
Code Cloning: I cloned the Discourse repository on the new server using Git.
-
Configuration Files:
• I created a new app.yml file in the /var/discourse/container directory.
• I copied the contents of the app.yml file from my old server and pasted them into the new app.yml on the new server.
-
Backup Files: I manually uploaded the backup file from the old server to the backup folder on the new server.
-
Running Diagnostics: I executed the ./discourse-doctor command to check and fix configurations.
However, when I run ./discourse-doctor, I receive the following error:
FAILED
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate’failed with return #<Process::Status: pid 1835 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 discourse -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 than one.
./discourse-doctor may help diagnose the problem.
b2af39f0849bd60c3ce1b9f1ebe1c33a47fcea20edce2233171da420d4730323
Additional Information:
• Backup Method: Used Discourse’s built-in backup feature to export a tar.gz file
I am unsure what is causing the db:migrate error and how to proceed. Could anyone provide insights into the possible reasons for this error and suggest steps to resolve it? Additionally, any tips or common pitfalls to watch out for when migrating a Discourse forum would be highly appreciated.
Thank you very much for your help!