jx: Fails to promote to staging
I am running on minikube.
[web] Running shell script
++ cat ../../VERSION
+ jx promote -b --all-auto --timeout 1h --version 0.0.4
Promoting app tabletoprank-web version 0.0.4 to namespace jx-staging
Using pipeline: ****/tabletoprank-web/master build: #1
Cloning into '/home/jenkins/.jx/environments/****/environment-orioleazure-staging'...
Found remote branch names master, HEAD -> origin/master, master
Switched to branch 'promote-tabletoprank-web-0.0.4'
[promote-tabletoprank-web-0.0.4 3372b38] Promote tabletoprank-web to version 0.0.4
1 file changed, 8 insertions(+), 5 deletions(-)
fatal: unable to get credential storage lock: Read-only file system
To https://github.com/****/environment-orioleazure-staging.git
* [new branch] HEAD -> promote-tabletoprank-web-0.0.4
Created Pull Request: https://github.com/****/environment-orioleazure-staging/pull/1
Using pipeline: ****/tabletoprank-web/master build: #1
WARNING: Failed to query the Pull Request last commit status for https://github.com/****/environment-orioleazure-staging/pull/1 ref 3372b38c983bac4d640b24969c90ace2cc4474ab Could not find a status for repository ****/environment-orioleazure-staging with ref 3372b38c983bac4d640b24969c90ace2cc4474ab
WARNING: Failed to query the Pull Request last commit status for https://github.com/****/environment-orioleazure-staging/pull/1 ref 3372b38c983bac4d640b24969c90ace2cc4474ab Could not find a status for repository ****/environment-orioleazure-staging with ref 3372b38c983bac4d640b24969c90ace2cc4474ab
WARNING: Failed to query the Pull Request last commit status for https://github.com/****/environment-orioleazure-staging/pull/1 ref 3372b38c983bac4d640b24969c90ace2cc4474ab Could not find a status for repository ****/environment-orioleazure-staging with ref 3372b38c983bac4d640b24969c90ace2cc4474ab
WARNING: Failed to query the Pull Request last commit status for https://github.com/****/environment-orioleazure-staging/pull/1 ref 3372b38c983bac4d640b24969c90ace2cc4474ab Could not find a status for repository ****/environment-orioleazure-staging with ref 3372b38c983bac4d640b24969c90ace2cc4474ab
WARNING: Failed to query the Pull Request last commit status for https://github.com/****/environment-orioleazure-staging/pull/1 ref 3372b38c983bac4d640b24969c90ace2cc4474ab Could not find a status for repository ****/environment-orioleazure-staging with ref 3372b38c983bac4d640b24969c90ace2cc4474ab
WARNING: Failed to query the Pull Request last commit status for https://github.com/****/environment-orioleazure-staging/pull/1 ref 3372b38c983bac4d640b24969c90ace2cc4474ab Could not find a status for repository ****/environment-orioleazure-staging with ref 3372b38c983bac4d640b24969c90ace2cc4474ab
WARNING: Failed to query the Pull Request last commit status for https://github.com/****/environment-orioleazure-staging/pull/1 ref 3372b38c983bac4d640b24969c90ace2cc4474ab Could not find a status for repository ****/environment-orioleazure-staging with ref 3372b38c983bac4d640b24969c90ace2cc4474ab
WARNING: Failed to query the Pull Request last commit status for https://github.com/****/environment-orioleazure-staging/pull/1 ref 3372b38c983bac4d640b24969c90ace2cc4474ab Could not find a status for repository ****/environment-orioleazure-staging with ref 3372b38c983bac4d640b24969c90ace2cc4474ab
WARNING: Failed to query the Pull Request last commit status for https://github.com/****/environment-orioleazure-staging/pull/1 ref 3372b38c983bac4d640b24969c90ace2cc4474ab Could not find a status for repository ****/environment-orioleazure-staging with ref 3372b38c983bac4d640b24969c90ace2cc4474ab
WARNING: Failed to query the Pull Request last commit status for https://github.com/****/environment-orioleazure-staging/pull/1 ref 3372b38c983bac4d640b24969c90ace2cc4474ab Could not find a status for repository ****/environment-orioleazure-staging with ref 3372b38c983bac4d640b24969c90ace2cc4474ab
WARNING: Failed to query the Pull Request last commit status for https://github.com/****/environment-orioleazure-staging/pull/1 ref 3372b38c983bac4d640b24969c90ace2cc4474ab Could not find a status for repository ****/environment-orioleazure-staging with ref 3372b38c983bac4d640b24969c90ace2cc4474ab
WARNING: Failed to query the Pull Request last commit status for https://github.com/****/environment-orioleazure-staging/pull/1 ref 3372b38c983bac4d640b24969c90ace2cc4474ab Could not find a status for repository ****/environment-orioleazure-staging with ref 3372b38c983bac4d640b24969c90ace2cc4474ab
WARNING: Failed to query the Pull Request last commit status for https://github.com/****/environment-orioleazure-staging/pull/1 ref 3372b38c983bac4d640b24969c90ace2cc4474ab Could not find a status for repository ****/environment-orioleazure-staging with ref 3372b38c983bac4d640b24969c90ace2cc4474ab
...
I think it is probably due to fatal: unable to get credential storage lock: Read-only file system
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 22 (10 by maintainers)
I figured I’d try creating a cluster on GKE and seeing if I could get a build promoted but I still get an error. Here is the PR CI job build issue I am getting now when I run on GKE:
The charts are showing up in monocular, but it appears that there is an issue pulling the chart. The chart is named ‘web’ in monocular, but it seems from the error message that it is looking for a chart named ‘tabletoprank-web’, which is the name of my github repo, while ‘web’, is the name of my local git repo.
@gauravnavgire @eecarus @odzhu @camusd I’ve just fixed this issue: #674 so that if, for whatever reason, webhooks are not working/configured/allowed through your firewall, then promotion should still work (albeit slow - it polls every 5 minutes for pending Pull Requests / merges to master)
To try out this fix you can run this:
which should upgrade your
jx
version to at least1.2.8
or later to get this fix.Then either re-create a Jenkins X cluster from scratch or:
Then remove the jobs from jenkins in the UI
Then recreate the Environments again:
then the new projects for the environments should have a background poll of 5 minutes applied. (You can always edit this time to shorter in the Jenkins UI if you
Configure
the environment projects in the Jenkins UI)@gauravnavgire see my comment above. Could you see if the Pull Request build has been triggered in Jenkins? It could be lack of resources or that webhooks are not working.