Build failing: ".../ksp.txt: No such file or directory"

Hello,

I have been trying unsuccessfully to build my new app in Scriptoria. This is always the last line in the console text:

cat: /secrets/google_play_store/jawca/org.jawca.traduccionborrador.qxh/ksp.txt: No such file or directory

I’ll put the full console text at the end of this message.

I am using SAB 9.3, Build Release 101.

Is there anything I am doing wrong? What can I do to fix this?

Please let me know if you have any other details.

Thanks so much.


Here are the product details:

Full console text:


APP_BUILDER_SCRIPT_PATH=scripture-app-builder
App that has draft versions of the Panao Quechua (QXH) Bible. The purpose is for the Panao community to evaluate the drafts and give feedback. 
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI=/v2/credentials/3e64187a-e1da-4749-9a99-e530925034a3
AWS_DEFAULT_REGION=us-east-1
AWS_EXECUTION_ENV=AWS_ECS_EC2
AWS_REGION=us-east-1
BUILD_MANAGE_VERSION_CODE=1
BUILD_MANAGE_VERSION_NAME=1
BUILD_NUMBER=13362
BUILD_SHARE_APP_LINK=1
CODEBUILD_AGENT_ENDPOINT=http://127.0.0.1:7831
CODEBUILD_AUTH_TOKEN=e8b4a353-b2dc-41f0-b75c-a99756915445
CODEBUILD_BMR_URL=https://CODEBUILD_AGENT:3000
CODEBUILD_BUILD_ARN=arn:aws:codebuild:us-east-1:117995318043:build/build_app-prd:3d61fe70-a430-436e-a4fa-e24a17886232
CODEBUILD_BUILD_ID=build_app-prd:3d61fe70-a430-436e-a4fa-e24a17886232
CODEBUILD_BUILD_IMAGE=117995318043.dkr.ecr.us-east-1.amazonaws.com/appbuilder-agent-prd:latest
CODEBUILD_BUILD_NUMBER=7193
CODEBUILD_BUILD_SUCCEEDING=1
CODEBUILD_BUILD_URL=https://us-east-1.console.aws.amazon.com/codebuild/home?region=us-east-1#/builds/build_app-prd:3d61fe70-a430-436e-a4fa-e24a17886232/view/new
CODEBUILD_CI=true
CODEBUILD_CONTAINER_NAME=default
CODEBUILD_EXECUTION_ROLE_BUILD=
CODEBUILD_FE_REPORT_ENDPOINT=https://codebuild.us-east-1.amazonaws.com/
CODEBUILD_GOPATH=/codebuild/output/src777657414
CODEBUILD_INITIATOR=buildengine-prd
CODEBUILD_KMS_KEY_ID=arn:aws:kms:us-east-1:117995318043:alias/aws/s3
CODEBUILD_LAST_EXIT=0
CODEBUILD_LOG_PATH=3d61fe70-a430-436e-a4fa-e24a17886232
CODEBUILD_PROJECT_UUID=eb14fb6f-82fa-4520-b9a1-e2ca63a3b06f
CODEBUILD_SRC_DIR=/codebuild/output/src777657414/src
CODEBUILD_START_TIME=1652135521683
DEBIAN_FRONTEND=teletype
ECS_CONTAINER_METADATA_URI=http://169.254.170.2/v3/aecf65df-8d85-44c1-aab8-2369ba9760b0
ECS_CONTAINER_METADATA_URI_V4=http://169.254.170.2/v4/aecf65df-8d85-44c1-aab8-2369ba9760b0
GOPATH=/codebuild/output/src777657414
GRADLE_OPTS=-Dorg.gradle.daemon=false
HOME=/root
HOSTNAME=c98c48f833b5
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=en_US.UTF-8
MAVEN_OPTS=-Dmaven.wagon.httpconnectionManager.maxPerRoute=2
OLDPWD=/codebuild/readonly
OUTPUT_DIR=/13362
PATH=/root/.rbenv/shims:/root/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/codebuild/user/bin
PRODUCT_ID=ac008512-cb91-4952-8718-585adbc66916
PROJECT_DESCRIPTION=Aplicación que contiene versiones borradores de la Biblia Quechua Panatahua (QXH). El propósito es que la comunidad panatahua opine de los borradores y den retroalimentación.
PROJECT_DIR=/project
PROJECT_ID=2053
PROJECT_LANGUAGE=qxh
PROJECT_NAME=Traducción Borrador (QPN)
PROJECT_ORGANIZATION=JAWCA
PROJECT_OWNER_EMAIL=jawcahuanuco@gmail.com
PROJECT_OWNER_NAME=JAWCA
PROJECT_S3=s3://sil-prd-aps-projects/scriptureappbuilder/qxh-2001-Traduccin-Borrador-QPN
PROJECT_URL=https://app.scriptoria.io/projects/2053
PUBLISHER=jawca
PWD=/codebuild/output/src777657414/src
RBENV_SHELL=bash
SCRIPT_DIR=/script
SCRIPT_S3=s3://sil-prd-aps-projects/default
SECRETS_BUCKET=sil-prd-aps-secrets
SECRETS_DIR=/secrets
SECRETS_S3=s3://sil-prd-aps-secrets/jenkins/build
SHLVL=1
TARGETS=apk play-listing
UI_URL=https://app.scriptoria.io
_=/usr/bin/env
VERSION_CODE=0
WORKFLOW_PRODUCT_NAME=Android App to Google Play (Low Admin)
WORKFLOW_TYPE=Startup
Moving Traducción Borrador (QPN).appDef and ./Traducción Borrador (QPN)_data
exporting BUILD_ANDROID_AAB=1
exporting BUILD_KEYSTORE=org.jawca.traduccionborrador.qxh
APPDEF_VERSION_NAME=9.5
BUILD_MANAGE_VERSION_NAME=1
APPDEF_PACKAGE_NAME=org.jawca.traduccionborrador.qxh
APPDEF_VERSION_CODE=3
BUILD_MANAGE_VERSION_CODE=1
TARGETS: apk play-listing
Build APK
BUILD_SHARE_APP_LINK=1
BUILD_SHARE_APP_INSTALLER=
BUILD_SHARE_DOWNLOAD_APP_LINK=
BUILD_NUMBER=13362
VERSION_NAME=9.3
VERSION_CODE=4
OUTPUT_DIR=/13362
SCRIPT_OPT= -ft share-app-link=true
Using build keystore=org.jawca.traduccionborrador.qxh
cat: /secrets/google_play_store/jawca/org.jawca.traduccionborrador.qxh/ksp.txt: No such file or directory```

Hi Alex,
I have a running list of errors that I have seen with possible reasons/solutions. There are a couple of possible solutions to this error message. Here is what I have compiled as of today for this particular “No such file or directory” error. Maybe one of my solutions will help. Many of these have to do with publishing properties that we use.


ERROR MSG:
/script/build.sh: line 162: pushd: /tmp/output/pwa/org.ips.dtybible.dotyali: No such file or directory

  • Possible that this shows up when an app has only a single Book collection and the BUILD_PWA_COLLECTION_ID > C01=C01 is used. With a single collection this line is not needed.

ERROR MSG:
cat: /secrets/google_play_store/km_ips_indonesia/dann/ksp.txt: No such file or directory

Another example:
cat: /secrets/google_play_store/alkitab_maluku/maluku/ksp.txt: No such file or directory

  • This is calling for the incorrect keystore. IE:
    • BUILD_KEYSTORE set when not needed or incorrectly. IE: dann or maluku was called for but was incorrect.
      OR
    • Is it calling for an aab and not calling for a BUILD_KEYSTORE of km_aab, or is an aab even needed? If previously submitted app was an apk, then it will fail if we’re trying to upload an aab.

Hope that is helpful.
If you want a copy of what I have compiled so far DM me; dan at kalaam.org

@Alex_Larkin,

You problem is that you have BUILD_KEYSTORE=org.jawca.traduccionborrador.qxh in your publishing properties but that keystore doesn’t exist in Scriptoria. If you need to use a keystore other than the default keystore for your organization, then you will need to send me the keystore and credentials so that I can add it to your organization.

Chris

P.S. I emailed Alex directly this morning, but I should have explained here as well.

Thanks so much for the tip!

I remember that I read an instruction somewhere saying that I needed to set these two values for new apps:

However, after searching all over the place, I can’t find these instructions anymore.

I deleted the BUILD_KEYSTORE property, synced, and rebuilt, and now things seem to be working again:

Thanks Chris for your help! Now I’ll work on the next steps.