Bug 11907 - docker部署elasticsearch启动失败
Summary: docker部署elasticsearch启动失败
Status: NEW
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: ---> ToBeTriaged (show other bugs) ---> ToBeTriaged
Version: 23.0
Hardware: x86_64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: happy_orange
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-15 16:55 UTC by oonoouoo
Modified: 2024-11-15 16:55 UTC (History)
0 users

See Also:


Attachments
容器启动时的日志 (36.78 KB, text/plain)
2024-11-15 16:55 UTC, oonoouoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description oonoouoo 2024-11-15 16:55:30 UTC
Created attachment 1225 [details]
容器启动时的日志

Description of problem:
在docker(server version 20.10.25)中部署elasticsearch(8.16.0),通过命令docker run -itd --name es --restart=always --net elastic -p 9200:9200 -m 6GB elasticsearch:8.16.0启动容器,报错退出。

Version-Release number of selected component (if applicable):


How reproducible:
容器化部署elasticsearch:8.16.0

Steps to Reproduce:
1.安装docker:yum install docker -y
2.下载\准备好elasticsearch:8.16.0镜像
3.启动docker:systemctl start docker
4.启动容器:docker run -itd --name es --restart=always --net elastic -p 9200:9200 -m 6GB elasticsearch:8.16.0

Actual results:
容器正常启动

Expected results:
容器无法启动

Additional info:
在Anolis 8.9中安装docker-ce的情况下,可以成功部署
1.yum install yum-utils
2.yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
3.yum install docker-ce
4.systemctl start docker
5.docker run -itd --name es --restart=always --net elastic -p 9200:9200 -m 6GB elasticsearch:8.16.0


报错信息如下:
{"@timestamp":"2024-11-14T07:00:10.002Z", "log.level":"ERROR", "message":"fatal exception while booting Elasticsearch", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.bootstrap.Elasticsearch","elasticsearch.node.name":"c34451913a64","elasticsearch.cluster.name":"docker-cluster","error.type":"java.lang.NumberFormatException","error.message":"For input string: \"18446744073709551615\"","error.stack_trace":"java.lang.NumberFormatException: For input string: \"18446744073709551615\"\n\tat java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)\n\tat java.base/java.lang.Long.parseLong(Long.java:618)\n\tat java.base/java.lang.Long.parseLong(Long.java:722)\n\tat org.elasticsearch.server@8.16.0/org.elasticsearch.monitor.os.OsProbe.getCgroupV2CpuStats(OsProbe.java:645)\n\tat org.elasticsearch.server@8.16.0/org.elasticsearch.monitor.os.OsProbe.getCgroup(OsProbe.java:699)\n\tat org.elasticsearch.server@8.16.0/org.elasticsearch.monitor.os.OsProbe.getCgroup(OsProbe.java:895)\n\tat org.elasticsearch.server@8.16.0/org.elasticsearch.monitor.os.OsProbe.osStats(OsProbe.java:902)\n\tat org.elasticsearch.ml@8.16.0/org.elasticsearch.xpack.ml.MachineLearning.additionalSettings(MachineLearning.java:849)\n\tat org.elasticsearch.server@8.16.0/org.elasticsearch.node.Node.mergePluginSettings(Node.java:804)\n\tat org.elasticsearch.server@8.16.0/org.elasticsearch.node.NodeConstruction.createEnvironment(NodeConstruction.java:475)\n\tat org.elasticsearch.server@8.16.0/org.elasticsearch.node.NodeConstruction.prepareConstruction(NodeConstruction.java:267)\n\tat org.elasticsearch.server@8.16.0/org.elasticsearch.node.Node.<init>(Node.java:200)\n\tat org.elasticsearch.server@8.16.0/org.elasticsearch.bootstrap.Elasticsearch$2.<init>(Elasticsearch.java:240)\n\tat org.elasticsearch.server@8.16.0/org.elasticsearch.bootstrap.Elasticsearch.initPhase3(Elasticsearch.java:240)\n\tat org.elasticsearch.server@8.16.0/org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:75)\n"}