Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installer job failed for jdk11u-mac-x64 #1382

Closed
archanaNogriya opened this issue Jun 11, 2020 · 4 comments
Closed

Installer job failed for jdk11u-mac-x64 #1382

archanaNogriya opened this issue Jun 11, 2020 · 4 comments
Assignees
Labels

Comments

@archanaNogriya
Copy link

jdk11u-mac-x64-hotspot
jdk11u-mac-x64-openj9

https://ci.adoptopenjdk.net/view/Failing%20Builds/job/build-scripts/job/jobs/job/jdk11u/job/jdk11u-mac-x64-hotspot/579/console

07:35:58 Execution error: null

@gdams
Copy link
Member

gdams commented Jun 11, 2020

This error is caused by:

security: SecKeychainUnlock <NULL>: The user name or passphrase you entered is not correct.
Build step 'Execute shell' marked build as failure

Essentially the machine is trying to unlock the keychain and is complaining that the password is incorrect. I've rebooted the machine which fixed the issue (I've had the same issue in the past)

The only thing I can think is that it's because the machine had 2 executors and was trying to codesign 2 binaries at the same time.

Closing for now to see if this fixes things

@gdams gdams closed this as completed Jun 11, 2020
@karianna karianna added this to the June 2020 milestone Jun 11, 2020
@andrew-m-leonard
Copy link
Contributor

Problem has re-coccured: https://ci.adoptopenjdk.net/job/build-scripts/job/release/job/create_installer_mac/4563/console

Copied 3 artifacts from "build-scripts » jobs » jdk » jdk-mac-x64-hotspot" build number 232
[create_installer_mac] $ /bin/sh -xe /var/folders/rt/8_by_h8n5g9d5jhp66cf_7d80000gr/T/jenkins3652285145151103538.sh
+ bash pkgbuild/create-installer-mac.sh
security: SecKeychainUnlock <NULL>: The user name or passphrase you entered is not correct.
Build step 'Execute shell' marked build as failure
Archiving artifacts
Finished: FAILURE

Machine: test-macincloud-macos1014-x64-1
@gdams

@sxa sxa reopened this Sep 7, 2020
@sxa sxa modified the milestones: June 2020, September 2020 Sep 7, 2020
@Willsparker
Copy link
Contributor

Willsparker commented Sep 8, 2020

Looking at it now, the specific machine is test-macincloud-macos1014-x64-1. According to ci.adoptopenjdk.net, it only has one executor, so I would suppose it's a different machine to the one that caused the issue to open initially.

The particular command it's failing on is:

security unlock-keychain -p `cat ~/.password`

However, the correct syntax for unlock-keychain is as follows: Usage: unlock-keychain [-u] [-p password] [keychain]
When the keychain isn't specified (or passed NULL), it attempts to unlock the system keychain (See : https://developer.apple.com/documentation/security/1400341-seckeychainunlock?preferredLanguage=occ ), which the Jenkins user password is not the correct one.
I was able to do the following as the Jenkins user without error, so I believe the keychain needs to be specified.

security unlock-keychain -p `cat ~/.password` login.keychain-db

This, however, doesn't explain why a restart fixes the issue or why it stops working after awhile, or why it seems to only affect a single machine, not all of them.

@Willsparker
Copy link
Contributor

https://ci.adoptopenjdk.net/job/build-scripts/job/release/job/create_installer_mac/4628/console
The above PRs seemed to have fixed the keychain issue, so closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants