# Rake aborted message is showing when installing vagrant development

**URL:** https://meta.discourse.org/t/rake-aborted-message-is-showing-when-installing-vagrant-development/74504
**Category:** Development
**Created:** [November 21, 2017, 11:36am UTC](https://meta.discourse.org/t/rake-aborted-message-is-showing-when-installing-vagrant-development/74504 "2017-11-21T11:36:42Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![thegurjyot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thegurjyot/32/120516_2.png) [@thegurjyot](https://meta.discourse.org/u/thegurjyot)
#### Post date: [November 21, 2017, 11:36am UTC](https://meta.discourse.org/t/rake-aborted-message-is-showing-when-installing-vagrant-development/74504/1 "2017-11-21T11:36:42Z")

</div>

I am following [this installation guide](https://blog.discourse.org/2013/04/discourse-as-your-first-rails-app/) to install Discourse on localhost. Everything was working as written in that guide but then as I types this command,

> bundle exec rake db:migrate

I got a message that “rake aborted”. The complete message is below, please tell how to fix this?

```
rake aborted!
ln: failed to create symbolic link '/vagrant/public/plugins/discourse-narrative-bot': Protocol error
/vagrant/lib/discourse.rb:27:in `execute_command'
/vagrant/lib/plugin/instance.rb:449:in `activate!'
/vagrant/lib/discourse.rb:146:in `block in activate_plugins!'
/vagrant/lib/discourse.rb:143:in `each'
/vagrant/lib/discourse.rb:143:in `activate_plugins!'
/vagrant/config/application.rb:178:in `<class:Application>'
/vagrant/config/application.rb:26:in `<module:Discourse>'
/vagrant/config/application.rb:25:in `<top (required)>'
/vagrant/rakefile:5:in `require'
/vagrant/rakefile:5:in `<top (required)>'
/home/vagrant/.rvm/gems/ruby-2.3.1/gems/rake-12.1.0/exe/rake:27:in `<top (required)>'
/home/vagrant/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
/home/vagrant/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `<main>'
(See full trace by running task with --trace)
vagrant@discourse:/vagrant$

```

I also looked at this [post](https://meta.discourse.org/t/bundle-exec-rake-db-migrate-rake-aborted-loaderror-cannot-load-such-file-memory-profiler-after-upgrade-fixed/46919) but still couldn’t figure out the problem.

---

<div class="post-metadata">

### Author: ![thegurjyot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thegurjyot/32/120516_2.png) [@thegurjyot](https://meta.discourse.org/u/thegurjyot)
#### Post date: [November 21, 2017, 11:45am UTC](https://meta.discourse.org/t/rake-aborted-message-is-showing-when-installing-vagrant-development/74504/4 "2017-11-21T11:45:31Z")

</div>

I have tried git pull to get latest and then went ahead by doing the complete process again but getting the same rake aborted message.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [November 21, 2017, 11:49am UTC](https://meta.discourse.org/t/rake-aborted-message-is-showing-when-installing-vagrant-development/74504/5 "2017-11-21T11:49:13Z")

</div>

Aha my bad @sam .. not related.. your problem is here

`ln: failed to create symbolic link '/vagrant/public/plugins/discourse-narrative-bot': Protocol error`

Why is “vagrant” being referenced here? This is not an install, this is a development environment.

---

<div class="post-metadata">

### Author: ![thegurjyot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thegurjyot/32/120516_2.png) [@thegurjyot](https://meta.discourse.org/u/thegurjyot)
#### Post date: [November 21, 2017, 11:53am UTC](https://meta.discourse.org/t/rake-aborted-message-is-showing-when-installing-vagrant-development/74504/6 "2017-11-21T11:53:15Z")

</div>

So what should be done, I am quite new to Discourse and trying to set it up on localhost to understand how it works.  
What should I do with vagrant to fix this issue?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [November 21, 2017, 11:54am UTC](https://meta.discourse.org/t/rake-aborted-message-is-showing-when-installing-vagrant-development/74504/7 "2017-11-21T11:54:31Z")

</div>

@techAPJ should we update the blog post? Perhaps have the blog post point to meta #howto topics?

---

<div class="post-metadata">

### Author: ![thegurjyot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thegurjyot/32/120516_2.png) [@thegurjyot](https://meta.discourse.org/u/thegurjyot)
#### Post date: [November 21, 2017, 6:47pm UTC](https://meta.discourse.org/t/rake-aborted-message-is-showing-when-installing-vagrant-development/74504/8 "2017-11-21T18:47:12Z")

</div>

Any update on this? I really wanna test Discourse but have no idea how to fix this issue.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [November 21, 2017, 7:00pm UTC](https://meta.discourse.org/t/rake-aborted-message-is-showing-when-installing-vagrant-development/74504/9 "2017-11-21T19:00:44Z")

</div>

> [@codinghorror](#):
>
> should we update the blog post? Perhaps have the blog post point to meta #howto topics?

Added on my list to look into. 📝

> [@thegurjyot](#):
>
> I really wanna test Discourse but have no idea how to fix this issue.

It might take us some time to update the blog post. In the meanwhile try some other guides available here on meta?

> [@(Superseded) Set up a development environment using Vagrant on Ubuntud](https://meta.discourse.org/t/howto-set-up-a-development-environment-using-vagrant-ubuntu-guide/45277):
>
> information_source This doc is no longer maintained and using Docker for development is recommended instead of using Vagrant. See: [Install Discourse for development using Docker](https://meta.discourse.org/t/beginners-guide-to-install-discourse-for-development-using-docker/102009) After having setup several systems with a discourse development environment using Vagrant, I thought I would write a quick guide here, which I really should submit as a README. This setup was tested on a virgin installation of 18.04, and uses Eclipse with Aptana Studio 3. Install requirements sudo apt install vag…

> [@Install Discourse on Ubuntu or Debian for Development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727):
>
> warning This guide covers installation instructions in a development environment. For a production guide see: [Install Discourse in production with the official supported instructions](https://meta.discourse.org/t/how-to-install-discourse-in-production/142537) So you want to set up Discourse on Ubuntu or Debian to hack on and develop with? We’ll assume that you work locally and don’t have Ruby/Rails/Postgres/Redis installed on your Ubuntu or Debian system. Let’s begin! Requirements We suggest having at least 4 GB RAM and 2 CPU cores. Current compatibility: O…

> [@Install Discourse on macOS for development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-mac-os-x-macos-for-development/15772):
>
> warning This guide covers installation instructions for a macOS development environment, for production guides see: [Install Discourse in production with the official supported instructions](https://meta.discourse.org/t/how-to-install-discourse-in-production/142537) So you want to set up Discourse on macOS to hack on and develop with? We’ll assume that you don’t have Ruby/Rails/Postgres/Redis installed on your Mac. Let’s begin rocket ! Install Discourse Dependencies You will need the following packages on your system: [Git](http://git-scm.com/)[rbenv](https://github.com/sstephenson/rbenv) or [asdf](https://asdf-vm.com/guide/getting-started.html)[ruby-build](https://github.com/sstephenson/ruby-build)[Ruby](https://www.ruby-lang.org/) (latest s…

> **[discourse/bin/docker at main · discourse/discourse](https://github.com/discourse/discourse/tree/main/bin/docker)**
>
> main/bin/docker

---

<div class="post-metadata">

### Author: ![thegurjyot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thegurjyot/32/120516_2.png) [@thegurjyot](https://meta.discourse.org/u/thegurjyot)
#### Post date: [November 22, 2017, 8:54pm UTC](https://meta.discourse.org/t/rake-aborted-message-is-showing-when-installing-vagrant-development/74504/10 "2017-11-22T20:54:32Z")

</div>

I tried every tutorial which you mentioned but none worked for me on my Windows PC. Even searched Google for Rake Aborted issued and ground methods but those also didn’t worked.

Now, I am just waiting for your reply about the updated Blog post. 🙂

---

<div class="post-metadata">

### Author: ![thegurjyot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thegurjyot/32/120516_2.png) [@thegurjyot](https://meta.discourse.org/u/thegurjyot)
#### Post date: [November 27, 2017, 6:35pm UTC](https://meta.discourse.org/t/rake-aborted-message-is-showing-when-installing-vagrant-development/74504/11 "2017-11-27T18:35:43Z")

</div>

Hello, just wanted to know about any update on this matter?  
Actually, we want to test Discourse to get our project on it as soon as possible.

---

<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: [November 27, 2017, 7:28pm UTC](https://meta.discourse.org/t/rake-aborted-message-is-showing-when-installing-vagrant-development/74504/12 "2017-11-27T19:28:31Z")

</div>

I had varying degrees of success and problems installing Discourse on my Windows 10.

What - knock wood - has worked best so far is to

- install a virtual machine (currently I’m using VMware)
- create a guest using Ubuntu as the server
- follow the “howto vagrant ubuntu” instructions

I am far from being a sys op and any success I ever have tends to feel more because of luck than actual knowledge. But installing into Windows 10 was a lot more hassle for me than installing into Ubuntu

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [November 27, 2017, 7:38pm UTC](https://meta.discourse.org/t/rake-aborted-message-is-showing-when-installing-vagrant-development/74504/13 "2017-11-27T19:38:04Z")

</div>

> [@thegurjyot](#):
>
> just wanted to know about any update on this matter?

I have been working on more priority tasks, as I said earlier, it will take me some time to get to it.

> [@thegurjyot](#):
>
> Actually, we want to test Discourse to get our project on it as soon as possible.

In that case, I suggest you install Discourse on cloud following our official how-to:

[discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md)

---

<div class="post-metadata">

### Author: ![thegurjyot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thegurjyot/32/120516_2.png) [@thegurjyot](https://meta.discourse.org/u/thegurjyot)
#### Post date: [November 28, 2017, 5:43pm UTC](https://meta.discourse.org/t/rake-aborted-message-is-showing-when-installing-vagrant-development/74504/14 "2017-11-28T17:43:22Z")

</div>

Thanks for your response, I’ll try that. 🙂

---

<div class="post-metadata">

### Author: ![TzeHsiung\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@TzeHsiung\_Wong](https://meta.discourse.org/u/TzeHsiung_Wong)
#### Post date: [January 2, 2018, 8:25am UTC](https://meta.discourse.org/t/rake-aborted-message-is-showing-when-installing-vagrant-development/74504/15 "2018-01-02T08:25:49Z")

</div>

for anyone who got here from google search and unable to get it working based on the above, this is what i have found to help solve this issue on windows 10:

> [@Unable to update vagrant dev install on Windows](https://meta.discourse.org/t/unable-to-update-vagrant-dev-install-on-windows/64383/9):
>
> you need special rights to create symbolic links with windows (inside virtual machines), the right goes by “SeCreateSymbolicLink”. Administrator have this right by default. When you run vagrant up/ssh, you need to run it with a user that has this right. I avoided this error by starting a powershell as administrator (since I didn’t want to bother with granting rights to my user) and discourse is up and running

basically is just to run the cmd you’re using as administrator and run the rake command
