Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Nutch selenium firefox问题:45000毫秒后无法连接到端口7055上的主机127.0.0.1_Selenium_Firefox_Selenium Webdriver_Web Crawler_Nutch - Fatal编程技术网

Nutch selenium firefox问题:45000毫秒后无法连接到端口7055上的主机127.0.0.1

Nutch selenium firefox问题:45000毫秒后无法连接到端口7055上的主机127.0.0.1,selenium,firefox,selenium-webdriver,web-crawler,nutch,Selenium,Firefox,Selenium Webdriver,Web Crawler,Nutch,我正在尝试使用Nutch Selenium和Firefox建立一个无头爬虫程序。 我有一个xvfb运行和一个显示集。如果我使用conf/nutch-site.xml,但仅更改为使用协议selenium,并且如果种子列表具有超过1个url,则提取错误将显示以下任一错误: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.

我正在尝试使用Nutch Selenium和Firefox建立一个无头爬虫程序。 我有一个xvfb运行和一个显示集。如果我使用conf/nutch-site.xml,但仅更改为使用协议selenium,并且如果种子列表具有超过1个url,则提取错误将显示以下任一错误:

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.

java.lang.RuntimeException: org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055

java.lang.RuntimeException: org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.

firefox selenium nutch GLib-CRITICAL **: g_slice_set_config: assertion `sys_page_size == 0' failed
但是,如果种子列表中只有1个url,则获取程序成功

现在,如果我将conf/nutch-site.xml-fetcher.threads.per.queue中的值更改为1,并且种子列表中有多个URL,那么fetcher会运行其中的几个URL,但在某些情况下会出现上述错误

这种行为似乎是随机的,尽管我很确定有些事情我看不清楚

我使用的是AmazonAMiLinux,Nutch1.13,它有Selenium2.48.2和Firefox31.4.0 尝试使用FF(40.0.0、35.0但情况仍然相同)

我能够看到所有的问题,但没有找到可靠的答案。如果有任何帮助或建议,我将不胜感激


谢谢

嗨@arunondeck你解决过这个问题吗?我对nutch 1.15 Selenium 2.48.2和Firefox 57和68也有同样的问题?