vagrant issue

Hi all,

I've followed the steps as described in this link https://support.sugarcrm.com/Resources/Environments/Development_Environments/Vagrant_Development_Environment/ to set up my local vagrant box. 

Some technical clarification:

MAC Machine

Box Used sugarcrm/php71es56

 

I get the following error

 

Vagrant cannot forward the specified ports on this VM, since they

would collide with some other application that is already listening

on these ports. The forwarded port to 8080 is already in use

on the host machine.

 

To fix this, modify your current project's Vagrantfile to use another

port. Example, where '1234' would be replaced by a unique host port:

 

  config.vm.network :forwarded_port, guest: 80, host: 1234

 

I changed the Vagrantfile and added the following directive

 

config.vm.network "forwarded_port", guest: 80, host: 4367

 

and then Vagrant reload

 

Unfortunately the same issue persists.

  • Hi Polys Kasinides,

    I presume you must have removed this "#" before the line setting custom host. If not, please have a look below. This is how my vagrant file looks like.

    Let us know if this helps or you are still getting the same error.

    Also, do you have any other web application running on port 8080?

    Regards.

  • Hi hats,

    Thanks for the reply. If found the issue. I will write it here in case someone else comes across this issue.

    Basically every box comes along with it's own vagrant file which is in a hidden directory.

    In the case of this box sugarcrm/php71es56 there is a vagrant file which includes the directive 

    config.vm.network :forwarded_port, guest: 80, host: 8080

    So even if you change the directive in your your working directory Vagrant box it will still pick up the one from the box Vagrant file.

    In my case on a MAC machine the box Vagrant file was located in /user/.vagrant.d/boxes/sugarcrm-VAGRANTSLASH-php71es56/1.0/virtualbox

    Thanks again for your reply hats