IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 大数据 -> error [03:10:02.393] [warning][process] Error: Request Timeout after 30000ms -> 正文阅读

[大数据]error [03:10:02.393] [warning][process] Error: Request Timeout after 30000ms

1、启动kibana报错,如下所示:

  1 [elsearch@master kibana-7.2.1-linux-x86_64]$ ./bin/kibana
  2   log   [03:09:30.348] [info][status][plugin:kibana@7.2.1] Status changed from uninitialized to green - Ready
  3   log   [03:09:30.362] [info][status][plugin:elasticsearch@7.2.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  4   log   [03:09:30.368] [info][status][plugin:xpack_main@7.2.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  5   log   [03:09:30.406] [info][status][plugin:graph@7.2.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  6   log   [03:09:30.436] [info][status][plugin:monitoring@7.2.1] Status changed from uninitialized to green - Ready
  7   log   [03:09:30.440] [info][status][plugin:spaces@7.2.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  8   log   [03:09:30.451] [warning][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml
  9   log   [03:09:30.457] [warning][security] Session cookies will be transmitted over insecure connections. This is not recommended.
 10   log   [03:09:30.492] [info][status][plugin:security@7.2.1] Status changed from uninitialized to green - Ready
 11   log   [03:09:30.499] [info][status][plugin:searchprofiler@7.2.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch
 12   log   [03:09:30.503] [info][status][plugin:ml@7.2.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch
 13   log   [03:09:30.586] [info][status][plugin:tilemap@7.2.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch
 14   log   [03:09:30.588] [info][status][plugin:watcher@7.2.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch
 15   log   [03:09:30.607] [info][status][plugin:grokdebugger@7.2.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch
 16   log   [03:09:30.619] [info][status][plugin:dashboard_mode@7.2.1] Status changed from uninitialized to green - Ready
 17   log   [03:09:30.621] [info][status][plugin:logstash@7.2.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch
 18   log   [03:09:30.632] [info][status][plugin:beats_management@7.2.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch
 19   log   [03:09:30.657] [info][status][plugin:apm_oss@7.2.1] Status changed from uninitialized to green - Ready
 20   log   [03:09:30.675] [info][status][plugin:apm@7.2.1] Status changed from uninitialized to green - Ready
 21   log   [03:09:30.678] [info][status][plugin:code@7.2.1] Status changed from uninitialized to green - Ready
 22   log   [03:09:30.681] [info][status][plugin:tile_map@7.2.1] Status changed from uninitialized to green - Ready
 23   log   [03:09:30.684] [info][status][plugin:task_manager@7.2.1] Status changed from uninitialized to green - Ready
 24   log   [03:09:30.695] [info][status][plugin:maps@7.2.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch
 25   log   [03:09:30.719] [info][status][plugin:interpreter@7.2.1] Status changed from uninitialized to green - Ready
 26   log   [03:09:30.757] [info][status][plugin:canvas@7.2.1] Status changed from uninitialized to green - Ready
 27   log   [03:09:30.766] [info][status][plugin:license_management@7.2.1] Status changed from uninitialized to green - Ready
 28   log   [03:09:30.768] [info][status][plugin:cloud@7.2.1] Status changed from uninitialized to green - Ready
 29   log   [03:09:30.772] [info][status][plugin:index_management@7.2.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch
 30   log   [03:09:30.797] [info][status][plugin:console@7.2.1] Status changed from uninitialized to green - Ready
 31   log   [03:09:30.806] [info][status][plugin:console_extensions@7.2.1] Status changed from uninitialized to green - Ready
 32   log   [03:09:30.813] [info][status][plugin:notifications@7.2.1] Status changed from uninitialized to green - Ready
 33   log   [03:09:30.815] [info][status][plugin:index_lifecycle_management@7.2.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch
 34   log   [03:09:30.837] [info][status][plugin:metrics@7.2.1] Status changed from uninitialized to green - Ready
 35   log   [03:09:30.879] [info][status][plugin:infra@7.2.1] Status changed from uninitialized to green - Ready
 36   log   [03:09:30.881] [info][status][plugin:rollup@7.2.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch
 37   log   [03:09:30.897] [info][siem] Plugin initializing
 38   log   [03:09:30.940] [info][siem] Plugin done initializing
 39   log   [03:09:30.941] [info][status][plugin:siem@7.2.1] Status changed from uninitialized to green - Ready
 40   log   [03:09:30.945] [info][status][plugin:remote_clusters@7.2.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch
 41   log   [03:09:30.957] [info][status][plugin:cross_cluster_replication@7.2.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch
 42   log   [03:09:30.972] [info][status][plugin:translations@7.2.1] Status changed from uninitialized to green - Ready
 43   log   [03:09:30.988] [info][status][plugin:upgrade_assistant@7.2.1] Status changed from uninitialized to green - Ready
 44   log   [03:09:31.008] [info][status][plugin:uptime@7.2.1] Status changed from uninitialized to green - Ready
 45   log   [03:09:31.012] [info][status][plugin:oss_telemetry@7.2.1] Status changed from uninitialized to green - Ready
 46   log   [03:09:31.016] [warning][encrypted_saved_objects] Generating a random key for xpack.encrypted_saved_objects.encryptionKey. To be able to decrypt encrypted saved objects attributes after restart, please set xpack.encrypted_saved_objects.encryptionKey in kibana.yml
 47   log   [03:09:31.017] [info][status][plugin:encrypted_saved_objects@7.2.1] Status changed from uninitialized to green - Ready
 48   log   [03:09:31.035] [info][status][plugin:snapshot_restore@7.2.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch
 49   log   [03:09:31.043] [info][status][plugin:data@7.2.1] Status changed from uninitialized to green - Ready
 50   log   [03:09:31.258] [info][status][plugin:timelion@7.2.1] Status changed from uninitialized to green - Ready
 51   log   [03:09:31.263] [info][status][plugin:ui_metric@7.2.1] Status changed from uninitialized to green - Ready
 52   log   [03:09:32.365] [info][status][plugin:elasticsearch@7.2.1] Status changed from yellow to green - Ready
 53   log   [03:09:32.909] [info][license][xpack] Imported license information from Elasticsearch for the [data] cluster: mode: basic | status: active
 54   log   [03:09:32.964] [info][status][plugin:xpack_main@7.2.1] Status changed from yellow to green - Ready
 55   log   [03:09:32.965] [info][status][plugin:graph@7.2.1] Status changed from yellow to green - Ready
 56   log   [03:09:32.970] [info][status][plugin:searchprofiler@7.2.1] Status changed from yellow to green - Ready
 57   log   [03:09:32.976] [info][status][plugin:ml@7.2.1] Status changed from yellow to green - Ready
 58   log   [03:09:32.979] [info][status][plugin:tilemap@7.2.1] Status changed from yellow to green - Ready
 59   log   [03:09:32.986] [info][status][plugin:watcher@7.2.1] Status changed from yellow to green - Ready
 60   log   [03:09:32.988] [info][status][plugin:grokdebugger@7.2.1] Status changed from yellow to green - Ready
 61   log   [03:09:32.989] [info][status][plugin:logstash@7.2.1] Status changed from yellow to green - Ready
 62   log   [03:09:32.991] [info][status][plugin:beats_management@7.2.1] Status changed from yellow to green - Ready
 63   log   [03:09:32.992] [info][status][plugin:index_management@7.2.1] Status changed from yellow to green - Ready
 64   log   [03:09:32.993] [info][status][plugin:index_lifecycle_management@7.2.1] Status changed from yellow to green - Ready
 65   log   [03:09:32.994] [info][status][plugin:rollup@7.2.1] Status changed from yellow to green - Ready
 66   log   [03:09:32.996] [info][status][plugin:remote_clusters@7.2.1] Status changed from yellow to green - Ready
 67   log   [03:09:32.997] [info][status][plugin:cross_cluster_replication@7.2.1] Status changed from yellow to green - Ready
 68   log   [03:09:32.998] [info][status][plugin:snapshot_restore@7.2.1] Status changed from yellow to green - Ready
 69   log   [03:09:33.000] [info][kibana-monitoring][monitoring] Starting monitoring stats collection
 70   log   [03:09:33.029] [info][status][plugin:maps@7.2.1] Status changed from yellow to green - Ready
 71   log   [03:09:36.580] [warning][browser-driver][reporting] Enabling the Chromium sandbox provides an additional layer of protection.
 72   log   [03:09:36.627] [warning][reporting] Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing on restart, please set xpack.reporting.encryptionKey in kibana.yml
 73   log   [03:09:36.696] [info][status][plugin:reporting@7.2.1] Status changed from uninitialized to green - Ready
 74  error  [03:10:02.387] [warning][process] UnhandledPromiseRejectionWarning: Error: Request Timeout after 30000ms
 75     at /data/kibana-7.2.1-linux-x86_64/node_modules/elasticsearch/src/lib/transport.js:362:15
 76     at Timeout.<anonymous> (/data/kibana-7.2.1-linux-x86_64/node_modules/elasticsearch/src/lib/transport.js:391:7)
 77     at ontimeout (timers.js:436:11)
 78     at tryOnTimeout (timers.js:300:5)
 79     at listOnTimeout (timers.js:263:5)
 80     at Timer.processTimers (timers.js:223:10)
 81     at emitWarning (internal/process/promises.js:81:15)
 82     at emitPromiseRejectionWarnings (internal/process/promises.js:120:9)
 83     at process._tickCallback (internal/process/next_tick.js:69:34)
 84  error  [03:10:02.393] [warning][process] Error: Request Timeout after 30000ms
 85     at /data/kibana-7.2.1-linux-x86_64/node_modules/elasticsearch/src/lib/transport.js:362:15
 86     at Timeout.<anonymous> (/data/kibana-7.2.1-linux-x86_64/node_modules/elasticsearch/src/lib/transport.js:391:7)
 87     at ontimeout (timers.js:436:11)
 88     at tryOnTimeout (timers.js:300:5)
 89     at listOnTimeout (timers.js:263:5)
 90     at Timer.processTimers (timers.js:223:10)
 91   log   [03:10:06.696] [warning][reporting] Reporting plugin self-check failed. Please check the Kibana Reporting settings. Error: Request Timeout after 30000ms
 92   log   [03:10:06.784] [warning][task_manager] PollError Request Timeout after 30000ms
 93   log   [03:10:06.787] [warning][maps] Error scheduling telemetry task, received NotInitialized: Tasks cannot be scheduled until after task manager is initialized!
 94   log   [03:10:06.790] [warning][telemetry] Error scheduling task, received NotInitialized: Tasks cannot be scheduled until after task manager is initialized!
 95   log   [03:10:36.807] [error][status][plugin:spaces@7.2.1] Status changed from yellow to red - Request Timeout after 30000ms
 96   log   [03:10:36.813] [fatal][root] { Error: Request Timeout after 30000ms
 97     at /data/kibana-7.2.1-linux-x86_64/node_modules/elasticsearch/src/lib/transport.js:362:15
 98     at Timeout.<anonymous> (/data/kibana-7.2.1-linux-x86_64/node_modules/elasticsearch/src/lib/transport.js:391:7)
 99     at ontimeout (timers.js:436:11)
100     at tryOnTimeout (timers.js:300:5)
101     at listOnTimeout (timers.js:263:5)
102     at Timer.processTimers (timers.js:223:10)
103   status: undefined,
104   displayName: 'RequestTimeout',
105   message: 'Request Timeout after 30000ms',
106   body: undefined,
107   isBoom: true,
108   isServer: true,
109   data: null,
110   output:
111    { statusCode: 503,
112      payload:
113       { statusCode: 503,
114         error: 'Service Unavailable',
115         message: 'Request Timeout after 30000ms' },
116      headers: {} },
117   reformat: [Function],
118   [Symbol(SavedObjectsClientErrorCode)]: 'SavedObjectsClient/esUnavailable' }
119 
120  FATAL  Error: Request Timeout after 30000ms

2、解决方法。

2.1、第一种解决方法,可以将kibana请求es的请求时长调大,如下所示:

1 elasticsearch.requestTimeout: 50000

2.2、调整/data/elasticsearch-7.2.1/config/jvm.options的jvm参数。将内存调大,如下所示:

  默认是1gb的,如果想要把自己虚拟机的改成2gb的话,至少需要给虚拟机3gb,我这个给的是4gb内存,然后如果给2gb内存,这两个参数调整为2gb的话,启动直接报内存不足的错误。

1 ################################################################
2 
3 # Xms represents the initial size of total heap space
4 # Xmx represents the maximum size of total heap space
5 
6 -Xms2g
7 -Xmx2g
8 
9 ################################################################

  大数据 最新文章
实现Kafka至少消费一次
亚马逊云科技:还在苦于ETL?Zero ETL的时代
初探MapReduce
【SpringBoot框架篇】32.基于注解+redis实现
Elasticsearch:如何减少 Elasticsearch 集
Go redis操作
Redis面试题
专题五 Redis高并发场景
基于GBase8s和Calcite的多数据源查询
Redis——底层数据结构原理
上一篇文章      下一篇文章      查看所有文章
加:2021-08-26 12:10:28  更:2021-08-26 12:12:11 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年11日历 -2024/11/23 12:57:33-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码