-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[NETE2ESDK] With .NET 8 RC2 SDK pkg/deb/rpm installed, "An issue was encountered verifying workloads. For more information, run "dotnet workload update"." displayed when running the first dotnet command. #35128
Comments
What happens if you run /cc @MiYanni |
@WenJunJi01 Can you run |
@dsplaisted @MiYanni Hi all, the details are as follows: |
So, I didn't realize until I looked at your original image again that the first command you ran after install was Instead of the warning message you saw, you should see a For the new screenshot, you're running |
@MiYanni Here is detail output. It doesn't show the actual error. |
@dsplaisted So, looking at the log posted, the first command does not use |
I got to reproduce the error on a Docker image. Here are the steps: docker run --rm -ti --user 1000:1000 mcr.microsoft.com/dotnet/sdk:8.0-alpine
export HOME=/tmp/user && mkdir $HOME
dotnet workload update
# outputs:
# An issue was encountered verifying workloads. For more information, run "dotnet workload update".
# Inadequate permissions. Run the command with elevated privileges. Second run of This is an issue because I'm trying to run This is also with rc2, latest image. |
@MiYanni bringing this back up as it appears the first run upgrade path has some issues in some situations. |
@dsplaisted Do you think this issue is the same/similar situation to the one you just mentioned here? #35912 (comment) |
No, I don't think it's exactly the same. But I think it may be a permissions thing... when installed via a deb/rpm package, a normal .NET command won't have permission to update workload manifests. Does it check for this at all? Probably on Linux we should detect if we don't have the right permissions, and skip the automatic update in that case. |
The check just runs the same logic we have when running a workload update. I don't remember seeing any kind of permission check in that logic. If |
I'm here because I'm seeing this behavior in Linux with 8.0.201 |
Is there a workaround for this yet? |
Triage: This is a non-blocking message that typically means sudo is needed to install the workloads. We should probably detect we're in a state where we don't have access to install workloads and potentially provide a better message (or at least suppress this message) as it's causing confusion |
Just saw this on Ubuntu 22.04.4 LTS for the first time. |
This issue also repro's on 10.0.100-alpha.1.24568.6 |
This issue occurs when running in the container with a user other than root. This is seen primarily when performing builds on the CI server. I'm just building, so I could run as root, but then because the host is not running as root, I end up with build output files (e.g., test code coverage results) that the host user cannot delete; net result is that the next pipeline run ends up dead in the water (and much confusion ensues). Guidance on how to work around this would be appreciated. |
This issue also repro's on 10.0.100-preview.3.25153.9(runtime-10.0.0-preview.3.25152.4) |
Repro steps:
(pkg on Mac OS, deb/rmp on Linux)
Expected:
It should execute successfully with no errors or warnings.
Actual result:


The following error displayed, "An issue was encountered verifying workloads. For more information, run "dotnet workload update"."
Mac OS:
Linux:
Note:
dotnet --info:
.NET SDK:
Version: 8.0.100-rc.2.23451.1
Commit: dabc29073d
Runtime Environment:
OS Name: Mac OS X
OS Version: 14.0
OS Platform: Darwin
RID: osx-x64
Base Path: /usr/local/share/dotnet/sdk/8.0.100-rc.2.23451.1/
.NET workloads installed:
[wasm-tools]
Installation Source: SDK 8.0.100-rc.2
Manifest Version: 8.0.0-rc.2.23431.9/8.0.100-rc.2
Manifest Path: /usr/local/share/dotnet/sdk-manifests/8.0.100-rc.2/microsoft.net.workload.mono.toolchain.current/8.0.0-rc.2.23431.9/WorkloadManifest.json
Install Type: FileBased
Host:
Version: 8.0.0-rc.2.23431.9
Architecture: x64
Commit: 3c48925a6c
RID: osx-x64
.NET SDKs installed:
8.0.100-rc.2.23451.1 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.0-rc.2.23431.20 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.0-rc.2.23431.9 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
The text was updated successfully, but these errors were encountered: