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

AccessDeniedAccess denied.Anonymous caller does not have storage.objects.list #101

Open
oloflarsson opened this issue Dec 31, 2022 · 1 comment

Comments

@oloflarsson
Copy link

Screenshot 2022-12-31 at 09 43 39


Loading...
invoke-webrequest : AccessDeniedAccess denied.Anonymous caller does not have storage.objects.list access to the Google
Cloud Storage bucket. Permission 'storage.objects.list' denied on resource (or it may not exist).
At C:\ProgramData\ParsecLoader\GPUUpdaterTool.ps1:264 char:38
+ ... ver =([xml](invoke-webrequest -uri https://storage.googleapis.com/nvi ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
You cannot call a method on a null-valued expression.
At C:\ProgramData\ParsecLoader\GPUUpdaterTool.ps1:265 char:9
+         $googlestoragedriver.split('/')[2].split('_')[0]
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

This GPU (NVIDIA Tesla T4) requires a private driver downloaded from the Google Support Site
invoke-webrequest : AccessDeniedAccess denied.Anonymous caller does not have storage.objects.list access to the Google
Cloud Storage bucket. Permission 'storage.objects.list' denied on resource (or it may not exist).
At C:\ProgramData\ParsecLoader\GPUUpdaterTool.ps1:264 char:38
+ ... ver =([xml](invoke-webrequest -uri https://storage.googleapis.com/nvi ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
You cannot call a method on a null-valued expression.
At C:\ProgramData\ParsecLoader\GPUUpdaterTool.ps1:265 char:9
+         $googlestoragedriver.split('/')[2].split('_')[0]
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
@oloflarsson
Copy link
Author

I did some digging and it seems that this is the line triggering the error:

$googlestoragedriver =([xml](invoke-webrequest -uri https://storage.googleapis.com/nvidia-drivers-us-public).content).listbucketresult.contents.key  -like  "*GRID1*server2016*.exe" | select -Last 1

Maybe they removed the possibility to list this google storage bucket? Opening the url https://storage.googleapis.com/nvidia-drivers-us-public manually in the browser indicates that's the case.

Looking here provides some insight: https://cloud.google.com/compute/docs/gpus/grid-drivers-table#windows_drivers

It seems that this is the latest version with server2016 support: https://storage.googleapis.com/nvidia-drivers-us-public/GRID/vGPU14.1/512.78_grid_win10_win11_server2016_server2019_server2022_64bit_international.exe

So we could just hardcode to that url? It would be the result of -like "*GRID1*server2016*.exe" | select -Last 1 anyways, am I right?

But at the same time it seems sad to hardcode like that. If the user is on a more recent version like server2019 they could benefit from more recent drivers?

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

No branches or pull requests

1 participant