I attempted to change to the new branch but wasn’t successful. It seems it need postgres 9.2 but only version 9.1 is available as a packet for Ubuntu 13.10
The error message I got was:
UPGRADE OF POSTGRES FAILED
You are going to need to export your data and import into a clean instance:
Add the line: base_image: "samsaffron/discourse:0.1.1"
Change: templates/postgres.template.yml TO templates/postgres.9.2.template.yml
Run ./launcher bootstrap again
When your instance is running:
- Go to the admin UI, enable readonly and backup your site
Then destroy your container ./launcher destroy standalone
Undo the base_image and postgres.9.2 template from your container config
Run: sudo mv /var/docker/shared/postgres_data /var/shared/postgres_data_old
Run: ./launcher bootstrap
Login to the blank site, and import your backup (remember to set the allow_restore site setting)
Restart your container: ./launcher restart
At first I was confused as to where to add the line
base_image: "samsaffron/discourse:0.1.1" but then figured out that it needs to be added to my
containers/app.yml file. After trying
./launcher bootstrap app then, it failed with the following:
I, [2014-07-12T11:07:22.569642 #40] INFO -- : > chown -R root /var/lib/postgresql/9.3/main
chown: cannot access `/var/lib/postgresql/9.3/main': No such file or directory
/pups/lib/pups/exec_command.rb:85:in `spawn': chown -R root /var/lib/postgresql/9.3/main failed with return #<Process::Status: pid 105 exit 1> (RuntimeError)
from /pups/lib/pups/exec_command.rb:55:in `block in run'
from /pups/lib/pups/exec_command.rb:53:in `each'
from /pups/lib/pups/exec_command.rb:53:in `run'
from /pups/lib/pups/command.rb:6:in `run'
from /pups/lib/pups/config.rb:85:in `block (2 levels) in run_commands'
from /pups/lib/pups/config.rb:76:in `each'
from /pups/lib/pups/config.rb:76:in `block in run_commands'
from /pups/lib/pups/config.rb:75:in `each'
from /pups/lib/pups/config.rb:75:in `run_commands'
from /pups/lib/pups/config.rb:71:in `run'
from /pups/lib/pups/cli.rb:31:in `run'
from /pups/bin/pups:8:in `<main>'
FAILED TO BOOTSTRAP
I could re-start the old version with
./launcher start app and it is up and running now, but I’m afraid I lost the ability to upgrade via admin/docker. Is it worth it to try and install postgres 9.2 on my system?