Error after running Discourse development environment using Vagrant

AI-generated summary

User a-magdy reported an application crash after running the Discourse development environment via Vagrant, following the official tutorial. They suspected the issue might be related to the new virtual DOM rendering engine. stevelaskaridis responded, confirming they could run Discourse successfully on OS X and VirtualBox. They requested more details regarding the user’s stack, Git version, and specific error logs, while also suggesting the Docker alternative for a quicker setup.

a-magdy clarified their environment is Ubuntu 14.04 with VirtualBox, running the HEAD of the repo. While vagrant up and bundle install executed, the latter printed a warning about an old bundler version. Mittineague advised caution regarding the bundler upgrade, noting Discourse might require the older version. a-magdy confirmed that attempting to upgrade bundler previously failed to resolve the message. Finally, Mittineague explained that the Gemfile.lock likely enforces the older bundler version (specifically < 2.0), causing the persistent warning.

I followed the tutorial here: https://github.com/discourse/discourse/blob/master/docs/VAGRANT.md#using-vagrant

and it was straight forward, but after the dev machine is up, the app crashed and the attached error is shown, tried destroying the vm twice, updated everything, revised every step I did, I think it might have something to do with the new virtual dom rendering engine introduced, what do you think ?

Hey @a-magdy,

I have successfully tried to run discourse on Vagrant by following these instructions. My s/w stack is OS X and Virtualbox.

Could you please provide us with some more information regarding the following questions:

  • Are you just trying to access the default page (aka ‘/’)?
  • Are you trying with the HEAD of the git repo? Have you introduced any changes?
  • When launching the vm with vagrant up, do you get any errors in the logs?
  • Is the bundle install command run successfully?

In case you just want to quickly run a version of discourse, I would suggest you take a look in the docker alternative as well here.

Hey @stevelaskaridis,

Thank you for you reply.

My stack: Ubuntu 14.04 Desktop and VirtualBox
HEAD repo: Yes, also cloned the repo into an empty folder (didn’t pull into existing code).
vagrant up worked just fine.
and bundle install also works, but it prints an error each time I use it:
“You are running an old version of bundler, please upgrade bundler ASAP, if you are using Discourse docker, rebuild your container.”

I’ll take a look at docker.

Thanks you so much :slight_smile:

You may want to hold off on upgrading that.

I don’t know if the error is from Discourse or elsewhere, and it may be Discourse needs the older version.

Thanks for your note @Mittineague ,

But I’d like to point out that I tried updating it in the first trial, and it downloaded for a while, and after I ran the command again, the same message was still being printed.

It must be that the Discourse Gemfile.lock line wins out as to what gets used

      bundler (>= 1.3.0, < 2.0)