【已解决】docker build未报错,为何FE启动时会显示镜像 image does not exist,会是什么原因 ?

Viewed 40

2024-09-27 08:22:04,411 INFO (main|1) [Env.getClusterIdAndRole():1153] finished to get cluster id: 42552114, isElectable: true, role: FOLLOWER and node name: fe_f98efff0_2960_45a2_b7fa_ef6277f93c44
2024-09-27 08:22:04,422 INFO (main|1) [Env.loadImage():1721] image does not exist: /opt/apache-doris/fe/doris-meta/image/image.0
2024-09-27 08:22:04,994 WARN (UNKNOWN fe_f98efff0_2960_45a2_b7fa_ef6277f93c44(-1)|1) [Env.notifyNewFETypeTransfer():2393] notify new FE type transfer: UNKNOWN
[2024-09-27 08:22:04] notify new FE type transfer: UNKNOWN
2024-09-27 08:22:10,009 WARN (UNKNOWN fe_f98efff0_2960_45a2_b7fa_ef6277f93c44(-1)|1) [Env.notifyNewFETypeTransfer():2393] notify new FE type transfer: UNKNOWN
[2024-09-27 08:22:10] notify new FE type transfer: UNKNOWN
2024-09-27 08:22:15,014 WARN (UNKNOWN fe_f98efff0_2960_45a2_b7fa_ef6277f93c44(-1)|1) [Env.notifyNewFETypeTransfer():2393] notify new FE type transfer: UNKNOWN
[2024-09-27 08:22:15] notify new FE type transfer: UNKNOWN
2024-09-27 08:22:15,016 ERROR (UNKNOWN fe_f98efff0_2960_45a2_b7fa_ef6277f93c44(-1)|1) [BDBEnvironment.setup():201] error to open replicated environment. will exit.
com.sleepycat.je.rep.ReplicaWriteException: (JE 18.3.12) Problem closing transaction 27. The current state is:UNKNOWN. The node transitioned to this state at:Fri Sep 27 08:22:04 UTC 2024
at com.sleepycat.je.rep.txn.ReadonlyTxn.disallowReplicaWrite(ReadonlyTxn.java:114) ~[je-18.3.14-doris-SNAPSHOT.jar:18.3.14-doris-SNAPSHOT]
at com.sleepycat.je.dbi.DbTree.checkReplicaWrite(DbTree.java:880) ~[je-18.3.14-doris-SNAPSHOT.jar:18.3.14-doris-SNAPSHOT]
at com.sleepycat.je.dbi.DbTree.doCreateDb(DbTree.java:579) ~[je-18.3.14-doris-SNAPSHOT.jar:18.3.14-doris-SNAPSHOT]
at com.sleepycat.je.dbi.DbTree.createDb(DbTree.java:486) ~[je-18.3.14-doris-SNAPSHOT.jar:18.3.14-doris-SNAPSHOT]
at com.sleepycat.je.Database.initNew(Database.java:174) ~[je-18.3.14-doris-SNAPSHOT.jar:18.3.14-doris-SNAPSHOT]
at com.sleepycat.je.Environment.setupDatabase(Environment.java:864) ~[je-18.3.14-doris-SNAPSHOT.jar:18.3.14-doris-SNAPSHOT]
at com.sleepycat.je.Environment.openDatabase(Environment.java:668) ~[je-18.3.14-doris-SNAPSHOT.jar:18.3.14-doris-SNAPSHOT]
at org.apache.doris.journal.bdbje.BDBEnvironment.setup(BDBEnvironment.java:182) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.journal.bdbje.BDBJEJournal.open(BDBJEJournal.java:333) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.persist.EditLog.open(EditLog.java:1138) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.catalog.Env.initialize(Env.java:901) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.DorisFE.start(DorisFE.java:164) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.DorisFE.main(DorisFE.java:84) ~[doris-fe.jar:1.2-SNAPSHOT]
粗体

2 Answers

采用的是docker run方式,network是宿主机的私网,存储目录使用的是挂载.当创建完fe容器的时候,挂载目录正常生成了,network也改为宿主机内网,命令如下
docker run -itd
--name=fe
--env FE_SERVERS="fe1:192.168.8.188:9010"
--env FE_ID=1
-p 8030:8030
-p 9030:9030
-v /data/fe/doris-meta:/opt/apache-doris/fe/doris-meta
-v /data/fe/log:/opt/apache-doris/fe/log
--net=host
apache-doris:2.0.3-fe
解决方案:
1.删除元数据 rm -rf doris-meta
2.启动时,硬盘需保留6G以上(我预留出了25G)

"notify new FE type transfer: UNKNOWN"
可以先确认下,是否有正常配置network和存储目录等信息:Docker部署