idoop / docker-apollo Goto Github PK
View Code? Open in Web Editor NEWdocker image for Ctrip/Apollo(携程Apollo)
License: Apache License 2.0
docker image for Ctrip/Apollo(携程Apollo)
License: Apache License 2.0
使用apollo的密钥访问验证后
客户端不需要加验证,发现可以访问到.
Docker 及 Dockerfile 更新一下版本吧,官方 1.1.0版本了
Apollo v1.1.0 Release
apollo.tar.gz 5059k --:--:-- ETA
apollo.tar.gz 5059k --:--:-- ETA
apollo.tar.gz 5059k --:--:-- ETA
apollo.tar.gz 5067k --:--:-- ETA
apollo.tar.gz 5069k --:--:-- ETA
apollo.tar.gz 5086k --:--:-- ETA
apollo.tar.gz 5086k --:--:-- ETA
apollo.tar.gz 5090k --:--:-- ETA
wget: error getting response
The command '/bin/sh -c wget ${APOLLO_URL} -O apollo.tar.gz && tar -zxf apollo.tar.gz && rm apollo.tar.gz && test -e apollo-${VERSION} && sed -e "s/db_password=/db_password=toor/g" -e "s/^dev_meta./dev_meta=http://localhost:${CONFIG_DEV_PORT}/" -e "s/^fat_meta./fat_meta=http://localhost:${CONFIG_FAT_PORT}/" -e "s/^uat_meta./uat_meta=http://localhost:${CONFIG_UAT_PORT}/" -e "s/^pro_meta./pro_meta=http://localhost:${CONFIG_PRO_PORT}/" -i apollo-${VERSION}/scripts/build.sh && bash apollo-${VERSION}/scripts/build.sh && rm -rf /root/.m2 && mkdir /apollo-admin/dev /apollo-admin/fat /apollo-admin/uat /apollo-admin/pro /apollo-config/dev /apollo-config/fat /apollo-config/uat /apollo-config/pro /apollo-portal -p && mv apollo-${VERSION}/apollo-portal/target/apollo-portal-${VERSION}-github.zip apollo-${VERSION}/apollo-adminservice/target/apollo-adminservice-${VERSION}-github.zip apollo-${VERSION}/apollo-configservice/target/apollo-configservice-${VERSION}-github.zip / && rm -rf apollo-${VERSION} && chmod +x /usr/local/bin/docker-entrypoint /usr/local/bin/healthcheck' returned a non-zero code: 1
你好,我这边使用你的docker镜像,采用all in one的方式部署的. 然后阿波罗的配置中心部署在外网,我本地的java客户端想访问这个外网的配置中心,然后启动的时候报错,long polling url: http://172.17.0.3:8080/notifications/v2?cluster=default&appId=dreamplaza-happymall-portal&ip=172.18.110.1¬ifications=%5B%7B%22namespaceName%22%3A%22application%22%2C%22notificationId%22%3A-1%7D%5D, reason: Could not complete get operation [Cause: connect timed out],这个172.17.0.3是eureka内网地址,所以访问不到,请问下这个问题应该怎么解决
the latest version of apollo is v1.6.1,plz update this repo。
到1.8.1版本了 什么时候升级啊
version: '2'
services:
apollo:
image: idoop/docker-apollo:latest
# portal若出现504错误,则将网络模式改为host. host模式下如果想改端口,参考下方修改端口的环境变量
# network_mode: "host"
# volumes:
# 如果需要查看日志,挂载容器中的/opt路径出来即可.
# - ./logs:/opt
# 如果portal需要开启ldap或ad域验证,须挂载此ldap配置文件
# - ./application-ldap.yml:/apollo-portal/config/application-ldap.yml:ro
environment:
# 开启Portal,默认端口: 8070
PORTAL_DB: jdbc:mysql://localhost:3307/ApolloPortalDB?characterEncoding=utf8
PORTAL_DB_USER: root
PORTAL_DB_PWD: rootroot
# 如果portal需要开启ldap或ad域验证,须设置该环境变量为TRUE
#PORTAL_LDAP: "TRUE"
# 开启dev环境, 默认端口: config 8080, admin 8090
DEV_DB: jdbc:mysql://localhost:3307/ApolloConfigDBDev?characterEncoding=utf8
DEV_DB_USER: root
DEV_DB_PWD: rootroot
# 开启fat环境, 默认端口: config 8081, admin 8091
FAT_DB: jdbc:mysql://localhost:3307/ApolloConfigDBFat?characterEncoding=utf8
FAT_DB_USER: root
FAT_DB_PWD: rootroot
# 可修改端口.
FAT_CONFIG_PORT: 8050
FAT_ADMIN_PORT: 8051
# 指定远程uat地址
#UAT_URL: http://192.168.1.2:8080
# 指定远程pro地址
#PRO_URL: http://www.example.com:8080
$ docker-compose up
docker_apollo_apollo_1 is up-to-date
Attaching to docker_apollo_apollo_1
apollo_1 | + '[' 0 == 0 ']'
apollo_1 | + [[ -n jdbc:mysql://localhost:3307/ApolloPortalDB?characterEncoding=utf8 ]]
apollo_1 | + startPortal
apollo_1 | + [[ ! -d /apollo-portal/scripts ]]
apollo_1 | + unzip /apollo-portal-1.2.0-github.zip -d /apollo-portal
apollo_1 | Archive: /apollo-portal-1.2.0-github.zip
apollo_1 | creating: scripts/
apollo_1 | inflating: scripts/startup.sh
apollo_1 | inflating: scripts/shutdown.sh
apollo_1 | creating: config/
apollo_1 | inflating: config/app.properties
apollo_1 | inflating: apollo-portal.conf
apollo_1 | inflating: config/application-github.properties
apollo_1 | inflating: config/apollo-env.properties
apollo_1 | inflating: apollo-portal-1.2.0.jar
apollo_1 | inflating: apollo-portal-1.2.0-sources.jar
apollo_1 | + sed -i -e '/^SERVER_PORT=.*$/a\export JAVA_OPTS="$JAVA_OPTS -Dspring.datasource.url=jdbc:mysql://localhost:3307/ApolloPortalDB?characterEncoding=utf8 "' /apollo-portal/scripts/startup.sh
apollo_1 | + [[ -n root ]]
apollo_1 | + sed -i -e '/^SERVER_PORT=.*$/a\export JAVA_OPTS="$JAVA_OPTS -Dspring.datasource.username=root "' /apollo-portal/scripts/startup.sh
apollo_1 | + [[ -n rootroot ]]
apollo_1 | + sed -i -e '/^SERVER_PORT=.*$/a\export JAVA_OPTS="$JAVA_OPTS -Dspring.datasource.password=rootroot "' /apollo-portal/scripts/startup.sh
apollo_1 | + [[ -n 8070 ]]
apollo_1 | + sed -i -e 's/^SERVER_PORT=.*$/SERVER_PORT=8070/' /apollo-portal/scripts/startup.sh
apollo_1 | + [[ -n '' ]]
apollo_1 | + [[ -n '' ]]
apollo_1 | + [[ -n '' ]]
apollo_1 | + [[ -n '' ]]
apollo_1 | + [[ -n '' ]]
apollo_1 | + [[ -n jdbc:mysql://localhost:3307/ApolloConfigDBDev?characterEncoding=utf8 ]]
apollo_1 | + startENV dev 'jdbc:mysql://localhost:3307/ApolloConfigDBDev?characterEncoding=utf8' root rootroot 8090 8080
apollo_1 | + targetENV=dev
apollo_1 | + targetDb='jdbc:mysql://localhost:3307/ApolloConfigDBDev?characterEncoding=utf8'
apollo_1 | + targetDbUser=root
apollo_1 | + targetDbPwd=rootroot
apollo_1 | + targetAdminPort=8090
apollo_1 | + targetConfigPort=8080
apollo_1 | + targetEnvAddr=
apollo_1 | + [[ ! -d /apollo-config/dev/scripts ]]
apollo_1 | + unzip /apollo-configservice-1.2.0-github.zip -d /apollo-config/dev
apollo_1 | Archive: /apollo-configservice-1.2.0-github.zip
apollo_1 | creating: scripts/
apollo_1 | inflating: scripts/startup.sh
apollo_1 | inflating: scripts/shutdown.sh
apollo_1 | creating: config/
apollo_1 | inflating: config/app.properties
apollo_1 | inflating: apollo-configservice.conf
apollo_1 | inflating: config/application-github.properties
apollo_1 | inflating: apollo-configservice-1.2.0-sources.jar
apollo_1 | inflating: apollo-configservice-1.2.0.jar
apollo_1 | + sed -i -e '/^SERVER_PORT=.*$/a\export JAVA_OPTS="$JAVA_OPTS -Dspring.datasource.url=jdbc:mysql://localhost:3307/ApolloConfigDBDev?characterEncoding=utf8 "' /apollo-config/dev/scripts/startup.sh
apollo_1 | + sed -i -e '/^SERVER_PORT=.*$/a\export JAVA_OPTS="$JAVA_OPTS -Dspring.datasource.username=root "' /apollo-config/dev/scripts/startup.sh
apollo_1 | + sed -i -e '/^SERVER_PORT=.*$/a\export JAVA_OPTS="$JAVA_OPTS -Dspring.datasource.password=rootroot "' /apollo-config/dev/scripts/startup.sh
apollo_1 | + [[ -n 8080 ]]
apollo_1 | + sed -i -e 's/^SERVER_PORT=.*$/SERVER_PORT=8080/' /apollo-config/dev/scripts/startup.sh
apollo_1 | + [[ -n jdbc:mysql://localhost:3307/ApolloPortalDB?characterEncoding=utf8 ]]
apollo_1 | + sed -i -r '/-Ddev_meta=.*$/d' /apollo-portal/scripts/startup.sh
apollo_1 | + sed -i -e '/^SERVER_PORT=.*$/a\export JAVA_OPTS="$JAVA_OPTS -Ddev_meta=http://localhost:8080/"' /apollo-portal/scripts/startup.sh
apollo_1 | + [[ -n '' ]]
apollo_1 | + /apollo-config/dev/scripts/startup.sh
apollo_1 | Mon Mar 18 02:34:29 UTC 2019 ==== Starting ====
apollo_1 | Started [50]
apollo_1 | Waiting for server startup......
apollo_1 | pid - 50 just quit unexpectedly, please check logs under /opt/logs/100003171 and /tmp for more information!
apollo_1 | + '[' 0 == 0 ']'
apollo_1 | + [[ -n jdbc:mysql://localhost:3307/ApolloPortalDB?characterEncoding=utf8 ]]
apollo_1 | + startPortal
apollo_1 | + [[ ! -d /apollo-portal/scripts ]]
apollo_1 | + [[ -n '' ]]
apollo_1 | + [[ -n jdbc:mysql://localhost:3307/ApolloConfigDBDev?characterEncoding=utf8 ]]
apollo_1 | + startENV dev 'jdbc:mysql://localhost:3307/ApolloConfigDBDev?characterEncoding=utf8' root rootroot 8090 8080
apollo_1 | + targetENV=dev
apollo_1 | + targetDb='jdbc:mysql://localhost:3307/ApolloConfigDBDev?characterEncoding=utf8'
apollo_1 | + targetDbUser=root
apollo_1 | + targetDbPwd=rootroot
apollo_1 | + targetAdminPort=8090
apollo_1 | + targetConfigPort=8080
apollo_1 | + targetEnvAddr=
apollo_1 | + [[ ! -d /apollo-config/dev/scripts ]]
apollo_1 | + /apollo-config/dev/scripts/startup.sh
apollo_1 | Mon Mar 18 02:41:03 UTC 2019 ==== Starting ====
apollo_1 | Started [40]
apollo_1 | Waiting for server startup.....
apollo_1 | pid - 40 just quit unexpectedly, please check logs under /opt/logs/100003171 and /tmp for more information!
apollo_1 | + '[' 0 == 0 ']'
apollo_1 | + [[ -n jdbc:mysql://localhost:3307/ApolloPortalDB?characterEncoding=utf8 ]]
apollo_1 | + startPortal
apollo_1 | + [[ ! -d /apollo-portal/scripts ]]
apollo_1 | + [[ -n '' ]]
apollo_1 | + [[ -n jdbc:mysql://localhost:3307/ApolloConfigDBDev?characterEncoding=utf8 ]]
apollo_1 | + startENV dev 'jdbc:mysql://localhost:3307/ApolloConfigDBDev?characterEncoding=utf8' root rootroot 8090 8080
apollo_1 | + targetENV=dev
apollo_1 | + targetDb='jdbc:mysql://localhost:3307/ApolloConfigDBDev?characterEncoding=utf8'
apollo_1 | + targetDbUser=root
apollo_1 | + targetDbPwd=rootroot
apollo_1 | + targetAdminPort=8090
apollo_1 | + targetConfigPort=8080
apollo_1 | + targetEnvAddr=
apollo_1 | + [[ ! -d /apollo-config/dev/scripts ]]
apollo_1 | + /apollo-config/dev/scripts/startup.sh
apollo_1 | Mon Mar 18 02:43:22 UTC 2019 ==== Starting ====
apollo_1 | Started [39]
apollo_1 | Waiting for server startup.....
apollo_1 | pid - 39 just quit unexpectedly, please check logs under /opt/logs/100003171 and /tmp for more information!
正常启动 Apollo 并访问
wiki的部署portal中部署有问题yml文件有问题
k8s部署中,数据库用外部,要怎么修改
我的目的是想启动 portal + fat 环境
docker-compose.yaml 配置文件为
version: '2'
services:
apollo:
image: idoop/docker-apollo:latest
container_name: apollo
network_mode: "host"
restart: always
# 启动前,确认对应环境的数据库已经建立,否则apollo无法启动.
# 默认端口:portal:8070; dev:8080,8090; fat:8081,8091; uat:8082,8092; pro:8083,8093
environment:
PORTAL_DB: jdbc:mysql://192.168.12.70:3306/ApolloPortalDB?characterEncoding=utf8
PORTAL_DB_USER: root
PORTAL_DB_PWD: 1111
# PORTAL_PORT: 80
DEV_DB:
DEV_DB_USER: root
DEV_DB_PWD: password
FAT_DB: jdbc:mysql://192.168.12.70:3306/ApolloConfigDBFat?characterEncoding=utf8
FAT_DB_USER: root
FAT_DB_PWD: 1111
UAT_DB:
UAT_DB_USER: root
UAT_DB_PWD: password
PRO_DB:
PRO_DB_USER: root
PRO_DB_PWD: password
成功执行了 build.sh
#!/bin/bash
name="apollo-test"
tag=$(date +"%m%d%H%M%S")
docker build -t ${name}:${tag} .
oldImage=$(docker images | grep ${name} | grep -v ${tag} | awk -vOFS=":" '{ print $1,$2 }')
if [[ -n ${oldImage} ]];then
echo "Delete old Image: ${oldImage}"
docker rmi ${oldImage}
fi
在本地成功生成了 apollo-test 的 docker 镜像
然后我执行了 docker run --name apollo-test -d -p 8070:8070 -p 8081:8081 -p 8091:8091 apollo-test
然后我访问 localhost:8070 没有任何反应,docker 容器也是 up 状态, docker exec -it apollo-test /bin/sh
进入容器内部 我也没找到 /opt/log
文件夹
想问问我的用法是否有错呢?
如题,K8S一直用nodeport模式能让外网访问,但是service为ClusterIP模式的话怎么来访问呢
docker版 怎么使用client 命令行 操作访问 配置文件的值
我知道项目里面通过demo代码可以获取到 但是通过client 命令行里怎么访问呢
新版本的apollo已经支持自定义的环境名称,不再局限于内置的DEV,FAT,UAT,PRO这4种环境了。但是这个项目的docker-entrypoint脚本不支持。
defined config port env as DEV_CONFIG_PORT, but used $CONFIG_DEV_PORT
hence every ENV registered to DEV eureka
k8s部署了一个开发环境,protal报错,登录页面没有可以添加项目
2018-12-19 09:58:08.089 ERROR 532 --- [Apollo-EnvHealthChecker-1] c.c.f.a.portal.component.PortalSettings : Env is down. env: DEV, failed times: 191, meta server address: http://localhost:8080/
# 以本次为例,svc为apollo-dev,端口为8080,portal则只需指定DEV_URL,类似下方.
- name: DEV_URL
value: http://apollo-dev:8080
portal启动保错:
org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://apollo-dev:8090/health": Connect to apollo-dev:8090 [apollo-dev/10.68.23.250] failed: connect timed out; nested exception is org.apache.http.conn.ConnectTimeoutException: Connect to apollo-dev:8090 [apollo-dev/10.68.23.250] failed: connect timed out at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:696) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:644) at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:296) at com.ctrip.framework.apollo.portal.component.RetryableRestTemplate.doExecute(RetryableRestTemplate.java:190) at com.ctrip.framework.apollo.portal.component.RetryableRestTemplate.execute(RetryableRestTemplate.java:95) at com.ctrip.framework.apollo.portal.component.RetryableRestTemplate.get(RetryableRestTemplate.java:56) at com.ctrip.framework.apollo.portal.api.AdminServiceAPI$HealthAPI.health(AdminServiceAPI.java:43) at com.ctrip.framework.apollo.portal.component.PortalSettings$HealthCheckTask.isUp(PortalSettings.java:127) at com.ctrip.framework.apollo.portal.component.PortalSettings$HealthCheckTask.run(PortalSettings.java:103) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to apollo-dev:8090 [apollo-dev/10.68.23.250] failed: connect timed out at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) at org.springframework.http.client.HttpComponentsClientHttpRequest.executeInternal(HttpComponentsClientHttpRequest.java:87) at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48) at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:687) ... 15 common frames omitted Caused by: java.net.SocketTimeoutException: connect timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:75) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) ... 28 common frames omitted
看起来配置不起作用,默认访问8090端口,而不是8080端口
1.4.0了 求更新
i hope define eureka ip addr
我需要将adminservice和configservice的注册地址修改为主机地址,而不是缺省的docker的内网地址,以前在虚拟机CentOS中部署的时是修改startup.sh,增加
export JAVA_OPTS="$JAVA_OPTS -Deureka.instance.ip-address=192.168.1.xx -Deureka.instance.homePageUrl=http://192.168.1.xx:8080/"
请问下作者大大,这个版本有没有相关的配置,多谢!
apollo:
container_name: apollo
image: idoop/docker-apollo:1.1.2
network_mode: "host"
volumes:
- d:/logs:/opt
environment:
PORTAL_DB: jdbc:mysql://192.168.1.102:3306/ApolloPortalDB?characterEncoding=utf8
PORTAL_DB_USER: root
PORTAL_DB_PWD: root
DEV_DB: jdbc:mysql://192.168.1.102:3306/ApolloConfigDBDev?characterEncoding=utf8
DEV_DB_USER: root
DEV_DB_PWD: root
服务已启动
The portal service is runing.
The dev admin service is runing.
The dev config service is runing.
端口也有占用
bash-4.4# netstat -tunlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:54985 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN -
tcp 0 0 :::8090 :::* LISTEN 294/java
tcp 0 0 :::44763 :::* LISTEN -
tcp 0 0 :::8070 :::* LISTEN 513/java
tcp 0 0 :::111 :::* LISTEN -
tcp 0 0 :::8080 :::* LISTEN 40/java
但是http://127.0.0.1:8070/ 访问不能
Starting apollo_apollo_1 ... done
Attaching to apollo_apollo_1
apollo_1 | + portalPath=/apollo-portal
apollo_1 | + portalShellPath=/apollo-portal/scripts/startup.sh
apollo_1 | + '[' 0 == 0 ']'
apollo_1 | + [[ -n jdbc:mysql://192.168.1.96:3306/ApolloPortalDB?characterEncoding=utf8 ]]
apollo_1 | + startPortal
apollo_1 | + [[ ! -d /apollo-portal/scripts ]]
apollo_1 | + [[ -n '' ]]
apollo_1 | + [[ -n jdbc:mysql://192.168.1.96:3306/ApolloConfigDB_DEV?characterEncoding=utf8 ]]
apollo_1 | + startENV dev 'jdbc:mysql://192.168.1.96:3306/ApolloConfigDB_DEV?characterEncoding=utf8' root xy123456 8090 8080
apollo_1 | + targetENV=dev
apollo_1 | + targetDb='jdbc:mysql://192.168.1.96:3306/ApolloConfigDB_DEV?characterEncoding=utf8'
apollo_1 | + targetDbUser=root
apollo_1 | + targetDbPwd=xy123456
apollo_1 | + targetAdminPort=8090
apollo_1 | + targetConfigPort=8080
apollo_1 | + targetEnvAddr=
apollo_1 | + configPath=/apollo-config/dev
apollo_1 | + configShellPath=/apollo-config/dev/scripts/startup.sh
apollo_1 | + adminPath=/apollo-admin/dev
apollo_1 | + adminShellPath=/apollo-admin/dev/scripts/startup.sh
apollo_1 | + [[ ! -d /apollo-config/dev/scripts ]]
apollo_1 | + /apollo-config/dev/scripts/startup.sh
apollo_1 | Wed May 27 04:13:30 UTC 2020 ==== Starting ====
apollo_1 | Started [68]
apollo_1 | Waiting for server startup....
apollo_1 | Wed May 27 04:13:51 UTC 2020 Server started in 20 seconds!
apollo_1 | + [[ '' != [tT][rR][uU][eE] ]]
apollo_1 | + [[ ! -d /apollo-admin/dev/scripts ]]
apollo_1 | + /apollo-admin/dev/scripts/startup.sh
apollo_1 | Wed May 27 04:13:51 UTC 2020 ==== Starting ====
apollo_1 | Started [263]
apollo_1 | Waiting for server startup...
apollo_1 | Wed May 27 04:14:06 UTC 2020 Server started in 15 seconds!
apollo_1 | + [[ -n '' ]]
apollo_1 | + [[ -n jdbc:mysql://192.168.1.96:3306/ApolloConfigDB_FAT?characterEncoding=utf8 ]]
apollo_1 | + startENV fat 'jdbc:mysql://192.168.1.96:3306/ApolloConfigDB_FAT?characterEncoding=utf8' root xy123456 8091 8081
apollo_1 | + targetENV=fat
apollo_1 | + targetDb='jdbc:mysql://192.168.1.96:3306/ApolloConfigDB_FAT?characterEncoding=utf8'
apollo_1 | + targetDbUser=root
apollo_1 | + targetDbPwd=xy123456
apollo_1 | + targetAdminPort=8091
apollo_1 | + targetConfigPort=8081
apollo_1 | + targetEnvAddr=
apollo_1 | + configPath=/apollo-config/fat
apollo_1 | + configShellPath=/apollo-config/fat/scripts/startup.sh
apollo_1 | + adminPath=/apollo-admin/fat
apollo_1 | + adminShellPath=/apollo-admin/fat/scripts/startup.sh
apollo_1 | + [[ ! -d /apollo-config/fat/scripts ]]
apollo_1 | + /apollo-config/fat/scripts/startup.sh
apollo_1 | Wed May 27 04:14:06 UTC 2020 ==== Starting ====
apollo_1 | Started [410]
apollo_1 | Waiting for server startup...
apollo_1 | Wed May 27 04:14:22 UTC 2020 Server started in 15 seconds!
apollo_1 | + [[ '' != [tT][rR][uU][eE] ]]
apollo_1 | + [[ ! -d /apollo-admin/fat/scripts ]]
apollo_1 | + /apollo-admin/fat/scripts/startup.sh
apollo_1 | Wed May 27 04:14:22 UTC 2020 ==== Starting ====
apollo_1 | Started [599]
apollo_1 | Waiting for server startup...
apollo_1 | Wed May 27 04:14:37 UTC 2020 Server started in 15 seconds!
apollo_1 | + [[ -n '' ]]
apollo_1 | + [[ -n '' ]]
apollo_1 | + [[ -n '' ]]
apollo_1 | + [[ -n '' ]]
apollo_1 | + [[ -n jdbc:mysql://192.168.1.96:3306/ApolloPortalDB?characterEncoding=utf8 ]]
apollo_1 | + /apollo-portal/scripts/startup.sh
apollo_1 | Wed May 27 04:14:37 UTC 2020 ==== Starting ====
apollo_1 | Started [748]
apollo_1 | Waiting for server startup...
apollo_1 | Wed May 27 04:14:52 UTC 2020 Server started in 15 seconds!
apollo_1 | + loop=1
apollo_1 | + '[' 1 -eq 1 ']'
apollo_1 | + /usr/local/bin/healthcheck
apollo_1 | The portal service is runing.
apollo_1 | The dev admin service is runing.
apollo_1 | The dev config service is runing.
apollo_1 | The fat admin service is runing.
apollo_1 | The fat config service is runing.
apollo_1 | + sleep 300
你好 我把docker配置在外网了 然后和network_mode有关系嘛?
参数已经配置了
UAT_URL: http://www.baidu.com:8082
DEV_URL: http://www.baidu.com:8080
FAT_URL: http://www.baidu.com:8081
PRO_URL: http://www.baidu.com:8083
举例baidu为我域名
然后配置完后 就访问不到了
数据库里的serviceconfig里的eureka也配置了外网的地址
compose如下:
version: '2'
services:
apollo:
image: idoop/docker-apollo:latest
# portal若出现504错误,则将网络模式改为host. host模式下如果想改端口,参考下方修改端口的环境变量
# network_mode: "host"
# 如果需要查看日志,挂载容器中的/opt路径出来即可.
volumes:
- /data/apollo/logs:/opt
ports:
- "8070:8070"
- "8080:8080"
- "8081:8081"
- "8090:8090"
- "8091:8091"
environment:
# 开启Portal,默认端口: 8070
PORTAL_DB: jdbc:mysql://192.168.1.249:3306/ApolloPortalDB?characterEncoding=utf8
PORTAL_DB_USER: root
PORTAL_DB_PWD: hurongbao123456
# 开启dev环境, 默认端口: config 8080, admin 8090
DEV_DB: jdbc:mysql://192.168.1.249:3306/ApolloConfigDBDev?characterEncoding=utf8
DEV_DB_USER: root
DEV_DB_PWD: hurongbao123456
DEV_LB: 192.168.1.240
DEV_URL: http://192.168.1.240:8080
networks:
default:
external:
name: net-spring-db
version: '2'
services:
apollo:
image: idoop/docker-apollo:latest
# portal若出现504错误,则将网络模式改为host. host模式下如果想改端口,参考下方修改端口的环境变量
# network_mode: "host"
volumes:
# 如果需要查看日志,挂载容器中的/opt路径出来即可.
- ./logs:/opt
# 如果portal需要开启ldap或ad域验证,须挂载此ldap配置文件
# - ./application-ldap.yml:/apollo-portal/config/application-ldap.yml:ro
environment:
# 开启Portal,默认端口: 8070
PORTAL_DB: jdbc:mysql://远程 IP:3306/ApolloPortalDB?characterEncoding=utf8
PORTAL_DB_USER: xxxx
PORTAL_DB_PWD: xxxxx
# 如果portal需要开启ldap或ad域验证,须设置该环境变量为TRUE
#PORTAL_LDAP: "TRUE"
# 开启dev环境, 默认端口: config 8080, admin 8090
DEV_DB: jdbc:mysql://远程 IP:3306/ApolloConfigDBDev?characterEncoding=utf8
DEV_DB_USER: xxxx
DEV_DB_PWD: xxxxx
# 开启fat环境, 默认端口: config 8081, admin 8091
FAT_DB: jdbc:mysql://远程 IP:3306/ApolloConfigDBFat?characterEncoding=utf8
FAT_DB_USER: xxxx
FAT_DB_PWD: xxxxxx
# 可修改端口.
FAT_CONFIG_PORT: 8050
FAT_ADMIN_PORT: 8051
# 指定远程uat地址
#UAT_URL: http://192.168.1.2:8080
# 指定远程pro地址
#PRO_URL: http://www.example.com:8080
$ docker-compose up
Starting docker_apollo_apollo_1 ... done
Attaching to docker_apollo_apollo_1
apollo_1 | + '[' 0 == 0 ']'
apollo_1 | + [[ -n jdbc:mysql://xxxx:3306/ApolloPortalDB?characterEncoding=utf8 ]]
apollo_1 | + startPortal
apollo_1 | + [[ ! -d /apollo-portal/scripts ]]
apollo_1 | + [[ -n '' ]]
apollo_1 | + [[ -n jdbc:mysql://xxxx:3306/ApolloConfigDBDev?characterEncoding=utf8 ]]
apollo_1 | + startENV dev 'jdbc:mysql://xxxx:3306/ApolloConfigDBDev?characterEncoding=utf8' xxxx 'xxxx' 8090 8080
apollo_1 | + targetENV=dev
apollo_1 | + targetDb='jdbc:mysql://xxxx:3306/ApolloConfigDBDev?characterEncoding=utf8'
apollo_1 | + targetDbUser=xxxx
apollo_1 | + targetDbPwd='xxxx'
apollo_1 | + targetAdminPort=8090
apollo_1 | + targetConfigPort=8080
apollo_1 | + targetEnvAddr=
apollo_1 | + [[ ! -d /apollo-config/dev/scripts ]]
apollo_1 | + /apollo-config/dev/scripts/startup.sh
apollo_1 | Mon Apr 15 08:53:05 UTC 2019 ==== Starting ====
apollo_1 | Started [39]
apollo_1 | Waiting for server startup...........
apollo_1 | Mon Apr 15 08:54:01 UTC 2019 Server started in 55 seconds!
apollo_1 | + [[ '' != [tT][rR][uU][eE] ]]
apollo_1 | + [[ ! -d /apollo-admin/dev/scripts ]]
apollo_1 | + /apollo-admin/dev/scripts/startup.sh
apollo_1 | Mon Apr 15 08:54:01 UTC 2019 ==== Starting ====
apollo_1 | Started [261]
apollo_1 | Waiting for server startup.............
apollo_1 | Mon Apr 15 08:55:09 UTC 2019 Server started in 65 seconds!
apollo_1 | + [[ -n '' ]]
apollo_1 | + [[ -n jdbc:mysql://xxxx:3306/ApolloConfigDBFat?characterEncoding=utf8 ]]
apollo_1 | + startENV fat 'jdbc:mysql://xxxx:3306/ApolloConfigDBFat?characterEncoding=utf8' xxxx 'xxxx' 8051 8050
apollo_1 | + targetENV=fat
apollo_1 | + targetDb='jdbc:mysql://xxxx:3306/ApolloConfigDBFat?characterEncoding=utf8'
apollo_1 | + targetDbUser=xxxx
apollo_1 | + targetDbPwd='xxxx'
apollo_1 | + targetAdminPort=8051
apollo_1 | + targetConfigPort=8050
apollo_1 | + targetEnvAddr=
apollo_1 | + [[ ! -d /apollo-config/fat/scripts ]]
apollo_1 | + /apollo-config/fat/scripts/startup.sh
apollo_1 | Mon Apr 15 08:55:09 UTC 2019 ==== Starting ====
apollo_1 | Started [463]
^CGracefully stopping... (press Ctrl+C again to force)
Killing docker_apollo_apollo_1 ... done
➜ 100003171 tail -f apollo-configservice.log
2019-04-15 16:53:56.145 INFO 39 --- [Thread-17] o.s.c.n.e.server.EurekaServerBootstrap : Initialized server context
2019-04-15 16:53:56.193 INFO 39 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2019-04-15 16:53:56.195 INFO 39 --- [main] .s.c.n.e.s.EurekaAutoServiceRegistration : Updating port to 8080
2019-04-15 16:53:56.202 INFO 39 --- [main] c.c.f.a.c.ConfigServiceApplication : Started ConfigServiceApplication in 48.719 seconds (JVM running for 51.082)
2019-04-15 16:53:56.547 INFO 39 --- [DiscoveryClient-InstanceInfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_APOLLO-CONFIGSERVICE/2ef8b8f68b2c:apollo-configservice:8080: registering service...
2019-04-15 16:53:56.939 INFO 39 --- [http-nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring FrameworkServlet 'dispatcherServlet'
2019-04-15 16:53:56.940 INFO 39 --- [http-nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization started
2019-04-15 16:53:57.030 INFO 39 --- [http-nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization completed in 89 ms
2019-04-15 16:53:57.298 INFO 39 --- [http-nio-8080-exec-1] c.n.e.registry.AbstractInstanceRegistry : Registered instance APOLLO-CONFIGSERVICE/2ef8b8f68b2c:apollo-configservice:8080 with status UP (replication=false)
2019-04-15 16:53:57.339 INFO 39 --- [DiscoveryClient-InstanceInfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_APOLLO-CONFIGSERVICE/2ef8b8f68b2c:apollo-configservice:8080 - registration status: 204
2019-04-15 16:53:57.892 INFO 39 --- [http-nio-8080-exec-2] c.n.e.registry.AbstractInstanceRegistry : Registered instance APOLLO-CONFIGSERVICE/2ef8b8f68b2c:apollo-configservice:8080 with status UP (replication=true)
2019-04-15 16:54:24.592 INFO 39 --- [DiscoveryClient-CacheRefreshExecutor-0] com.netflix.discovery.DiscoveryClient : Disable delta property : false
2019-04-15 16:54:24.604 INFO 39 --- [DiscoveryClient-CacheRefreshExecutor-0] com.netflix.discovery.DiscoveryClient : Single vip registry refresh property : null
2019-04-15 16:54:24.605 INFO 39 --- [DiscoveryClient-CacheRefreshExecutor-0] com.netflix.discovery.DiscoveryClient : Force full registry fetch : false
2019-04-15 16:54:24.611 INFO 39 --- [DiscoveryClient-CacheRefreshExecutor-0] com.netflix.discovery.DiscoveryClient : Application is null : false
2019-04-15 16:54:24.613 INFO 39 --- [DiscoveryClient-CacheRefreshExecutor-0] com.netflix.discovery.DiscoveryClient : Registered Applications size is zero : true
2019-04-15 16:54:24.614 INFO 39 --- [DiscoveryClient-CacheRefreshExecutor-0] com.netflix.discovery.DiscoveryClient : Application version is -1: true
2019-04-15 16:54:24.615 INFO 39 --- [DiscoveryClient-CacheRefreshExecutor-0] com.netflix.discovery.DiscoveryClient : Getting all instance registry info from the eureka server
2019-04-15 16:54:24.775 INFO 39 --- [DiscoveryClient-CacheRefreshExecutor-0] com.netflix.discovery.DiscoveryClient : The response status is 200
2019-04-15 16:54:26.173 INFO 39 --- [Thread-17] c.n.e.registry.AbstractInstanceRegistry : Registered instance APOLLO-CONFIGSERVICE/2ef8b8f68b2c:apollo-configservice:8080 with status UP (replication=true)
2019-04-15 16:54:26.178 INFO 39 --- [Thread-17] c.n.e.r.PeerAwareInstanceRegistryImpl : Got 1 instances from neighboring DS node
2019-04-15 16:54:26.179 INFO 39 --- [Thread-17] c.n.e.r.PeerAwareInstanceRegistryImpl : Renew threshold is: 1
2019-04-15 16:54:26.180 INFO 39 --- [Thread-17] c.n.e.r.PeerAwareInstanceRegistryImpl : Changing status to UP
2019-04-15 16:54:26.197 INFO 39 --- [Thread-17] e.s.EurekaServerInitializerConfiguration : Started Eureka Server
2019-04-15 16:54:54.263 INFO 39 --- [AsyncResolver-bootstrap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration
2019-04-15 16:55:05.955 INFO 39 --- [http-nio-8080-exec-1] c.n.e.registry.AbstractInstanceRegistry : Registered instance APOLLO-ADMINSERVICE/2ef8b8f68b2c:apollo-adminservice:8090 with status UP (replication=false)
2019-04-15 16:55:06.473 INFO 39 --- [http-nio-8080-exec-2] c.n.e.registry.AbstractInstanceRegistry : Registered instance APOLLO-ADMINSERVICE/2ef8b8f68b2c:apollo-adminservice:8090 with status UP (replication=true)
2019-04-15 16:55:15.817 INFO 463 --- [main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@45156727: startup date [Mon Apr 15 16:55:15 CST 2019]; root of context hierarchy
2019-04-15 16:55:17.063 INFO 463 --- [main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2019-04-15 16:55:17.827 INFO 463 --- [main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$760407fc] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-04-15 16:55:18.862 INFO 463 --- [main] c.c.f.a.c.ConfigServiceApplication : The following profiles are active: github
2019-04-15 16:55:18.944 INFO 463 --- [main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@7ec97b8f: startup date [Mon Apr 15 16:55:18 CST 2019]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@45156727
2019-04-15 16:55:26.190 INFO 39 --- [Eureka-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : Running the evict task with compensationTime 0ms
2019-04-15 16:55:54.368 INFO 39 --- [AsyncResolver-bootstrap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration
2019-04-15 16:56:35.718 INFO 39 --- [Eureka-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : Running the evict task with compensationTime 42ms
2019-04-15 16:56:46.915 WARN 39 --- [DiscoveryClient-1] c.netflix.discovery.TimedSupervisorTask : task supervisor timed out
java.util.concurrent.TimeoutException: null
at java.util.concurrent.FutureTask.get(FutureTask.java:205)
at com.netflix.discovery.TimedSupervisorTask.run(TimedSupervisorTask.java:64)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2019-04-15 16:56:47.916 WARN 39 --- [DiscoveryClient-0] c.netflix.discovery.TimedSupervisorTask : task supervisor timed out
java.util.concurrent.TimeoutException: null
at java.util.concurrent.FutureTask.get(FutureTask.java:205)
at com.netflix.discovery.TimedSupervisorTask.run(TimedSupervisorTask.java:64)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2019-04-15 16:56:52.942 ERROR 39 --- [DiscoveryClient-CacheRefreshExecutor-0] c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution error
com.sun.jersey.api.client.ClientHandlerException: java.net.SocketTimeoutException: Read timed out
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187)
at com.sun.jersey.api.client.filter.GZIPContentEncodingFilter.handle(GZIPContentEncodingFilter.java:123)
at com.netflix.discovery.EurekaIdentityHeaderFilter.handle(EurekaIdentityHeaderFilter.java:27)
at com.sun.jersey.api.client.Client.handle(Client.java:652)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:509)
at com.netflix.discovery.shared.transport.jersey.AbstractJerseyEurekaHttpClient.getApplicationsInternal(AbstractJerseyEurekaHttpClient.java:194)
at com.netflix.discovery.shared.transport.jersey.AbstractJerseyEurekaHttpClient.getDelta(AbstractJerseyEurekaHttpClient.java:170)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$7.execute(EurekaHttpClientDecorator.java:152)
at com.netflix.discovery.shared.transport.decorator.MetricsCollectingEurekaHttpClient.execute(MetricsCollectingEurekaHttpClient.java:73)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getDelta(EurekaHttpClientDecorator.java:149)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$7.execute(EurekaHttpClientDecorator.java:152)
at com.netflix.discovery.shared.transport.decorator.RedirectingEurekaHttpClient.execute(RedirectingEurekaHttpClient.java:89)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getDelta(EurekaHttpClientDecorator.java:149)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$7.execute(EurekaHttpClientDecorator.java:152)
at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:120)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getDelta(EurekaHttpClientDecorator.java:149)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$7.execute(EurekaHttpClientDecorator.java:152)
at com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getDelta(EurekaHttpClientDecorator.java:149)
at com.netflix.discovery.DiscoveryClient.getAndUpdateDelta(DiscoveryClient.java:1085)
at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:967)
at com.netflix.discovery.DiscoveryClient.refreshRegistry(DiscoveryClient.java:1473)
at com.netflix.discovery.DiscoveryClient$CacheRefreshThread.run(DiscoveryClient.java:1440)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:161)
at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:82)
at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:278)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:286)
at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:257)
at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:230)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:684)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:486)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:118)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:173)
... 29 common frames omitted
2019-04-15 16:56:52.945 ERROR 39 --- [DiscoveryClient-HeartbeatExecutor-0] c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution error
com.sun.jersey.api.client.ClientHandlerException: java.net.SocketTimeoutException: Read timed out
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187)
at com.sun.jersey.api.client.filter.GZIPContentEncodingFilter.handle(GZIPContentEncodingFilter.java:123)
at com.netflix.discovery.EurekaIdentityHeaderFilter.handle(EurekaIdentityHeaderFilter.java:27)
at com.sun.jersey.api.client.Client.handle(Client.java:652)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at com.sun.jersey.api.client.WebResource$Builder.put(WebResource.java:529)
at com.netflix.discovery.shared.transport.jersey.AbstractJerseyEurekaHttpClient.sendHeartBeat(AbstractJerseyEurekaHttpClient.java:102)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$3.execute(EurekaHttpClientDecorator.java:92)
at com.netflix.discovery.shared.transport.decorator.MetricsCollectingEurekaHttpClient.execute(MetricsCollectingEurekaHttpClient.java:73)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.sendHeartBeat(EurekaHttpClientDecorator.java:89)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$3.execute(EurekaHttpClientDecorator.java:92)
at com.netflix.discovery.shared.transport.decorator.RedirectingEurekaHttpClient.execute(RedirectingEurekaHttpClient.java:89)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.sendHeartBeat(EurekaHttpClientDecorator.java:89)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$3.execute(EurekaHttpClientDecorator.java:92)
at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:120)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.sendHeartBeat(EurekaHttpClientDecorator.java:89)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$3.execute(EurekaHttpClientDecorator.java:92)
at com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.sendHeartBeat(EurekaHttpClientDecorator.java:89)
at com.netflix.discovery.DiscoveryClient.renew(DiscoveryClient.java:846)
at com.netflix.discovery.DiscoveryClient$HeartbeatThread.run(DiscoveryClient.java:1399)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:161)
at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:82)
at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:278)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:286)
at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:257)
at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:230)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:684)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:486)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:118)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:173)
... 26 common frames omitted
2019-04-15 16:56:53.401 WARN 39 --- [DiscoveryClient-CacheRefreshExecutor-0] c.n.d.s.t.d.RetryableEurekaHttpClient : Request execution failed with message: java.net.SocketTimeoutException: Read timed out
2019-04-15 16:56:53.742 WARN 39 --- [DiscoveryClient-HeartbeatExecutor-0] c.n.d.s.t.d.RetryableEurekaHttpClient : Request execution failed with message: java.net.SocketTimeoutException: Read timed out
2019-04-15 16:57:07.362 ERROR 39 --- [TaskBatchingWorker-target_localhost-4] c.n.e.cluster.ReplicationTaskProcessor : It seems to be a socket read timeout exception, it will retry later. if it continues to happen and some eureka node occupied all the cpu time, you should set property 'eureka.server.peer-node-read-timeout-ms' to a bigger value
com.sun.jersey.api.client.ClientHandlerException: java.net.SocketTimeoutException: Read timed out
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187)
at com.netflix.eureka.cluster.DynamicGZIPContentEncodingFilter.handle(DynamicGZIPContentEncodingFilter.java:48)
at com.netflix.discovery.EurekaIdentityHeaderFilter.handle(EurekaIdentityHeaderFilter.java:27)
at com.sun.jersey.api.client.Client.handle(Client.java:652)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:570)
at com.netflix.eureka.transport.JerseyReplicationClient.submitBatchUpdates(JerseyReplicationClient.java:116)
at com.netflix.eureka.cluster.ReplicationTaskProcessor.process(ReplicationTaskProcessor.java:80)
at com.netflix.eureka.util.batcher.TaskExecutors$BatchWorkerRunnable.run(TaskExecutors.java:187)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:161)
at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:82)
at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:278)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:286)
at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:257)
at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:230)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:684)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:486)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:118)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:173)
... 10 common frames omitted
2019-04-15 16:57:17.820 INFO 39 --- [AsyncResolver-bootstrap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration
2019-04-15 16:57:07.949 ERROR 39 --- [DiscoveryClient-CacheRefreshExecutor-0] c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution error
com.sun.jersey.api.client.ClientHandlerException: java.net.SocketTimeoutException: Read timed out
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187)
at com.sun.jersey.api.client.filter.GZIPContentEncodingFilter.handle(GZIPContentEncodingFilter.java:123)
at com.netflix.discovery.EurekaIdentityHeaderFilter.handle(EurekaIdentityHeaderFilter.java:27)
at com.sun.jersey.api.client.Client.handle(Client.java:652)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:509)
at com.netflix.discovery.shared.transport.jersey.AbstractJerseyEurekaHttpClient.getApplicationsInternal(AbstractJerseyEurekaHttpClient.java:194)
at com.netflix.discovery.shared.transport.jersey.AbstractJerseyEurekaHttpClient.getDelta(AbstractJerseyEurekaHttpClient.java:170)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$7.execute(EurekaHttpClientDecorator.java:152)
at com.netflix.discovery.shared.transport.decorator.MetricsCollectingEurekaHttpClient.execute(MetricsCollectingEurekaHttpClient.java:73)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getDelta(EurekaHttpClientDecorator.java:149)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$7.execute(EurekaHttpClientDecorator.java:152)
at com.netflix.discovery.shared.transport.decorator.RedirectingEurekaHttpClient.executeOnNewServer(RedirectingEurekaHttpClient.java:118)
at com.netflix.discovery.shared.transport.decorator.RedirectingEurekaHttpClient.execute(RedirectingEurekaHttpClient.java:79)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getDelta(EurekaHttpClientDecorator.java:149)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$7.execute(EurekaHttpClientDecorator.java:152)
at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:120)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getDelta(EurekaHttpClientDecorator.java:149)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$7.execute(EurekaHttpClientDecorator.java:152)
at com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getDelta(EurekaHttpClientDecorator.java:149)
at com.netflix.discovery.DiscoveryClient.getAndUpdateDelta(DiscoveryClient.java:1085)
at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:967)
at com.netflix.discovery.DiscoveryClient.refreshRegistry(DiscoveryClient.java:1473)
at com.netflix.discovery.DiscoveryClient$CacheRefreshThread.run(DiscoveryClient.java:1440)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:161)
at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:82)
at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:278)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:286)
at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:257)
at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:230)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:684)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:486)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:118)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:173)
... 30 common frames omitted
2019-04-15 16:57:10.901 ERROR 39 --- [DiscoveryClient-HeartbeatExecutor-0] c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution error
com.sun.jersey.api.client.ClientHandlerException: java.net.SocketTimeoutException: Read timed out
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187)
at com.sun.jersey.api.client.filter.GZIPContentEncodingFilter.handle(GZIPContentEncodingFilter.java:123)
at com.netflix.discovery.EurekaIdentityHeaderFilter.handle(EurekaIdentityHeaderFilter.java:27)
at com.sun.jersey.api.client.Client.handle(Client.java:652)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at com.sun.jersey.api.client.WebResource$Builder.put(WebResource.java:529)
at com.netflix.discovery.shared.transport.jersey.AbstractJerseyEurekaHttpClient.sendHeartBeat(AbstractJerseyEurekaHttpClient.java:102)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$3.execute(EurekaHttpClientDecorator.java:92)
at com.netflix.discovery.shared.transport.decorator.MetricsCollectingEurekaHttpClient.execute(MetricsCollectingEurekaHttpClient.java:73)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.sendHeartBeat(EurekaHttpClientDecorator.java:89)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$3.execute(EurekaHttpClientDecorator.java:92)
at com.netflix.discovery.shared.transport.decorator.RedirectingEurekaHttpClient.executeOnNewServer(RedirectingEurekaHttpClient.java:118)
at com.netflix.discovery.shared.transport.decorator.RedirectingEurekaHttpClient.execute(RedirectingEurekaHttpClient.java:79)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.sendHeartBeat(EurekaHttpClientDecorator.java:89)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$3.execute(EurekaHttpClientDecorator.java:92)
at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:120)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.sendHeartBeat(EurekaHttpClientDecorator.java:89)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$3.execute(EurekaHttpClientDecorator.java:92)
at com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.sendHeartBeat(EurekaHttpClientDecorator.java:89)
at com.netflix.discovery.DiscoveryClient.renew(DiscoveryClient.java:846)
at com.netflix.discovery.DiscoveryClient$HeartbeatThread.run(DiscoveryClient.java:1399)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:161)
at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:82)
at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:278)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:286)
at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:257)
at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:230)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:684)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:486)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:118)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:173)
... 27 common frames omitted
2019-04-15 16:57:38.069 INFO 39 --- [Eureka-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : Running the evict task with compensationTime 11823ms
2019-04-15 16:57:49.786 WARN 39 --- [DiscoveryClient-HeartbeatExecutor-0] c.n.d.s.t.d.RetryableEurekaHttpClient : Request execution failed with message: java.net.SocketTimeoutException: Read timed out
2019-04-15 16:58:02.178 WARN 39 --- [DiscoveryClient-CacheRefreshExecutor-0] c.n.d.s.t.d.RetryableEurekaHttpClient : Request execution failed with message: java.net.SocketTimeoutException: Read timed out
2019-04-15 16:58:15.556 ERROR 39 --- [DiscoveryClient-HeartbeatExecutor-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_APOLLO-CONFIGSERVICE/2ef8b8f68b2c:apollo-configservice:8080 - was unable to send heartbeat!
com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server
at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:112)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.sendHeartBeat(EurekaHttpClientDecorator.java:89)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$3.execute(EurekaHttpClientDecorator.java:92)
at com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.sendHeartBeat(EurekaHttpClientDecorator.java:89)
at com.netflix.discovery.DiscoveryClient.renew(DiscoveryClient.java:846)
at com.netflix.discovery.DiscoveryClient$HeartbeatThread.run(DiscoveryClient.java:1399)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2019-04-15 16:58:18.473 ERROR 39 --- [DiscoveryClient-CacheRefreshExecutor-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_APOLLO-CONFIGSERVICE/2ef8b8f68b2c:apollo-configservice:8080 - was unable to refresh its cache! status = Cannot execute request on any known server
com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server
at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:112)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getDelta(EurekaHttpClientDecorator.java:149)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$7.execute(EurekaHttpClientDecorator.java:152)
at com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getDelta(EurekaHttpClientDecorator.java:149)
at com.netflix.discovery.DiscoveryClient.getAndUpdateDelta(DiscoveryClient.java:1085)
at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:967)
at com.netflix.discovery.DiscoveryClient.refreshRegistry(DiscoveryClient.java:1473)
at com.netflix.discovery.DiscoveryClient$CacheRefreshThread.run(DiscoveryClient.java:1440)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2019-04-15 16:58:41.921 INFO 39 --- [Eureka-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : Running the evict task with compensationTime 1316ms
2019-04-15 16:58:56.506 INFO 39 --- [AsyncResolver-bootstrap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration
2019-04-15 16:59:02.117 WARN 39 --- [DiscoveryClient-0] c.netflix.discovery.TimedSupervisorTask : task supervisor timed out
java.util.concurrent.TimeoutException: null
at java.util.concurrent.FutureTask.get(FutureTask.java:205)
at com.netflix.discovery.TimedSupervisorTask.run(TimedSupervisorTask.java:64)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2019-04-15 16:59:14.919 WARN 39 --- [DiscoveryClient-1] c.netflix.discovery.TimedSupervisorTask : task supervisor timed out
java.util.concurrent.TimeoutException: null
at java.util.concurrent.FutureTask.get(FutureTask.java:205)
at com.netflix.discovery.TimedSupervisorTask.run(TimedSupervisorTask.java:64)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2019-04-15 16:59:14.919 ERROR 39 --- [TaskBatchingWorker-target_localhost-13] c.n.e.cluster.ReplicationTaskProcessor : Network level connection to peer localhost; retrying after delay
com.sun.jersey.api.client.ClientHandlerException: org.apache.http.conn.ConnectTimeoutException: Connect to localhost:8080 timed out
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187)
at com.netflix.eureka.cluster.DynamicGZIPContentEncodingFilter.handle(DynamicGZIPContentEncodingFilter.java:48)
at com.netflix.discovery.EurekaIdentityHeaderFilter.handle(EurekaIdentityHeaderFilter.java:27)
at com.sun.jersey.api.client.Client.handle(Client.java:652)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:570)
at com.netflix.eureka.transport.JerseyReplicationClient.submitBatchUpdates(JerseyReplicationClient.java:116)
at com.netflix.eureka.cluster.ReplicationTaskProcessor.process(ReplicationTaskProcessor.java:80)
at com.netflix.eureka.util.batcher.TaskExecutors$BatchWorkerRunnable.run(TaskExecutors.java:187)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to localhost:8080 timed out
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:144)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:134)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:118)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:173)
... 10 common frames omitted
2019-04-15 17:00:06.894 INFO 39 --- [Eureka-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : Running the evict task with compensationTime 536ms
2019-04-15 17:00:07.258 ERROR 39 --- [DiscoveryClient-HeartbeatExecutor-1] c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution error
com.sun.jersey.api.client.ClientHandlerException: org.apache.http.conn.ConnectTimeoutException: Connect to localhost:8080 timed out
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187)
at com.sun.jersey.api.client.filter.GZIPContentEncodingFilter.handle(GZIPContentEncodingFilter.java:123)
at com.netflix.discovery.EurekaIdentityHeaderFilter.handle(EurekaIdentityHeaderFilter.java:27)
at com.sun.jersey.api.client.Client.handle(Client.java:652)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at com.sun.jersey.api.client.WebResource$Builder.put(WebResource.java:529)
at com.netflix.discovery.shared.transport.jersey.AbstractJerseyEurekaHttpClient.sendHeartBeat(AbstractJerseyEurekaHttpClient.java:102)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$3.execute(EurekaHttpClientDecorator.java:92)
at com.netflix.discovery.shared.transport.decorator.MetricsCollectingEurekaHttpClient.execute(MetricsCollectingEurekaHttpClient.java:73)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.sendHeartBeat(EurekaHttpClientDecorator.java:89)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$3.execute(EurekaHttpClientDecorator.java:92)
at com.netflix.discovery.shared.transport.decorator.RedirectingEurekaHttpClient.executeOnNewServer(RedirectingEurekaHttpClient.java:118)
at com.netflix.discovery.shared.transport.decorator.RedirectingEurekaHttpClient.execute(RedirectingEurekaHttpClient.java:79)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.sendHeartBeat(EurekaHttpClientDecorator.java:89)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$3.execute(EurekaHttpClientDecorator.java:92)
at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:120)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.sendHeartBeat(EurekaHttpClientDecorator.java:89)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$3.execute(EurekaHttpClientDecorator.java:92)
at com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.sendHeartBeat(EurekaHttpClientDecorator.java:89)
at com.netflix.discovery.DiscoveryClient.renew(DiscoveryClient.java:846)
at com.netflix.discovery.DiscoveryClient$HeartbeatThread.run(DiscoveryClient.java:1399)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to localhost:8080 timed out
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:144)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:134)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:118)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:173)
... 27 common frames omitted
2019-04-15 17:00:07.971 WARN 39 --- [DiscoveryClient-HeartbeatExecutor-1] c.n.d.s.t.d.RetryableEurekaHttpClient : Request execution failed with message: org.apache.http.conn.ConnectTimeoutException: Connect to localhost:8080 timed out
2019-04-15 17:00:07.966 INFO 39 --- [Eureka-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : Evicting 1 items (expired=1, evictionLimit=1)
2019-04-15 17:00:07.914 ERROR 39 --- [TaskBatchingWorker-target_localhost-10] c.n.e.cluster.ReplicationTaskProcessor : Network level connection to peer localhost; retrying after delay
com.sun.jersey.api.client.ClientHandlerException: org.apache.http.conn.ConnectTimeoutException: Connect to localhost:8080 timed out
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187)
at com.netflix.eureka.cluster.DynamicGZIPContentEncodingFilter.handle(DynamicGZIPContentEncodingFilter.java:48)
at com.netflix.discovery.EurekaIdentityHeaderFilter.handle(EurekaIdentityHeaderFilter.java:27)
at com.sun.jersey.api.client.Client.handle(Client.java:652)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:570)
at com.netflix.eureka.transport.JerseyReplicationClient.submitBatchUpdates(JerseyReplicationClient.java:116)
at com.netflix.eureka.cluster.ReplicationTaskProcessor.process(ReplicationTaskProcessor.java:80)
at com.netflix.eureka.util.batcher.TaskExecutors$BatchWorkerRunnable.run(TaskExecutors.java:187)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to localhost:8080 timed out
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:144)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:134)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:118)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:173)
... 10 common frames omitted
2019-04-15 17:00:07.971 ERROR 39 --- [DiscoveryClient-CacheRefreshExecutor-1] c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution error
com.sun.jersey.api.client.ClientHandlerException: java.net.SocketTimeoutException: Read timed out
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187)
at com.sun.jersey.api.client.filter.GZIPContentEncodingFilter.handle(GZIPContentEncodingFilter.java:123)
at com.netflix.discovery.EurekaIdentityHeaderFilter.handle(EurekaIdentityHeaderFilter.java:27)
at com.sun.jersey.api.client.Client.handle(Client.java:652)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:509)
at com.netflix.discovery.shared.transport.jersey.AbstractJerseyEurekaHttpClient.getApplicationsInternal(AbstractJerseyEurekaHttpClient.java:194)
at com.netflix.discovery.shared.transport.jersey.AbstractJerseyEurekaHttpClient.getDelta(AbstractJerseyEurekaHttpClient.java:170)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$7.execute(EurekaHttpClientDecorator.java:152)
at com.netflix.discovery.shared.transport.decorator.MetricsCollectingEurekaHttpClient.execute(MetricsCollectingEurekaHttpClient.java:73)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getDelta(EurekaHttpClientDecorator.java:149)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$7.execute(EurekaHttpClientDecorator.java:152)
at com.netflix.discovery.shared.transport.decorator.RedirectingEurekaHttpClient.executeOnNewServer(RedirectingEurekaHttpClient.java:118)
at com.netflix.discovery.shared.transport.decorator.RedirectingEurekaHttpClient.execute(RedirectingEurekaHttpClient.java:79)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getDelta(EurekaHttpClientDecorator.java:149)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$7.execute(EurekaHttpClientDecorator.java:152)
at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:120)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getDelta(EurekaHttpClientDecorator.java:149)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$7.execute(EurekaHttpClientDecorator.java:152)
at com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getDelta(EurekaHttpClientDecorator.java:149)
at com.netflix.discovery.DiscoveryClient.getAndUpdateDelta(DiscoveryClient.java:1085)
at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:967)
at com.netflix.discovery.DiscoveryClient.refreshRegistry(DiscoveryClient.java:1473)
at com.netflix.discovery.DiscoveryClient$CacheRefreshThread.run(DiscoveryClient.java:1440)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:161)
at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:82)
at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:278)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:286)
at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:257)
at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:230)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:684)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:486)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:118)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:173)
... 30 common frames omitted
2019-04-15 17:00:13.410 WARN 39 --- [DiscoveryClient-CacheRefreshExecutor-1] c.n.d.s.t.d.RetryableEurekaHttpClient : Request execution failed with message: java.net.SocketTimeoutException: Read timed out
2019-04-15 17:00:13.449 WARN 39 --- [Eureka-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : DS: Registry: expired lease for APOLLO-CONFIGSERVICE/2ef8b8f68b2c:apollo-configservice:8080
2019-04-15 17:00:23.419 ERROR 39 --- [DiscoveryClient-HeartbeatExecutor-1] com.netflix.discovery.DiscoveryClient : DiscoveryClient_APOLLO-CONFIGSERVICE/2ef8b8f68b2c:apollo-configservice:8080 - was unable to send heartbeat!
com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server
at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:112)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.sendHeartBeat(EurekaHttpClientDecorator.java:89)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$3.execute(EurekaHttpClientDecorator.java:92)
at com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.sendHeartBeat(EurekaHttpClientDecorator.java:89)
at com.netflix.discovery.DiscoveryClient.renew(DiscoveryClient.java:846)
at com.netflix.discovery.DiscoveryClient$HeartbeatThread.run(DiscoveryClient.java:1399)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2019-04-15 17:00:23.405 WARN 39 --- [HikariPool-1 housekeeper] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Thread starvation or clock leap detected (housekeeper delta=51s972ms758µs400ns).
2019-04-15 17:00:23.433 ERROR 39 --- [DiscoveryClient-CacheRefreshExecutor-1] com.netflix.discovery.DiscoveryClient : DiscoveryClient_APOLLO-CONFIGSERVICE/2ef8b8f68b2c:apollo-configservice:8080 - was unable to refresh its cache! status = Cannot execute request on any known server
com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server
at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:112)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getDelta(EurekaHttpClientDecorator.java:149)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$7.execute(EurekaHttpClientDecorator.java:152)
at com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77)
at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getDelta(EurekaHttpClientDecorator.java:149)
at com.netflix.discovery.DiscoveryClient.getAndUpdateDelta(DiscoveryClient.java:1085)
at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:967)
at com.netflix.discovery.DiscoveryClient.refreshRegistry(DiscoveryClient.java:1473)
at com.netflix.discovery.DiscoveryClient$CacheRefreshThread.run(DiscoveryClient.java:1440)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2019-04-15 17:00:23.705 ERROR 39 --- [TaskBatchingWorker-target_localhost-4] c.n.e.cluster.ReplicationTaskProcessor : It seems to be a socket read timeout exception, it will retry later. if it continues to happen and some eureka node occupied all the cpu time, you should set property 'eureka.server.peer-node-read-timeout-ms' to a bigger value
com.sun.jersey.api.client.ClientHandlerException: java.net.SocketTimeoutException: Read timed out
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187)
at com.netflix.eureka.cluster.DynamicGZIPContentEncodingFilter.handle(DynamicGZIPContentEncodingFilter.java:48)
at com.netflix.discovery.EurekaIdentityHeaderFilter.handle(EurekaIdentityHeaderFilter.java:27)
at com.sun.jersey.api.client.Client.handle(Client.java:652)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:570)
at com.netflix.eureka.transport.JerseyReplicationClient.submitBatchUpdates(JerseyReplicationClient.java:116)
at com.netflix.eureka.cluster.ReplicationTaskProcessor.process(ReplicationTaskProcessor.java:80)
at com.netflix.eureka.util.batcher.TaskExecutors$BatchWorkerRunnable.run(TaskExecutors.java:187)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:161)
at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:82)
at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:278)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:286)
at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:257)
at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:230)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:684)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:486)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:118)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:173)
... 10 common frames omitted
2019-04-15 17:00:23.808 INFO 39 --- [Eureka-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry : Cancelled instance APOLLO-CONFIGSERVICE/2ef8b8f68b2c:apollo-configservice:8080 (replication=false)
2019-04-15 17:00:26.712 ERROR 39 --- [TaskBatchingWorker-target_localhost-7] c.n.e.cluster.ReplicationTaskProcessor : Network level connection to peer localhost; retrying after delay
com.sun.jersey.api.client.ClientHandlerException: org.apache.http.conn.ConnectTimeoutException: Connect to localhost:8080 timed out
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187)
at com.netflix.eureka.cluster.DynamicGZIPContentEncodingFilter.handle(DynamicGZIPContentEncodingFilter.java:48)
at com.netflix.discovery.EurekaIdentityHeaderFilter.handle(EurekaIdentityHeaderFilter.java:27)
at com.sun.jersey.api.client.Client.handle(Client.java:652)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:570)
at com.netflix.eureka.transport.JerseyReplicationClient.submitBatchUpdates(JerseyReplicationClient.java:116)
at com.netflix.eureka.cluster.ReplicationTaskProcessor.process(ReplicationTaskProcessor.java:80)
at com.netflix.eureka.util.batcher.TaskExecutors$BatchWorkerRunnable.run(TaskExecutors.java:187)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to localhost:8080 timed out
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:144)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:134)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:118)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:173)
... 10 common frames omitted
2019-04-15 17:00:27.888 ERROR 39 --- [TaskBatchingWorker-target_localhost-16] c.n.e.cluster.ReplicationTaskProcessor : It seems to be a socket read timeout exception, it will retry later. if it continues to happen and some eureka node occupied all the cpu time, you should set property 'eureka.server.peer-node-read-timeout-ms' to a bigger value
com.sun.jersey.api.client.ClientHandlerException: java.net.SocketTimeoutException: Read timed out
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187)
at com.netflix.eureka.cluster.DynamicGZIPContentEncodingFilter.handle(DynamicGZIPContentEncodingFilter.java:48)
at com.netflix.discovery.EurekaIdentityHeaderFilter.handle(EurekaIdentityHeaderFilter.java:27)
at com.sun.jersey.api.client.Client.handle(Client.java:652)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:570)
at com.netflix.eureka.transport.JerseyReplicationClient.submitBatchUpdates(JerseyReplicationClient.java:116)
at com.netflix.eureka.cluster.ReplicationTaskProcessor.process(ReplicationTaskProcessor.java:80)
at com.netflix.eureka.util.batcher.TaskExecutors$BatchWorkerRunnable.run(TaskExecutors.java:187)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:161)
at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:82)
at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:278)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:286)
at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:257)
at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:230)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:684)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:486)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:118)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:173)
... 10 common frames omitted
...
不断地进行请求重试
正常运行并访问
大佬好,我使用你封装的这个镜像,通过docker-compose方式部署好后,在管理后台的环境列表中,DEV正常,但设置的PRO环境一直无法出现(数据库已经设置了两个环境).
数据库中设置如下: apollo.portal.envs dev,pro
我的config server在内网中,因此注册到Eureka的地址为内网地址,客户端通过外网连接到meta server后,就获取了config server的内网地址,然后就无法连接config server了,这个如何解决?
K8s中部署成功,但是注册到Eureka的服务IP为容器内部IP,导致在项目中指定真是IP之后,还是连接的内部ip,连接不上,估计需要过滤网卡
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.