Data-Oriented-House / PortableBuildTools

Portable VS Build Tools installer
595 stars 19 forks source link

Downloading first manifest... [ERROR] Downloading first manifest failed with code: 0 #11

Closed hellishvictor closed 3 months ago

hellishvictor commented 4 months ago

Hi, here in Win 7 x64 SP1 I get the following:

Downloading first manifest...
[ERROR] Downloading first manifest failed with code: 0

Cheers.

j-begin commented 3 months ago

This release has added official Windows 7 support.

It works on my end, but please test it on yours.

hellishvictor commented 3 months ago

Man, it shows:

Downloading manifest files...
send request failed
Failed to download release manifest

:S

hellishvictor commented 3 months ago

With the original script the download works:

Downloading MSVC v14.40.17.10 and Windows SDK v26100
Do you accept Visual Studio license at https://go.microsoft.com/fwlink/?LinkId=2179911 [Y/N] ? y
microsoft.vc.14.40.17.10.tools.hostx64.targetx64.base ... 100%
microsoft.vc.14.40.17.10.tools.hostx64.targetx64.res.base ... 100%
microsoft.vc.14.40.17.10.crt.headers.base ... 100%
microsoft.vc.14.40.17.10.crt.x64.desktop.base ... 100%
microsoft.vc.14.40.17.10.crt.x64.store.base ... 100%
microsoft.vc.14.40.17.10.crt.source.base ... 100%
microsoft.vc.14.40.17.10.asan.headers.base ... 100%
microsoft.vc.14.40.17.10.asan.x64.base ... 100%
Windows SDK for Windows Store Apps Tools-x86_en-us.msi ... 100%
Windows SDK for Windows Store Apps Headers-x86_en-us.msi ... 100%
Windows SDK Desktop Headers x86-x86_en-us.msi ... 100%
Windows SDK for Windows Store Apps Libs-x86_en-us.msi ... 100%
Windows SDK Desktop Libs x64-x86_en-us.msi ... 100%
Universal CRT Headers Libraries and Sources-x86_en-us.msi ... 100%
2630bae9681db6a9f6722366f47d055c.cab ... 100%

etc...

munohikari commented 3 months ago

Which Windows 7 version do you have, RTM? Because it works on my SP1 no problem. If not that - no idea what can cause it.

hellishvictor commented 3 months ago

Does the program use TLS certificate verification or something or like that? Check this out,

munohikari commented 3 months ago

@hellishvictor could you try this binary, see if it fixes the issue? https://github.com/Data-Oriented-House/PortableBuildTools/releases/download/v2.0-pre/PortableBuildTools.exe

hellishvictor commented 3 months ago

It shows Downloading manifest files..., creates the folder %TEMP%\BuildTools, download a .tmp file of 5/6MiB on the %TEMP%\ folder, and seems to froze in there. Yesterday the py script worked like a charm and downloaded the WinSDKVersion 10.0.26100.0, I build an exe and everything was fine.

munohikari commented 3 months ago

I never download any .tmp files, only .json ones, nor are any of them 5/6MiB, they are either less than 1Mib or 14-15MiB. Please report the information correctly next time.

That said, it is some progress that it at least attempts to download it, i wonder where it gets stuck though. As i don't have your exact setup, and no SSL errors, i cannot reproduce the issue. You could try to build the debug version (just type build) and run it (in bin\\pbt.exe) with a debugger, pausing when it gets stuck to see the state.

Sidenote, does 26100 cl.exe really work for you? I tried compiling this project on my Windows 7 machine with 26100 SDK, but it doesn't work since it is missing some header file available only since Windows 8.

hellishvictor commented 3 months ago

Yeah, that at least is something, I just thought it was part of the vs_BuildTools or something related to it, but anyway, I've downloaded the master of PBT and at build it with the update of yesterday it showed:

C:\vs_BuildTools\Windows Kits\10\Include\10.0.26100.0\um\windows.h(1) : fatal error RC1015: cannot open include file 'winapifamily.h'.
source.c
C:\vs_BuildTools\Windows Kits\10\Include\10.0.26100.0\um\windows.h(1): fatal error C1083: Cannot open include file: 'winapifamily.h': No such file or directory

That "winapifamily.h" was removed from the new 26100. With the previous one it build without problem. Good to now that.

munohikari commented 3 months ago

Now you need to use SDK less than 26100 for Windows 7. As for the networking issue, seeing as i cannot reproduce your issue, i have no idea how to fix it either. I think know the place where it loops, but to properly handle it, i would need to examine what is going on in detail, what responses i get and so on. So i'll make a special debug build for you, with a lot more logging, to see what is going on.

Please try this: https://github.com/Data-Oriented-House/PortableBuildTools/releases/download/v2.1-pre/pbt.exe

hellishvictor commented 3 months ago

It shows:

Downloading manifest files...
LOG: send request failed, seeing if it wants to re-send it...
LOG: SSL failure occured, trying to set options to allow it...
LOG: Options set successfully.
LOG: send request failed, seeing if it wants to re-send it...
LOG: SSL failure occured, trying to set options to allow it...
LOG: Options set successfully.
LOG: send request failed, seeing if it wants to re-send it...
LOG: SSL failure occured, trying to set options to allow it...
LOG: Options set successfully.
LOG: send request failed, seeing if it wants to re-send it...
LOG: SSL failure occured, trying to set options to allow it...
LOG: Options set successfully.
LOG: send request failed, seeing if it wants to re-send it...
LOG: SSL failure occured, trying to set options to allow it...
LOG: Options set successfully.
LOG: send request failed, seeing if it wants to re-send it...
LOG: SSL failure occured, trying to set options to allow it...
LOG: Options set successfully.
LOG: send request failed, seeing if it wants to re-send it...
LOG: SSL failure occured, trying to set options to allow it...
LOG: Options set successfully.

And continue like that.

munohikari commented 3 months ago

Okay, could you try this build, see if it errors? https://github.com/Data-Oriented-House/PortableBuildTools/releases/download/v2.1-pre/pbt.exe

hellishvictor commented 3 months ago

Awesome, you nailed it man! sshot-1 That's is my temp folder with the jsons it creates. Don't know how you did it, but it worked like a charm and very fast.

Parsing Release Build Tool Manifest...
Downloading the packages...
[100%] Microsoft.VC.14.40.17.10.ASAN.Headers.base.vsix
[100%] Microsoft.VC.14.40.17.10.ASAN.X64.base.vsix
[100%] Microsoft.VC.14.40.17.10.CRT.Headers.base.vsix
[100%] Microsoft.VC.14.40.17.10.CRT.Source.base.vsix
[100%] Microsoft.VC.14.40.17.10.CRT.x64.Desktop.base.vsix
[100%] Microsoft.VC.14.40.17.10.CRT.x64.Store.base.vsix
[100%] Microsoft.VC.14.40.17.10.Tools.HostX64.TargetX64.base.vsix
[100%] Microsoft.VC.14.40.17.10.Tools.HostX64.TargetX64.Res.base.enu.vsix
[100%] VC_diasdk.msi
[100%] cab1.cab
[100%] vc_RuntimeDebug.msi
[100%] cab1.cab
[100%] Universal CRT Headers Libraries and Sources-x86_en-us.msi
[100%] Windows SDK Desktop Headers x86-x86_en-us.msi
[100%] Windows SDK Desktop Libs x64-x86_en-us.msi
[100%] Windows SDK for Windows Store Apps Headers-x86_en-us.msi
[100%] Windows SDK for Windows Store Apps Libs-x86_en-us.msi
[100%] Windows SDK for Windows Store Apps Tools-x86_en-us.msi
[100%] Windows SDK for Windows Store Apps Tools-x86_en-us.msi
[100%] 05047a45609f311645eebcac2739fc4c.cab
[100%] 07a57cdb41ba28cced14005f087267be.cab
[100%] 13d68b8a7b6678a368e2d13ff4027521.cab
[100%] 16ab2ea2187acffa6435e334796c8c89.cab
[100%] 2630bae9681db6a9f6722366f47d055c.cab
[100%] 26ea25236f12b23db661acf268a70cfa.cab
[100%] 2a30b5d1115d515c6ddd8cd6b5173835.cab
[100%] 2e876dd22fa5e6785f137e3422dd50ec.cab
[100%] 463ad1b0783ebda908fd6c16a4abfe93.cab
[100%] 4a4c678668584fc994ead5b99ccf7f03.cab
[100%] 4fe4c8b88812f5339018c0eef95acdb9.cab
[100%] 58314d0646d7e1a25e97c902166c3155.cab
[100%] 5a22e5cde814b041749fb271547f4dd5.cab
[100%] 61d57a7a82309cd161a854a6f4619e52.cab
[100%] 68de71e3e2fb9941ee5b7c77500c0508.cab
[100%] 69661e20556b3ca9456b946c2c881ddd.cab
[100%] 6ee7bbee8435130a869cf971694fd9e2.cab
[100%] 766c0ffd568bbb31bf7fb6793383e24a.cab
[100%] 78fa3c824c2c48bd4a49ab5969adaaf7.cab
[100%] 7afc7b670accd8e3cc94cfffd516f5cb.cab
[100%] 8125ee239710f33ea485965f76fae646.cab
[100%] 96076045170fe5db6d5dcf14b6f6688e.cab
[100%] a1e2a83aa8a71c48c742eeaff6e71928.cab
[100%] b2f03f34ff83ec013b9e45c7cd8e8a73.cab
[100%] b82881a61b7477bd4eb5de2cd5037fe2.cab
[100%] beb5360d2daaa3167dea7ad16c28f996.cab
[100%] c0aa6d435b0851bf34365aadabd0c20f.cab
[100%] d95da93904819b1f7e68adb98b49a9c7.cab
[100%] dcfb1aa345e349091a44e86ce1766566.cab
[100%] e10768bb6e9d0ea730280336b697da66.cab
[100%] e3d1b35aecfccda1b4af6fe5988ac4be.cab
[100%] eca0aa33de85194cd50ed6e0aae0156f.cab
[100%] f9b24c8280986c0683fbceca5326d806.cab
[100%] f9ff50431335056fb4fbac05b8268204.cab
Installing MSVC...
Installing SDK...
Installing debug info...
Installing DIA...
Creating a script...
Cleanup...
Done!

sshot-3

どうもありがとうございます :)

munohikari commented 3 months ago

@hellishvictor btw i was wrong, it's not an issue with 26100 on Windows 7, it was an issue with the SDK itself. New version should install it properly: https://github.com/Data-Oriented-House/PortableBuildTools/releases/tag/v2.2

hellishvictor commented 3 months ago

Success! PortableBuildTools was installed successfully.

It build and worked great, thank you man!

RealYukiSan commented 1 month ago

the installation program didn't work on both v2.2 and v2.6 (the currently latest version) image

Windows version: image

munohikari commented 1 month ago

Perhaps you need Pro edition, i only tested it on Pro.

RealYukiSan commented 1 month ago

same error on Pro version

image