Jx: failed to run 'helm repo add jenkins-x https://storage.googleapis.com/chartmuseum.jenkins-x.io'

Created on 27 Jun 2019  ·  15Comments  ·  Source: jenkins-x/jx

Summary

I am try to create jx cluster locally with minikube. I have install minikube successfully, but i always failure by helm repo connection or some unclear reason.

by the way, I am in China

Steps to reproduce the behavior

jx install --provider='minikube'

Expected behavior

jx create cluster successfully

Actual behavior

Jx version

The output of jx version is:

NAME VERSION
jx 2.0.324
Kubernetes cluster v1.12.6-aliyun.1
kubectl v1.15.0
helm client v2.14.1+g5270352
helm server v2.11.0+g2e55dbe
git git version 2.21.0.windows.1
Operating System Windows 10 Pro 1903 build 18362

COPY OUTPUT HERE

>
FATAL: helm init failed: after 3 attempts, last error: failed to run 'helm repo add jenkins-x https://storage.googleapis.com/chartmuseum.jenkins-x.io' command in directory '', output: 'Error: Looks like "https://storage.googleapis.com/chartmuseum.jenkins-x.io" is not a valid chart repository or cannot be reached: Get https://storage.googleapis.com/chartmuseum.jenkins-x.io/index.yaml: dial tcp 172.217.24.16:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.'

Jenkins type

  • [ ] Next Generation (Tekton + Prow)
  • [x ] Classic Jenkins
  • [ ] Serverless Jenkins (JenkinsFileRunner + Prow)

Kubernetes cluster

Create with command minikube start

Operating system / Environment

Operating System Windows 10 Pro 1903 build 18362

arejenkins lifecyclrotten prioritawaiting-more-evidence

Most helpful comment

gcr.io/jenkinsxio/prow/crier:v20190510-3f2c8d788 这个镜像我们是下载不下来的。
然后gcr.azk8s.cn这个源是gcr.io 的镜像。

docker pull gcr.azk8s.cn/jenkinsxio/prow/crier:v20190510-3f2c8d788
docker tag gcr.azk8s.cn/jenkinsxio/prow/crier:v20190510-3f2c8d788 gcr.io/jenkinsxio/prow/crier:v20190510-3f2c8d788

All 15 comments

can you run this command on your laptop:

https://storage.googleapis.com/chartmuseum.jenkins-x.io/index.yaml

might also be worth trying inside your minikube VM. Might be firewall / network issues?

@jstrachan You are right!! It's real cause by network mistake. By the way ,is there any helm repo for china? Or, how can i customize one repo?

I meet this problem , too.
How to resolve it.

@cheerego

这个问题的原因是因为有些镜像在海外服务器上,所以国内如果不借助工具的话,就无法下载所需镜像。
解决办法有两种思路

  1. 挂代理直接翻墙拉取镜像
  2. 搬运镜像

我用的是第二种方式:

  • 在阿里云香港分区临时租用一台ECS,然后在这台ECS上下载镜像。将下载后的镜像push到自己的镜像仓库(Docker仓库建议也直接用阿里云的容器镜像服务吧,或者用Docker hub,但是网络可能就会慢些了)
  • 因为我用的minikube作为k8s ,所以在minikube 从自己的镜像仓库去拉取镜像
  • 拉取完成后,记得使用 docker tag 重新为镜像打标签

所需镜像列表(仅供参考)

  1. gcr.io/jenkinsxio/builder-go:0.1.542
  2. gcr.io/jenkinsxio/nexus:0.1.7
  3. k8s.gcr.io/heapster:v1.5.2
  4. k8s.gcr.io/addon-resizer:1.7
    5 gcr.io/jenkinsxio/exposecontroller:2.3.111

因为每个人的网络情况可能不一样,如果你发现某个pod 的状态是镜像获取失败 。查看这个pod所需镜像,然后在海外服务器上下载并传输到国内,再重新tag即可

我所知道就这么多。 期待有一天有个代理地址可以让我们跳过GFW

@Booooooger
嗯,镜像问题我是用 gcr.azk8s.cn 解决的。

但是helm的jenkins-x源是有问题的,这个不知道怎么解决,服务器翻墙很难受

@cheerego 可以分享下 gcr.azk8s.cn解决步骤嘛

@Booooooger

docker pull gcr.azk8s.cn/jenkinsxio/prow/crier:v20190510-3f2c8d788

然后打tag

@cheerego tag 怎么打 😂

gcr.io/jenkinsxio/prow/crier:v20190510-3f2c8d788 这个镜像我们是下载不下来的。
然后gcr.azk8s.cn这个源是gcr.io 的镜像。

docker pull gcr.azk8s.cn/jenkinsxio/prow/crier:v20190510-3f2c8d788
docker tag gcr.azk8s.cn/jenkinsxio/prow/crier:v20190510-3f2c8d788 gcr.io/jenkinsxio/prow/crier:v20190510-3f2c8d788

/area jenkins

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://jenkins-x.io/community.
/lifecycle stale

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Provide feedback via https://jenkins-x.io/community.
/lifecycle rotten

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://jenkins-x.io/community.
/close

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://jenkins-x.io/community.
/close

@jenkins-x-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://jenkins-x.io/community.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository.

Was this page helpful?
0 / 5 - 0 ratings