Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Path too long exception on Windows install #5109

Closed
johndrummond opened this issue Jan 16, 2015 · 75 comments · Fixed by #5175
Closed

Path too long exception on Windows install #5109

johndrummond opened this issue Jan 16, 2015 · 75 comments · Fixed by #5175
Assignees
Labels
atom bug installer windows Issues that occur on Windows but not on other platforms.

Comments

@johndrummond
Copy link

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()

@50Wliu
Copy link
Contributor

50Wliu commented Jan 16, 2015

Refs #4583 (comment).

@50Wliu 50Wliu added bug windows Issues that occur on Windows but not on other platforms. labels Jan 16, 2015
@kevinsawicki kevinsawicki changed the title Installation on Windows 7 Path too long errors on Windows install Jan 16, 2015
@kevinsawicki kevinsawicki changed the title Path too long errors on Windows install Path too long exception on Windows install Jan 16, 2015
@avarabei
Copy link

Same issue on my machine Windows 8.1 x64

@aesweeting
Copy link

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
Copy link

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.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()

@irobayna
Copy link

Same issue on Windows 7 Enterprise x64

@CameronAM
Copy link

I'm hitting this as well - only work around is to install an older version.

Program: Starting Squirrel Updater: --install . --silent
Program: Starting install, writing to C:\Users\cameron.morrison\AppData\Local\SquirrelTemp
CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.FileNotFoundException: Could not find file 'C:\Users\cameron.morrison\AppData\Local\atom\packages\RELEASES'.
File name: 'C:\Users\cameron.morrison\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.<CheckForUpdate>d__28.MoveNext()
Utility: Starting to delete folder: C:\Users\cameron.morrison\AppData\Local\atom\packages
CheckForUpdateImpl: Reading RELEASES file from C:\Users\cameron.morrison\AppData\Local\SquirrelTemp
CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
ApplyReleasesImpl: Found partially applied release folder, killing it: C:\Users\cameron.morrison\AppData\Local\atom\app-0.174.0
Utility: Starting to delete folder: C:\Users\cameron.morrison\AppData\Local\atom\app-0.174.0
Utility: Starting to delete folder: C:\Users\cameron.morrison\AppData\Local\atom\app-0.174.0\locales
Utility: Starting to delete folder: C:\Users\cameron.morrison\AppData\Local\atom\app-0.174.0\resources
Utility: Starting to delete folder: C:\Users\cameron.morrison\AppData\Local\atom\app-0.174.0\resources\app
Utility: Starting to delete folder: C:\Users\cameron.morrison\AppData\Local\atom\app-0.174.0\resources\app\apm
Utility: Starting to delete folder: C:\Users\cameron.morrison\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules
Utility: Starting to delete folder: C:\Users\cameron.morrison\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\.bin
Utility: Starting to delete folder: C:\Users\cameron.morrison\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager
Utility: Starting to delete folder: C:\Users\cameron.morrison\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\bin
Utility: Starting to delete folder: C:\Users\cameron.morrison\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\lib
Utility: Starting to delete folder: C:\Users\cameron.morrison\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\native-module
Utility: Starting to delete folder: C:\Users\cameron.morrison\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\cameron.morrison\AppData\Local\atom\app-0.174.0\resources\app\apm\node_modules\atom-package-manager\node_modules
Utility: Starting to delete folder: C:\Users\cameron.morrison\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\cameron.morrison\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\cameron.morrison\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\cameron.morrison\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\cameron.morrison\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\cameron.morrison\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\cameron.morrison\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\cameron.morrison\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\cameron.morrison\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\cameron.morrison\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\cameron.morrison\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\cameron.morrison\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\cameron.morrison\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\cameron.morrison\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\cameron.morrison\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\cameron.morrison\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\cameron.morrison\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\cameron.morrison\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\cameron.morrison\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\cameron.morrison\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\cameron.morrison\AppData\Local\atom\app-0.174.0
IEnableLogger: Failed to write file: C:\Users\cameron.morrison\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.<copyFileToLocation>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.<copyFileToLocation>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.<installPackageToAppDir>b__80(IPackageFile x)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass84.<installPackageToAppDir>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.<installPackageToAppDir>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.<LogIfThrows>d__4b`1.MoveNext()

@50Wliu
Copy link
Contributor

50Wliu commented Jan 20, 2015

This should be fixed once #5175 is released-there is no need to add additional logs.

@aesweeting
Copy link

Thanks @50Wliu for the confirmation.
Any idea when the next build containing the fix from #5175 will be released?
I see it's only 12 hours old but I'm unsure on the release cycle Atom follows

@50Wliu
Copy link
Contributor

50Wliu commented Jan 21, 2015

Once it gets merged, you'll be able to get the fix if you build Atom youself. Otherwise, it'll be in the next release after it gets merged (probably by 0.177.0).

@avarabei
Copy link

It works great now in version 0.175.0. Thanks guys!

@zephraph
Copy link

I'm seeing this issue again with 0.176.0. Can anyone confirm?

@kevinsawicki
Copy link
Contributor

@zephraph what is the path it is complaining about?

@johndrummond
Copy link
Author

Worked for me:
I had 175. It worked. I used the Help|Check for update
then install.
that all worked. Windows 7 and now running Atom 0.176.0
I agree that's not the same as installing from scratch..

@zephraph
Copy link

I've included the relevant part of the log below.

I suspect it's not Atom's installer but rather my company's antivirus that's messing things up. I wouldn't open this up again unless more people report the same issue.

ApplyReleasesImpl: Writing files to app directory: C:\Users\windows-user\AppData\Local\atom\app-0.176.0
IEnableLogger: Failed to write file: C:\Users\windows-user\AppData\Local\atom\app-0.176.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.<copyFileToLocation>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.<copyFileToLocation>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.<installPackageToAppDir>b__80(IPackageFile x)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass84.<installPackageToAppDir>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.<installPackageToAppDir>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.<LogIfThrows>d__4b`1.MoveNext()

@charlie-wasp
Copy link

@zephraph I have run into the same issue just today

@HaykoKoryun
Copy link

Just downloaded the Windows Installer and I get the same error:

Program: Starting Squirrel Updater: --install .
Program: Starting install, writing to C:\Users\hayko.koryun.TUMO\AppData\Local\SquirrelTemp
CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.FileNotFoundException: Could not find file 'C:\Users\hayko.koryun.TUMO\AppData\Local\atom\packages\RELEASES'.
File name: 'C:\Users\hayko.koryun.TUMO\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.<CheckForUpdate>d__28.MoveNext()
Utility: Starting to delete folder: C:\Users\hayko.koryun.TUMO\AppData\Local\atom\packages
CheckForUpdateImpl: Reading RELEASES file from C:\Users\hayko.koryun.TUMO\AppData\Local\SquirrelTemp
CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
ApplyReleasesImpl: Found partially applied release folder, killing it: C:\Users\hayko.koryun.TUMO\AppData\Local\atom\app-0.176.0
Utility: Starting to delete folder: C:\Users\hayko.koryun.TUMO\AppData\Local\atom\app-0.176.0
...
...
...
ApplyReleasesImpl: Writing files to app directory: C:\Users\hayko.koryun.TUMO\AppData\Local\atom\app-0.176.0
IEnableLogger: Failed to write file: C:\Users\hayko.koryun.TUMO\AppData\Local\atom\app-0.176.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.<copyFileToLocation>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.<copyFileToLocation>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.<installPackageToAppDir>b__80(IPackageFile x)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass84.<installPackageToAppDir>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.<installPackageToAppDir>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.<LogIfThrows>d__4b`1.MoveNext()

@gliviu
Copy link

gliviu commented Feb 3, 2016

One way around this is to use atom-windows.zip distribution from https://github.com/atom/atom/releases.

@anaisbetts
Copy link
Contributor

Atom needs to move to npm 3.0 and this will go away.

@allysonsouza
Copy link

For now, I'm using atom-windows.zip, thanks @gliviu

@gordcurrie
Copy link

Still an issue, solved using steps given by @Indomitable above.
#5109 (comment)

@50Wliu
Copy link
Contributor

50Wliu commented Jun 3, 2016

Atom needs to move to npm 3.0 and this will go away.

Done!

(edit: reopening until Atom is running the updated apm version)

@parashar1505-yahoo
Copy link

at last!

@emileber
Copy link

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.

@ghost
Copy link

ghost commented Oct 22, 2016

Install is also failing for me. Win 10 / Atom 1.11.2 / exe installer. Any chance to reopen this issue so I don't have to hack the install? Thanks.

If it helps diagnose this, my user name is 30 chars long - a local account on a domain-joined machine, so the account name includes the machine name.

2016-10-22 17:12:31> ApplyReleasesImpl: Writing files to app directory: C:\Users\------------------------------\AppData\Local\atom\app-1.11.2 2016-10-22 17:12:48> 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.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)

@sils
Copy link

sils commented 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
Copy link

lock bot commented 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!

@lock lock bot locked and limited conversation to collaborators Mar 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
atom bug installer windows Issues that occur on Windows but not on other platforms.
Projects
None yet
Development

Successfully merging a pull request may close this issue.