Installing an old version of Discourse


(Keyboardstaff) #1

I want to install version 1.9.7

Then I modified it in the app.yml file as follows:

  ## Which Git revision should this container use? (default: tests-passed)
  version: fc0e50b34c032812cb07883cae5db338396fe299

Prompt error is as follows:

/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.3/lib/bundler/worker.rb:90:in
`block (2 levels) in create_threads'

An error occurred while installing mini_racer (0.1.15), and Bundler cannot
continue.
Make sure that `gem install mini_racer -v '0.1.15' --source
'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  mini_racer

I, [2018-08-04T14:28:27.848804 #14]  INFO -- : Terminating async processes
I, [2018-08-04T14:28:27.851213 #14]  INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/10/bin/postmaster -D /etc/postgresql/10/main pid: 69
I, [2018-08-04T14:28:27.854651 #14]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 185
2018-08-04 14:28:27.854 UTC [69] LOG:  received fast shutdown request
185:signal-handler (1533392907) Received SIGTERM scheduling shutdown...
2018-08-04 14:28:27.857 UTC [69] LOG:  aborting any active transactions
2018-08-04 14:28:27.862 UTC [69] LOG:  worker process: logical replication launcher (PID 78) exited with exit code 1
2018-08-04 14:28:27.866 UTC [73] LOG:  shutting down
2018-08-04 14:28:27.877 UTC [69] LOG:  database system is shut down
185:M 04 Aug 14:28:27.900 # User requested shutdown...
185:M 04 Aug 14:28:27.903 * Saving the final RDB snapshot before exiting.
185:M 04 Aug 14:28:27.928 * DB saved on disk
185:M 04 Aug 14:28:27.928 # Redis is now ready to exit, bye bye...


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

(Jeff Atwood) #2

Why would you want to install that version? 2.0 is the current stable version.


(Sam Saffron) #3

I am with Jeff here, 1.9.7 is no longer supported you would have to patch the gemfile lock to get this thing to install which is tricky.