Jenkinsx - Production promote failing due to connection refused error

时间:2019-04-17 01:28:14

标签: jenkins--x

I am trying to build a CI/CD pipeline on GKE. But the promotion from staging to production is failing due to connection refused error.

To resolve the issue, I referred the solution suggested at https://github.com/jenkins-x/jx/issues/469 by updating the version of exposecontroller. Still, it is not resolved.

I could see the error like this:

+ jx step helm build

{"level":"warning","msg":"No $CHART_REPOSITORY defined so using the default value of: http://jenkins-x-chartmuseum:8080\n","time":"2019-04-17T01:17:40Z"}

{"level":"info","msg":"Adding missing Helm repo: chartmuseum.jenkins-x.io http://chartmuseum.jenkins-x.io\n","time":"2019-04-17T01:17:42Z"}

{"level":"info","msg":"Successfully added Helm repository chartmuseum.jenkins-x.io.\n","time":"2019-04-17T01:17:43Z"}

{"level":"info","msg":"Adding missing Helm repo: jenkins-x-chartmuseum:8080 http://jenkins-x-chartmuseum:8080\n","time":"2019-04-17T01:17:43Z"}

{"level":"info","msg":"Successfully added Helm repository jenkins-x-chartmuseum:8080.\n","time":"2019-04-17T01:17:43Z"}

error: failed to build the dependencies of chart '.': failed to run 'helm dependency build' command in directory '.', output: 'Hang tight while we grab the latest from your chart repositories...

...Unable to get an update from the "local" chart repository (http://127.0.0.1:8879/charts):

    Get http://127.0.0.1:8879/charts/index.yaml: dial tcp 127.0.0.1:8879: connect: connection refused

Is there anything I am missing? How can I fix this issue? Thanks in advance!

1 个答案:

答案 0 :(得分:0)

在生产git存储库上运行的管道的输出是什么?

如果您想尝试通过笔记本电脑进行本地升级,则需要确保您的头盔上有海图博物馆的远程存储库,以便它可以找到您在其中发布的海图(头盔正在谈论的依赖项) env/requirements.yaml在生产git存储库中。

尝试jx open查看图表博物馆的URL,然后运行

helm repo add myservices $ChartMuseumURL