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
BanHammer can't find the path to the database #101
Comments
Thanks for reporting this issue. Would you mind doing a quick test with the last Bukkit recommended build and tell me if the problem persists? I just want to check this is not a Spigot specific issue before continuing. Also version 1.7.9 is quite old. Are you sure you are using that one and not the latest one? |
I meant spigot for minecraft 1.7.9, my bad. I'm using banhammer 2.4.0. I tried with the latest bukkit dev build and got the same error, so I don't think it's a spigot issue. I started the server with all other plugins removed and got the same error. I have another server on the same machine running MCPC-Plus and minecraft 1.7.2, and banhammer works great there. Here is the error from bukkit: 13:50:19] [Server thread/INFO]: [BanHammer] Enabling BanHammer v2.4.0 |
I have the same problem with Craftbukkit 1.7.9 and I using banhammer version: 2.4.0 |
com.avaje.ebeaninternal.server.lib.sql.DataSourceException: java.sql.SQLException: out of memory |
mmmm i only using this plugin how i can out of ram? |
The issue seems to be with the {DIR} variable in the database path in bukkit.yml. For whatever reason the backslashes are stripped out when banhammer registers its path. I was able to work around this by manually setting the path. I changed the bukkit.yml default 'url: jdbc:sqlite:{DIR}{NAME}.db' to 'url: jdbc:sqlite:database{NAME}.db'. This puts all plugin's .db files in a single folder named database, and banhammer is able to find its database now. |
I got the same issue to, but I can't fix it that way. |
After updating to 1.7.9 when banhammer goes to load the database it gives an error and the file path is missing backslashes. This happens whether the file is present or not.
[02:25:10] [Server thread/INFO]: [BanHammer] Enabling BanHammer v2.4.0
[02:25:10] [Server thread/WARN]: [BanHammer] Saving default configuration to config.yml
[02:25:10] [Server thread/WARN]: [BanHammer] Saving default configuration to database.yml
[02:25:10] [Server thread/ERROR]: Error occurred while enabling BanHammer v2.4.0 (Is it up to date?)
com.avaje.ebeaninternal.server.lib.sql.DataSourceException: java.sql.SQLException: path to 'C:MinecraftDaleTechMinecraftpluginsBanHammer/BanHammer.db': 'C:\Minecraft\DaleTech\Minecraft\MinecraftDaleTechMinecraftpluginsBanHammer' does not exist
at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.(DataSourcePool.java:220) ~[spigot.jar:git-Spigot-1455]
Caused by: java.sql.SQLException: path to 'C:MinecraftDaleTechMinecraftpluginsBanHammer/BanHammer.db': 'C:\Minecraft\DaleTech\Minecraft\MinecraftDaleTechMinecraftpluginsBanHammer' does not exist
at org.sqlite.Conn.open(Conn.java:103) ~[spigot.jar:git-Spigot-1455]
at org.sqlite.Conn.(Conn.java:57) ~[spigot.jar:git-Spigot-1455]
at org.sqlite.JDBC.createConnection(JDBC.java:77) ~[spigot.jar:git-Spigot-1455]
at org.sqlite.JDBC.connect(JDBC.java:64) ~[spigot.jar:git-Spigot-1455]
at java.sql.DriverManager.getConnection(Unknown Source) ~[?:1.7.0_45]
at java.sql.DriverManager.getConnection(Unknown Source) ~[?:1.7.0_45]
at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.createUnpooledConnection(DataSourcePool.java:396) ~[spigot.jar:git-Spigot-1455]
... 22 more
The text was updated successfully, but these errors were encountered: