2

I got the following issue when I try to run my edX LMS (port 8000):

Error: That port is already in use

enter image description here

So in my vagrant account I found and did kill -9 on process which was using 8000. But as soon as I killed them, the process was automatically restarting and using port 8000 and I am unable to run LMS.

enter image description here

Stéphane Bruckert
  • 21,706
  • 14
  • 92
  • 130
Dhananjay Ambekar
  • 183
  • 1
  • 1
  • 7

3 Answers3

1

When that happens, I just do:

vagrant reload

(You will have to logout from SSH before by typing logout)


It is equivalent to:

vagrant halt
vagrant up
Stéphane Bruckert
  • 21,706
  • 14
  • 92
  • 130
  • I've encountered issues in the past where 'vagrant halt' has *not* cleared the port, just as an FYI. 'vagrant reload' has simply given a port in use error. YMMV. – FlipperPA May 30 '15 at 20:36
0

I've had times on OS/X with Vagrant where I've had to kill not only the vagrant process, but also virtualbox, when vagrant reload hasn't worked.

On your machine (not the guest VM):

ps -eaf | fgrep -i vagrant
ps -eaf | fgrep -i virtualbox

Then kill all those processes and "vagrant up."

FlipperPA
  • 13,607
  • 4
  • 39
  • 71
0

vagrant halt is enough to kill all the processes related to the used port.

Leonardo Venoso
  • 1,203
  • 12
  • 15