Search code examples
linuxselenium-chromedriverchromiumlinux-mint

ChromeDriver will not run - Address already in use (98) - but nothing found to be using port 1915


ChromeDriver will not run, saying that the current address is already in use. Whenever I have used lsof I have found nothing using port 1915, which is what ChromeDriver is wanting to use.

I've looked everywhere to find a solution for this but they all just say to kill whatever is using the port but I can't find any. I also found a similar question on here at 'Chromedriver cannot be started due to address already in use', but that question shows their error is saying an IPv4 port is not available whilst mine says IPv6.

Starting ChromeDriver 73.0.3683.68 (47787ec04b6e38e22703e856e101e840b65afe72) on port 9515
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
[1553613641.983][SEVERE]: bind() failed: Address already in use (98)
IPv6 port not available. Exiting...

Any help on this would be greatly appreciated. This issue is critical for one of my projects which worked fine on windows, but I just recently moved to linux due to my windows getting corrupted and not wanting to have to deal with installing windows again, plus wanting a change-up in my day to day workings on the computer. Because of this, any tips given would be great if explained like I'm 5.

Thanks in advance.


Solution

  • Alternatively, if this issue is because you have another chromedriver process in the background, you can just run killall chromedriver.