MetaCubeX / mihomo

A simple Python Pydantic model for Honkai: Star Rail parsed data from the Mihomo API.
https://wiki.metacubex.one
MIT License
15.78k stars 2.58k forks source link

[Bug] 更新mmdb格式的GeoData失败 #931

Open LzNOHentai opened 9 months ago

LzNOHentai commented 9 months ago

Verify steps

Mihomo version

1.17.0

What OS are you seeing the problem on?

Windows

Mihomo config

geodata-mode: false
geox-url:
  geoip: https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geoip.dat
  geosite: https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geosite.dat
  mmdb: https://gcore.jsdelivr.net/gh/alecthw/mmdb_china_ip_list@release/Country.mmdb

Mihomo log

[REST-API] updating GEO databases...  
[TCP] mihomo --> gcore.jsdelivr.net:443 match RuleSet(Global) using 🔰 Proxies[🇯🇵 Japan 01] 
[REST-API] update GEO databases failed: can't save MMDB database file: %!w(<nil>)

Description

Windows下使用Clash Verge rev 1.4.5版本(Meta内核1.17.0)更新GeoData失败。 使用的是服务模式+TUN模式,其他所有上网功能一切正常。 Verge开发者表示更新GeoData功能为内核实现,建议向内核提issue,故尝试在此提出issue。 https://github.com/clash-verge-rev/clash-verge-rev/issues/166#issuecomment-1868189732

xishang0128 commented 9 months ago

image

geox-url:
  geoip: "https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip-lite.dat"
  geosite: "https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat"
  mmdb: "https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country-lite.mmdb"

经测试,功能正常

lisansas commented 9 months ago

这里有同样的问题,如果使用mmdb,则显示。

update GEO databases failed: can't save MMDB database file: The requested operation cannot be performed on a file with a user-mapped section open

jiayiming commented 8 months ago

[ error ][REST-API] update GEO databases failed: can't save MMDB database file: open C:\xxxx/Country.mmdb: The requested operation cannot be performed on a file with a user-mapped section open.

Nine499 commented 7 months ago

[ error ][REST-API] update GEO databases failed: can't save MMDB database file: open C:\xxxx/Country.mmdb: The requested operation cannot be performed on a file with a user-mapped section open.

也出现了这种情况,最后一个文件前面是反斜杠。

Larvan2 commented 7 months ago

@Nine499 什么版本

Nine499 commented 7 months ago

@Nine499 什么版本

windows amd64 1.18.1

Nine499 commented 7 months ago

@Larvan2 如果我把geoIP那个mmdb删掉,启动时候可以正常下载这个文件,但是我点击更新就会报这个错。 web ui 是 meta yacd

Larvan2 commented 7 months ago

@Nine499 用最近的alpha

Nine499 commented 7 months ago

@Nine499 用最近的alpha

今天晚上我再试试。

LzNOHentai commented 7 months ago

@Nine499 用最近的alpha

clash-verge-rev 1.5.4 使用最新版alpha 8b98130,可成功更新加载GEO文件。 QQ截图20240305103755 QQ截图20240305103810

Nine499 commented 7 months ago

@Nine499 用最近的alpha

成功