question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Failed with exit code: 4294967295

See original GitHub issue

First I used electron-packager exporting a folder. Then I used electron-winstaller to build this folder to a executable.

build.js: const electronInstaller = require(‘electron-winstaller’);

var settings = { appDirectory: ‘./app’, outputDirectory: ‘./output’, exe: ‘app.exe’, setupExe: ‘app.exe’, noMsi: true, authors: ‘wujz’ };

resultPromise = electronInstaller.createWindowsInstaller(settings);

resultPromise.then(() => { console.log(“Created”); }, (e) => { console.log(e); });

Then I got below error: Error: Failed with exit code: 4294967295 Output: Couldn’t open log file, trying new file: System.MethodAccessException: Attempt by method ‘Squirrel.Update.SetupLogLogger…ctor(Boolean)’ to access method ‘System.IO.StreamWriter…ctor(System.IO.Stream, System.Text.Encoding, Int32, Boolean)’ failed. at Squirrel.Update.SetupLogLogger…ctor(Boolean saveInTemp) Couldn’t open log file, trying new file: System.MethodAccessException: Attempt by method ‘Squirrel.Update.SetupLogLogger…ctor(Boolean)’ to access method ‘System.IO.StreamWriter…ctor(System.IO.Stream, System.Text.Encoding, Int32, Boolean)’ failed. at Squirrel.Update.SetupLogLogger…ctor(Boolean saveInTemp) Couldn’t open log file, trying new file: System.MethodAccessException: Attempt by method ‘Squirrel.Update.SetupLogLogger…ctor(Boolean)’ to access method ‘System.IO.StreamWriter…ctor(System.IO.Stream, System.Text.Encoding, Int32, Boolean)’ failed. at Squirrel.Update.SetupLogLogger…ctor(Boolean saveInTemp) Couldn’t open log file, trying new file: System.MethodAccessException: Attempt by method ‘Squirrel.Update.SetupLogLogger…ctor(Boolean)’ to access method ‘System.IO.StreamWriter…ctor(System.IO.Stream, System.Text.Encoding, Int32, Boolean)’ failed. at Squirrel.Update.SetupLogLogger…ctor(Boolean saveInTemp) Couldn’t open log file, trying new file: System.MethodAccessException: Attempt by method ‘Squirrel.Update.SetupLogLogger…ctor(Boolean)’ to access method ‘System.IO.StreamWriter…ctor(System.IO.Stream, System.Text.Encoding, Int32, Boolean)’ failed. at Squirrel.Update.SetupLogLogger…ctor(Boolean saveInTemp) Couldn’t open log file, trying new file: System.MethodAccessException: Attempt by method ‘Squirrel.Update.SetupLogLogger…ctor(Boolean)’ to access method ‘System.IO.StreamWriter…ctor(System.IO.Stream, System.Text.Encoding, Int32, Boolean)’ failed. at Squirrel.Update.SetupLogLogger…ctor(Boolean saveInTemp) Couldn’t open log file, trying new file: System.MethodAccessException: Attempt by method ‘Squirrel.Update.SetupLogLogger…ctor(Boolean)’ to access method ‘System.IO.StreamWriter…ctor(System.IO.Stream, System.Text.Encoding, Int32, Boolean)’ failed. at Squirrel.Update.SetupLogLogger…ctor(Boolean saveInTemp) Couldn’t open log file, trying new file: System.MethodAccessException: Attempt by method ‘Squirrel.Update.SetupLogLogger…ctor(Boolean)’ to access method ‘System.IO.StreamWriter…ctor(System.IO.Stream, System.Text.Encoding, Int32, Boolean)’ failed. at Squirrel.Update.SetupLogLogger…ctor(Boolean saveInTemp) Couldn’t open log file, trying new file: System.MethodAccessException: Attempt by method ‘Squirrel.Update.SetupLogLogger…ctor(Boolean)’ to access method ‘System.IO.StreamWriter…ctor(System.IO.Stream, System.Text.Encoding, Int32, Boolean)’ failed. at Squirrel.Update.SetupLogLogger…ctor(Boolean saveInTemp) Couldn’t open log file, trying new file: System.MethodAccessException: Attempt by method ‘Squirrel.Update.SetupLogLogger…ctor(Boolean)’ to access method ‘System.IO.StreamWriter…ctor(System.IO.Stream, System.Text.Encoding, Int32, Boolean)’ failed. at Squirrel.Update.SetupLogLogger…ctor(Boolean saveInTemp) 2017-04-03 04:30:34> Program: Starting Squirrel Updater: --releasify C:\Users\statbldr\AppData\Local\Temp\si-11733-4260-1xt81w6.plmed0a4i\statsinstaller.1.0.0.nupkg --releaseDir C:\Workroom\views\StatsDownloadAndGo\output --loadingGif C:\Workroom\views\StatsDownloadAndGo\node_modules\electron-winstaller\resources\install-spinner.gif --no-msi 2017-04-03 04:30:34> Program: Bootstrapper EXE found at:C:\Workroom\views\StatsDownloadAndGo\node_modules\electron-winstaller\vendor\Setup.exe 2017-04-03 04:30:45> Program: Creating release package: C:\Workroom\views\StatsDownloadAndGo\output\statsinstaller.1.0.0.nupkg 2017-04-03 04:30:46> Unhandled exception: System.MissingMethodException: Method not found: ‘Int32 System.Environment.get_CurrentManagedThreadId()’. at NuGet.ManifestMetadata.<Validate>d__108…ctor(Int32 <>1__state) at NuGet.ManifestMetadata.Validate(ValidationContext validationContext) at System.ComponentModel.DataAnnotations.Validator.GetObjectValidationErrors(Object instance, ValidationContext validationContext, Boolean validateAllProperties, Boolean breakOnFirstError) at System.ComponentModel.DataAnnotations.Validator.TryValidateObject(Object instance, ValidationContext validationContext, ICollection1 validationResults, Boolean validateAllProperties) at NuGet.Manifest.TryValidate(Object value, ICollection1 results) at NuGet.Manifest.Validate(Manifest manifest) at NuGet.Manifest.ReadFrom(Stream stream, IPropertyProvider propertyProvider, Boolean validateSchema) at NuGet.LocalPackage.ReadManifest(Stream manifestStream) at NuGet.ZipPackage.EnsureManifest() at NuGet.ZipPackage…ctor(String filePath, Boolean enableCaching) at Squirrel.ReleasePackage.get_SuggestedReleaseFileName() at Squirrel.Update.Program.Releasify(String package, String targetDir, String packagesDir, String bootstrapperExe, String backgroundGif, String signingOpts, String baseUrl, String setupIcon, Boolean generateMsi) at Squirrel.Update.Program.executeCommandLine(String[] args) at Squirrel.Update.Program.main(String[] args) System.MissingMethodException: Method not found: ‘Int32 System.Environment.get_CurrentManagedThreadId()’. at NuGet.ManifestMetadata.<Validate>d__108…ctor(Int32 <>1__state) at NuGet.ManifestMetadata.Validate(ValidationContext validationContext) at System.ComponentModel.DataAnnotations.Validator.GetObjectValidationErrors(Object instance, ValidationContext validationContext, Boolean validateAllProperties, Boolean breakOnFirstError) at System.ComponentModel.DataAnnotations.Validator.TryValidateObject(Object instance, ValidationContext validationContext, ICollection1 validationResults, Boolean validateAllProperties) at NuGet.Manifest.TryValidate(Object value, ICollection1 results) at NuGet.Manifest.Validate(Manifest manifest) at NuGet.Manifest.ReadFrom(Stream stream, IPropertyProvider propertyProvider, Boolean validateSchema) at NuGet.LocalPackage.ReadManifest(Stream manifestStream) at NuGet.ZipPackage.EnsureManifest() at NuGet.ZipPackage…ctor(String filePath, Boolean enableCaching) at Squirrel.ReleasePackage.get_SuggestedReleaseFileName() at Squirrel.Update.Program.Releasify(String package, String targetDir, String packagesDir, String bootstrapperExe, String backgroundGif, String signingOpts, String baseUrl, String setupIcon, Boolean generateMsi) at Squirrel.Update.Program.executeCommandLine(String[] args) at Squirrel.Update.Program.main(String[] args) at Squirrel.Update.Program.Main(String[] args)

at ChildProcess.proc.on.code (C:\Workroom\views\StatsDownloadAndGo\node_modules\electron-winstaller\lib\spawn-promise.js:62:16)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:886:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

I used Windows Server 2008. Could anyone help to see this issue? Thanks.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:7
  • Comments:11

github_iconTop GitHub Comments

8reactions
Caumakercommented, Nov 20, 2017

Same here too

0reactions
Visual-Dawgcommented, Apr 11, 2022

Same issue for me. The name in my package.json contains no special characters

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure DevOps CD failed (msdeploy.exe' failed with exit code ...
Azure DevOps CD failed (msdeploy.exe' failed with exit code 4294967295) ... Error: An error occurred when reading the IIS Configuration File ...
Read more >
Terminal exiting with code 4294967295 every time
First of all, according to the error code you provided, it is generally because your current host and your Linux subsystem connection timed...
Read more >
WSL process exited with code 4294967295 in Windows 11
Error code 4294967295 appears when users attempt to use the Windows Subsystem for Linux. The network issue, though frustrating, can be resolved ...
Read more >
The process 'C:\agent05\...\octo.cmd' failed with exit code ...
cmd' failed with exit code 4294967295 2021-01-11T09:59:08.7577655Z ##[error]Failed to push package. The process 'C:\agent05_work_tool\octo\7.4.
Read more >
Build job fails with exit code 4294967295 (Windows docker ...
Sometimes a build job fails randomly with the exit code 4294967295. It does not happen always, but frequently (maybe 1 out of 3...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found