OSDeploy / OSD

OSD Shared Functions
MIT License
156 stars 63 forks source link

"There is not enough space..." Install Module call #73

Closed AkosBakos closed 1 year ago

AkosBakos commented 1 year ago

If I start the OSDCloud with this call: Install-Module OSD -Force

Having this error message:

1

At the end of the WinPE are coming these warning:

2

This VM has 40GB SSD + 8GB RAM.

mmeierm commented 1 year ago

Same issue here on Hyper-V and also on a Lenovo ThinkPad T590 (1TB SSD and 16 GB RAM). It looks to me like the WinPE Ramdisk (X:) gets filled up to much during the "Savig PowerShell Modules" part:

before and after this step, I have around 300mb free: grafik

during less than 50mb from what i see: grafik

AkosBakos commented 1 year ago

Great input @mmeierm and very useful screenshots

mmeierm commented 1 year ago

From what I can see, the Install-Module OSD -Force cmdlet seems to download the nupkg File to X:\Windows\Temp (~88MB) and then extract it to a random named folder with around 166MB before it failed as the RAMDisk is full, so far not unexpected.

grafik

It looks to me like the current version contians a pretty large ".git" Folder, that makes the whole package nearly double the size as older ones

grafik

grafik

OSDeploy commented 1 year ago

You guys rock. I'm not sure what the problem is as my publish script hasn't changed, but things should be working now. Thanks Akos for pinging me about the issue

image

AkosBakos commented 1 year ago

No more issue on my site: 1

2

@mmeierm how does it look on your site?

mmeierm commented 1 year ago

Works like a charm :)

grafik

Thank you so much for the quick fix and this wonderful project

AkosBakos commented 1 year ago

Issue fix by @OSDeploy - many thanks