Insight Engine 服务很容易就stop了,没有办法启动。
其他的两个服务都是正常启动,只有Insight Engine在启动一会儿后突然停止了。但是cmd里面显示却是启动成功的,挺奇怪的。
看看这个issues的评论能否帮助到你
https://github.com/666ghj/BettaFish/issues/44#issuecomment-3454741536
Thanks for reporting this issue! I've encountered a similar problem where the Insight Engine service stops unexpectedly after starting. This could be related to resource constraints or configuration issues. Have you checked the logs for any error messages?
@ghmark675 感谢回答,但是这个对我好像没有没有帮助。
@AmoghShukla Thank you for your reply. Could you please tell me which configuration settings might be affected? I only modified config.py, and there are two versions of this configuration file. There are no error messages in the logs either.
看一下你的insight的log文件
@666ghj 您好,这是日志输出截图,以及日志目录。
下面是日志文本内容:
[17:58:52] 启动 insight 应用...
[17:58:54] 2025-11-04 17:58:54.150
[17:58:54] Warning: the config option 'server.enableCORS=false' is not compatible with 'server.enableXsrfProtection=true'.
[17:58:54] As a result, 'server.enableCORS' is being overridden to 'true'.
[17:58:54] More information:
[17:58:54] In order to protect against CSRF attacks, we send a cookie with each request.
[17:58:54] To do so, we must specify allowable origins, which places a restriction on
[17:58:54] cross-origin resource sharing.
[17:58:54] If cross origin resource sharing is required, please disable server.enableXsrfProtection.
[17:58:55] You can now view your Streamlit app in your browser.
[17:58:55] Network URL: http://192.168.16.245:8501
[17:58:55] External URL: http://14.155.206.13:8501
[17:59:13] False,WeiboMultilingualSentimentAnalyzer 已创建,调用 initialize() 来加载模型
请检查最新代码版本是否正常。最新版本有更多的日志。
我怀疑是因为你没有暴露端口导致的。也可能是代理走了外部网络访问内部流量导致的,在某些错误的代理配置规则下我似乎触发过。
https://github.com/666ghj/BettaFish/issues/185
有问题可以重新打开