# Mini\_racer installation issues on ubuntu vagrant (OSX)

**URL:** https://meta.discourse.org/t/mini-racer-installation-issues-on-ubuntu-vagrant-osx/44681
**Category:** Development
**Created:** [23 במאי,‏ 2016,‏ 3:26pm UTC](https://meta.discourse.org/t/mini-racer-installation-issues-on-ubuntu-vagrant-osx/44681 "2016-05-23T15:26:44Z")
**Posts on this page:** 14
**Page:** 2

<div class="post-metadata">

### Author: ![tarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tarek/32/124831_2.png) [@tarek](https://meta.discourse.org/u/tarek)
#### Post date: [2 ביוני,‏ 2016,‏ 10:56am UTC](https://meta.discourse.org/t/mini-racer-installation-issues-on-ubuntu-vagrant-osx/44681/21 "2016-06-02T10:56:49Z")

</div>

Honestly, it doesn’t make sense to have to install to a system each time. I frequently hop between systems and Vagrant has made developing incredibly easy - just `vagrant up` and go. No reason we can’t accomplish that here.

I’m well on my way to getting the image prepared with 16.04 server. Just configuring it now then I’ll upload.

---

<div class="post-metadata">

### Author: ![tarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tarek/32/124831_2.png) [@tarek](https://meta.discourse.org/u/tarek)
#### Post date: [2 ביוני,‏ 2016,‏ 5:12pm UTC](https://meta.discourse.org/t/mini-racer-installation-issues-on-ubuntu-vagrant-osx/44681/22 "2016-06-02T17:12:27Z")

</div>

I have submitted [a pull request](https://github.com/discourse/discourse/pull/4244) that results in a fully configured Discourse development environment.

The Ubuntu .box file is [uploaded to dropbox](https://www.dropbox.com/s/2132770g1e05c6d/discourse.box?dl=0), but can be adopted by @codinghorror or @sam for their own uses.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [5 ביוני,‏ 2016,‏ 5:50am UTC](https://meta.discourse.org/t/mini-racer-installation-issues-on-ubuntu-vagrant-osx/44681/23 "2016-06-05T05:50:44Z")

</div>

Well, I’ll admit I did a bit of muttering under my breath when my dev set up broke after the last upgrade.  
(“a set up a few versions behind would be better than no set up at all” being one of the more polite thoughts)

Having used a Windows - Github - VirtualBox - Vagrant set up for over a year, I wasn’t too keen on getting something set up again.

I eventually installed VMware Player, downloaded the Ubuntu desktop iso and got that working.  
Then it took a while to learn my way around Ubuntu. It sure ain’t the Windows UI that I’m used to.  
Installed Docker, Cloned Discourse.  
I struggled with getting Windows and Ubuntu to “talk” with each other for quite a while. Several failed “share” attempts later I finally installed VMware Tools and VMware Tools Desktop and managed to import and restore my last backup.

I still want to figure out the sound card issue, but after only a couple of days, I don’t miss Vagrant at all.  
Many of the problems I had had with Vagrant for so long that I just accepted them as “thats the way it is” are gone. And working with VMware Player is very easy now that I’ve learned its UI.

For those still hanging on to Vagrant I recommend you give VMware a try.

---

<div class="post-metadata">

### Author: ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)
#### Post date: [19 ביוני,‏ 2016,‏ 10:18am UTC](https://meta.discourse.org/t/mini-racer-installation-issues-on-ubuntu-vagrant-osx/44681/24 "2016-06-19T10:18:07Z")

</div>

I tried updating to trusty using `do-release-upgrade`, as @angus suggested.

Following the update and “restart”, I can’t use `vagrant `up`. It fails with:

```plaintext
Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:

mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` vagrant-root /vagrant
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` vagrant-root /vagrant

The error output from the last command was:

stdin: is not a tty
/sbin/mount.vboxsf: mounting failed with the error: No such device

```

Edit: this is in Vagrant on an OSX system.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [19 ביוני,‏ 2016,‏ 1:07pm UTC](https://meta.discourse.org/t/mini-racer-installation-issues-on-ubuntu-vagrant-osx/44681/25 "2016-06-19T13:07:32Z")

</div>

> [@alehandrof](#):
>
> I tried updating to trusty using do-release-upgrade, as @angus suggested.

If you want to use vagrant, I suggest you use the updated virtual box provided by @tarek which has been merged into master. In other words, update to the latest on master and start with a new box.

---

<div class="post-metadata">

### Author: ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)
#### Post date: [27 ביוני,‏ 2016,‏ 1:15pm UTC](https://meta.discourse.org/t/mini-racer-installation-issues-on-ubuntu-vagrant-osx/44681/26 "2016-06-27T13:15:56Z")

</div>

Thanks Angus. I was rather trying to avoid having to start another box from scratch, but as I haven’t been able to troubleshoot the issue with my previous one, that looks like the only path. (I prefer fixing things when possible as it helps me understand how not to mess up again 🙂 )

---

<div class="post-metadata">

### Author: ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)
#### Post date: [28 ביוני,‏ 2016,‏ 6:19pm UTC](https://meta.discourse.org/t/mini-racer-installation-issues-on-ubuntu-vagrant-osx/44681/27 "2016-06-28T18:19:37Z")

</div>

Unfortunately, in the new Vagrant `mailcatcher` doesn’t seem to work:

```plaintext
vagrant@discourse:/vagrant$ mailcatcher
/home/vagrant/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/specification.rb:2158:in `method_missing': undefined method `this' for #<Gem::Specification:0x512b9c mailcatcher-0.6.4> (NoMethodError)
	from /home/vagrant/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/specification.rb:1057:in `find_active_stub_by_path'
	from /home/vagrant/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:64:in `require'
	from /home/vagrant/.rvm/gems/ruby-2.3.1/gems/mailcatcher-0.6.4/bin/mailcatcher:3:in `<top (required)>'
	from /home/vagrant/.rvm/gems/ruby-2.3.1/bin/mailcatcher:23:in `load'
	from /home/vagrant/.rvm/gems/ruby-2.3.1/bin/mailcatcher:23:in `<main>'
	from /home/vagrant/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
	from /home/vagrant/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `<main>'

```

(It’s probably OT, but I couldn’t find another topic about it, and it may be related to all of the above.)

---

<div class="post-metadata">

### Author: ![tarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tarek/32/124831_2.png) [@tarek](https://meta.discourse.org/u/tarek)
#### Post date: [14 ביולי,‏ 2016,‏ 6:59am UTC](https://meta.discourse.org/t/mini-racer-installation-issues-on-ubuntu-vagrant-osx/44681/29 "2016-07-14T06:59:09Z")

</div>

> [@alehandrof](#):
>
> Unfortunately, in the new Vagrant mailcatcher doesn’t seem to work:

Odd I know, but you have to run mailcatcher from your home directory. Try cd ~ and then mailcatcher --ip 0.0.0.0

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [14 ביולי,‏ 2016,‏ 11:47am UTC](https://meta.discourse.org/t/mini-racer-installation-issues-on-ubuntu-vagrant-osx/44681/30 "2016-07-14T11:47:38Z")

</div>

Or use `screen -m -c docs/vagrant.screen` to start up all of the processes you could ever need, mail catcher, postgres, rails console and the rails server.

---

<div class="post-metadata">

### Author: ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)
#### Post date: [15 ביולי,‏ 2016,‏ 3:20pm UTC](https://meta.discourse.org/t/mini-racer-installation-issues-on-ubuntu-vagrant-osx/44681/31 "2016-07-15T15:20:38Z")

</div>

Thanks for the pointer @tarek. @cpradio that’s a nice script right there 🙂

---

<div class="post-metadata">

### Author: ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)
#### Post date: [27 ביולי,‏ 2016,‏ 5:43pm UTC](https://meta.discourse.org/t/mini-racer-installation-issues-on-ubuntu-vagrant-osx/44681/32 "2016-07-27T17:43:12Z")

</div>

I’m still (or all of a sudden) having trouble with mailcatcher again using the script you suggested. `localhost:1080` doesn’t work, even though the Discourse site loads normally. And, AFAICT, everything else (e.g., Sidekiq) runs normally.

(Side note: this stuff is such a moving target.)

---

<div class="post-metadata">

### Author: ![tarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tarek/32/124831_2.png) [@tarek](https://meta.discourse.org/u/tarek)
#### Post date: [6 באוגוסט,‏ 2016,‏ 3:24am UTC](https://meta.discourse.org/t/mini-racer-installation-issues-on-ubuntu-vagrant-osx/44681/33 "2016-08-06T03:24:32Z")

</div>

Yes, mailcatcher has changed. Either now it needs two – before IP or one -. I forget at the moment, but was planning on fixing it and sending a PR when I had a chance.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [6 באוגוסט,‏ 2016,‏ 3:31am UTC](https://meta.discourse.org/t/mini-racer-installation-issues-on-ubuntu-vagrant-osx/44681/34 "2016-08-06T03:31:01Z")

</div>

Does the following work?

```plaintext
mailcatcher --foreground --http-ip 0.0.0.0

```

Actually, mailcatcher is working fine from vagrant for me (not sure if you are using vagrant). But that is where the screen command comes in. Also, if you are using vagrant, you access it via localhost:4080 not localhost:1080.

---

<div class="post-metadata">

### Author: ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)
#### Post date: [6 באוגוסט,‏ 2016,‏ 7:27am UTC](https://meta.discourse.org/t/mini-racer-installation-issues-on-ubuntu-vagrant-osx/44681/35 "2016-08-06T07:27:44Z")

</div>

D’oh! I was using the wrong port. `mailcatcher --ip 0.0.0.0` works fine at `localhost:4080`. 😳

[Previous page](https://meta.discourse.org/t/mini-racer-installation-issues-on-ubuntu-vagrant-osx/44681.md?page=1)
