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

[Package Issue]: TechPowerUp.GPU-Z #128537

Closed
2 tasks done
axieum opened this issue Nov 29, 2023 · 9 comments
Closed
2 tasks done

[Package Issue]: TechPowerUp.GPU-Z #128537

axieum opened this issue Nov 29, 2023 · 9 comments
Labels
Help-Wanted This is a good candidate work item from the community. Issue-Bug It either shouldn't be doing this or needs an investigation. Package-Update This package needs to be updated
Milestone

Comments

@axieum
Copy link

axieum commented Nov 29, 2023

Please confirm these before moving forward

  • I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue

Installation issue.

Brief description of your issue

The TechPowerUp.GPU-Z package installer download URL is no longer valid.

Steps to reproduce

$ winget install --id TechPowerUp.GPU-Z
Found TechPowerUp GPU-Z [TechPowerUp.GPU-Z] Version 2.55.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://us2-dl.techpowerup.com/files/GPU-Z.2.55.0.exe
An unexpected error occurred while executing the command:
Download request status is not success.
0x80190194 : unknown error

Actual behavior

$ winget install --id TechPowerUp.GPU-Z
Found TechPowerUp GPU-Z [TechPowerUp.GPU-Z] Version 2.55.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://us2-dl.techpowerup.com/files/GPU-Z.2.55.0.exe
An unexpected error occurred while executing the command:
Download request status is not success.
0x80190194 : unknown error

Expected behavior

To download correctly from the actual download URL.

https://us1-dl.techpowerup.com/files/3UAXiZS...jCma6R9zA/170...67/GPU-Z.2.55.0.exe

Note, the URL parts (containing ...) appear to be unique to the download. So I wonder if it is even possible to get a predictable download URL now?

Environment

$ winget --info
Windows Package Manager v1.6.3133
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.1992
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.3133.0

Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled


### Screenshots and Logs

_No response_
@axieum axieum added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Nov 29, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage This work item needs to be triaged by a member of the core team. label Nov 29, 2023
@Dragon1573
Copy link
Contributor

Download URL presented in manifest files responses HTTP 404 Not Found.

image

The generated URL is got from a redirection by making a POST request of Server List. As winget.exe can only make GET request to download server and follow redirections, we might not able to fix this problem.

Screenshots

image

image

@stephengillie stephengillie added Help-Wanted This is a good candidate work item from the community. Package-Update This package needs to be updated and removed Needs-Triage This work item needs to be triaged by a member of the core team. labels Nov 29, 2023
@MagicAndre1981
Copy link

because 2.56 was released:

v2.56.0 (November 29th, 2023)
Added support to list and detect versions of NVIDIA Frame Generation and Ray Reconstruction DLLs in Advanced -> NVIDIA DLSS
Added "Open Folder" context-menu option in DLSS version scanner
Added sensor for NVIDIA Crossbar clock (default off)
Fixed Intel Arc BIOS version reporting
Fixed release date for Intel Arc A580
Added support for NVIDIA RTX 5000 Ada, RTX 4500 Ada, RTX 4000 Ada, new RTX 2050 Mobile variant, L40S, H800 PCIe
Added support for AMD Radeon RX 7900GRE, RX 6750 GRE, Pro W7700, Pro V620 MxGPU
Added support for Intel Arc A570M, A530M, GPU Flex 170

@Dragon1573
Copy link
Contributor

Because v2.56.0 was released.

NO, this is NOT the reason.

Including latest v2.56.0, all releases are using dynamic, encrypted, auto-generated download URL. This is not a static vanity URL which always point to the latest version.

@mdanish-kh
Copy link
Contributor

The download works fine for me using winget install TechPowerUp.GPU-Z.

image

https://us2-dl.techpowerup.com/files/GPU-Z.2.55.0.exe returning 404 in the browser is not a bug. It is expected behavior since the developer only allows usage of these static URLs through popular package managers to prevent hotlinking. See #70469 (comment)

@mdanish-kh
Copy link
Contributor

As for the author facing this issue through installing with WinGet, it may be possible that the URL is blocked in your region / the mirror us2 is not working for you.

Can you check whether another mirror works for you? I'll add the steps below to check this

  1. Clone the winget-pkgs repository (git clone https://github.com/microsoft/winget-pkgs)
  2. Navigate to TechPowerUp.GPU-Z version 2.55.0 directory (cd manifests/t/TechPowerUp/GPU-Z/2.55.0)
  3. Inside the installer file (TechPowerUp.GPU-Z.installer.yaml), change InstallerUrl from the us2 mirror to https://us1-dl.techpowerup.com/files/GPU-Z.2.55.0.exe
  4. Install the manifest locally with winget install --manifest <path_to_manifest_folder> i.e., winget install --manifest manifests/t/TechPowerUp/GPU-Z/2.55.0 (you will need to enable installing local manifest files setting if not enabled, winget will prompt and show you the command for if it's disabled)

See if this URL works and installs the package for you

@Dragon1573
Copy link
Contributor

Manual validated first 6 server of GPU-Z. All of them are valid and no errors during downloading.

image

Console logs
D:\Workloads\winget-pkgs [master ≡ +0 ~1 -0 !]> winget download -m .\manifests\t\TechPowerUp\GPU-Z\2.55.0\
已找到 TechPowerUp GPU-Z [TechPowerUp.GPU-Z] 版本 2.55.0
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
正在下载 https://sg1-dl.techpowerup.com/files/GPU-Z.2.55.0.exe
  ██████████████████████████████  9.06 MB / 9.06 MB
已成功验证安装程序哈希
已下载安装程序: D:\Dragon1573\Downloads\TechPowerUp.GPU-Z_2.55.0\TechPowerUp GPU-Z_2.55.0_Machine_X86_exe_en-US.exe
D:\Workloads\winget-pkgs [master ≡ +0 ~1 -0 !]> sed.exe -i 's/sg1/us3/' .\manifests\t\TechPowerUp\GPU-Z\2.55.0\TechPowerUp.GPU-Z.installer.yaml
D:\Workloads\winget-pkgs [master ≡ +0 ~1 -0 !]> winget download -m .\manifests\t\TechPowerUp\GPU-Z\2.55.0\
已找到 TechPowerUp GPU-Z [TechPowerUp.GPU-Z] 版本 2.55.0
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
正在下载 https://us3-dl.techpowerup.com/files/GPU-Z.2.55.0.exe
  ██████████████████████████████  9.06 MB / 9.06 MB
已成功验证安装程序哈希
已下载安装程序: D:\Dragon1573\Downloads\TechPowerUp.GPU-Z_2.55.0\TechPowerUp GPU-Z_2.55.0_Machine_X86_exe_en-US.exe
D:\Workloads\winget-pkgs [master ≡ +0 ~1 -0 !]> sed.exe -i 's/us3/de1/' .\manifests\t\TechPowerUp\GPU-Z\2.55.0\TechPowerUp.GPU-Z.installer.yaml
D:\Workloads\winget-pkgs [master ≡ +0 ~1 -0 !]> winget download -m .\manifests\t\TechPowerUp\GPU-Z\2.55.0\
已找到 TechPowerUp GPU-Z [TechPowerUp.GPU-Z] 版本 2.55.0
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
正在下载 https://de1-dl.techpowerup.com/files/GPU-Z.2.55.0.exe
  ██████████████████████████████  9.06 MB / 9.06 MB
已成功验证安装程序哈希
已下载安装程序: D:\Dragon1573\Downloads\TechPowerUp.GPU-Z_2.55.0\TechPowerUp GPU-Z_2.55.0_Machine_X86_exe_en-US.exe
D:\Workloads\winget-pkgs [master ≡ +0 ~1 -0 !]> sed.exe -i 's/de1/nl2/' .\manifests\t\TechPowerUp\GPU-Z\2.55.0\TechPowerUp.GPU-Z.installer.yaml
D:\Workloads\winget-pkgs [master ≡ +0 ~1 -0 !]> winget download -m .\manifests\t\TechPowerUp\GPU-Z\2.55.0\
已找到 TechPowerUp GPU-Z [TechPowerUp.GPU-Z] 版本 2.55.0
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
正在下载 https://nl2-dl.techpowerup.com/files/GPU-Z.2.55.0.exe
  ██████████████████████████████  9.06 MB / 9.06 MB
已成功验证安装程序哈希
已下载安装程序: D:\Dragon1573\Downloads\TechPowerUp.GPU-Z_2.55.0\TechPowerUp GPU-Z_2.55.0_Machine_X86_exe_en-US.exe
D:\Workloads\winget-pkgs [master ≡ +0 ~1 -0 !]> sed.exe -i 's/nl2/uk1/' .\manifests\t\TechPowerUp\GPU-Z\2.55.0\TechPowerUp.GPU-Z.installer.yaml
D:\Workloads\winget-pkgs [master ≡ +0 ~1 -0 !]> winget download -m .\manifests\t\TechPowerUp\GPU-Z\2.55.0\
已找到 TechPowerUp GPU-Z [TechPowerUp.GPU-Z] 版本 2.55.0
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
正在下载 https://uk1-dl.techpowerup.com/files/GPU-Z.2.55.0.exe
  ██████████████████████████████  9.06 MB / 9.06 MB
已成功验证安装程序哈希
已下载安装程序: D:\Dragon1573\Downloads\TechPowerUp.GPU-Z_2.55.0\TechPowerUp GPU-Z_2.55.0_Machine_X86_exe_en-US.exe
D:\Workloads\winget-pkgs [master ≡ +0 ~1 -0 !]> sed.exe -i 's/uk1/us7/' .\manifests\t\TechPowerUp\GPU-Z\2.55.0\TechPowerUp.GPU-Z.installer.yaml
D:\Workloads\winget-pkgs [master ≡ +0 ~1 -0 !]> winget download -m .\manifests\t\TechPowerUp\GPU-Z\2.55.0\
已找到 TechPowerUp GPU-Z [TechPowerUp.GPU-Z] 版本 2.55.0
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
正在下载 https://us7-dl.techpowerup.com/files/GPU-Z.2.55.0.exe
  ██████████████████████████████  9.06 MB / 9.06 MB
已成功验证安装程序哈希
已下载安装程序: D:\Dragon1573\Downloads\TechPowerUp.GPU-Z_2.55.0\TechPowerUp GPU-Z_2.55.0_Machine_X86_exe_en-US.exe

@axieum
Copy link
Author

axieum commented Dec 1, 2023

It appears that us2-dl.techpowerup.com is back up and working for me again now.

@BrandonWanHuanSheng
Copy link
Contributor

I already know all the server seem online. It seem i don't know which id belong to those mirror.
19.log
12.log
8.log
4.log
11.log
5.log
16.log
20.log
14.log
15.log

@mdanish-kh
Copy link
Contributor

Close with reason: Issue now resolved, seemed to be a temporary server issue;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help-Wanted This is a good candidate work item from the community. Issue-Bug It either shouldn't be doing this or needs an investigation. Package-Update This package needs to be updated
Projects
None yet
Development

No branches or pull requests

7 participants