You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "seawenc (via GitHub)" <gi...@apache.org> on 2023/12/21 08:35:42 UTC
[I] [Bug] docker方式启动后无法重启 [doris]
seawenc opened a new issue, #28805:
URL: https://github.com/apache/doris/issues/28805
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues.
### Version
2.0.0_alpha-fe-x86_64
### What's Wrong?
使用官网的docker单节示例能成功启动,但是若执行了docker rm -f doris-fe再重新启动时就无法启动了
官网的示例
```
docker run -itd \
--name=fe \
--env FE_SERVERS="fe1:${intranet IP of the current machine}: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.0_alpha-fe-x86_64
```
> 本地`/opt/apache-doris/fe/doris-meta`,`/opt/apache-doris/fe/log`,这两个目录是正确挂载的
若使用docker rm -f fe 后再重新执行时,fe将永远无法启动,日志信息为:
```
2023-12-21 16:22:33,522 INFO (main|1) [Env.loadRoutineLoadJobs():1926] finished replay routineLoadJobs from image
2023-12-21 16:22:33,522 INFO (main|1) [Env.loadLoadJobsV2():1932] finished replay loadJobsV2 from image
2023-12-21 16:22:33,522 INFO (main|1) [Env.loadSmallFiles():1950] finished replay smallFiles from image
2023-12-21 16:22:33,522 INFO (main|1) [Env.loadPlugins():5170] finished replay plugins from image
2023-12-21 16:22:33,680 INFO (main|1) [Env.loadDeleteHandler():1870] finished replay deleteHandler from image
2023-12-21 16:22:33,681 INFO (main|1) [Env.loadSqlBlockRule():1958] finished replay sqlBlockRule from image
2023-12-21 16:22:33,685 INFO (main|1) [Env.loadPolicy():1969] finished replay policy from image
2023-12-21 16:22:33,690 INFO (main|1) [Env.loadMTMVJobManager():1992] finished replay mtmv job and tasks from image
2023-12-21 16:22:33,690 INFO (main|1) [Env.loadGlobalFunction():2001] finished replay global function from image
2023-12-21 16:22:33,693 INFO (main|1) [Env.loadWorkloadGroups():1944] finished replay workload groups from image
2023-12-21 16:22:33,693 INFO (main|1) [MetaReader.read():126] finished to load image in 1119 ms
2023-12-21 16:22:34,405 WARN (UNKNOWN 192.168.255.1_9010_1703144138253(-1)|1) [Env.notifyNewFETypeTransfer():2377] notify new FE type transfer: UNKNOWN
2023-12-21 16:22:34,426 INFO (stateListener|92) [Env$4.runOneCycle():2400] begin to transfer FE type from INIT to UNKNOWN
2023-12-21 16:22:34,426 INFO (stateListener|92) [Env$4.runOneCycle():2487] finished to transfer FE type to UNKNOWN
2023-12-21 16:22:34,526 INFO (UNKNOWN 192.168.255.1_9010_1703144138253(-1)|1) [Env.waitForReady():926] wait catalog to be ready. FE type: UNKNOWN. is ready: false, counter: 1
2023-12-21 16:22:36,529 INFO (UNKNOWN 192.168.255.1_9010_1703144138253(-1)|1) [Env.waitForReady():926] wait catalog to be ready. FE type: UNKNOWN. is ready: false, counter: 21
2023-12-21 16:22:38,532 INFO (UNKNOWN 192.168.255.1_9010_1703144138253(-1)|1) [Env.waitForReady():926] wait catalog to be ready. FE type: UNKNOWN. is ready: false, counter: 41
2023-12-21 16:22:40,535 INFO (UNKNOWN 192.168.255.1_9010_1703144138253(-1)|1) [Env.waitForReady():926] wait catalog to be ready. FE type: UNKNOWN. is ready: false, counter: 61
2023-12-21 16:22:42,538 INFO (UNKNOWN 192.168.255.1_9010_1703144138253(-1)|1) [Env.waitForReady():926] wait catalog to be ready. FE type: UNKNOWN. is ready: false, counter: 81
2023-12-21 16:22:44,543 INFO (UNKNOWN 192.168.255.1_9010_1703144138253(-1)|1) [Env.waitForReady():926] wait catalog to be ready. FE type: UNKNOWN. is ready: false, counter: 101
2023-12-21 16:22:46,546 INFO (UNKNOWN 192.168.255.1_9010_1703144138253(-1)|1) [Env.waitForReady():926] wait catalog to be ready. FE type: UNKNOWN. is ready: false, counter: 121
2023-12-21 16:22:48,550 INFO (UNKNOWN 192.168.255.1_9010_1703144138253(-1)|1) [Env.waitForReady():926] wait catalog to be ready. FE type: UNKNOWN. is ready: false, counter: 141
2023-12-21 16:22:50,553 INFO (UNKNOWN 192.168.255.1_9010_1703144138253(-1)|1) [Env.waitForReady():926] wait catalog to be ready. FE type: UNKNOWN. is ready: false, counter: 161
2023-12-21 16:22:52,556 INFO (UNKNOWN 192.168.255.1_9010_1703144138253(-1)|1) [Env.waitForReady():926] wait catalog to be ready. FE type: UNKNOWN. is ready: false, counter: 181
2023-12-21 16:22:54,559 INFO (UNKNOWN 192.168.255.1_9010_1703144138253(-1)|1) [Env.waitForReady():926] wait catalog to be ready. FE type: UNKNOWN. is ready: false, counter: 201
2023-12-21 16:22:56,562 INFO (UNKNOWN 192.168.255.1_9010_1703144138253(-1)|1) [Env.waitForReady():926] wait catalog to be ready. FE type: UNKNOWN. is ready: false, counter: 221
```
应该是还有哪个目录需要挂载
### What You Expected?
正确挂载目录后,能正常启动!
### How to Reproduce?
_No response_
### Anything Else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Bug] docker方式启动后无法重启 [doris]
Posted by "liuchunhua (via GitHub)" <gi...@apache.org>.
liuchunhua commented on issue #28805:
URL: https://github.com/apache/doris/issues/28805#issuecomment-1872541309
我使用2.0.3自建镜像也遇到这个问题,经过分析发现init_fe.sh脚本会检查image路径,如果不存在会add_priority_networks,重新运行的container会因为已经有Image路径,不会执行add_priority_networks,去掉判断逻辑后镜像能正常启动。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Bug] docker方式启动后无法重启 [doris]
Posted by "OxalisCu (via GitHub)" <gi...@apache.org>.
OxalisCu commented on issue #28805:
URL: https://github.com/apache/doris/issues/28805#issuecomment-2112084151
我也遇到这个问题,感谢
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Bug] docker方式启动后无法重启 [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #28805: [Bug] docker方式启动后无法重启
URL: https://github.com/apache/doris/issues/28805
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Bug] docker方式启动后无法重启 [doris]
Posted by "conanceph (via GitHub)" <gi...@apache.org>.
conanceph commented on issue #28805:
URL: https://github.com/apache/doris/issues/28805#issuecomment-3193570444
我使用 helm 在 k8s 中部署 doris,也遇到了 wait catalog to be ready. FE type: UNKNOWN. is ready: false 这种问题,尝试过设置 fe.conf 的 priority_network 啥的都不行,有人解决了这个问题吗?
我在想以容器方式部署的,pod一旦发生迁移或重启,pod IP必然是会发生变化的,这种情况下我尝试了去删除 /opt/apache-doris/fe/doris-meta 目录,再重启就可以起来。 这一点都不符合容器化的用途啊,pod IP变化了就起不来,那这做的容器化有什么用呢?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Bug] docker方式启动后无法重启 [doris]
Posted by "617450941 (via GitHub)" <gi...@apache.org>.
617450941 commented on issue #28805:
URL: https://github.com/apache/doris/issues/28805#issuecomment-2244113656
2.1.3问题依然存在
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Bug] docker方式启动后无法重启 [doris]
Posted by "13678014414 (via GitHub)" <gi...@apache.org>.
13678014414 commented on issue #28805:
URL: https://github.com/apache/doris/issues/28805#issuecomment-2255432682
解决方案:
更换为start_sh脚本启动的docker镜像
ENTRYPOINT ["/opt/apache-doris/fe/bin/start_fe.sh"]
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Bug] docker方式启动后无法重启 [doris]
Posted by "617450941 (via GitHub)" <gi...@apache.org>.
617450941 commented on issue #28805:
URL: https://github.com/apache/doris/issues/28805#issuecomment-2244171375
实现用enable_fqdn_mode = true 使用FQDN主机名的方式而不是ip
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Bug] docker方式启动后无法重启 [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #28805:
URL: https://github.com/apache/doris/issues/28805#issuecomment-3894120003
We're closing this issue because it hasn't been updated in a while.
If you'd like to revive this issue, please reopen it and feel free a maintainer to remove the Stale tag!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Bug] docker方式启动后无法重启 [doris]
Posted by "OxalisCu (via GitHub)" <gi...@apache.org>.
OxalisCu commented on issue #28805:
URL: https://github.com/apache/doris/issues/28805#issuecomment-2112103599
init_fe.sh 中这部分判断逻辑如下


也可以删除 fe/doris-meta/ 目录下的所有文件,然后重启能成功
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Bug] docker方式启动后无法重启 [doris]
Posted by "617450941 (via GitHub)" <gi...@apache.org>.
617450941 commented on issue #28805:
URL: https://github.com/apache/doris/issues/28805#issuecomment-2244112376
是的 全部节点下线 再重新启动就会报这个错误 这个是bug吧 我测试环境天天会重启关机的 这样也太不科学了吧
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org