mozilla / geckodriver

WebDriver for Firefox
https://firefox-source-docs.mozilla.org/testing/geckodriver/
Mozilla Public License 2.0
7.12k stars 1.52k forks source link

Reaching download limit for geckodriver for github.com #840

Closed berlin-sky closed 7 years ago

berlin-sky commented 7 years ago

Platform and application details

Steps to reproduce

When a test using webdriverio is run we get the following error:


Error: Could not download https://github.com/mozilla/geckodriver/releases/download/v0.16.1/geckodriver-v0.16.1-macos.tar.gz: 
Error: read ECONNRESET
    at Request.<anonymous> (/Users/bbe06/workspace/shop/ui/shop-ui-tests/node_modules/wdio-selenium-standalone-service/node_modules/selenium-standalone/lib/install.js:378:12)
    at Object.onceWrapper (events.js:290:19)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:188:7)
    at Request.onRequestError (/Users/bbe06/workspace/shop/ui/shop-ui-tests/node_modules/request/request.js:845:8)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:188:7)
    at TLSSocket.socketErrorListener (_http_client.js:309:9)
    at emitOne (events.js:96:13)
    at TLSSocket.emit (events.js:188:7)

Continue...

ERROR: connect ECONNREFUSED 127.0.0.1:4444

chrome
Error

ERROR: connect ECONNREFUSED 127.0.0.1:4444

chrome
Error

ERROR: connect ECONNREFUSED 127.0.0.1:4444

chrome
Error```

- [ ] Reproducable testcase:
Cannot start the test at all, so this is immaterial here.

- [ ] A trace level log:
```A service failed in the 'onPrepare' hook
Error: Could not download https://github.com/mozilla/geckodriver/releases/download/v0.16.1/geckodriver-v0.16.1-macos.tar.gz: Error: read ECONNRESET
    at Request.<anonymous> (/Users/bbe06/workspace/shop/ui/shop-ui-tests/node_modules/wdio-selenium-standalone-service/node_modules/selenium-standalone/lib/install.js:378:12)
    at Object.onceWrapper (events.js:290:19)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:188:7)
    at Request.onRequestError (/Users/bbe06/workspace/shop/ui/shop-ui-tests/node_modules/request/request.js:845:8)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:188:7)
    at TLSSocket.socketErrorListener (_http_client.js:309:9)
    at emitOne (events.js:96:13)
    at TLSSocket.emit (events.js:188:7)```

Continue...
jariaspe commented 7 years ago

It also happens with v0.11.1

This is the curl response. geckodriver-response.html.txt

The url you're redirected to is apparently a phising site or at least Chrome says so.

berlin-sky commented 7 years ago

Yes I Chrome says it is a dangerous site. also when I did a wget https://github.com/mozilla/geckodriver/releases/download/v0.16.1/geckodriver-v0.16.1-macos.tar.gz, I got the error below:


Resolving github.com... 192.30.253.112, 192.30.253.113
Connecting to github.com|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/25354393/0fde8d32-2a8a-11e7-827b-8c93df7b8f31?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20170725%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170725T090440Z&X-Amz-Expires=300&X-Amz-Signature=62a5c338151cf7f2c8aebee0ee8168bd636e9082f46ecd0513536ae703c6c6a4&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dgeckodriver-v0.16.1-macos.tar.gz&response-content-type=application%2Foctet-stream [following]
--2017-07-25 10:04:40--  https://github-production-release-asset-2e65be.s3.amazonaws.com/25354393/0fde8d32-2a8a-11e7-827b-8c93df7b8f31?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20170725%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170725T090440Z&X-Amz-Expires=300&X-Amz-Signature=62a5c338151cf7f2c8aebee0ee8168bd636e9082f46ecd0513536ae703c6c6a4&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dgeckodriver-v0.16.1-macos.tar.gz&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com... 52.216.227.232
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com|52.216.227.232|:443... connected.
Unable to establish SSL connection.```
berlin-sky commented 7 years ago

Please can someone know why it is and have a look, I can't run my tests due to this issue. Thanks in advance.

andreastt commented 7 years ago

Please report any issues with the fact that WebDriverIO downloads the incorrect geckodriver version with WebDriverIO.

I’m successfully able to negotiate the TLS certificate now, so I assume this was an intermittent issue with the GitHub/AWS infrastructure.

(In general I would not recommend downloading geckodriver through unsolicited services in a CI environment.)

sky-joaonabais commented 7 years ago

Hi, I'm also affected by this, how is it webdriverio responsability if I go to https://github.com/mozilla/geckodriver/releases and try do download geckodriver-v0.16.1-macos.tar.gz and get an warning (same as @berlin-sky). ? The URI in the site is the same configured in webdriverio.

image

image

berlin-sky commented 7 years ago

Thanks @andreastt for the update. It is not an intermittent issue, as @sky-joaonabais pointed out, The url cannot be navigated. Please someone can have a look.

berlin-sky commented 7 years ago

@andreastt, Please can you let me know why did you close this. It is still an issue. As a minimum, I expected comment when you close an issue which I have raised.

ianoroceo commented 7 years ago

same here, getting the same error. can someone keep this open until there is a resolution? or this will be handled in the chat room?

sky-joaonabais commented 7 years ago

Seems to be working, the links on the releases are now working too, thanks.

andreastt commented 7 years ago

@berlin-sky It is not a geckodriver issue, but an infrastructure problem with GitHub. As much as I would want to, there is really nothing I can do about this.

zjh1943 commented 6 years ago

It seems that it fetch the header of that url every time when i start wdio. Sometimes network is ok, wdio works well. Sometimes network is week, wdio not work. Why should we request the header at every startup ?

zjh1943 commented 6 years ago

@andreastt why close this issue?

andreastt commented 6 years ago

@zjh1943 GitHub rate-limits downloads, and if your test environment is hitting this there is a problem that it doesn’t cache the geckodriver download.