Hi, I just upgrade my Discourse from v2.1.0beta2 to v2.1.0beta4 yesterday.
Then I got these message:
You are running an old version of the Discourse image.
Upgrades via the web UI are disabled until you run the latest image.
To do so log in to your server using SSH and run:
cd /var/discourse
git pull
./launcher rebuild app
More info on our support site.
I follow the guideline by running that ssh command, then I can not access my Discourse site.
Fortunately, I make a snapshot in Digital Ocean right before that three command.
Restore my droplet and its live again.
I run the tree commands above again and read this message after finishing the ./launcher rebuild app
process.
Sync data directory to disk ok
Creating script to analyze new cluster ok
Creating script to delete old cluster ok
Checking for hash indexes ok
Upgrade Complete
Optimizer statistics are not transferred by pg_upgrade so, once you start the new server, consider running:
./analyze_new_cluster.sh
Running this script will delete the old cluster’s data files:
./delete_old_cluster.sh
UPGRADE OF POSTGRES COMPLETE
Old 9.5 database is stored at /shared/postgres_data_old
To complete the upgrade, rebuild again using:
./launcher rebuild app
Then, I tried to running ./launcher rebuild app
again and its works.
My questions:
- Am I on the right track?
- Should I delete the old cluster’s data files by running
./delete_old_cluster.sh
command?
Is there any additional tips instead of upgrading my discourse frequently?
Thank you…