Insomnia: Insomnia Designer install fails

Created on 29 Apr 2020  路  32Comments  路  Source: Kong/insomnia

Describe the bug

Installing Insomnia Designer Crashes.

To Reproduce
Steps to reproduce the behavior:

Just tried to install Insomnia Designer-2020.1.0.exe
Upon trying to access the installer I get an error, and points me to error logs.

System Logs:

18492> 2020-03-28 11:36:37> Program: Starting Squirrel Updater: --install .
18492> 2020-03-28 11:36:37> Program: Starting install, writing to C:\Users\eek\AppData\Local\SquirrelTemp
18492> 2020-03-28 11:36:37> Program: About to install to: C:\Users\eek\AppData\Local\Discord
18492> 2020-03-28 11:36:38> SingleGlobalInstance: Grabbing lockfile with timeout of 00:00:10
18492> 2020-03-28 11:36:38> CheckForUpdateImpl: Reading RELEASES file from C:\Users\eek\AppData\Local\SquirrelTemp
18492> 2020-03-28 11:36:38> CheckForUpdateImpl: Remote version 0.0.306 differs from local 
18492> 2020-03-28 11:36:38> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
18492> 2020-03-28 11:36:38> ApplyReleasesImpl: Writing files to app directory: C:\Users\eek\AppData\Local\Discord\app-0.0.306
18492> 2020-03-28 11:36:43> ApplyReleasesImpl: Moving file C:\Users\eek\AppData\Local\Discord\app-0.0.306\lib\net45\d3dcompiler_47.dll to C:\Users\eek\AppData\Local\Discord\app-0.0.306\d3dcompiler_47.dll
18492> 2020-03-28 11:36:43> ApplyReleasesImpl: Moving file C:\Users\eek\AppData\Local\Discord\app-0.0.306\lib\net45\app.ico to C:\Users\eek\AppData\Local\Discord\app-0.0.306\app.ico
18492> 2020-03-28 11:36:43> ApplyReleasesImpl: Moving file C:\Users\eek\AppData\Local\Discord\app-0.0.306\lib\net45\chrome_200_percent.pak to C:\Users\eek\AppData\Local\Discord\app-0.0.306\chrome_200_percent.pak
18492> 2020-03-28 11:36:43> ApplyReleasesImpl: Moving file C:\Users\eek\AppData\Local\Discord\app-0.0.306\lib\net45\chrome_100_percent.pak to C:\Users\eek\AppData\Local\Discord\app-0.0.306\chrome_100_percent.pak
18492> 2020-03-28 11:36:43> ApplyReleasesImpl: Moving file C:\Users\eek\AppData\Local\Discord\app-0.0.306\lib\net45\ffmpeg.dll to C:\Users\eek\AppData\Local\Discord\app-0.0.306\ffmpeg.dll
18492> 2020-03-28 11:36:43> ApplyReleasesImpl: Moving file C:\Users\eek\AppData\Local\Discord\app-0.0.306\lib\net45\Discord.exe to C:\Users\eek\AppData\Local\Discord\app-0.0.306\Discord.exe
18492> 2020-03-28 11:36:43> ApplyReleasesImpl: Moving file C:\Users\eek\AppData\Local\Discord\app-0.0.306\lib\net45\icudtl.dat to C:\Users\eek\AppData\Local\Discord\app-0.0.306\icudtl.dat
18492> 2020-03-28 11:36:43> ApplyReleasesImpl: Moving file C:\Users\eek\AppData\Local\Discord\app-0.0.306\lib\net45\libEGL.dll to C:\Users\eek\AppData\Local\Discord\app-0.0.306\libEGL.dll
18492> 2020-03-28 11:36:43> ApplyReleasesImpl: Moving file C:\Users\eek\AppData\Local\Discord\app-0.0.306\lib\net45\libGLESv2.dll to C:\Users\eek\AppData\Local\Discord\app-0.0.306\libGLESv2.dll
18492> 2020-03-28 11:36:43> ApplyReleasesImpl: Moving file C:\Users\eek\AppData\Local\Discord\app-0.0.306\lib\net45\natives_blob.bin to C:\Users\eek\AppData\Local\Discord\app-0.0.306\natives_blob.bin
18492> 2020-03-28 11:36:43> ApplyReleasesImpl: Moving file C:\Users\eek\AppData\Local\Discord\app-0.0.306\lib\net45\snapshot_blob.bin to C:\Users\eek\AppData\Local\Discord\app-0.0.306\snapshot_blob.bin
18492> 2020-03-28 11:36:43> ApplyReleasesImpl: Moving file C:\Users\eek\AppData\Local\Discord\app-0.0.306\lib\net45\resources.pak to C:\Users\eek\AppData\Local\Discord\app-0.0.306\resources.pak
18492> 2020-03-28 11:36:43> ApplyReleasesImpl: Moving file C:\Users\eek\AppData\Local\Discord\app-0.0.306\lib\net45\Squirrel.exe to C:\Users\eek\AppData\Local\Discord\app-0.0.306\Squirrel.exe
18492> 2020-03-28 11:36:43> ApplyReleasesImpl: Moving file C:\Users\eek\AppData\Local\Discord\app-0.0.306\lib\net45\v8_context_snapshot.bin to C:\Users\eek\AppData\Local\Discord\app-0.0.306\v8_context_snapshot.bin
18492> 2020-03-28 11:36:43> ApplyReleasesImpl: Started updateSelf pid 16252
18492> 2020-03-28 11:36:43> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\eek\AppData\Local\Discord\app-0.0.306\Discord.exe]
18492> 2020-03-28 11:36:46> Utility: Process Started: C:\Users\eek\AppData\Local\Discord\app-0.0.306\Discord.exe --squirrel-install 0.0.306, pid 16664
18492> 2020-03-28 11:36:48> Utility: Received exitcode 0 from process C:\Users\eek\AppData\Local\Discord\app-0.0.306\Discord.exe
18492> 2020-03-28 11:36:48> ApplyReleasesImpl: ran C:\Users\eek\AppData\Local\Discord\app-0.0.306\Discord.exe, pid 10260
18492> 2020-03-28 11:36:48> ApplyReleasesImpl: Starting fixPinnedExecutables
18492> 2020-03-28 11:36:48> ApplyReleasesImpl: fixPinnedExecutables: newCurrentFolder: app-0.0.306
18492> 2020-03-28 11:36:48> ApplyReleasesImpl: File 'C:\Users\eek\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessibility\Narrator.lnk' could not be converted into a valid ShellLink: System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
   at Squirrel.Shell.ShellLink.IShellLinkW.Resolve(IntPtr hWnd, UInt32 fFlags)
   at Squirrel.Shell.ShellLink.Open(String linkFile, IntPtr hWnd, EShellLinkResolveFlags resolveFlags, UInt16 timeOut)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<fixPinnedExecutables>b__11_0(FileInfo file)
18492> 2020-03-28 11:36:48> ApplyReleasesImpl: File 'C:\Users\eek\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessibility\On-Screen Keyboard.lnk' could not be converted into a valid ShellLink: System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
   at Squirrel.Shell.ShellLink.IShellLinkW.Resolve(IntPtr hWnd, UInt32 fFlags)
   at Squirrel.Shell.ShellLink.Open(String linkFile, IntPtr hWnd, EShellLinkResolveFlags resolveFlags, UInt16 timeOut)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<fixPinnedExecutables>b__11_0(FileInfo file)
18492> 2020-03-28 11:36:49> ApplyReleasesImpl: Updating shortcut C:\Users\eek\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Discord Inc\Discord.lnk
18492> 2020-03-28 11:36:49> ApplyReleasesImpl: Updating shortcut C:\Users\eek\OneDrive\Desktop\Discord.lnk
18492> 2020-03-28 11:36:49> ApplyReleasesImpl: Fixing up tray icons
18492> 2020-03-28 11:36:49> ApplyReleasesImpl: cleanDeadVersions: for version 0.0.306
18492> 2020-03-28 11:36:49> ApplyReleasesImpl: cleanDeadVersions: exclude current version folder app-0.0.306
2020-04-29 13:11:49> Program: Starting Squirrel Updater: --install .
2020-04-29 13:11:49> Program: Starting install, writing to C:\Users\eek\AppData\Local\SquirrelTemp
2020-04-29 13:11:49> Program: About to install to: C:\Users\eek\AppData\Local\insomnia-designer
2020-04-29 13:11:49> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\eek\AppData\Local\insomnia-designer\packages\.betaId'.
   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, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
   at System.IO.File.WriteAllText(String path, String contents, Encoding encoding)
   at Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId()
2020-04-29 13:11:49> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\eek\AppData\Local\insomnia-designer\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__2.MoveNext()
2020-04-29 13:11:49> CheckForUpdateImpl: Reading RELEASES file from C:\Users\eek\AppData\Local\SquirrelTemp
2020-04-29 13:11:49> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2020-04-29 13:11:50> ApplyReleasesImpl: Writing files to app directory: C:\Users\eek\AppData\Local\insomnia-designer\app-2020.1.0
2020-04-29 13:11:52> LogHost: Rigging execution stub for Insomnia Designer_ExecutionStub.exe to C:\Users\eek\AppData\Local\insomnia-designer\Insomnia Designer.exe
2020-04-29 13:12:42> 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.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.InternalGetDirectoryName(String path)
   at Squirrel.ReleasePackage.<>c__DisplayClass15_0.<ExtractZipForInstall>b__0()
   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.<>c__DisplayClass7_0.<<installPackageToAppDir>b__0>d.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__43`1.MoveNext()
2020-04-29 13:12:42> Unhandled exception: System.AggregateException: One or more errors occurred. ---> 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.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.InternalGetDirectoryName(String path)
   at Squirrel.ReleasePackage.<>c__DisplayClass15_0.<ExtractZipForInstall>b__0()
   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.<>c__DisplayClass7_0.<<installPackageToAppDir>b__0>d.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__43`1.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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<ApplyReleases>d__2.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.UpdateManager.<FullInstall>d__10.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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Squirrel.Update.Program.<Install>d__4.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at Squirrel.Update.Program.executeCommandLine(String[] args)
   at Squirrel.Update.Program.main(String[] args)
---> (Inner Exception #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.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.InternalGetDirectoryName(String path)
   at Squirrel.ReleasePackage.<>c__DisplayClass15_0.<ExtractZipForInstall>b__0()
   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.<>c__DisplayClass7_0.<<installPackageToAppDir>b__0>d.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__43`1.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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<ApplyReleases>d__2.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.UpdateManager.<FullInstall>d__10.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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Squirrel.Update.Program.<Install>d__4.MoveNext()<---

Expected behavior
Install the APP

Screenshots

image

Desktop (please complete the following information):

  • OS: Windows 10
  • Installation Method: .exe from website
  • App Version 1.0
apdesigner needs investigation owindows

Most helpful comment

Looks like 2020.1.3 worked on my Windows VM. I'm going to go ahead and assume this is fixed now for 99% of users. Please create a new issue if you are still experiencing problems after 2020.1.3

All 32 comments

Apparently even after uninstalling Discord, it still tries to access it's files from
C:\Users\radua\AppData\Local\Discord where there's a .dead file now and updater.exe

I've deleted these files, tried again, still fails but now my setup log looks a bit different:

2020-04-29 13:27:48> Program: Starting Squirrel Updater: --install .
2020-04-29 13:27:48> Program: Starting install, writing to C:\Users\eek\AppData\Local\SquirrelTemp
2020-04-29 13:27:48> Program: About to install to: C:\Users\eek\AppData\Local\insomnia-designer
2020-04-29 13:27:48> Program: Install path C:\Users\eek\AppData\Local\insomnia-designer already exists, burning it to the ground
2020-04-29 13:27:50> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\eek\AppData\Local\insomnia-designer\packages\.betaId'.
   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, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
   at System.IO.File.WriteAllText(String path, String contents, Encoding encoding)
   at Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId()
2020-04-29 13:27:50> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\eek\AppData\Local\insomnia-designer\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__2.MoveNext()
2020-04-29 13:27:50> CheckForUpdateImpl: Reading RELEASES file from C:\Users\eek\AppData\Local\SquirrelTemp
2020-04-29 13:27:50> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2020-04-29 13:27:51> ApplyReleasesImpl: Writing files to app directory: C:\Users\eek\AppData\Local\insomnia-designer\app-2020.1.0
2020-04-29 13:27:53> LogHost: Rigging execution stub for Insomnia Designer_ExecutionStub.exe to C:\Users\eek\AppData\Local\insomnia-designer\Insomnia Designer.exe
2020-04-29 13:28:37> 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.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.InternalGetDirectoryName(String path)
   at Squirrel.ReleasePackage.<>c__DisplayClass15_0.<ExtractZipForInstall>b__0()
   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.<>c__DisplayClass7_0.<<installPackageToAppDir>b__0>d.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__43`1.MoveNext()
2020-04-29 13:28:37> Unhandled exception: System.AggregateException: One or more errors occurred. ---> 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.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.InternalGetDirectoryName(String path)
   at Squirrel.ReleasePackage.<>c__DisplayClass15_0.<ExtractZipForInstall>b__0()
   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.<>c__DisplayClass7_0.<<installPackageToAppDir>b__0>d.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__43`1.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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<ApplyReleases>d__2.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.UpdateManager.<FullInstall>d__10.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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Squirrel.Update.Program.<Install>d__4.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at Squirrel.Update.Program.executeCommandLine(String[] args)
   at Squirrel.Update.Program.main(String[] args)
---> (Inner Exception #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.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.InternalGetDirectoryName(String path)
   at Squirrel.ReleasePackage.<>c__DisplayClass15_0.<ExtractZipForInstall>b__0()
   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.<>c__DisplayClass7_0.<<installPackageToAppDir>b__0>d.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__43`1.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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<ApplyReleases>d__2.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.UpdateManager.<FullInstall>d__10.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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Squirrel.Update.Program.<Install>d__4.MoveNext()<---

Thanks for reporting @eek! I did some research, hopefully some of these help. 馃槃

The Discord one seems really strange. Do you recall any failed Discord updates recently? Given that also uses Squirrel as its update framework (ref), there may be residual data in that directory as a result.

Do you see anything unexpected in there? There should be no repercussions of deleting this directory so that may be an option.

Looking through your second snippet, I see two errors of note:

2020-04-29 13:28:37> 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.

This seems odd, just checking you're not installing to an unconventional directory? Seeing reports of some other Squirrel based applications (such as Atom) experiencing this as well. 馃

2020-04-29 13:27:50> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\eekAppData\Local\insomnia-designer\packages\RELEASES'.

Could you please clear the C:\Users\eek\AppData\Local\insomnia-designer directory and re-install? It looks like something has failed midway, meaning some of the files that should exist in order to install, don't exist.

Hopefully we can sort this out ASAP 馃 Thanks for trying to try it out!

Actually I just checked through the Discord logs - those are from March, so likely a failed installation at that time.

18492> 2020-03-28 11:36:37> Program: About to install to: C:\Users\eekAppData\Local\Discord

The 2nd half of the first log snippet, shows the same install errors for insomnia-designer. 馃

Yeah, I haven't noticed the date either :))

I've deleted both the insomnia-designer folder (~6k files) and also the SquirrelTemp folder and I have the same issue.

Just to make clear, I'm not selecting any install directory.

I'm just double-clicking the installer, I'm presented with the loading:

image

and after a minute or so with the crash:

image

I'm on Windows 10 Pro N - Version 10.0.18363 Build 18363.

Latest setup.log:

2020-04-29 14:57:26> Program: Starting Squirrel Updater: --install .
2020-04-29 14:57:26> Program: Starting install, writing to C:\Users\eek\AppData\Local\SquirrelTemp
2020-04-29 14:57:26> Program: About to install to: C:\Users\eek\AppData\Local\insomnia-designer
2020-04-29 14:57:26> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\eek\AppData\Local\insomnia-designer\packages\.betaId'.
   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, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
   at System.IO.File.WriteAllText(String path, String contents, Encoding encoding)
   at Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId()
2020-04-29 14:57:26> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\eek\AppData\Local\insomnia-designer\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__2.MoveNext()
2020-04-29 14:57:26> CheckForUpdateImpl: Reading RELEASES file from C:\Users\eek\AppData\Local\SquirrelTemp
2020-04-29 14:57:26> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2020-04-29 14:57:26> ApplyReleasesImpl: Writing files to app directory: C:\Users\eek\AppData\Local\insomnia-designer\app-2020.1.0
2020-04-29 14:57:29> LogHost: Rigging execution stub for Insomnia Designer_ExecutionStub.exe to C:\Users\eek\AppData\Local\insomnia-designer\Insomnia Designer.exe
2020-04-29 14:58:17> 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.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.InternalGetDirectoryName(String path)
   at Squirrel.ReleasePackage.<>c__DisplayClass15_0.<ExtractZipForInstall>b__0()
   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.<>c__DisplayClass7_0.<<installPackageToAppDir>b__0>d.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__43`1.MoveNext()
2020-04-29 14:58:17> Unhandled exception: System.AggregateException: One or more errors occurred. ---> 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.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.InternalGetDirectoryName(String path)
   at Squirrel.ReleasePackage.<>c__DisplayClass15_0.<ExtractZipForInstall>b__0()
   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.<>c__DisplayClass7_0.<<installPackageToAppDir>b__0>d.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__43`1.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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<ApplyReleases>d__2.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.UpdateManager.<FullInstall>d__10.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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Squirrel.Update.Program.<Install>d__4.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at Squirrel.Update.Program.executeCommandLine(String[] args)
   at Squirrel.Update.Program.main(String[] args)
---> (Inner Exception #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.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.InternalGetDirectoryName(String path)
   at Squirrel.ReleasePackage.<>c__DisplayClass15_0.<ExtractZipForInstall>b__0()
   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.<>c__DisplayClass7_0.<<installPackageToAppDir>b__0>d.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__43`1.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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<ApplyReleases>d__2.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.UpdateManager.<FullInstall>d__10.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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Squirrel.Update.Program.<Install>d__4.MoveNext()<---

And indeed in the insomnia-designer/packages it's only an 139MB file name insomnia-designer-2020.1.0-full.nupkg

Oh, I see that if I run the Insomnia Designer.exe file from AppData\Local\insomnia-designer the app starts.

Getting a similar error.
Looks like Squirrel uses the same log path for all of it's installs, which makes sense why you're having errors regarding Discord (I'm having errors regarding Microsoft Teams, Riot.im, DiscordCanary, Postman, Discord and Insomnia!)

Suggested fix for the logger is to instead use the Squirrel log for Insomnia, not the global log.
(Global log located at C:\Users\YOU\AppData\Local\SquirrelTemp\SquirrelSetup.log, Insomnia log located at C:\Users\YOU\AppData\Local\insomnia\SquirrelSetup.log (I think))

Oh, I see that if I run the Insomnia Designer.exe file from AppData\Local\insomnia-designer the app starts.

@eek I'm getting similar results, application loads from %appdata%\Localinsomnia-designer, however the application doesn't seem to be "Installed" on my device (Start Menu doesn't show Designer as an application, just as the executable that I just launched)

Same issue here, downloaded the designer installer and ran it. My logs are pointing to Microsoft Teams for some reason.

OS: Windows 10 Enterprise

2018-10-19 14:53:23> Program: Starting Squirrel Updater: --install .
2018-10-19 14:53:23> Program: setup.json does not exist
2018-10-19 14:53:23> Program: Starting install, writing to C:\{user dir}\AppData\Local\SquirrelTemp
2018-10-19 14:53:23> UpdateManager: using rootAppDirecotry: C:\{user dir}\AppData\Local\Microsoft\Teams
2018-10-19 14:53:23> Program: About to install to: C:\{user dir}\AppData\Local\Microsoft\Teams
2018-10-19 14:53:23> Program: Setup.json exist, copying over
2018-10-19 14:53:23> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\{user dir}\AppData\Local\Microsoft\Teams\packages\.betaId'.
   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, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
   at System.IO.File.WriteAllText(String path, String contents, Encoding encoding)
   at Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId()
2018-10-19 14:53:23> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\{user dir}\AppData\Local\Microsoft\Teams\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__43.MoveNext()
2018-10-19 14:53:23> CheckForUpdateImpl: Reading RELEASES file from C:\{user dir}\AppData\Local\SquirrelTemp
2018-10-19 14:53:23> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2018-10-19 14:53:23> ApplyReleasesImpl: getting squirrel aware apps failed with exception Could not find a part of the path 'C:\{user dir}\AppData\Local\Microsoft\Teams\current'.
2018-10-19 14:53:23> ApplyReleasesImpl: Writing files to app directory: C:\{user dir}\AppData\Local\Microsoft\Teams\current
2018-10-19 14:53:25> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\{user dir}\AppData\Local\Microsoft\Teams\current\Teams.exe]
2018-10-19 14:53:41> ApplyReleasesImpl: Couldn't run Squirrel hook, continuing: C:\{user dir}\AppData\Local\Microsoft\Teams\current\Teams.exe: System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at Squirrel.Utility.<>c__DisplayClassf.<InvokeProcessAsync>b__e()
   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.Utility.<InvokeProcessAsync>d__11.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.UpdateManager.ApplyReleasesImpl.<>c__DisplayClasscf.<<invokePostInstall>b__c3>d__d1.MoveNext()
2018-10-19 14:53:42> ApplyReleasesImpl: Starting fixPinnedExecutables
2018-10-19 14:53:42> ApplyReleasesImpl: Examining Pin: File Explorer.lnk
2018-10-19 14:53:42> ApplyReleasesImpl: Fixing up tray icons
2018-10-19 14:53:42> ApplyReleasesImpl: Couldn't rewrite shim RegKey, most likely no apps are shimmed: System.NullReferenceException: Object reference not set to an instance of an object.
   at Squirrel.UpdateManager.ApplyReleasesImpl.<unshimOurselves>b__e0(RegistryView view)
2018-10-19 14:53:42> ApplyReleasesImpl: Couldn't rewrite shim RegKey, most likely no apps are shimmed: System.NullReferenceException: Object reference not set to an instance of an object.
   at Squirrel.UpdateManager.ApplyReleasesImpl.<unshimOurselves>b__e0(RegistryView view)
2018-10-19 14:53:42> MeetingAddinInstaller: System.ArgumentException: Cannot delete a subkey tree because the subkey does not exist.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at Microsoft.Win32.RegistryKey.DeleteSubKeyTree(String subkey, Boolean throwOnMissingSubKey)
   at Microsoft.Win32.RegistryKey.DeleteSubKeyTree(String subkey)
   at Squirrel.MeetingAddinInstaller.<InstallMeetingAddinAsync>d__3.MoveNext()
2018-10-19 14:53:42> MeetingAddinInstaller: StagedAppDirectory does not exist. Using Current
2018-10-19 14:53:42> MeetingAddinInstaller: Version: 1.0.18239.1; addinPackageDirectory: 1.0.18239.1
2018-10-19 14:53:42> MeetingAddinInstaller: .dead exists: False
2018-10-19 14:53:42> MeetingAddinInstaller: path to .dead: C:\{user dir}\AppData\Local\Microsoft\TeamsMeetingAddin\1.0.18239.1\.dead
2018-10-19 14:53:42> MeetingAddinInstaller: before cleanup unused versions
2018-10-19 14:53:42> MeetingAddinInstaller: Version 1.0.18239.1 of the meeting add-in is now installed
2018-10-19 14:53:42> ApplyReleasesImpl: cleanDeadVersions: for version 1.1.00.25457
2018-10-19 14:53:42> ApplyReleasesImpl: cleanDeadVersions: exclude folder stage
2018-10-23 14:10:03> Program: Starting Squirrel Updater: --install . -s
2018-10-23 14:10:03> Program: Starting install, writing to C:\{user dir}\AppData\Local\SquirrelTemp
2018-10-23 14:10:03> Program: About to install to: C:\{user dir}\AppData\Local\Postman

I also have this issue with the installer, my logs point to Slack

Can you all test out this new release please? https://github.com/Kong/insomnia/releases/tag/designer%402020.1.2

(Might have to remove the failed installation first)

@gschier I didnt have to remove the old failed install when I tested it, so it should Just Work (tm)

Working now on windows 10. Tested

Testing the installation now

Installation did not work for me, I'm going to try clearing out the directories that were mentioned above then try again. I'm also on Windows 10 Enterprise.

Latest release is working for me on Windows 10 馃帀

Teamwork 鉂わ笍

same situation as @ybadragon, not working on Windows 10 Enterprise.

Just to update everyone on the issue. It looks like some of the file paths included in the installation can exceed Window's max path length of 260 characters. The last release 2020.1.2 attempted to shorten some of them but it may be possible for some people with longer Windows usernames to continue to exceed this limit. If you still cannot install, can you post the length of your Windows username here?

Thanks 馃挏

Also, I believe all logs are shared for any app that uses the Squirrel Windows update system. This is why other app logs from Postman/Slack/Discord show. Insomnia's install logs will display at the very bottom of the log file.

@gschier 18 character username here! And yes, the issue I was seeing with the latest install of 2020.1.2 was System.IO.PathTooLongException.

My install is still failing after removing the old version. This is a company computer so my username is 15 characters long. My co-workers username is 18 and he is having the same issue.

it looks like there is possibly a workaround for this @gschier not sure if the exe can update the PATH variable when it is ran, but the people running it definitely can. I'm willing to try this in a couple hours, but I'm about to go into a meeting (I also don't know the default squirrel_temp path so have to figure that out). If anyone else wants to attempt this let us know how it goes, if not I'll do it after my meeting.

Stack Overflow Issue

set squirrel_temp=C:\Program Files (x86)

Same here on Windows 7...

Setting the squirrel_temp path to C:\Program Files (x86) does not work but creating a C:\t folder and using this as squirrel_temp however does work and it even updated itself.

If I take a look at the pathlengths, the maximum seems to be 234 characters, but I used du -h /c/t | cut -f 2 so it uses forward slashes for everything, I don't know if C:\ would be 3 characters in a command prompt, I guess in my case /c counts as two, no? :wink:

/c/t/insomnia-designer/app-2020.1.1/resources/app.asar.unpacked/node_modules/insomnia-libcurl/node_modules/insomnia-node-libcurl/curl-for-windows/build/gyp/test/ios/extension/ExtensionContainer/Images.xcassets/LaunchImage.launchimage

https://pastebin.com/N16S40ix

Hope this helps!

Wow, amazing work @sonicwim! Thanks so much for debugging.

The PR #2081 should remove insomnia-libcurl/node_modules/ from that path, which will save a few more chars for now. In the future, we'll look at trimming down some more of that cruft.

Going to trigger another release now.

Is there a link to the new release?

Looks like 2020.1.3 worked on my Windows VM. I'm going to go ahead and assume this is fixed now for 99% of users. Please create a new issue if you are still experiencing problems after 2020.1.3

As an FYI, Windows Smartscreen Defender seems to flag the latest release as potential malware. Might just be due to the age of the application and the fact that very few people have downloaded this patch?

Outside of that, the installer seems to work fine now! As someone with a 16 character Windows username, it's always a bit of a worry that I can't install stuff due to path limits. Glad to see that it's fixed :)

Tagging @gschier regarding the malware flagging.

@Natfan yes, I think it's because we're using a fresh signing certificate that Windows has not seen before. Thanks for mentioning it. In Insomnia's early days, I remember it also being flagged a lot by various virus scanning programs for the same reason.

@develohpanda mentioned today that Windows has a way to configure the maximum path limit now? Might be worth knowing for future reference 馃憤

Windows has a way to configure the maximum path limit now

Have never tried it myself so YMMV, but here's a potential solution for it: https://superuser.com/a/1119980. 馃槃

I still get this error, even on the 2020.1.3 release,...
Access to the path 'C:\Users\XXXXXXAppData\Localinsomnia-designer\app-2020.1.3\resources\app.asar.unpacked\node_modules\inlc\curl-for-windows\libssh2\docs\HACKING.CRYPTO' is denied.

The folder gets created and has files in it.
It may be a feature of Symantec Endpoint Protection, or some other peculiarity of my company's windows image, but it seems that...

  • a file with extension ".crypto" is somehow "special" (likely flagged as ransomware related)
    ... I can only create a file with .crypto extension using powershell
    ... even after created, a .crypto file cannot be accessed using windows explorer or the designer installer (it even fails to delete the installation folder if a .crypto file created with powershell exists)

So, in terms of an installation, is the creation of said file something that can trigger a warning, instead of causing the entire thing to fail?

Same problem for me, 2020.3.3. Final error in the log is

2020-09-08 12:49:49> Unhandled exception: System.AggregateException: One or more errors occurred. ---> System.IO.IOException: The process cannot access the file 'C:\Users\edward.swangrenAppData\Local\insomnia\packages\insomnia-2020.3.3-full.nupkg' because it is being used by another process.

That file is not locked by anything when the installer is running, so... guess my search for a postman alternative continues.

I still get this error, even on the 2020.1.3 release,...
Access to the path 'C:\Users\XXXXXXAppData\Localinsomnia-designer\app-2020.1.3\resources\app.asar.unpacked\node_modules\inlc\curl-for-windows\libssh2\docs\HACKING.CRYPTO' is denied.

The folder gets created and has files in it.
It may be a feature of Symantec Endpoint Protection, or some other peculiarity of my company's windows image, but it seems that...

  • a file with extension ".crypto" is somehow "special" (likely flagged as ransomware related)
    ... I can only create a file with .crypto extension using powershell
    ... even after created, a .crypto file cannot be accessed using windows explorer or the designer installer (it even fails to delete the installation folder if a .crypto file created with powershell exists)

So, in terms of an installation, is the creation of said file something that can trigger a warning, instead of causing the entire thing to fail?

Yes, it's Norton AV (and perhaps other similar software?) that does not like these filenames in particular, AFAIK because some cryptolockers or malware will rename all your encrypted files (in batch/automated) with these 'flag' words in it or in the end. And (also a guess) is that if you do it manually instead of a (install) script or likewise it's considered evil but you, as a user are allowed to this manually. As a test I just upgraded to the latest version in Windows 7, without any warning or problem, using no specific other AV suite then Windows Defender.

Do you have a way of temporary disabling or relaxing this policy or having this folder as an exclusion?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shadeglare picture shadeglare  路  3Comments

claratorres picture claratorres  路  3Comments

Fyb3roptik picture Fyb3roptik  路  4Comments

sapeish picture sapeish  路  4Comments

oliverjanik picture oliverjanik  路  3Comments