pose / webdriver-manager

Fork of Protactor's webdriver-manager as an standalone Node.js module.
22 stars 17 forks source link

Invalid or unsupported zip format. No END header found #1

Closed deeperton closed 9 years ago

deeperton commented 10 years ago
Linux namePC 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
$ webdriver-manager update
Updating selenium standalone
downloading http://selenium-release.storage.googleapis.com/2.42/selenium-server-standalone-2.42.2.jar...
Updating chromedriver
downloading https://chromedriver.storage.googleapis.com/2.10/chromedriver_linux64.zip...
selenium-server-standalone-2.42.2.jar downloaded to /usr/local/lib/node_modules/protractor/selenium/selenium-server-standalone-2.42.2.jar
chromedriver_2.10.zip downloaded to /usr/local/lib/node_modules/protractor/selenium/chromedriver_2.10.zip

Invalid or unsupported zip format. No END header found

Then, try again

$ webdriver-manager update
selenium standalone is up to date.
chromedriver is up to date.

but folder /usr/local/lib/node_modules/protractor/selenium/ doesn't contains chromedriver.

Fix: manual download and extract chromedriver.

dgrad commented 10 years ago

Same problem here:

Updating selenium standalone
downloading http://selenium-release.storage.googleapis.com/2.42/selenium-server-standalone-2.42.2.jar...
Updating chromedriver
downloading http://chromedriver.storage.googleapis.com/2.10/chromedriver_linux64.zip...
chromedriver_2.10.zip downloaded to /local/NWP/nwp-0f968c9/client/node_modules/grunt-protractor-runner/node_modules/protractor/selenium/chromedriver_2.10.zip

Invalid or unsupported zip format. No END header found
npm ERR! grunt-protractor-runner@1.1.2 postinstall: `webdriver-manager update`
npm ERR! Exit status 8
npm ERR! 
npm ERR! Failed at the grunt-protractor-runner@1.1.2 postinstall script.
npm ERR! This is most likely a problem with the grunt-protractor-runner package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     webdriver-manager update
npm ERR! You can get their info via:
npm ERR!     npm owner ls grunt-protractor-runner
npm ERR! There is likely additional logging output above.```
pose commented 10 years ago

@deeperton @dgrad, Thanks for reporting this bug, I'll take a look and try to reproduce it locally. I'll get back to you then.

pose commented 10 years ago

I've changed the URL which could be the reason why it was not working. Can you try again now?

pose commented 10 years ago

BTW, I've released a new NPM version in case you want to try it.

deeperton commented 10 years ago

Sorry, for the delay

$ npm uninstall -g protractor
...
$ npm install -g protractor
...
$ webdriver-manager update
Updating selenium standalone
downloading http://selenium-release.storage.googleapis.com/2.42/selenium-server-standalone-2.42.2.jar...
Updating chromedriver
downloading http://chromedriver.storage.googleapis.com/2.10/chromedriver_linux64.zip...
chromedriver_2.10.zip downloaded to /usr/local/lib/node_modules/protractor/selenium/chromedriver_2.10.zip
selenium-server-standalone-2.42.2.jar downloaded to /usr/local/lib/node_modules/protractor/selenium/selenium-server-standalone-2.42.2.jar
$ |

Seems to be OK.

@dgrad ?

pose commented 10 years ago

Hi @deeperton, that's another project (protractor). This is a fork of that webdriver-manager command.

deeperton commented 10 years ago

Oh... I thought that the protractor use this project as sub module. Sorry, my bad.

So, I think we can close this issue :) .

dgrad commented 10 years ago

Thanks for the fix. In my case the issue was not consistently reproducible so I can't test reliably if it's definitely fixed

pose commented 10 years ago

@dgrad Great. Keep me posted, if in the future you are able to reproduce it, I'll take a look into it. Thanks!

2ernestkg commented 10 years ago

Just removed my local node_modules and run the npm install and then wanted to update the webdriver and having this kind of problem


Running "shell:update_webdriver" (shell) task
Updating selenium standalone
downloading https://selenium-release.storage.googleapis.com/2.43/selenium-server-standalone-2.43.1.jar...
Updating chromedriver
downloading https://chromedriver.storage.googleapis.com/2.10/chromedriver_linux64.zip...
chromedriver_2.10.zip downloaded to /home/ernest/projects/project/node_modules/protractor/selenium/chromedriver_2.10.zip
Warning: Command failed: 
Invalid or unsupported zip format. No END header found
 Use --force to continue.
pose commented 10 years ago

@2ernestkg can you tell me if you are having the same issue with the following fork? https://github.com/mattp-/webdriver-manager

@mattp- is using a different way of unzipping the files. If it does work better I can merge it and release a new version. Thanks!

pose commented 10 years ago

After taking a closer look, that won't work on Windows. I'm still doing some research on other options.

adkron commented 10 years ago

I just ran into the same issue

selenium standalone is up to date.
chromedriver is up to date.

/usr/local/lib/node_modules/webdriver-manager/node_modules/adm-zip/zipFile.js:66
            throw Utils.Errors.INVALID_FORMAT;
                              ^
Invalid or unsupported zip format. No END header found
pose commented 9 years ago

I've just merged this https://github.com/pose/webdriver-manager/pull/6, can you tell me if you are still facing the same issues after this? The new version that contains these changes is 2.0.0. Thanks

ictgtvt commented 9 years ago

I had found the alternative download link here: http://chromedriver.storage.googleapis.com/index.html?path=2.10/

Download the suitable file: and extract it "chromedriver.exe" to: [project]\node_modules\protractor\selenium\

pose commented 9 years ago

I've tried reproducing this issue in Windows and I'm not getting that error any more. Feel free to re-open if you are still facing this issue. Thanks!