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

Workload installation failed: No space left on device #28962

Closed
swrast opened this issue Nov 9, 2022 · 6 comments
Closed

Workload installation failed: No space left on device #28962

swrast opened this issue Nov 9, 2022 · 6 comments
Labels
Area-Workloads untriaged Request triage from a team member
Milestone

Comments

@swrast
Copy link

swrast commented Nov 9, 2022

Describe the bug

$ doas dotnet workload install android

Skipping NuGet package signature verification.
Installing pack Microsoft.Android.Sdk.Linux version 32.0.476...
Writing workload pack installation record for Microsoft.Android.Sdk.net6 version 32.0.476...
Installing pack Microsoft.Android.Ref.31 version 32.0.476...
Writing workload pack installation record for Microsoft.Android.Ref.31 version 32.0.476...
Installing pack Microsoft.Android.Runtime.31.android-arm version 32.0.476...
Writing workload pack installation record for Microsoft.Android.Runtime.31.android-arm version 32.0.476...
Installing pack Microsoft.Android.Runtime.31.android-arm64 version 32.0.476...
Writing workload pack installation record for Microsoft.Android.Runtime.31.android-arm64 version 32.0.476...
Installing pack Microsoft.Android.Runtime.31.android-x86 version 32.0.476...
Writing workload pack installation record for Microsoft.Android.Runtime.31.android-x86 version 32.0.476...
Installing pack Microsoft.Android.Runtime.31.android-x64 version 32.0.476...
Writing workload pack installation record for Microsoft.Android.Runtime.31.android-x64 version 32.0.476...
Installing pack Microsoft.Android.Templates version 32.0.476...
Writing workload pack installation record for Microsoft.Android.Templates version 32.0.476...
Installing pack Microsoft.NETCore.App.Runtime.Mono.android-arm version 6.0.11...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.net6.android-arm version 6.0.11...
Installing pack Microsoft.NETCore.App.Runtime.Mono.android-arm64 version 6.0.11...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.net6.android-arm64 version 6.0.11...
Installing pack Microsoft.NETCore.App.Runtime.Mono.android-x64 version 6.0.11...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.net6.android-x64 version 6.0.11...
Installing pack Microsoft.NETCore.App.Runtime.Mono.android-x86 version 6.0.11...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.net6.android-x86 version 6.0.11...
Installing pack Microsoft.NET.Runtime.MonoAOTCompiler.Task version 6.0.11...
Writing workload pack installation record for Microsoft.NET.Runtime.MonoAOTCompiler.Task.net6 version 6.0.11...
Installing pack Microsoft.NET.Runtime.MonoTargets.Sdk version 6.0.11...
Writing workload pack installation record for Microsoft.NET.Runtime.MonoTargets.Sdk.net6 version 6.0.11...
Installing pack Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-x86 version 6.0.11...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.AOT.Cross.net6.android-x86 version 6.0.11...
Installing pack Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-x64 version 6.0.11...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.AOT.Cross.net6.android-x64 version 6.0.11...
Installing pack Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-arm version 6.0.11...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.AOT.Cross.net6.android-arm version 6.0.11...
Installing pack Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-arm64 version 6.0.11...
Workload installation failed. Rolling back installed packs...
Rolling back pack Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-arm64 installation...
Rolling back pack Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-arm installation...
Uninstalling workload pack Microsoft.NETCore.App.Runtime.AOT.Cross.net6.android-arm version 6.0.11…
Rolling back pack Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-x64 installation...
Uninstalling workload pack Microsoft.NETCore.App.Runtime.AOT.Cross.net6.android-x64 version 6.0.11…
Rolling back pack Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-x86 installation...
Uninstalling workload pack Microsoft.NETCore.App.Runtime.AOT.Cross.net6.android-x86 version 6.0.11…
Rolling back pack Microsoft.NET.Runtime.MonoTargets.Sdk installation...
Uninstalling workload pack Microsoft.NET.Runtime.MonoTargets.Sdk.net6 version 6.0.11…
Rolling back pack Microsoft.NET.Runtime.MonoAOTCompiler.Task installation...
Uninstalling workload pack Microsoft.NET.Runtime.MonoAOTCompiler.Task.net6 version 6.0.11…
Rolling back pack Microsoft.NETCore.App.Runtime.Mono.android-x86 installation...
Uninstalling workload pack Microsoft.NETCore.App.Runtime.Mono.net6.android-x86 version 6.0.11…
Rolling back pack Microsoft.NETCore.App.Runtime.Mono.android-x64 installation...
Uninstalling workload pack Microsoft.NETCore.App.Runtime.Mono.net6.android-x64 version 6.0.11…
Rolling back pack Microsoft.NETCore.App.Runtime.Mono.android-arm64 installation...
Uninstalling workload pack Microsoft.NETCore.App.Runtime.Mono.net6.android-arm64 version 6.0.11…
Rolling back pack Microsoft.NETCore.App.Runtime.Mono.android-arm installation...
Uninstalling workload pack Microsoft.NETCore.App.Runtime.Mono.net6.android-arm version 6.0.11…
Rolling back pack Microsoft.Android.Templates installation...
Uninstalling workload pack Microsoft.Android.Templates version 32.0.476…
Rolling back pack Microsoft.Android.Runtime.31.android-x64 installation...
Uninstalling workload pack Microsoft.Android.Runtime.31.android-x64 version 32.0.476…
Rolling back pack Microsoft.Android.Runtime.31.android-x86 installation...
Uninstalling workload pack Microsoft.Android.Runtime.31.android-x86 version 32.0.476…
Rolling back pack Microsoft.Android.Runtime.31.android-arm64 installation...
Uninstalling workload pack Microsoft.Android.Runtime.31.android-arm64 version 32.0.476…
Rolling back pack Microsoft.Android.Runtime.31.android-arm installation...
Uninstalling workload pack Microsoft.Android.Runtime.31.android-arm version 32.0.476…
Rolling back pack Microsoft.Android.Ref.31 installation...
Uninstalling workload pack Microsoft.Android.Ref.31 version 32.0.476…
Rolling back pack Microsoft.Android.Sdk.Linux installation...
Uninstalling workload pack Microsoft.Android.Sdk.net6 version 32.0.476…
Workload installation failed: No space left on device

It says "no space left on device", but:

$ df -h /
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       239G   40G  198G  17% /

I've tried to set DOTNET_SKIP_FIRST_TIME_EXPERIENCE to true but it does not work either.

To Reproduce

$ doas dotnet workload install android

Exceptions (if any)

...

Further technical details

.NET SDK (reflecting any global.json):
 Version:   6.0.403
 Commit:    2bc18bf292

Runtime Environment:
 OS Name:     arch
 OS Version:  
 OS Platform: Linux
 RID:         arch-x64
 Base Path:   /home/meth/.dotnet/sdk/6.0.403/

global.json file:
  Not found

Host:
  Version:      6.0.11
  Architecture: x64
  Commit:       943474ca16

.NET SDKs installed:
  6.0.403 [/home/meth/.dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.11 [/home/meth/.dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.11 [/home/meth/.dotnet/shared/Microsoft.NETCore.App]

Download .NET:
  https://aka.ms/dotnet-download

Learn about .NET Runtimes and SDKs:
  https://aka.ms/dotnet/runtimes-sdk-info
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Workloads untriaged Request triage from a team member labels Nov 9, 2022
@marcpopMSFT
Copy link
Member

Do you have different partitions perhaps and one is running out of space? The workloads are >2GB so if you have a small partition configured (Which that command wouldn't show afaik), which could lead to this.

@marcpopMSFT marcpopMSFT added this to the Discussion milestone Nov 9, 2022
@swrast
Copy link
Author

swrast commented Nov 10, 2022

Do you have different partitions perhaps and one is running out of space? The workloads are >2GB so if you have a small partition configured (Which that command wouldn't show afaik), which could lead to this.

No, I have only one partition (/dev/sda1) which has a lot of free space (I don't think it could help, but it is btrfs with subvolumes for /, /home and /swap).

@KalleOlaviNiemitalo
Copy link

Could the error relate to some tmpfs? Anyway, it would be good to change the error message to show the path.

@anggape
Copy link

anggape commented Nov 10, 2022

i do have this issue aswell, my workaround is by passing --temp-dir argument when installing workload

dotnet workload install android --temp-dir ${HOME}/.temp

also i think you try to install workload on root user while your dotnet is intalled on user, my suggestion is try without doas

@swrast
Copy link
Author

swrast commented Nov 14, 2022

i do have this issue aswell, my workaround is by passing --temp-dir argument when installing workload

dotnet workload install android --temp-dir ${HOME}/.temp

also i think you try to install workload on root user while your dotnet is intalled on user, my suggestion is try without doas

Specifying --temp-dip helped, thanks!
Note: dotnet workload install asks for root access even while dotnet is installed in user home directory.

@swrast swrast closed this as completed Nov 14, 2022
@SupinePandora43
Copy link

Do you have different partitions perhaps and one is running out of space? The workloads are >2GB so if you have a small partition configured (Which that command wouldn't show afaik), which could lead to this.

Could you consider not using /tmp then? android workload installation (for both net6 and net7 because I can't disable that) that I spent a few hours on failed and now I have to download it all again 😠.

(my /tmp directory is limited to 2GB, no android-related folders were left in dotnet sdk root)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Workloads untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

5 participants