MyWarp

MyWarp

220k Downloads

Plugin folder does not exist

fredrik-j-lindberg opened this issue ยท 4 comments

commented

Hello! I tried installing your latest dev build but I got the following errors:

http://pastebin.com/wbXg0BxG

Hope you'll be able to assist me by either telling me what I am doing wrong or fix the issue! :)
Thanks for updating!

commented

It seems as if MyWarp's plugin folder was either not created by Bukkit or is not writable by MyWarp. Could you please look if the folder /home/minecraft/Servers/Survival/plugins/MyWarp/ exists?

If it does not exist, could you create the folder and test again?

commented

The folder was missing but it seems to be working fine after manually adding it!

Thanks, and sorry for the late reply! :)

commented

For the record, getting the same issue on the latest commit. It seems MyWarp isn't creating the directory, but creating it manually fixes the problem. Are you using a custom method for config saving/creation or Bukkit's getDataFolder()?

Error log:

[19:14:16] [Server thread/INFO]: [MyWarp] Enabling MyWarp v3.0-SNAPSHOT+unknown-b0.git-2696844
[19:14:16] [Server thread/ERROR]: [MyWarp] Failed to create the default configuration file ('/home/memes/spigot/plugins/MyWarp/config.yml'), using build-in defaults for all values.
java.io.IOException: No such file or directory
    at java.io.UnixFileSystem.createFileExclusively(Native Method) ~[?:1.8.0_91]
    at java.io.File.createNewFile(File.java:1012) ~[?:1.8.0_91]
    at me.taylorkelly.mywarp.bukkit.settings.BukkitSettings.reload(BukkitSettings.java:72) [mywarp-bukkit-3.0-SNAPSHOT-all.jar:3.0-SNAPSHOT+unknown-b0.git-2696844]
    at me.taylorkelly.mywarp.bukkit.settings.BukkitSettings.<init>(BukkitSettings.java:63) [mywarp-bukkit-3.0-SNAPSHOT-all.jar:3.0-SNAPSHOT+unknown-b0.git-2696844]
    at me.taylorkelly.mywarp.bukkit.BukkitPlatform.<init>(BukkitPlatform.java:69) [mywarp-bukkit-3.0-SNAPSHOT-all.jar:3.0-SNAPSHOT+unknown-b0.git-2696844]
    at me.taylorkelly.mywarp.bukkit.MyWarpPlugin.onEnable(MyWarpPlugin.java:103) [mywarp-bukkit-3.0-SNAPSHOT-all.jar:3.0-SNAPSHOT+unknown-b0.git-2696844]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:292) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at org.bukkit.craftbukkit.v1_9_R2.CraftServer.loadPlugin(CraftServer.java:362) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at org.bukkit.craftbukkit.v1_9_R2.CraftServer.enablePlugins(CraftServer.java:322) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at net.minecraft.server.v1_9_R2.MinecraftServer.t(MinecraftServer.java:416) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at net.minecraft.server.v1_9_R2.MinecraftServer.l(MinecraftServer.java:381) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at net.minecraft.server.v1_9_R2.MinecraftServer.a(MinecraftServer.java:336) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at net.minecraft.server.v1_9_R2.DedicatedServer.init(DedicatedServer.java:268) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at net.minecraft.server.v1_9_R2.MinecraftServer.run(MinecraftServer.java:532) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
[19:14:16] [Server thread/WARN]: [MyWarp] Failed to access SQLite profile cache. Player names will be resolved from memory.
java.io.IOException: Failed to connect to cache file
    at me.taylorkelly.mywarp.internal.squirrelid.cache.SQLiteCache.<init>(SQLiteCache.java:67) ~[mywarp-bukkit-3.0-SNAPSHOT-all.jar:3.0-SNAPSHOT+unknown-b0.git-2696844]
    at me.taylorkelly.mywarp.bukkit.SquirrelIdProfileCache.<init>(SquirrelIdProfileCache.java:63) [mywarp-bukkit-3.0-SNAPSHOT-all.jar:3.0-SNAPSHOT+unknown-b0.git-2696844]
    at me.taylorkelly.mywarp.bukkit.BukkitPlatform.<init>(BukkitPlatform.java:71) [mywarp-bukkit-3.0-SNAPSHOT-all.jar:3.0-SNAPSHOT+unknown-b0.git-2696844]
    at me.taylorkelly.mywarp.bukkit.MyWarpPlugin.onEnable(MyWarpPlugin.java:103) [mywarp-bukkit-3.0-SNAPSHOT-all.jar:3.0-SNAPSHOT+unknown-b0.git-2696844]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:292) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at org.bukkit.craftbukkit.v1_9_R2.CraftServer.loadPlugin(CraftServer.java:362) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at org.bukkit.craftbukkit.v1_9_R2.CraftServer.enablePlugins(CraftServer.java:322) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at net.minecraft.server.v1_9_R2.MinecraftServer.t(MinecraftServer.java:416) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at net.minecraft.server.v1_9_R2.MinecraftServer.l(MinecraftServer.java:381) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at net.minecraft.server.v1_9_R2.MinecraftServer.a(MinecraftServer.java:336) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at net.minecraft.server.v1_9_R2.DedicatedServer.init(DedicatedServer.java:268) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at net.minecraft.server.v1_9_R2.MinecraftServer.run(MinecraftServer.java:532) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
Caused by: java.sql.SQLException: path to '/home/memes/spigot/plugins/MyWarp/profiles.db': '/home/memes/spigot/plugins/MyWarp' does not exist
    at org.sqlite.Conn.open(Conn.java:103) ~[spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at org.sqlite.Conn.<init>(Conn.java:57) ~[spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at org.sqlite.JDBC.createConnection(JDBC.java:77) ~[spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at org.sqlite.JDBC.connect(JDBC.java:64) ~[spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at java.sql.DriverManager.getConnection(DriverManager.java:664) ~[?:1.8.0_91]
    at java.sql.DriverManager.getConnection(DriverManager.java:270) ~[?:1.8.0_91]
    at me.taylorkelly.mywarp.internal.squirrelid.cache.SQLiteCache.<init>(SQLiteCache.java:63) ~[mywarp-bukkit-3.0-SNAPSHOT-all.jar:3.0-SNAPSHOT+unknown-b0.git-2696844]
    ... 14 more
[19:14:16] [Server thread/ERROR]: Error occurred while enabling MyWarp v3.0-SNAPSHOT+unknown-b0.git-2696844 (Is it up to date?)
java.lang.NullPointerException
    at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:213) ~[spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at me.taylorkelly.mywarp.warp.storage.ConnectionConfiguration.<init>(ConnectionConfiguration.java:52) ~[?:?]
    at me.taylorkelly.mywarp.bukkit.settings.BukkitSettings.getRelationalStorageConfiguration(BukkitSettings.java:293) ~[?:?]
    at me.taylorkelly.mywarp.MyWarp.initialize(MyWarp.java:102) ~[?:?]
    at me.taylorkelly.mywarp.bukkit.MyWarpPlugin.onEnable(MyWarpPlugin.java:107) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:292) ~[spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at org.bukkit.craftbukkit.v1_9_R2.CraftServer.loadPlugin(CraftServer.java:362) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at org.bukkit.craftbukkit.v1_9_R2.CraftServer.enablePlugins(CraftServer.java:322) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at net.minecraft.server.v1_9_R2.MinecraftServer.t(MinecraftServer.java:416) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at net.minecraft.server.v1_9_R2.MinecraftServer.l(MinecraftServer.java:381) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at net.minecraft.server.v1_9_R2.MinecraftServer.a(MinecraftServer.java:336) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at net.minecraft.server.v1_9_R2.DedicatedServer.init(DedicatedServer.java:268) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at net.minecraft.server.v1_9_R2.MinecraftServer.run(MinecraftServer.java:532) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]

The account here has complete read/write access to the spigot directory, as well. So it's not a permissions problem.

commented

In fact I was using Bukkit's getDataFolder() but apparently the plugin folder is only created when Bukkit's getConfig() is used (which I do not).

Should be fixed now, although I need to have a look if my custom config logic is really needed.