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

Unexpected installation failure due to low available space on Windows main drive #315

Open
2 tasks done
hgroover opened this issue Oct 4, 2024 · 3 comments
Open
2 tasks done

Comments

@hgroover
Copy link

hgroover commented Oct 4, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

This was a slightly puzzling issue I encountered installing 1.0 rc2 on Windows 10 Pro, on a Xeon machine. I had under 1gb free on my C drive before downloading the installer to the default Downloads folder (which further reduced available space on C: to around 500mb).

I selected a folder on my additional drive (F:) and extraction started up to a certain point, where it failed with an error writing some file (on two separate attempts these were different files). I rebooted before the second attempt because after two failures I could not start the installer - it complained of failing an integrity check. I also compared the sha256 hash and it matched the expected one provided in the artifact download folder.

After freeing up some gigabytes on the C drive I attempted installation again (still installing to F: where I have over 500gb free) and it succeeded. My speculation is that there is some function in un-archiving and extracting files that uses temp space, and that got exhausted in doing the full install, causing the failure.

This is not an actual defect in the installer (PEBKAC) but in retrospect it was an issue I should have thought to address. Uninstalling my two-versions-ago previous and three-versions-ago previous Freecad versions freed up quite a bit of space. Perhaps a cautionary note that the Windows default drive should also have a minimum 2gb free space (or something) would be helpful.

Failed installation (from a second attempt) attached.
install-failure1.log

Full version info

OS: Windows 10 build 19045
Word size of FreeCAD: 64-bit
Version: 1.0.0RC2.38806 (Git)
Build type: Release
Branch: (HEAD detached at 1.0rc2)
Hash: 3d63fc6c2f665a8d5e6468845a419bcac80756c7
Python 3.11.9, Qt 5.15.13, Coin 4.0.3, Vtk 9.2.6, OCC 7.7.2
Locale: English/United States (en_US)
Stylesheet/Theme/QtStyle: unset/unset/Qt default
Installed mods: 
  * A2plus 0.4.65

Subproject(s) affected?

Other (specify in description)

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@maxwxyz maxwxyz transferred this issue from FreeCAD/FreeCAD Oct 4, 2024
@luzpaz
Copy link
Collaborator

luzpaz commented Oct 17, 2024

Any proposal to avoid this usecase ?

@oursland
Copy link
Collaborator

It definitely appears in the logfile that the C: drive is being used for temporary storage.

It looks like the provided artifact is a .7z archive. Am I correct in understanding that this log is generated by the extracting program such as 7zip?

@adrianinsaval
Copy link
Member

It definitely appears in the logfile that the C: drive is being used for temporary storage.

It looks like the provided artifact is a .7z archive. Am I correct in understanding that this log is generated by the extracting program such as 7zip?

the installer is an .exe generated using nsis and it is configure to use lzma compression, nsis might be using 7z as their backend for compression I don't know for sure.

there aren't many references to C:\ in the log, it looks like nsis is putting a few files it needs itself on the TEMP directory (and I doubt these take 500mb) but the rest seem to be getting extracted to F:\ correctly

File: overwriteflag=0, allowskipfilesflag=2, name="icuin.dll"
File: wrote -2 to "F:\progs\Freecad 1.0\bin\icuin.dll"
Extract: error writing to file icuin.dll
Delete: DeleteFile("C:\Users\henry\AppData\Local\Temp\nsk9B2A.tmp\Banner.dll")
Delete: DeleteFile("C:\Users\henry\AppData\Local\Temp\nsk9B2A.tmp\modern-header.bmp")
Delete: DeleteFile("C:\Users\henry\AppData\Local\Temp\nsk9B2A.tmp\modern-wizard.bmp")
Delete: DeleteFile("C:\Users\henry\AppData\Local\Temp\nsk9B2A.tmp\nsDialogs.dll")
Delete: DeleteFile("C:\Users\henry\AppData\Local\Temp\nsk9B2A.tmp\nsProcess.dll")
Delete: DeleteFile("C:\Users\henry\AppData\Local\Temp\nsk9B2A.tmp\StartMenu.dll")
Delete: DeleteFile("C:\Users\henry\AppData\Local\Temp\nsk9B2A.tmp\System.dll")
Delete: DeleteFile("C:\Users\henry\AppData\Local\Temp\nsk9B2A.tmp\UserInfo.dll")
RMDir: RemoveDirectory("C:\Users\henry\AppData\Local\Temp\nsk9B2A.tmp\")
logging set to 1
Call: 17920
SetFlag: 13=6

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

4 participants