Cannot view 0.0.0.0:3000 in browser, and localhost:4000 gives error

That may be your problem.

The Discourse Gemfile and Gemfile.lock files have versions for some gems specified.
Despite what vagrant may be telling you, I recommend you don’t manually upgrade any gems and let Discourse handle the versions.

Also, are you starting it up with
bundle exec rails s -b 0.0.0.0

Then, as said point your browser to localhost:4000