一键脚本安装出错

  • Choerodon平台版本: 0.18.0

  • 遇到问题的执行步骤:
    一键脚本安装出错,一直等2小时(求安装视频。。跪求)

  • 文档地址:
    http://choerodon.io/zh/docs/installation-configuration/steps/install/choerodon/

  • 环境信息(如:节点信息):
    node 4*4核16G100 G ssd +2核4g 500G nfs 香港腾讯云。安全组允许所有端口访问。
    最近2周都没有安装成功,跪求视频安装教程,1.一键脚本 2.分步骤安装 。可以知识付费。能力有限。

  • 报错日志:
    2019/07/17 02:02:37 [INFO] Waiting register-server running

2019/07/17 02:02:37 [DEBUG] register-server: resource url is http://register-server:8000/eureka/

2019/07/17 02:02:37 [DEBUG] checking http://register-server:8000/eureka/apps

2019/07/17 02:02:37 [INFO] Waiting manager-service running

2019/07/17 02:02:37 [DEBUG] checking http://172.16.3.54:8964/actuator/health

2019/07/17 02:02:37 [INFO] Waiting iam-service running

2019/07/17 02:02:38 [DEBUG] checking http://172.16.1.32:8031/actuator/health

2019/07/17 02:02:38 [INFO] using exist release file-service

2019/07/17 02:02:38 [INFO] start install choerodon:devops

2019/07/17 02:02:38 [INFO] start install devops-service

2019/07/17 02:02:38 [INFO] Waiting mysql running

2019/07/17 02:02:38 [DEBUG] mysql: resource password is Landa212

2019/07/17 02:02:38 [DEBUG] checking mysql:3306

2019/07/17 02:02:38 [INFO] Waiting redis running

2019/07/17 02:02:38 [INFO] Waiting gitlab running

2019/07/17 02:02:38 [DEBUG] checking http://gitlab:80/help

2019/07/17 02:02:57 [DEBUG] check gitlab health failed with msg: ‘rpc error: code = Unknown desc = Get http://gitlab/help: dial tcp 172.16.15.158:80: i/o timeout’ retry …
Waiting gitlab running

2019/07/17 02:02:38 [DEBUG] checking http://gitlab:80/help

2019/07/17 02:02:57 [DEBUG] check gitlab health failed with msg: ‘rpc error: code = Unknown desc = Get http://gitlab/help: dial tcp 172.16.15.158:80: i/o timeout’ retry …

2019/07/17 02:03:08 [DEBUG] check gitlab health failed with msg: ‘rpc error: code = Unknown desc = Get http://gitlab/help: dial tcp 172.16.15.158:80: i/o timeout’ retry …

2019/07/17 02:03:14 [DEBUG] check gitlab health failed with msg: ‘rpc error: code = Unknown desc = Get http://gitlab/help: dial tcp 172.16.15.158:80: i/o timeout’ retry …

2019/07/17 02:03:25 [DEBUG] check gitlab health failed with msg: ‘rpc error: code = Unknown desc = Get http://gitlab/help: dial tcp 172.16.15.158:80: i/o timeout’ retry …

2019/07/17 02:03:47 [DEBUG] check gitlab health failed with msg: ‘rpc error: code = Unknown desc = Get http://gitlab/help: dial tcp 172.16.15.158:80: i/o timeout’ retry …

2019/07/17 02:03:58 [DEBUG] check gitlab health failed with msg: ‘rpc error: code = Unknown desc = Get http://gitlab/help: dial tcp 172.16.15.158:80: i/o timeout’ retry …

2019/07/17 02:04:04 [DEBUG] check gitlab health failed with msg: ‘rpc error: code = Unknown desc = Get http://gitlab/help: dial tcp 172.16.15.158:80: i/o timeout’ retry …

2019/07/17 02:04:15 [DEBUG] check gitlab health failed with msg: ‘rpc error: code = Unknown desc = Get http://gitlab/help: dial tcp 172.16.15.158:80: i/o timeout’ retry …

2019/07/17 02:04:37 [DEBUG] check gitlab health failed with msg: ‘rpc error: code = Unknown desc = Get http://gitlab/help: dial tcp 172.16.15.158:80: i/o timeout’ retry …

  • 原因分析:

    提出您分析问题的过程,以便我们能更准确的找到问题所在

  • 疑问:

    提出您对于遇到和解决该问题时的疑问

./c7nctl install -c config.yml --no-timeout --version=0.18 &

[2] 11384

[root@node1 c7nctl-0.16.1]# 2019/07/17 08:51:42 [INFO] getting resource /version.yml

2019/07/17 08:51:43 [INFO] getting resource /0.18/install.yml

2019/07/17 08:51:44 [INFO] namespace c7n-system already exists

2019/07/17 08:51:45 [INFO] waiting slaver running…

2019/07/17 08:51:46 [INFO] waiting slaver running…

E0717 08:51:46.234564 10726 portforward.go:316] error copying from local connection to remote stream: read tcp4 127.0.0.1:8001->127.0.0.1:55840: read: connection reset by peer

E0717 08:51:46.235105 10726 portforward.go:316] error copying from local connection to remote stream: read tcp4 127.0.0.1:8001->127.0.0.1:55826: read: connection reset by peer

2019/07/17 08:51:46 [INFO] clean history jobs…

2019/07/17 08:51:46 [INFO] start install postgresql

2019/07/17 08:51:46 [INFO] using exist release postgresql

2019/07/17 08:51:46 [INFO] start install mysql

2019/07/17 08:51:46 [INFO] using exist release mysql

2019/07/17 08:51:46 [INFO] start install redis

2019/07/17 08:51:46 [INFO] using exist release redis

2019/07/17 08:51:46 [INFO] start install gitlab

2019/07/17 08:51:46 [INFO] Waiting postgresql running

2019/07/17 08:51:46 [INFO] Waiting redis running

2019/07/17 08:51:46 [INFO] using exist release gitlab

2019/07/17 08:51:46 [INFO] start install minio

2019/07/17 08:51:46 [INFO] Waiting gitlab running

2019/07/17 08:51:47 [INFO] using exist release minio

2019/07/17 08:51:47 [INFO] start install harbor

2019/07/17 08:51:49 [INFO] using exist release harbor

2019/07/17 08:51:49 [INFO] start install chartmuseum

2019/07/17 08:51:49 [INFO] using exist release chartmuseum

2019/07/17 08:51:49 [INFO] start install choerodon:framework

2019/07/17 08:51:49 [INFO] start install register-server

2019/07/17 08:51:49 [INFO] using exist release register-server

2019/07/17 08:51:49 [INFO] start install asgard-service

2019/07/17 08:51:50 [INFO] Waiting mysql running

2019/07/17 08:51:50 [INFO] Waiting register-server running

2019/07/17 08:51:50 [INFO] using exist release asgard-service

2019/07/17 08:51:50 [INFO] start install manager-service

2019/07/17 08:51:50 [INFO] Waiting mysql running

2019/07/17 08:51:51 [INFO] Waiting register-server running

2019/07/17 08:51:51 [INFO] Waiting asgard-service running

2019/07/17 08:51:51 [INFO] using exist release manager-service

2019/07/17 08:51:51 [INFO] start install notify-service

2019/07/17 08:51:51 [INFO] Waiting mysql running

2019/07/17 08:51:52 [INFO] Waiting redis running

2019/07/17 08:51:52 [INFO] Waiting register-server running

2019/07/17 08:51:52 [INFO] Waiting manager-service running

2019/07/17 08:51:52 [INFO] using exist release notify-service

2019/07/17 08:51:52 [INFO] start install iam-service

2019/07/17 08:51:53 [INFO] Waiting mysql running

2019/07/17 08:51:53 [INFO] Waiting register-server running

2019/07/17 08:51:53 [INFO] Waiting manager-service running

2019/07/17 08:51:53 [INFO] using exist release iam-service

2019/07/17 08:51:53 [INFO] start install api-gateway

2019/07/17 08:51:54 [INFO] Waiting mysql running

2019/07/17 08:51:54 [INFO] Waiting register-server running

2019/07/17 08:51:54 [INFO] Waiting manager-service running

2019/07/17 08:51:54 [INFO] using exist release api-gateway

2019/07/17 08:51:54 [INFO] start install oauth-server

2019/07/17 08:51:55 [INFO] Waiting mysql running

2019/07/17 08:51:55 [INFO] Waiting register-server running

2019/07/17 08:51:55 [INFO] Waiting manager-service running

2019/07/17 08:51:55 [INFO] Waiting iam-service running

2019/07/17 08:51:56 [INFO] using exist release oauth-server

2019/07/17 08:51:56 [INFO] start install file-service

2019/07/17 08:51:56 [INFO] Waiting mysql running

2019/07/17 08:51:56 [INFO] Waiting register-server running

2019/07/17 08:51:56 [INFO] Waiting manager-service running

2019/07/17 08:51:57 [INFO] Waiting iam-service running

2019/07/17 08:51:57 [INFO] using exist release file-service

2019/07/17 08:51:57 [INFO] start install choerodon:devops

2019/07/17 08:51:57 [INFO] start install devops-service

2019/07/17 08:51:57 [INFO] Waiting mysql running

2019/07/17 08:51:58 [INFO] Waiting redis running

2019/07/17 08:51:58 [INFO] Waiting gitlab running

2019/07/17 08:52:14 [DEBUG] check gitlab health failed with msg: ‘rpc error: code = Unknown desc = Get http://gitlab/help: dial tcp 172.16.15.158:80: i/o timeout’ retry …

2019/07/17 08:52:26 [DEBUG] check gitlab health failed with msg: ‘rpc error: code = Unknown desc = Get http://gitlab/help: dial tcp 172.16.15.158:80: i/o timeout’ retry …

#####还是一样报错

看看 gitlab 的日志

019/07/18 13:38:41 [INFO] job gitlab-service-init-config haven’t finished yet. please wait patiently
2019/07/18 13:38:41 [DEBUG] you can watch logs by execute follow command:
kubectl logs -f gitlab-service-init-config-ggvdh -n c7n-system
2019/07/18 13:38:41 [DEBUG] still install gitlab-service
2019/07/18 13:38:51 [INFO] job gitlab-service-init-config haven’t finished yet. please wait patiently
2019/07/18 13:38:51 [DEBUG] you can watch logs by execute follow command:
kubectl logs -f gitlab-service-init-config-lzc4v -n c7n-system
2019/07/18 13:38:51 [DEBUG] still install gitlab-service
2019/07/18 13:39:01 [INFO] job gitlab-service-init-config haven’t finished yet. please wait patiently
2019/07/18 13:39:01 [DEBUG] you can watch logs by execute follow command:
kubectl logs -f gitlab-service-init-config-lzc4v -n c7n-system
2019/07/18 13:39:01 [DEBUG] still install gitlab-service
2019/07/18 13:39:11 [INFO] job gitlab-service-init-config haven’t finished yet. please wait patiently
2019/07/18 13:39:11 [DEBUG] still install gitlab-service
2019/07/18 13:39:20 [Error] install failed
Error: rpc error: code = Unknown desc = Job failed: BackoffLimitExceeded
Usage:
c7nctl install [flags]

Flags:
-c, --config-file string User Config file to read from, User define config by this file
–debug enable debug output
-h, --help help for install
–no-timeout disable install job timeout
–prefix string add prefix to all helm release
-r, --resource-file string Resource file to read from, It provide which app should be installed
–skip-input use default username and password to avoid user input
–version string specify a version

Global Flags:
–config string config file (default is $HOME/.c7n.yaml)
-o, --orgCode string org code
-p, --proCode string pro code

rpc error: code = Unknown desc = Job failed: BackoffLimitExceeded
[root@VM_0_6_centos c7nctl-0.16.1]#

kubectl logs -f gitlab-service-init-config-lzc4v -n c7n-system
2019-07-18 13:38:46.444 INFO 6 — [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@5ae2d111: startup date [Thu Jul 18 13:38:46 CST 2019]; root of context hierarchy
2019-07-18 13:38:46.789 INFO 6 — [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 ‘javax.inject.Inject’ annotation found and supported for autowiring
2019-07-18 13:38:46.843 INFO 6 — [ main] trationDelegate$BeanPostProcessorChecker : Bean ‘configurationPropertiesRebinderAutoConfiguration’ of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$40450c6c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

. ____ _ __ _ _
/\ / __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ’ / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
’ |
| .__|| ||| |_, | / / / /
=========|
|==============|/=////
:: Spring Boot :: (v1.5.3.RELEASE)

2019-07-18 13:38:47.450 INFO 6 — [ main] i.c.config.ConfigToolApplication : No active profile set, falling back to default profiles: default
2019-07-18 13:38:47.468 INFO 6 — [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@98904a1e: startup date [Thu Jul 18 13:38:47 CST 2019]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@5ae2d111
2019-07-18 13:38:48.008 WARN 6 — [ main] o.m.s.mapper.ClassPathMapperScanner : No MyBatis mapper was found in ‘[io.choerodon.config]’ package. Please check your configuration.
2019-07-18 13:38:48.210 INFO 6 — [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=791598cd-d66d-336e-ac01-3d679818bc03
2019-07-18 13:38:48.226 INFO 6 — [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 ‘javax.inject.Inject’ annotation found and supported for autowiring
2019-07-18 13:38:48.361 INFO 6 — [ main] trationDelegate$BeanPostProcessorChecker : Bean ‘org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration’ of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$242b096f] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-07-18 13:38:48.399 INFO 6 — [ main] trationDelegate$BeanPostProcessorChecker : Bean ‘org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration’ of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$40450c6c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-07-18 13:38:49.499 INFO 6 — [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2019-07-18 13:38:49.507 INFO 6 — [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name ‘configurationPropertiesRebinder’ has been autodetected for JMX exposure
2019-07-18 13:38:49.508 INFO 6 — [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name ‘environmentManager’ has been autodetected for JMX exposure
2019-07-18 13:38:49.508 INFO 6 — [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name ‘refreshScope’ has been autodetected for JMX exposure
2019-07-18 13:38:49.510 INFO 6 — [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean ‘environmentManager’: registering with JMX server as MBean [org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager]
2019-07-18 13:38:49.521 INFO 6 — [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean ‘refreshScope’: registering with JMX server as MBean [org.springframework.cloud.context.scope.refresh:name=refreshScope,type=RefreshScope]
2019-07-18 13:38:49.532 INFO 6 — [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean ‘configurationPropertiesRebinder’: registering with JMX server as MBean [org.springframework.cloud.context.properties:name=configurationPropertiesRebinder,context=98904a1e,type=ConfigurationPropertiesRebinder]
2019-07-18 13:38:49.840 INFO 6 — [ main] io.choerodon.config.utils.FileUtil : jar拆解
2019-07-18 13:38:50.151 INFO 6 — [ main] io.choerodon.config.utils.FileUtil : jar拆解完成
2019-07-18 13:38:50.151 INFO 6 — [ main] io.choerodon.config.ConfigToolExecute : 根据指定文件进行配置初始化: gitlab-service
2019-07-18 13:38:50.161 INFO 6 — [ main] io.choerodon.config.utils.FileUtil : 文件路径获取:temp/BOOT-INF/classes/application.yml
2019-07-18 13:39:10.246 ERROR 6 — [ main] io.choerodon.config.ConfigToolExecute : 初始化配置失败:

org.springframework.web.client.ResourceAccessException: I/O error on POST request for “http://register-server:8000/configs”: register-server; nested exception is java.net.UnknownHostException: register-server
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:666) ~[spring-web-4.3.8.RELEASE.jar!/:4.3.8.RELEASE]
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:613) ~[spring-web-4.3.8.RELEASE.jar!/:4.3.8.RELEASE]
at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:407) ~[spring-web-4.3.8.RELEASE.jar!/:4.3.8.RELEASE]
at io.choerodon.config.execute.RegisterServerExecutor.execute(RegisterServerExecutor.java:33) ~[classes!/:0.9.2.RELEASE]
at io.choerodon.config.ConfigToolExecute.run(ConfigToolExecute.java:56) ~[classes!/:0.9.2.RELEASE]
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:776) [spring-boot-1.5.3.RELEASE.jar!/:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:760) [spring-boot-1.5.3.RELEASE.jar!/:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:747) [spring-boot-1.5.3.RELEASE.jar!/:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-1.5.3.RELEASE.jar!/:1.5.3.RELEASE]
at io.choerodon.config.ConfigToolApplication.main(ConfigToolApplication.java:22) [classes!/:0.9.2.RELEASE]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_202]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_202]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_202]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_202]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [choerodon-tool-config.jar:0.9.2.RELEASE]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [choerodon-tool-config.jar:0.9.2.RELEASE]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [choerodon-tool-config.jar:0.9.2.RELEASE]
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [choerodon-tool-config.jar:0.9.2.RELEASE]
Caused by: java.net.UnknownHostException: register-server
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) ~[na:1.8.0_202]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0_202]
at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0_202]
at java.net.Socket.connect(Socket.java:538) ~[na:1.8.0_202]
at sun.net.NetworkClient.doConnect(NetworkClient.java:180) ~[na:1.8.0_202]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) ~[na:1.8.0_202]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) ~[na:1.8.0_202]
at sun.net.www.http.HttpClient.(HttpClient.java:242) ~[na:1.8.0_202]
at sun.net.www.http.HttpClient.New(HttpClient.java:339) ~[na:1.8.0_202]
at sun.net.www.http.HttpClient.New(HttpClient.java:357) ~[na:1.8.0_202]
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1220) ~[na:1.8.0_202]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156) ~[na:1.8.0_202]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050) ~[na:1.8.0_202]
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:984) ~[na:1.8.0_202]
at org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal(SimpleBufferingClientHttpRequest.java:78) ~[spring-web-4.3.8.RELEASE.jar!/:4.3.8.RELEASE]
at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48) ~[spring-web-4.3.8.RELEASE.jar!/:4.3.8.RELEASE]
at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53) ~[spring-web-4.3.8.RELEASE.jar!/:4.3.8.RELEASE]
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:652) ~[spring-web-4.3.8.RELEASE.jar!/:4.3.8.RELEASE]
… 17 common frames omitted

2019-07-18 13:39:10.248 INFO 6 — [ Thread-7] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@98904a1e: startup date [Thu Jul 18 13:38:47 CST 2019]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@5ae2d111
2019-07-18 13:39:10.252 INFO 6 — [ Thread-7] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown
2019-07-18 13:39:10.252 INFO 6 — [ Thread-7] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans