Notarization inconsistency

Hi,

Seeing inconsistency while notarizing a pkg file. It doesn't always work stapling the exactly same package.

hostname:~ user$ stapler staple tmpgprjgljx.pkg
Processing: /Users/user/tmpgprjgljx.pkg
Processing: /Users/user/tmpgprjgljx.pkg
The staple and validate action worked!

hostname:~ user$ stapler staple tmpgprjgljx.pkg
Processing: /Users/user/tmpgprjgljx.pkg
CloudKit query for tmpgprjgljx.pkg (1/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) failed due to "(null)".
Could not find base64 encoded ticket in response for 1/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The staple and validate action failed! Error 65.

In the log above, stapling worked the first time but failed the second time! We automated the whole process a few months ago and it's been stable until today.

Cheers

As you can see from that error message, stapler fetches notarised tickets from CloudKit, and it seems that CloudKit had a bad day. I’ve seen reports of this internally, but I don’t have a bug number to share. If the problem persists, please file your own bug, making sure to include the verbose output from stapler (using the -v option) and a sysdiagnose log taken shortly after reproducing the problem.

Please epost your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

but I don’t have a bug number to share

OK, I found that bug number (r. 82824980). We believe that issue is now fixed but, if you continue to see problems, follow the advice from my previous post.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thanks for all the context @eskimo. Re-enabled automation and it worked on first try!

Notarization inconsistency
 
 
Q