简体   繁体   English

ChromeDriver 将无法运行 - 地址已在使用中 (98) - 但没有发现正在使用端口 1915

[英]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. ChromeDriver 不会运行,表示当前地址已经在使用中。 Whenever I have used lsof I have found nothing using port 1915, which is what ChromeDriver is wanting to use.每当我使用 lsof 时,我都没有发现使用端口 1915,这是 ChromeDriver 想要使用的。

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.我在这里也发现了一个类似的问题' Chromedriver 由于地址已在使用中而无法启动',但这个问题表明他们的错误是说 IPv4 端口不可用,而我的说是 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. 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一天在电脑上工作。 Because of this, any tips given would be great if explained like I'm 5.正因为如此,如果像我 5 岁那样解释,给出的任何提示都会很棒。

Thanks in advance.提前致谢。

fuser -k 9515/tcp

这个效果很好,感谢@Svilen

To identify the process id for ChromeDriver use ps -fA | grep chromedriver要识别 ChromeDriver 的进程 ID,请使用ps -fA | grep chromedriver ps -fA | grep chromedriver , Then kill the column two id number. ps -fA | grep chromedriver ,然后杀掉第二列的id号。

或者,如果此问题是因为您在后台有另一个 chromedriver 进程,您可以运行killall chromedriver

You need to kill chromedriver to get this working您需要杀死 chromedriver 才能使其正常工作

   vikaspiprade@AUMEL-P7750-VP:~/openfield-cloud/nightwatch$ npx nightwatch --test ./tests/widgets/banner.test.js --testcase "Hide Row Label in Banner Widget" 
   Error: ChromeDriver process exited with code: 1
   [1663729485.869][SEVERE]: bind() failed: Address already in use (98)

       at ChildProcess.emit (node:events:513:28)
       at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
 [1663729485.869][SEVERE]: bind() failed: Address already in use (98)



vikaspiprade@AUMEL-P7750-VP:~/openfield-cloud/nightwatch$ ps
  PID TTY          TIME CMD
14354 pts/7    00:00:00 chromedriver
14416 pts/7    00:00:01 chrome <defunct>
14854 pts/7    00:00:00 npm exec serve
14878 pts/7    00:00:00 sh
14879 pts/7    00:00:00 node
15134 pts/7    00:00:00 ps
23260 pts/7    00:00:00 bash
vikaspiprade@AUMEL-P7750-VP:~/openfield-cloud/nightwatch$ kill -9 14354
vikaspiprade@AUMEL-P7750-VP:~/openfield-cloud/nightwatch$ 

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 nginx:[emerg] bind()到0.0.0.0:80失败(98:地址已在使用中),即使在使用端口80终止进程后也是如此 - nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) even after killing the process using port 80 在Linux上,当使用C与端口0(选择随机端口)执行套接字绑定时,我得到errno 98,地址已在使用中。 那怎么可能? - On linux, when performing a socket bind with port 0 (pick a random port) using C, I get errno 98, Address already in use. How is that possible? Python [Errno 98] 地址已被使用 - Python [Errno 98] Address already in use nrpe:网络服务器绑定失败(98:地址已在使用中) - nrpe : Network server bind failure (98: Address already in use) Kannel:错误:系统错误 98:地址已在使用中 - Kannel: ERROR: System error 98: Address already in use 地址已在使用中,但 netstat 或 lsof 中没有 - Address already in use but nothing in netstat or lsof BindException:地址已在使用,即使有唯一端口 - BindException: Address already in use even with unique port 带有SSL的tomcat APR-端口98已在使用中/无效的服务器SSL协议 - tomcat APR with SSL - port 98 already in use/Invalid Server SSL Protocol Gitlab nginx 问题 - nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) - Gitlab nginx problems - nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) 初始化套接字时出错:port = 6000。 地址已在使用中 - Error initializing sockets: port=6000. Address already in use
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM