jx: gh-pages stops getting updates
Everything was logging fine but then mysteriously stopped. Tried:
- Removing gh-pages branch. I thought it would put it back but it doesn’t so I then had to re-instate it.
- Restarting the jenkins-x-controllerbuild pod.
I want to try doing a jx upgrade boot
but that gets stuck on issues with the cherry-picks.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 16 (7 by maintainers)
Today, again, the same problem.
But I’ve found the responsible piece that is in charge of doing this.
This is the pod: jenkins-x-controllerbuild-yyyyyyyyyy-zzzzz and these are the logs:
{"level":"info","msg":"storing logs for activity mycompany-jxqsapp-master-81 into storage at jenkins-x/logs/mycompany/jxqsapp/master/81.log","time":"2020-02-05T12:58:39Z"} {"level":"info","msg":"shallow cloning https://github.com/mycompany/jxqsapp.git branch gh-pages","time":"2020-02-05T12:58:39Z"} {"level":"warning","msg":"failed to shallow clone https://github.com/mycompany/jxqsapp.git branch gh-pages due to: failed to init a new git repository in directory /tmp/jenkins-x-collect632787736: git output: : failed to run 'git init' command in directory '/tmp/jenkins-x-collect632787736', output: ''","time":"2020-02-05T12:58:39Z"} {"level":"error","msg":"failed to store logs for activity mycompany-jxqsapp-master-81 into storage at jenkins-x/logs/mycompany/jxqsapp/master/81.log: failed to init a new git repository in directory /tmp/jenkins-x-collect369966487: git output: : failed to run 'git init' command in directory '/tmp/jenkins-x-collect369966487', output: ''","time":"2020-02-05T12:58:39Z"}
To solve the issue simply restart the pod. All pending logs are written immediately.
@ryandawsonuk @axsaucedo try this next time 😉
@marlovil this worked like a charm - you saved us yet another tedious re-install! Thanks!