neko-craft / NekoMaid

A plugin can use Web to manage your MineCraft server.
http://maid.neko-craft.com
GNU Affero General Public License v3.0
200 stars 22 forks source link

[Bug]后台 GeoIP.db 报错,但插件目前正常运行 #35

Open KiWinger opened 1 year ago

KiWinger commented 1 year ago

描述错误

后台 GeoIP.db 报错,但插件正常运行,目前没有出现什么问题。

再现

复制行为的步骤:

  1. 插件放入文件夹,正常运行服务端
  2. 自动生成配置文件及GeoIP.db文件
  3. 在服务端启动完成后(也有可能是连接后台后)跳出错误信息

预期行为

正确启动且无报错。

屏幕截图

提供配置文件截图。 image

信息

控制台输出

[STDERR] cn.apisium.nekomaid.libs.com.maxmind.db.InvalidDatabaseException: Could not find a MaxMind DB metadata marker in this file (GeoIP.db). Is this a valid MaxMind DB file? at cn.apisium.nekomaid.libs.com.maxmind.db.Reader.findMetadataStart(Reader.java:293) at cn.apisium.nekomaid.libs.com.maxmind.db.Reader.(Reader.java:130) at cn.apisium.nekomaid.libs.com.maxmind.db.Reader.(Reader.java:117) at cn.apisium.nekomaid.libs.com.maxmind.geoip2.DatabaseReader.(DatabaseReader.java:91) at cn.apisium.nekomaid.libs.com.maxmind.geoip2.DatabaseReader.(DatabaseReader.java:62) at cn.apisium.nekomaid.libs.com.maxmind.geoip2.DatabaseReader$Builder.build(DatabaseReader.java:216) at cn.apisium.nekomaid.utils.GeoIP.lambda$new$0(GeoIP.java:34) at TRANSFORMER/arclight@1.19.2-1.0.1-0550c6cd/org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:82) at TRANSFORMER/arclight@1.19.2-1.0.1-0550c6cd/org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1589)