Skip to content

Auto update in Electron app works, but is not relaunching application. #204

@Andrew1431

Description

@Andrew1431

Hey there! I've got an electron app that is successfully checking for and installing updates. But after the successful update, the application is not starting. A manual restart of the app shows a properly updated application though.

Within ShipIt_stderr.log for my application, this is my error message.

2017-06-08 13:27:11.232 ShipIt[10316:1427526] Beginning installation
2017-06-08 13:27:11.651 ShipIt[10316:1427562] Moved bundle from file:///Applications/GoServer.app to file:///var/folders/8q/db12hjjj3vb71zjscx8vcgrm0000gn/T/org.growone.GoServer.ShipIt.822U9tdy/GoServer.app
2017-06-08 13:27:11.651 ShipIt[10316:1427562] Moved bundle from file:///var/folders/8q/db12hjjj3vb71zjscx8vcgrm0000gn/T/org.growone.GoServer.ShipIt.abA4Kh9M/GoServer.app to file:///Applications/GoServer.app
2017-06-08 13:27:11.736 ShipIt[10316:1427562] Couldn't remove owned bundle at location file:///var/folders/8q/db12hjjj3vb71zjscx8vcgrm0000gn/T/org.growone.GoServer.ShipIt.abA4Kh9M/GoServer.app, error NSError { domain: NSCocoaErrorDomain, code: 4, description: "“GoServer.app” couldn’t be removed.", failureReason: "The file doesn’t exist.", underlying error: NSError { domain: NSPOSIXErrorDomain, code: 2, description: "The operation couldn’t be completed. No such file or directory" }, userInfo: {
    NSFilePath = "/var/folders/8q/db12hjjj3vb71zjscx8vcgrm0000gn/T/org.growone.GoServer.ShipIt.abA4Kh9M/GoServer.app";
    NSUserStringVariant =     (
        Remove
    );
} }
2017-06-08 13:27:11.786 ShipIt[10316:1427562] Installation completed successfully
2017-06-08 13:27:11.835 ShipIt[10316:1427573] Could not launch application at file:///Applications/GoServer.app: Error Domain=NSCocoaErrorDomain Code=256 "The application “GoServer.app” could not be launched because a miscellaneous error occurred (OSStatus -10814)." UserInfo={NSURL=file:///Applications/GoServer.app, NSLocalizedDescription=The application “GoServer.app” could not be launched because a miscellaneous error occurred (OSStatus -10814)., NSUnderlyingError=0x7f880a510290 {Error Domain=NSOSStatusErrorDomain Code=-10814 "m: r"}}
2017-06-08 13:27:11.835 ShipIt[10316:1427573] ShipIt quitting
2017-06-08 13:53:24.987 ShipIt[13542:1454370] Beginning installation
2017-06-08 13:53:25.405 ShipIt[13542:1454416] Moved bundle from file:///Applications/GoServer.app to file:///var/folders/8q/db12hjjj3vb71zjscx8vcgrm0000gn/T/org.growone.GoServer.ShipIt.G96fdKqL/GoServer.app
2017-06-08 13:53:25.406 ShipIt[13542:1454416] Moved bundle from file:///var/folders/8q/db12hjjj3vb71zjscx8vcgrm0000gn/T/org.growone.GoServer.ShipIt.GZCiwhZO/GoServer.app to file:///Applications/GoServer.app
2017-06-08 13:53:25.445 ShipIt[13542:1454416] Couldn't remove owned bundle at location file:///var/folders/8q/db12hjjj3vb71zjscx8vcgrm0000gn/T/org.growone.GoServer.ShipIt.GZCiwhZO/GoServer.app, error NSError { domain: NSCocoaErrorDomain, code: 4, description: "“GoServer.app” couldn’t be removed.", failureReason: "The file doesn’t exist.", underlying error: NSError { domain: NSPOSIXErrorDomain, code: 2, description: "The operation couldn’t be completed. No such file or directory" }, userInfo: {
    NSFilePath = "/var/folders/8q/db12hjjj3vb71zjscx8vcgrm0000gn/T/org.growone.GoServer.ShipIt.GZCiwhZO/GoServer.app";
    NSUserStringVariant =     (
        Remove
    );
} }
2017-06-08 13:53:25.497 ShipIt[13542:1454416] Installation completed successfully
2017-06-08 13:53:25.565 ShipIt[13542:1454446] Could not launch application at file:///Applications/GoServer.app: Error Domain=NSCocoaErrorDomain Code=256 "The application “GoServer.app” could not be launched because a miscellaneous error occurred (OSStatus -10814)." UserInfo={NSURL=file:///Applications/GoServer.app, NSLocalizedDescription=The application “GoServer.app” could not be launched because a miscellaneous error occurred (OSStatus -10814)., NSUnderlyingError=0x7fc392c21e00 {Error Domain=NSOSStatusErrorDomain Code=-10814 "m: r"}}
2017-06-08 13:53:25.566 ShipIt[13542:1454446] ShipIt quitting

A quick google of "OSStatus -10814" brought me this error.

	LaunchServices 
LSInfo.h	kLSApplicationNotFoundErr
-10814	No application in the Launch Services database matches the input criteria.

Let me know what additional information you would need for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions