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

Path too long exception on Windows install #5109

Closed

Description

@johndrummond

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

  1. winstliu commented on Jan 16, 2015

    @winstliu
    Contributor
  2. added
    windows
    on Jan 16, 2015
  3. changed the title [-]Installation on Windows 7 [/-] [+]Path too long errors on Windows install[/+] on Jan 16, 2015
  4. changed the title [-]Path too long errors on Windows install[/-] [+]Path too long exception on Windows install[/+] on Jan 16, 2015
  5. avarabei commented on Jan 17, 2015

    @avarabei

    Same issue on my machine Windows 8.1 x64

  6. aesweeting commented on Jan 18, 2015

    @aesweeting

    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.

  7. srujalsk commented on Jan 18, 2015

    @srujalsk

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

  8. irobayna commented on Jan 18, 2015

    @irobayna

    Same issue on Windows 7 Enterprise x64

  9. 66 remaining items

  10. gliviu commented on Feb 3, 2016

    @gliviu
  11. anaisbetts commented on Feb 3, 2016

    @anaisbetts
    Contributor

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

  12. allysonsouza commented on Feb 12, 2016

    @allysonsouza

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

  13. gordcurrie commented on Apr 6, 2016

    @gordcurrie

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

  14. winstliu commented on Jun 3, 2016

    @winstliu
    Contributor

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

    Done!

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

  15. parashar1505-yahoo commented on Sep 15, 2016

    @parashar1505-yahoo

    at last!

  16. emileber commented on Sep 28, 2016

    @emileber

    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.

  17. sils commented on Aug 28, 2017

    @sils

    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:

  18. lock commented on Mar 31, 2018

    @lock

    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!

  19. locked and limited conversation to collaborators on Mar 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

atombuginstallerwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions