BettaFish icon indicating copy to clipboard operation
BettaFish copied to clipboard

Insight Engine 服务很容易就stop了,没有办法启动。

Open mozou opened this issue 2 months ago • 8 comments

其他的两个服务都是正常启动,只有Insight Engine在启动一会儿后突然停止了。但是cmd里面显示却是启动成功的,挺奇怪的。 Image

Image Image

mozou avatar Nov 04 '25 10:11 mozou

看看这个issues的评论能否帮助到你

https://github.com/666ghj/BettaFish/issues/44#issuecomment-3454741536

ghmark675 avatar Nov 04 '25 10:11 ghmark675

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?

AmoghShukla avatar Nov 04 '25 11:11 AmoghShukla

@ghmark675 感谢回答,但是这个对我好像没有没有帮助。

mozou avatar Nov 04 '25 12:11 mozou

@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.

mozou avatar Nov 04 '25 12:11 mozou

看一下你的insight的log文件

666ghj avatar Nov 04 '25 12:11 666ghj

@666ghj 您好,这是日志输出截图,以及日志目录。

Image

下面是日志文本内容:

[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() 来加载模型

mozou avatar Nov 04 '25 13:11 mozou

请检查最新代码版本是否正常。最新版本有更多的日志。

我怀疑是因为你没有暴露端口导致的。也可能是代理走了外部网络访问内部流量导致的,在某些错误的代理配置规则下我似乎触发过。

DoiiarX avatar Nov 06 '25 13:11 DoiiarX

https://github.com/666ghj/BettaFish/issues/185

DoiiarX avatar Nov 07 '25 04:11 DoiiarX

有问题可以重新打开

DoiiarX avatar Nov 08 '25 04:11 DoiiarX