Skip to content

Desktop deploy failing on notarization step #9277

@luacmartins

Description

@luacmartins

Problem

Coming from this thread, the Desktop deploy is failing on notarization step - see this workflow failure. This is most likely happening because we enabled 2FA for ios@expensify.com. Logs below:

Building Desktop App Archive Using Electron

  • electron-builder  version=22.13.1 os=20.6.0
  • loaded configuration  file=/Users/runner/work/App/App/config/electronBuilder.config.js
  • packaging       platform=darwin arch=x64 electron=17.0.0 appOutDir=desktop-build/mac
  • downloading     url=https://github.com/electron/electron/releases/download/v17.0.0/electron-v17.0.0-darwin-x64.zip size=81 MB parts=6
  • downloaded      url=https://github.com/electron/electron/releases/download/v17.0.0/electron-v17.0.0-darwin-x64.zip duration=1.[329](https://github.com/Expensify/App/runs/6695706323?check_suite_focus=true#step:8:330)s
  • signing         file=desktop-build/mac/New Expensify.app identityName=Developer ID Application: Expensify, Inc. (368M544MTT) identityHash=0633A09738B5C8B1FF97B81A951198CBB50B87A2 provisioningProfile=none
  ⨯ Failed to upload app to Apple's notarization servers

*** Error: Notarization failed for '/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/electron-notarize-s22294/New Expensify.zip'.
*** Error: Unable to upload your app for notarization. Failed to get authorization for username '***' and password. (
    "Error Domain=NSCocoaErrorDomain Code=0 \"Status code: 0\" UserInfo={NSLocalizedDescription=Status code: 0, NSLocalizedFailureReason=The auth server returned a bad status code.}"
) (-1011)
 {
    NSLocalizedDescription = "Unable to upload your app for notarization.";
    NSLocalizedFailureReason = "Failed to get authorization for username '***' and password. (\n    \"Error Domain=NSCocoaErrorDomain Code=0 \\\"Status code: 0\\\" UserInfo={NSLocalizedDescription=Status code: 0, NSLocalizedFailureReason=The auth server returned a bad status code.}\"\n)";
}
  failedTask=build stackTrace=Error: Failed to upload app to Apple's notarization servers
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      *** Error: Notarization failed for '/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/electron-notarize-s22294/New Expensify.zip'.
*** Error: Unable to upload your app for notarization. Failed to get authorization for username '***' and password. (
    "Error Domain=NSCocoaErrorDomain Code=0 \"Status code: 0\" UserInfo={NSLocalizedDescription=Status code: 0, NSLocalizedFailureReason=The auth server returned a bad status code.}"
) (-1011)
 {
    NSLocalizedDescription = "Unable to upload your app for notarization.";
    NSLocalizedFailureReason = "Failed to get authorization for username '***' and password. (\n    \"Error Domain=NSCocoaErrorDomain Code=0 \\\"Status code: 0\\\" UserInfo={NSLocalizedDescription=Status code: 0, NSLocalizedFailureReason=The auth server returned a bad status code.}\"\n)";
}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          at /Users/runner/work/App/App/node_modules/electron-notarize/src/index.ts:87:13
    at Generator.next (<anonymous>)
    at fulfilled (/Users/runner/work/App/App/node_modules/electron-notarize/lib/index.js:4:58)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! new.expensify@1.1.70-2 desktop-build-staging: `scripts/build-desktop.sh staging "--publish" "always"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the new.expensify@1.1.70-2 desktop-build-staging script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/runner/.npm/_logs/2022-06-01T18_52_58_430Z-debug.log
Error: Process completed with exit code 1.

Why is this important

We can't deploy Desktop

Solution

🤷

Metadata

Metadata

Assignees

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