ptwobrussell / Mining-the-Social-Web-2nd-Edition

The official online compendium for Mining the Social Web, 2nd Edition (O'Reilly, 2013)
http://bit.ly/135dHfs
Other
2.9k stars 1.49k forks source link

Forwarded port to 27017 already in use on host machine #114

Closed pgrasmussen closed 10 years ago

pgrasmussen commented 10 years ago

Hello -

I recently purchased your book, Mining the Social Web (2nd Edition) and I followed the instructions on Appendix A but am unable to connect to IPython Notebook via http://localhost:8888.

I'm using a Windows 7 computer and attempted to modify the vagrantfile by including "config.vm.network :forwarded_port, guest: 27017, host: 1234" and other variations into line 46 of that file.

Here is a pastebin link to the console output after I entered vagrant up: http://pastebin.com/gYcxWKiR

Do you have any ideas for what I could do differently?

Thanks,

Peter

ptwobrussell commented 10 years ago

Peter - thanks for reaching out. I'll do everything I can to help you get this sorted ASAP. A couple of requests:

1 - can you "vagrant halt" and then "vagrant up" to see if this fixes the issue?

2 - assuming it doesn't, can you share your modified Vagrantfile with me in the pastebin?

3 - presumably, you are running MongoDB on your host machine already? (Not sure what else would be tying up port 27017.) If you could stop it, then presumably, you could revert your Vagrantfile and do (1) from above.

4 - the only reason I can think of that (3) wouldn't work is if the root issue is some kind of antivirus application that is blocking the port. If you suspect that this is the issue, it might be as simple as modifying it and performing (3).

Can you give those options some consideration and report back with results?

On Dec 26, 2013, at 3:23 PM, Peter Rasmussen notifications@github.com wrote:

Hello -

I recently purchased your book, Mining the Social Web (2nd Edition) and I followed the instructions on Appendix A but am unable to connect to IPython Notebook via http://localhost:8888.

I'm using a Windows 7 computer and attempted to modify the vagrantfile by including "config.vm.network :forwarded_port, guest: 27017, host: 1234" and other variations into line 46 of that file.

Here is a pastebin link to the console output after I entered vagrant up: http://pastebin.com/gYcxWKiR

Do you have any ideas for what I could do differently?

Thanks,

Peter

— Reply to this email directly or view it on GitHub.

pgrasmussen commented 10 years ago

Thanks for your prompt response!

It turns out that I was already running MongoDB as a service on my host machine, so once I stopped that and ran "vagrant up" again I was able to access IPython Notebook at http://localhost:8888/.

ptwobrussell commented 10 years ago

Great! Best of luck working through the examples...