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

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

Open
KiWinger opened this issue Jan 22, 2023 · 0 comments
Open

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

KiWinger opened this issue Jan 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@KiWinger
Copy link

描述错误

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

再现

复制行为的步骤:

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

预期行为

正确启动且无报错。

屏幕截图

提供配置文件截图。
image

信息

  • Minecraft版本:1.19.2
  • 插件版本:0.3.2
  • Uniporter版本:1.3.4
  • 服务器核心:Arclight Horn/1.0.1

控制台输出

[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/[email protected]/org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:82)
at TRANSFORMER/[email protected]/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)

@KiWinger KiWinger added the bug Something isn't working label Jan 22, 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
Projects
None yet
Development

No branches or pull requests

1 participant