Vagrant installation requires wget

(Konrad Borowski) #1

Without wget, Vagrant tries to download Discourse using some other way than wget (curl, perhaps?), and that for some reason doesn’t work (on Arch Linux, I wonder if it’s any different on other operating systems). Without it, “504 Gateway Timeout” happens. The solution is to install wget. Putting this thread, because this issue confused me for a while, and it magically solved itself when I installed wget - figured it may be useful for others.

~/K/F/discourse (master|✔) $ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'discourse-16.04' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'discourse-16.04' (v0) for provider: virtualbox
    default: Downloading:
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try

The requested URL returned error: 504 Gateway Timeout
~/K/F/discourse (master|✔) $ vagrant --version
Vagrant 1.9.4

(Matt Palmer) #2

That seems like a vagrant bug, rather than a Discourse one – so far as I can tell from that output, it’s not even getting as far as running any of the Discourse code, because the box download is what is failing.