如何修复“[严重]:bind() 失败:无法分配请求的地址 (99)"在启动 chromedriver 时 [英] How to fix "[SEVERE]: bind() failed: Cannot assign requested address (99)" while starting chromedriver
问题描述
我在 Centos 7 平台下载了最新版本的 chromedriver:
在我的例子中,使用 --verbose
标志运行 chromedriver
有助于找出问题:
[1564749154.010][SEVERE]:bind() 失败:无法分配请求的地址 (99)[1564749154.011][INFO]:侦听 IPv6 失败,错误 ERR_ADDRESS_INVALID
Chrome 尝试侦听 Docker 中未启用的 IPv6 地址.您可以启用 IPv6 支持(仅适用于 Linux 主机)或忽略错误因为 chromedriver
进程无论如何都会监听 IPv4.
I downloaded the latest version of chromedriver in Centos 7 platform: https://chromedriver.storage.googleapis.com/index.html?path=74.0.3729.6/ I start chromedriver and get this error.
Error :
Starting ChromeDriver 74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}) on port 9515
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
[1556179366.141][SEVERE]: bind() failed: Cannot assign requested address (99)
How can I solve this?
In my case running chromedriver
with --verbose
flag helped to figure out the issue:
[1564749154.010][SEVERE]: bind() failed: Cannot assign requested address (99)
[1564749154.011][INFO]: listen on IPv6 failed with error ERR_ADDRESS_INVALID
Chrome attempted to listen on IPv6 address, which was not enabled in Docker. You can either enable IPv6 support (which works only on Linux host) or ignore the error since chromedriver
process will be listening on IPv4 anyway.
这篇关于如何修复“[严重]:bind() 失败:无法分配请求的地址 (99)"在启动 chromedriver 时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!