[11:34:10] Checking if there is a build in progress...
[11:34:10] Accessing credentials for kratoskp in project easysocial
[11:34:18] An unknown error occurred.
Seems like there’s a problem when uploading the keystore through the credentials manager and hitting this error:
ApiV2Error: An unknown error occurred.
at ApiV2Client._requestAsync (/@expo/xdl@58.0.16/src/ApiV2.ts:245:21)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at ApiClient.updateKeystoreApi (/usr/local/lib/node_modules/expo-cli/src/credentials/api/AndroidApiV2Wrapper.ts:19:12)
at AndroidApi.updateKeystore (/usr/local/lib/node_modules/expo-cli/src/credentials/api/AndroidApi.ts:36:5)
at UpdateKeystore.open (/usr/local/lib/node_modules/expo-cli/src/credentials/views/AndroidKeystore.ts:46:5)
at CredentialsManager.run (/usr/local/lib/node_modules/expo-cli/src/credentials/route.ts:41:12)
at runCredentialsManagerStandalone (/usr/local/lib/node_modules/expo-cli/src/credentials/route.ts:7:3)
at program.command.description.helpGroup.option.asyncActionProjectDir.checkConfig (/usr/local/lib/node_modules/expo-cli/src/commands/credentials.ts:37:9)
at Command. (/usr/local/lib/node_modules/expo-cli/src/exp.ts:332:7) {
code: ‘INTERNAL_SERVER_ERROR’,
details: undefined,
serverStack: undefined,
metadata: undefined,
_isApiError: true
}
i took at look at the server logs and we are not able to parse the keystore you are trying to upload. Specifically, we cannot find the certificate under the keystore alias you provided. Would you be able to help me debug by looking at the output of: keytool -list -v -keystore [your-keystore-path]?
In the meantime, I’m going to add a fix to the server so that it’ll give you back a helpful error instead of just INTERNAL_SERVER_ERROR.
Btw, the server still return the error INTERNAL_SERVER_ERROR when I try to upload existing keystore.
But the weird thing is, when I generate a new keystore. I’m able to upload it even though I created the new keystore with the same properties as the new existing one.
@kratoskp oh wow ok. What’s the output when you run keytool -list -v -keystore on the new keystore? Is the Signature algorithm name still SHA256withDSA?
@quinlanj I have updated my expo cli to version 3.28.4, retry to upload my old keystore and ther server gave out an actual error log this time. This is the result return by the server:
ApiV2Error: Invalid PKCS#12 (.p12) keystore: PKCS12: bag is not a certificate.
at ApiV2Client._requestAsync (/@expo/xdl@58.0.18/src/ApiV2.ts:245:21)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at ApiClient.updateKeystoreApi (/usr/local/lib/node_modules/expo-cli/src/credentials/api/AndroidApiV2Wrapper.ts:19:12)
at AndroidApi.updateKeystore (/usr/local/lib/node_modules/expo-cli/src/credentials/api/AndroidApi.ts:36:5)
at UpdateKeystore.open (/usr/local/lib/node_modules/expo-cli/src/credentials/views/AndroidKeystore.ts:46:5)
at CredentialsManager.run (/usr/local/lib/node_modules/expo-cli/src/credentials/route.ts:41:12)
at runCredentialsManagerStandalone (/usr/local/lib/node_modules/expo-cli/src/credentials/route.ts:7:3)
at program.command.description.helpGroup.option.asyncActionProjectDir.checkConfig (/usr/local/lib/node_modules/expo-cli/src/commands/credentials.ts:37:9)
at Command.<anonymous> (/usr/local/lib/node_modules/expo-cli/src/exp.ts:332:7) {
code: 'CREDENTIALS_ANDROID_KEYSTORE_ERROR',
details: undefined,
serverStack: undefined,
metadata: undefined,
_isApiError: true
}
Note: This keystore is currently being use to upload app into the playstore. So I can’t afford to use other keystore I’m afraid. I’ve double check if i entered the wrong password and alias also
I’m currently seeing what needs to be done to fix the root cause, but will also work on a fix that will unblock you sooner. It will likely take a couple days.