开发者社区> 问答> 正文

日志服务使用Producer上传日志时,日志成功上传,但是不停的抛以下异常,如何解决?

ERROR com.aliyun.openservices.aliyun.log.producer.internals.ProducerBatch - Failed to put logs, project=xxxx-aliyunlog, logStore=store-apilog, e=
com.aliyun.openservices.log.exception.LogException: Web request failed: xxxx-aliyunlog.cn-shenzhen.log.aliyuncs.com [ErrorCode]: UnknownHost [RequestId]: Unknown at com.aliyun.openservices.log.Client.SendData(Client.java:2319) at com.aliyun.openservices.log.Client.PutLogs(Client.java:874) at com.aliyun.openservices.aliyun.log.producer.internals.SendProducerBatchTask.sendProducerBatch(SendProducerBatchTask.java:93) at com.aliyun.openservices.aliyun.log.producer.internals.SendProducerBatchTask.run(SendProducerBatchTask.java:62) 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: com.aliyun.openservices.log.http.client.ClientException: xxxx-aliyunlog.cn-shenzhen.log.aliyuncs.com [ErrorCode]: UnknownHost [RequestId]: Unknown at com.aliyun.openservices.log.http.utils.ExceptionFactory.createNetworkException(ExceptionFactory.java:38) at com.aliyun.openservices.log.http.comm.TimeoutServiceClient.sendRequestCore(TimeoutServiceClient.java:92) at com.aliyun.openservices.log.http.comm.ServiceClient.sendRequestImpl(ServiceClient.java:100) at com.aliyun.openservices.log.http.comm.ServiceClient.sendRequest(ServiceClient.java:81) at com.aliyun.openservices.log.Client.SendData(Client.java:2302) ... 8 common frames omitted Caused by: java.net.UnknownHostException: cyril-aliyunlog.cn-shenzhen.log.aliyuncs.com at java.net.InetAddress.getAllByName0(InetAddress.java:1281) at java.net.InetAddress.getAllByName(InetAddress.java:1193) at java.net.InetAddress.getAllByName(InetAddress.java:1127) at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:112) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute$original$UJpddkIp(InternalHttpClient.java:185) at org.apache.http.impl.client.InternalHttpClient.doExecute$original$UJpddkIp$accessor$e3Sd5VV0(InternalHttpClient.java) at org.apache.http.impl.client.InternalHttpClient$auxiliary$nAykw520.call(Unknown Source) at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:86) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) at com.aliyun.openservices.log.http.comm.TimeoutServiceClient$HttpRequestTask.call(TimeoutServiceClient.java:128) at com.aliyun.openservices.log.http.comm.TimeoutServiceClient$HttpRequestTask.call(TimeoutServiceClient.java:117) ... 4 common frames omitted

展开
收起
游客73qlv6kk2s5yc 2020-09-21 09:07:48 2863 0
1 条回答
写回答
取消 提交回答
  • dns解析问题,用的是内网访问地址么

    2021-04-07 11:36:41
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
PostgresChina2018_赖思超_PostgreSQL10_hash索引的WAL日志修改版final 立即下载
Kubernetes下日志实时采集、存储与计算实践 立即下载
日志数据采集与分析对接 立即下载