Repository navigation
Path too long exception on Windows install #5109
Description
I download AtomSetup.exe
I run it as an administrator
I agree there are probably curious permission setups and my user directory is mapped to a central server.
I get no choices where to install from the installer.
Other applications have worked
I get the error dialog. Here's the log.
I can't alter where it tries to install, nor am I clear why the install path is too long.
Chocolatey didn't install 174.1 either - there's clearly something pathological in my setup.
Any chance of being able to configure where it installs to and from?
============SquirrelSetup.log============
Program: Starting Squirrel Updater: --install .
Program: Starting install, writing to C:\Users\john.drummond\AppData\Local\SquirrelTemp
CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\john.drummond\AppData\Local\atom\packages\RELEASES'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Squirrel.Utility.LoadLocalReleases(String localReleaseFile)
at Squirrel.UpdateManager.CheckForUpdateImpl.d__28.MoveNext()
CheckForUpdateImpl: Reading RELEASES file from C:\Users\john.drummond\AppData\Local\SquirrelTemp
CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
ApplyReleasesImpl: Writing files to app directory: C:\Users\john.drummond\AppData\Local\atom\app-0.174.0
IEnableLogger: Failed to write file: C:\Users\john.drummond\AppData\Local\atom\app-0.174.0: System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
at System.IO.PathHelper.GetFullPathName()
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at NuGet.PhysicalPackageFile.GetStream()
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass8b.b__8a()
at Squirrel.Utility.LogIfThrows(IFullLogger This, LogLevel level, String message, Action block)
IEnableLogger: Failed to install package to app dir: System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
at System.IO.PathHelper.GetFullPathName()
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at NuGet.PhysicalPackageFile.GetStream()
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass8b.b__8a()
at Squirrel.Utility.LogIfThrows(IFullLogger This, LogLevel level, String message, Action block)
at Squirrel.UpdateManager.ApplyReleasesImpl.copyFileToLocation(FileSystemInfo target, IPackageFile x)
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass84.b__80(IPackageFile x)
at System.Collections.Generic.List1.ForEach(Action1 action)
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass84.b__7f()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.UpdateManager.ApplyReleasesImpl.d__86.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.Utility.d__4b`1.MoveNext()
Activity
winstliu commentedon Jan 16, 2015
Refs #4583 (comment).
[-]Installation on Windows 7 [/-][+]Path too long errors on Windows install[/+][-]Path too long errors on Windows install[/-][+]Path too long exception on Windows install[/+]avarabei commentedon Jan 17, 2015
Same issue on my machine Windows 8.1 x64
aesweeting commentedon Jan 18, 2015
I also get this issue.
The install ran fine on my personal Windows 8.1 x64 machine, but my work Windows 7 machine failed with the same errors.
srujalsk commentedon Jan 18, 2015
I am too facing the same issue when installing Atom:
Program: Starting Squirrel Updater: --install .
Program: Starting install, writing to C:\Users\Srujal Kachhela\AppData\Local\SquirrelTemp
CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.FileNotFoundException: Could not find file 'C:\Users\Srujal Kachhela\AppData\Local\atom\packages\RELEASES'.
File name: 'C:\Users\Srujal Kachhela\AppData\Local\atom\packages\RELEASES'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Squirrel.Utility.LoadLocalReleases(String localReleaseFile)
at Squirrel.UpdateManager.CheckForUpdateImpl.d__28.MoveNext()
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\packages
CheckForUpdateImpl: Reading RELEASES file from C:\Users\Srujal Kachhela\AppData\Local\SquirrelTemp
CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
ApplyReleasesImpl: Found partially applied release folder, killing it: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\locales
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules.bin
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\bin
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\lib
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\native-module
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\native-module\src
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules.bin
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\async
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\async\lib
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\colors
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\colors\themes
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\exit
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\exit\lib
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\first-mate
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\first-mate\lib
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\first-mate\node_modules
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\first-mate\node_modules\emissary
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\first-mate\node_modules\emissary\lib
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\first-mate\node_modules\emissary\node_modules
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\first-mate\node_modules\emissary\node_modules\harmony-collections
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\first-mate\node_modules\emissary\node_modules\mixto
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\first-mate\node_modules\emissary\node_modules\mixto\lib
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\first-mate\node_modules\emissary\node_modules\property-accessors
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\first-mate\node_modules\emissary\node_modules\property-accessors\lib
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\first-mate\node_modules\emissary\node_modules\property-accessors\node_modules
Utility: Starting to delete folder: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules\first-mate\node_modules\emissary\node_modules\property-accessors\node_modules\harmony-collections
ApplyReleasesImpl: Writing files to app directory: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0
IEnableLogger: Failed to write file: C:\Users\Srujal Kachhela\AppData\Local\atom\app-0.174.0: System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
at System.IO.PathHelper.GetFullPathName()
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at NuGet.PhysicalPackageFile.GetStream()
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass8b.b__8a()
at Squirrel.Utility.LogIfThrows(IFullLogger This, LogLevel level, String message, Action block)
IEnableLogger: Failed to install package to app dir: System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
at System.IO.PathHelper.GetFullPathName()
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at NuGet.PhysicalPackageFile.GetStream()
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass8b.b__8a()
at Squirrel.Utility.LogIfThrows(IFullLogger This, LogLevel level, String message, Action block)
at Squirrel.UpdateManager.ApplyReleasesImpl.copyFileToLocation(FileSystemInfo target, IPackageFile x)
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass84.b__80(IPackageFile x)
at System.Collections.Generic.List
1.ForEach(Action1 action)at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass84.b__7f()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.UpdateManager.ApplyReleasesImpl.d__86.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.Utility.d__4b`1.MoveNext()
irobayna commentedon Jan 18, 2015
Same issue on Windows 7 Enterprise x64
66 remaining items
gliviu commentedon Feb 3, 2016
One way around this is to use atom-windows.zip distribution from https://github.com/atom/atom/releases.
anaisbetts commentedon Feb 3, 2016
Atom needs to move to npm 3.0 and this will go away.
allysonsouza commentedon Feb 12, 2016
For now, I'm using atom-windows.zip, thanks @gliviu
gordcurrie commentedon Apr 6, 2016
Still an issue, solved using steps given by @Indomitable above.
#5109 (comment)
winstliu commentedon Jun 3, 2016
Done!
(edit: reopening until Atom is running the updated apm version)
parashar1505-yahoo commentedon Sep 15, 2016
at last!
emileber commentedon Sep 28, 2016
Out of the box, the executable fails for me with the same error about long paths. I was using the portable version (zip) until now, but found the "extract the exe and run
Update.exe --install=." technique in this issue and it worked.sils commentedon Aug 28, 2017
Hi, although this is closed in case it helps anyone: we're experimenting with issue duplication detection algorithms and found that the following are (along with #10117 which is already logged duplicate) duplicates of this issue as well:
lock commentedon Mar 31, 2018
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!