Problem upgrade on DO


(DjCyry) #1

I have installed one-click discourse on DO
and then i have to upgrade twice :

With the second upgrade i got this :

Bundle complete! 97 Gemfile dependencies, 170 gems now installed.
Gems in the group development were not installed.
Bundled gems are installed into ./vendor/bundle.
$ bundle exec rake multisite:migrate
DEPRECATION WARNING: Sprockets method `register_engine` is deprecated.
Please register a mime type using `register_mime_type` then
use `register_compressor` or `register_transformer`.
https://github.com/rails/sprockets/blob/master/guides/extending_sprockets.md#supporting-all-versions-of-sprockets-in-processors
 (called from  at /var/www/discourse/lib/es6_module_transpiler/sprockets.rb:3)
rake aborted!
SyntaxError: /var/www/discourse/lib/tasks/uploads.rake:598: syntax error, unexpected '\n', expecting :: or '[' or '.'
/var/www/discourse/lib/tasks/uploads.rake:600: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
  Number of `Upload` records in DB: #{uploads_count}
           ^
/var/www/discourse/lib/tasks/uploads.rake:600: syntax error, unexpected tIDENTIFIER, expecting keyword_end
  Number of `Upload` records in DB: #{uploads_count}
                            ^
/var/www/discourse/lib/tasks/uploads.rake:601: syntax error, unexpected tIDENTIFIER, expecting keyword_end
  Number of `OptimizedImage` records in DB: #{optimized_images_count}
                                    ^
/var/www/discourse/lib/tasks/uploads.rake:604: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
  Number of images in uploads folder: #{paths_count}
           ^
/var/www/discourse/lib/tasks/uploads.rake:609: syntax error, unexpected keyword_do_block, expecting keyword_end
/var/www/discourse/lib/tasks/uploads.rake:618: syntax error, unexpected keyword_do_block, expecting end-of-input
...value['size'] }.reverse.each do |extname, value|
...                               ^
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in `load'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in `block in load'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in `load_dependency'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in `load'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.7.1/lib/rails/engine.rb:658:in `block in run_tasks_blocks'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.7.1/lib/rails/engine.rb:658:in `each'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.7.1/lib/rails/engine.rb:658:in `run_tasks_blocks'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.7.1/lib/rails/application.rb:452:in `run_tasks_blocks'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.7.1/lib/rails/engine.rb:453:in `load_tasks'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.7.1/lib/rails/railtie.rb:194:in `public_send'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.2.7.1/lib/rails/railtie.rb:194:in `method_missing'
/var/www/discourse/Rakefile:7:in `'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-11.2.2/exe/rake:27:in `'
(See full trace by running task with --trace)

Now , my website merkador.es is not working :frowning:
I have delete and create my droplet 2 times , and still got that error .


(Rafael dos Santos Silva) #2

The docker image is too old.

You will need to SSH into the machine and update it:

ssh root@serverip
cd /var/discourse
git pull
./launcher rebuild app

(DjCyry) #3

Thanks , its works now …Uhhh :sweat_smile:


(Régis Hanol) #4