Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

502 Bad Gateway | Error ISO Download #98

Closed
bursaiskender opened this issue Jul 30, 2018 · 17 comments
Closed

502 Bad Gateway | Error ISO Download #98

bursaiskender opened this issue Jul 30, 2018 · 17 comments
Labels

Comments

@bursaiskender
Copy link

machine@root # malboxes build win10_64_analyst

Generating configuration files...
Configuration files are ready
Starting packer to generate the VM

virtualbox-iso output will be in this color.

==> virtualbox-iso: Downloading or copying Guest additions
virtualbox-iso: Downloading or copying: file:///usr/share/virtualbox/VBoxGuestAdditions.iso
==> virtualbox-iso: Downloading or copying ISO
virtualbox-iso: Downloading or copying: file:///14393.0.160715-1616.RS1_RELEASE_CLIENTENTERPRISEEVAL_OEMRET_X64FRE_EN-US.ISO
virtualbox-iso: Error downloading: open /14393.0.160715-1616.RS1_RELEASE_CLIENTENTERPRISEEVAL_OEMRET_X64FRE_EN-US.ISO: no such file or directory
virtualbox-iso: Downloading or copying: http://care.dlservice.microsoft.com/dl/download/2/5/4/254230E8-AEA5-43C5-94F6-88CE222A5846/14393.0.160715-1616.RS1_RELEASE_CLIENTENTERPRISEEVAL_OEMRET_X64FRE_EN-US.ISO
virtualbox-iso: Error downloading: Error making HTTP GET request: 502 Bad Gateway
==> virtualbox-iso: ISO download failed.
Build 'virtualbox-iso' errored: ISO download failed.

==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: ISO download failed.

==> Builds finished but no artifacts were created.

packer completed with return code: 1
Packer failed. Build failed. Exiting...

@Svieg
Copy link
Collaborator

Svieg commented Jul 30, 2018

Not sure why you tagged #97 as duplicate of this one as it was created before this one and therefore this one is the duplicate. The issue is that all trial ISO links are now returning Bad Gateway errors and we need to find new links/source for them as I explained in the previous issue.

@Wenzel
Copy link
Contributor

Wenzel commented Aug 1, 2018

Hi,
I already faced this issue before, and i think it's a bug related to Packer itself.

Use wget to download the ISO, and then rename it.

@Wenzel
Copy link
Contributor

Wenzel commented Aug 1, 2018

I opened an issue on Packer: hashicorp/packer#6560

@Svieg
Copy link
Collaborator

Svieg commented Aug 1, 2018

Wget seems to work, thx! Blacklisting Packer's User-Agent is weird. Hope it gets resolved soon.

@lyfak
Copy link

lyfak commented Aug 12, 2018

What do you do exactly as a workaround?

@Wenzel
Copy link
Contributor

Wenzel commented Aug 12, 2018

@Maximevilla wget the iso and put in your packer_cache, named as a sha256 of the url (IIRC)

source: hashicorp/packer#1826 (comment)

@bursaiskender
Copy link
Author

So thanks Wenzel @Wenzel :*

@Svieg
Copy link
Collaborator

Svieg commented Aug 27, 2018

@Wenzel According to the issue you opened (hashicorp/packer#6560) it seems resolved. I just tested it with the win7_32_analyst image and it seems to be still an issue, could you confirm on your end?

@Wenzel
Copy link
Contributor

Wenzel commented Aug 27, 2018

@Svieg the issue is not resolved yet.
Where did you see a resolution ? 🤔

If you change the URL in your packer templates, it will work,
but i don't want to force everyone to update their repo just because Microsoft is filtering the User-Agent...

@Svieg
Copy link
Collaborator

Svieg commented Aug 30, 2018

I saw this comment and I didn't understand that you changed the URL to make it work: hashicorp/packer#6560 (comment). I understand that it's a pain that MS does that but I wouldn't mind changing the templates for Malboxes. So we should only change it to: http://download.microsoft.com/download/2/5/4/254230E8-AEA5-43C5-94F6-88CE222A5846/14393.0.160715-1616.RS1_RELEASE_CLIENTENTERPRISEEVAL_OEMRET_X64FRE_EN-US.ISO ,etc?

@Wenzel
Copy link
Contributor

Wenzel commented Sep 1, 2018

@Svieg , yes it should work.

Just test it before committing any changes

@obilodeau
Copy link
Member

As a workaround, I recommend that you download the ISOs with wget and that you specify iso_path in your ~/.config/malboxes/config.js (platform specific).

...
"iso_path": "/home/olivier/tools/isos/",
...

@obilodeau
Copy link
Member

I added a link to the ISOs so you can download them easily and then use iso_path like I said in the comment above. This has the added benefit of avoiding the expensive download over and over.

https://github.com/GoSecure/malboxes/blob/master/docs/windows-licenses.adoc#trial

@obilodeau obilodeau changed the title 502 Bad Gateway | Error ISO Download or Incorrect Link 502 Bad Gateway | Error ISO Download Sep 21, 2018
@Bromulux
Copy link
Collaborator

The added URLs are deprecated, Microsoft seems to have changed their way to offer their isos ( https://www.microsoft.com/en-us/evalcenter/evaluate-windows-10-enterprise ). You still can manually download the iso and provide the path as a workaround.

@Wenzel
Copy link
Contributor

Wenzel commented Jan 30, 2019

@LacroixEtienne the URLs pointing to care.dlservice are dead:
joefitzgerald/packer-windows#276

@Bromulux
Copy link
Collaborator

@Wenzel I must have missed this, thank you.

@obilodeau
Copy link
Member

Windows 10 URLs are fixed. Windows 7 trials can be downloaded using a browser, I'm not sure about packer. In any case, the URLs are all documented here: https://github.com/GoSecure/malboxes/blob/master/docs/windows-licenses.adoc#trial

You can always download and use the iso_path configuration as a workaround. See here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants