insomnia: Insomnia Designer install fails

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

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 32 (12 by maintainers)

Most upvoted comments

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

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

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.

Working now on windows 10. Tested

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)

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%\Local\insomnia-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)

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

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.