How to rebuild from older discourse

I need to rebuild discourses on VPS from older discoure(1.6.6 and not latest version)
How should I do it?
@Falco

If you change version on app.yml from tests-passed to stable it will give you the latest stable on a rebuild. Currently 1.6.x is our stable version.

1 Like

doing this change in app.yml file, I got the following error:

Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 13444 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --verbose --without test --without development'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
16bc6a99648b7f08373fdb09f27edd20b3f9fab60cce1c549185eb08afbc1a1c
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one

do you have any idea how to fix this?

Can you paste the entire logs?

Also, this is a brand new discourse right? You can’t go back in Discourse, so if this was an existing install of 1.7.x it won’t work.

yes, we were on the latest version, and we ran into some problem that looks like this thread, with the difference that it happens for the string js.user_action_groups.1.

I’d be thankful if you let me know:

  1. can we downgrade to some version before?
  • is it a bug about the strings or is it something related to our forum?

  • is there any way to come out of this state? the forum is even blank in the safe-mode. and I think there should be some thing related to the source code. that’s why we think of going to older version.

we can’t restore the beckup on local, and I’m afraid if the backup is broken. So I don’t dare to drop the database. + not sure if that’s the solution :frowning:

p.s.: sorry can’t put the whole log in the right way.

update: it got fixed out of no-where! no edit in the app file except some trials to go to older versions and then to newest version after it didn’t work!