How long should an upgrade typically take?


(Kirupa Chinnathambi) #1

I am using the Upgrade button found in the Admin panel to update http://forum.kirupa.com. It seems to be stuck on the last step here for what seems like forever (aka 15 minutes):

$ cd /var/www/discourse && git fetch && git reset --hard HEAD@{upstream}
HEAD is now at 0408960 tweak time field on user page stream
********************************************************
*** Please be patient, next steps might take a while ***
********************************************************
$ bundle install --deployment --without test --without development
Fetching source index from https://rubygems.org/
Using rake 10.3.2
Using i18n 0.6.11
Using json 1.8.1
Installing minitest 5.4.2
Using thread_safe 0.3.4
Using tzinfo 1.2.2
Installing activesupport 4.1.7
Using builder 3.2.2
Using erubis 2.7.0
Installing actionview 4.1.7
Using rack 1.5.2
Using rack-test 0.6.2
Installing actionpack 4.1.7
Using mime-types 1.25.1
Using polyglot 0.3.5
Using treetop 1.4.15
Using mail 2.5.4
Installing actionmailer 4.1.7
Using actionpack-action_caching 1.1.1
Installing activemodel 4.1.7
Using active_model_serializers 0.8.2
Using arel 5.0.1.20140414130214
Installing activerecord 4.1.7
Using addressable 2.3.6
Using handlebars-source 1.3.0
Using ember-source 1.6.0.beta.2
Using execjs 2.2.1
Using barber 0.4.2
Using timers 1.1.0
Using celluloid 0.15.2
Using certified 1.0.0
Using coderay 1.1.0
Using connection_pool 2.0.0
Using crass 0.2.1
Using daemons 1.1.9
Using diff-lcs 1.2.5
Using docile 1.1.5
Using email_reply_parser-discourse 0.6
Using ember-data-source 0.14
Using thor 0.19.1
Installing railties 4.1.7
Using jquery-rails 3.1.2
Using ember-rails 0.14.1
Using eventmachine 1.0.3
Using excon 0.39.6
Using exifr 1.1.3
Using fabrication 2.9.8
Using fakeweb 1.3.0
Using multipart-post 2.0.0
Using faraday 0.9.0
Using fast_blank 0.0.2
Using rake-compiler 0.9.3
Using fast_stack 0.1.0
Using fast_xor 1.1.3
Using fast_xs 0.8.0
Using fastimage 1.6.3
Using ffi 1.9.5
Using flamegraph 0.0.5
Using formatador 0.2.5
Using net-ssh 2.9.1
Using net-scp 1.2.1
Using fog-core 1.24.0
Using multi_json 1.10.1
Using fog-json 1.0.0
Using inflecto 0.0.2
Using fog-brightbox 0.5.1
Using ipaddress 0.8.0
Using mini_portile 0.6.0
Using nokogiri 1.6.3.1
Using fog 1.22.1
Using fspath 2.0.6
Using sorcerer 1.0.2
Using given_core 3.5.4
Using guess_html_encoding 0.0.9
Using hashie 3.3.1
Using highline 1.6.21
Using hike 1.2.3
Using hiredis 0.5.2
Using htmlentities 4.3.2
Using image_size 1.1.5
Using in_threads 1.2.2
Using progress 3.0.1
Using image_optim 0.9.1
Using jwt 1.0.0
Using kgio 2.9.2
Using libv8 3.16.14.7
Using listen 0.7.3
Using logster 0.1.6
Using lru_redux 0.8.1
Using redis 3.1.0
Installing message_bus 1.0.5
Using metaclass 0.0.4
Using method_source 0.8.2
Using mocha 1.1.0
Using mock_redis 0.13.2
Using moneta 0.8.0
Using msgpack 0.5.8
Using multi_xml 0.5.5
Using mustache 0.99.6
Using netrc 0.7.7
Using nokogumbo 1.1.12
Using oauth 0.4.7
Using oauth2 1.0.0
Using oj 2.10.2
Using omniauth 1.2.2
Using omniauth-oauth2 1.2.0
Using omniauth-facebook 2.0.0
Using omniauth-github-discourse 1.1.2
Using omniauth-google-oauth2 0.2.5
Using omniauth-oauth 1.0.1
Using ruby-openid 2.5.0
Using rack-openid 1.3.1
Using omniauth-openid 1.0.1
Using omniauth-twitter 1.0.1
Installing onebox 1.5.3
Using openid-redis-store 0.0.2
Using pg 0.15.1
Using slop 3.6.0
Using pry 0.10.1
Using pry-nav 0.2.4
Using pry-rails 0.3.2
Using puma 2.9.1
Using qunit-rails 0.0.7
Using rack-mini-profiler 0.9.2
Using rack-protection 1.5.3
Using bundler 1.7.3
Using tilt 1.4.1
Using sprockets 2.11.0
Using sprockets-rails 2.0.1
Installing rails 4.1.7
Using rails-observers 0.1.2
Using rails_multisite 0.0.1 from source at vendor/gems/rails_multisite
Using raindrops 0.13.0
Using rb-fsevent 0.9.4
Using rb-inotify 0.9.5
Using trollop 2.0
Using rbtrace 0.4.5
Using redcarpet 3.1.2
Using redis-namespace 1.5.1
Using ref 1.0.5
Using rest-client 1.7.2
Using rinku 1.7.3
Using rmmseg-cpp 0.2.9
Using rspec-core 2.99.2
Using rspec-expectations 2.99.2
Using rspec-mocks 2.99.2
Using rspec 2.99.0
Using rspec-collection_matchers 1.0.0
Using rspec-given 3.5.4
Using rspec-rails 2.99.0
Using rtlit 0.0.5
Using ruby-readability 0.7.0
Using sanitize 3.0.2
Using sass 3.2.19
Using sass-rails 4.0.2
Using seed-fu 2.3.3
Using shoulda-context 1.2.1
Using shoulda-matchers 2.7.0
Using shoulda 3.5.0
Using sidekiq 3.2.5
Using simple-rss 1.3.1
Using simplecov-html 0.8.0
Using simplecov 0.9.1
Using sinatra 1.4.5
Using spork 1.0.0rc4
Using spork-rails 4.0.0
Using therubyracer 0.12.1
Using thin 1.6.2
Using timecop 0.7.1
Using uglifier 2.5.3
Using unf_ext 0.0.6
Using unf 0.1.4
Using unicorn 4.8.3
Your bundle is complete!
Gems in the group development were not installed.
It was installed into ./vendor/bundle
$ bundle exec rake multisite:migrate

Has the upgrade crashed/frozen? Or should we just wait. The forum does have a lot of posts (>2 million).

Cheers,
Kirupa


(Jeff Atwood) #2

I know @sam renamed a db column recently. Perhaps give it more time. How much memory on the server?


(Kirupa Chinnathambi) #3

2 GB :frowning:

(Our test server where @krilnon did all the imports had 8GB of RAM on it).

Also, I have no problems waiting. Is there a detailed log I can look at that tells me what is happening behind the scenes.


(Sam Saffron) #4

It could be the column rename, I am not sure, did it go through yet?


(Kirupa Chinnathambi) #5

Nope - it is still stuck on that step. Should I hit the Reset Upgrade button?


(Sam Saffron) #6

Try rebuilding the container.

cd /var/discourse
./launcher rebuild app

(Kirupa Chinnathambi) #7

Sam, that worked! In the future, should I perform all upgrades by rebuilding?


(Sam Saffron) #8

No, only in emergencies, but do it 1 more time now so you pick up the latest code for launcher


(Kirupa Chinnathambi) #9

The rebuild or “Upgrade” via the Admin panel?


(Kane York) #10

The rebuild. It’ll make sure you have the new NGINX with the https/spdy fixes.