The error stays and here’s what i think you mean by “the actual error”:
I, [2014-11-22T06:58:14.892268 #38] INFO -- : > cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find minitest-5.4.2 in any of the sources (Bundler::GemNotFound)
from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/spec_set.rb:85:in `map!'
from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/spec_set.rb:85:in `materialize'
from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/definition.rb:132:in `specs'
from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/definition.rb:177:in `specs_for'
from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/definition.rb:166:in `requested_specs'
from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/environment.rb:18:in `requested_specs'
from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/runtime.rb:13:in `setup'
from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler.rb:121:in `setup'
from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.7.7/lib/bundler/setup.rb:17:in `<top (required)>'
from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'
I, [2014-11-22T06:58:18.519868 #38] INFO -- :