{"action":"created","issue":{"url":"https://api.github.com/repos/jenkins-x/jx/issues/493","repository_url":"https://api.github.com/repos/jenkins-x/jx","labels_url":"https://api.github.com/repos/jenkins-x/jx/issues/493/labels{/name}","comments_url":"https://api.github.com/repos/jenkins-x/jx/issues/493/comments","events_url":"https://api.github.com/repos/jenkins-x/jx/issues/493/events","html_url":"https://github.com/jenkins-x/jx/issues/493","id":308173820,"number":493,"title":"Fails to promote to staging","user":{"login":"camusd","id":10520407,"avatar_url":"https://avatars2.githubusercontent.com/u/10520407?v=4","gravatar_id":"","url":"https://api.github.com/users/camusd","html_url":"https://github.com/camusd","followers_url":"https://api.github.com/users/camusd/followers","following_url":"https://api.github.com/users/camusd/following{/other_user}","gists_url":"https://api.github.com/users/camusd/gists{/gist_id}","starred_url":"https://api.github.com/users/camusd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camusd/subscriptions","organizations_url":"https://api.github.com/users/camusd/orgs","repos_url":"https://api.github.com/users/camusd/repos","events_url":"https://api.github.com/users/camusd/events{/privacy}","received_events_url":"https://api.github.com/users/camusd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"rawlingsj","id":1457180,"avatar_url":"https://avatars2.githubusercontent.com/u/1457180?v=4","gravatar_id":"","url":"https://api.github.com/users/rawlingsj","html_url":"https://github.com/rawlingsj","followers_url":"https://api.github.com/users/rawlingsj/followers","following_url":"https://api.github.com/users/rawlingsj/following{/other_user}","gists_url":"https://api.github.com/users/rawlingsj/gists{/gist_id}","starred_url":"https://api.github.com/users/rawlingsj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rawlingsj/subscriptions","organizations_url":"https://api.github.com/users/rawlingsj/orgs","repos_url":"https://api.github.com/users/rawlingsj/repos","events_url":"https://api.github.com/users/rawlingsj/events{/privacy}","received_events_url":"https://api.github.com/users/rawlingsj/received_events","type":"User","site_admin":false},"assignees":[{"login":"rawlingsj","id":1457180,"avatar_url":"https://avatars2.githubusercontent.com/u/1457180?v=4","gravatar_id":"","url":"https://api.github.com/users/rawlingsj","html_url":"https://github.com/rawlingsj","followers_url":"https://api.github.com/users/rawlingsj/followers","following_url":"https://api.github.com/users/rawlingsj/following{/other_user}","gists_url":"https://api.github.com/users/rawlingsj/gists{/gist_id}","starred_url":"https://api.github.com/users/rawlingsj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rawlingsj/subscriptions","organizations_url":"https://api.github.com/users/rawlingsj/orgs","repos_url":"https://api.github.com/users/rawlingsj/repos","events_url":"https://api.github.com/users/rawlingsj/events{/privacy}","received_events_url":"https://api.github.com/users/rawlingsj/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2018-03-23T20:46:37Z","updated_at":"2018-04-19T09:42:01Z","closed_at":null,"author_association":"NONE","body":"I am running on minikube.\r\n\r\n```\r\n[web] Running shell script\r\n++ cat ../../VERSION\r\n+ jx promote -b --all-auto --timeout 1h --version 0.0.4\r\nPromoting app tabletoprank-web version 0.0.4 to namespace jx-staging\r\nUsing pipeline: ****/tabletoprank-web/master build: #1\r\nCloning into '/home/jenkins/.jx/environments/****/environment-orioleazure-staging'...\r\nFound remote branch names master, HEAD -> origin/master, master\r\nSwitched to branch 'promote-tabletoprank-web-0.0.4'\r\n[promote-tabletoprank-web-0.0.4 3372b38] Promote tabletoprank-web to version 0.0.4\r\n 1 file changed, 8 insertions(+), 5 deletions(-)\r\nfatal: unable to get credential storage lock: Read-only file system\r\nTo https://github.com/****/environment-orioleazure-staging.git\r\n * [new branch]      HEAD -> promote-tabletoprank-web-0.0.4\r\nCreated Pull Request: https://github.com/****/environment-orioleazure-staging/pull/1\r\n\r\nUsing pipeline: ****/tabletoprank-web/master build: #1\r\nWARNING: 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\r\nWARNING: 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\r\nWARNING: 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\r\nWARNING: 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\r\nWARNING: 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\r\nWARNING: 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\r\nWARNING: 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\r\nWARNING: 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\r\nWARNING: 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\r\nWARNING: 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\r\nWARNING: 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\r\nWARNING: 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\r\nWARNING: 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\r\n...\r\n```\r\n\r\nI think it is probably due to `fatal: unable to get credential storage lock: Read-only file system`"},"comment":{"url":"https://api.github.com/repos/jenkins-x/jx/issues/comments/382674910","html_url":"https://github.com/jenkins-x/jx/issues/493#issuecomment-382674910","issue_url":"https://api.github.com/repos/jenkins-x/jx/issues/493","id":382674910,"user":{"login":"jstrachan","id":30140,"avatar_url":"https://avatars1.githubusercontent.com/u/30140?v=4","gravatar_id":"","url":"https://api.github.com/users/jstrachan","html_url":"https://github.com/jstrachan","followers_url":"https://api.github.com/users/jstrachan/followers","following_url":"https://api.github.com/users/jstrachan/following{/other_user}","gists_url":"https://api.github.com/users/jstrachan/gists{/gist_id}","starred_url":"https://api.github.com/users/jstrachan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstrachan/subscriptions","organizations_url":"https://api.github.com/users/jstrachan/orgs","repos_url":"https://api.github.com/users/jstrachan/repos","events_url":"https://api.github.com/users/jstrachan/events{/privacy}","received_events_url":"https://api.github.com/users/jstrachan/received_events","type":"User","site_admin":false},"created_at":"2018-04-19T09:42:01Z","updated_at":"2018-04-19T09:42:01Z","author_association":"CONTRIBUTOR","body":"@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)\r\n\r\nTo try out this fix you can run this:\r\n\r\n    jx upgrade cli\r\n\r\nwhich should upgrade your `jx` version to at least `1.2.8` or later to get this fix.\r\n\r\nThen either re-create a Jenkins X cluster from scratch or:\r\n* delete your environments via:\r\n```\r\njx delete env staging\r\njx delete env production\r\n```\r\nThen remove the jobs from jenkins in the UI\r\n```\r\njx console\r\n```\r\nThen recreate the Environments again:\r\n```\r\njx create env staging\r\n....\r\njx create env production\r\n....\r\n```\r\nthen 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)"}}
{"actor":{"display_login":"jstrachan"}}