Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行一段时间突然不提供服务了 #19

Open
musicking opened this issue Jun 17, 2023 · 3 comments
Open

运行一段时间突然不提供服务了 #19

musicking opened this issue Jun 17, 2023 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@musicking
Copy link

image
报错信息如上,使用了GeoLite2-City.mmdb数据库,开启了geoip自动更新。
这时候服务进程还在,接口返回json,但是没有任何信息.

{
    "errCode": 0,
    "errMsg": "success",
    "requestId": "327cbf53-98e3-4f45-8e4a-c90c70160227",
    "data": {
        "ip": "114.114.114.114",
        "continent": "",
        "country": "",
        "province": "",
        "city": "",
        "district": "",
        "isp": "",
        "areaCode": "",
        "countryEnglish": "",
        "countryCode": "",
        "longitude": "",
        "latitude": ""
    }
}

重启之后恢复正常

@freedomkk-qfeng
Copy link
Member

感觉是更新的时候 mmdb 写坏了
看看能不能提供下出现故障时的 debug 日志,以及故障出现时的 mmdb 文件(或者比对下故障时的 mmdb 文件的 sha256 和重启恢复正常运行时的 sha256)

@musicking
Copy link
Author

感觉大佬解答,项目运行没有开启debug日志,找不到之前的日志了。上次重启后我关闭了自动更新,目前运行正常,应该是更新文件不完整的原因。程序是否可以加个更新检测,保证下载的文件是完成的再替换重载。

@freedomkk-qfeng
Copy link
Member

嗯,应该先下载到一个 tmp 文件,checksum 以后再 copy 过去
#20

欢迎贡献 PR ~

@freedomkk-qfeng freedomkk-qfeng added bug Something isn't working help wanted Extra attention is needed labels Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants