plugin updater #2


  • Defect
  • Accepted
Open
Assigned to _ForgeUser6967005
  • _ForgeUser1079970 created this issue Aug 4, 2013

    What steps will reproduce the problem?
    1. do /bm plugin update xxx
    2. type yes
    3. bah all the errors no update

    What is the expected output? What do you see instead?
    plugin updated?

    What version of the product are you using?
    newest

    Do you have an error log of what happened?
    2013-08-05 03:05:48 [INFO] [Bukkitmanager] Key PluginUpdater.NotUpToDate couldn't be found. Please check your lang Files!
    2013-08-05 03:05:48 [INFO] Should the newest Version of SecureOp get downloaded? (yes/no)
    2013-08-05 03:05:52 [INFO] yes
    2013-08-05 03:05:52 [SEVERE] Error handling conversation prompt
    java.lang.NullPointerException
        at org.efreak.bukkitmanager.commands.UpdatePluginPrompt.acceptValidatedInput(PluginCmd.java:463)
        at org.bukkit.conversations.BooleanPrompt.acceptValidatedInput(BooleanPrompt.java:23)
        at org.bukkit.conversations.ValidatingPrompt.acceptInput(ValidatingPrompt.java:23)
        at org.bukkit.conversations.Conversation.acceptInput(Conversation.java:201)
        at org.bukkit.craftbukkit.v1_6_R2.conversations.ConversationTracker.acceptConversationInput(ConversationTracker.java:52)
        at org.bukkit.craftbukkit.v1_6_R2.command.CraftConsoleCommandSender.acceptConversationInput(CraftConsoleCommandSender.java:60)
        at org.bukkit.craftbukkit.v1_6_R2.CraftServer.dispatchServerCommand(CraftServer.java:511)
        at net.minecraft.server.v1_6_R2.DedicatedServer.ar(DedicatedServer.java:275)
        at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:240)
        at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:481)
        at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:413)
        at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)

    Please provide any additional information below.
    if that is important i use spiggot latest 1.6.2 build

  • _ForgeUser1079970 added the tags New Defect Aug 4, 2013
  • _ForgeUser6967005 posted a comment Aug 5, 2013

    It looks like the String PluginUpdater.System isn't set in your config. Could you please try to set it and try to update a plugin again then?

  • _ForgeUser1079970 posted a comment Aug 5, 2013

    Id say everything is set, but just to confirm im sending my config. Btw when i add any permissions to pex it does not let me use it i just get you dont have permission, only when i op myself i can use them... About pluginupdater it searches for plugins to be updated and displays them but it doesnt let me update them. But the list is strange as well as in dev.bukkit.org i dont have newer ver of plugins said to be valid for updating.

    General: Permissions: Use-Permissions: true Use-Vault: true Force-SuperPerms: false Log: true Auto-Updater: true Debug: false Logger: false Player-Synchronisation: true CPULoad: false Scripting: true Statistics: true Aliases: Autobackup: false Backup: false Automessage: false Save: false Autosave: false Bukkit: false Players: false Gm: false Player: false Plugin: false Server: false Worlds: false World: false IO: Show-Prefix: true Prefix: '&4[Bukkitmanager]' Error: '&c[Error]' Warning: '&e[Warning]' Debug: '&3[Debug]' Language: en ColoredLogs: true HelpHeader: BUKKITMANAGER HELP(%page%/%pages%) HelpFormat: '&e%cmd%: &f%desc%' PluginUpdater: Enabled: true CheckOnStart: true Whitelist: Enabled: false Blacklist: Enabled: false Automessage: Enabled: true File: automessages.txt Interval: 600 Random: false Prefix: '[Ad]' Autosave: Enabled: true Interval: 900 Warntimes: - 60 Notification: true NoOffline: true Taskmode: async Autobackup: Enabled: true RenameJar: true Interval: 3600 Warntimes: - 60 Notification: true NoOffline: true KeepBackups: -1 BackupDir: backups TempBackupDir: backups/temp PostExecution: Enabled: false File: backup.sh Taskmode: async Backup: Worlds: world: true world_nether: true world_the_end: true creative: true spawn: true skyworld: true atlantis: true Plugins: true craftbukkit: true Database: System: MySQL Host: localhost Port: 3306 Name: db_bm Username: root Password: CustomMessages: Enabled: false Join: - '&e%player% joined the game.' Leave: - '&e%player% has left the game.' Kick: - '&e%player% has left the game.' UnknownCommand: - Unknown Command Fakepluginlist: Enabled: true Fakes: - AntiCheat - AntiGrief - AntiSwear - AntiTheft - AntiHack - AntiSeeToMuch - AntiBot - NoFucksGiven Hidden: - '*' Notifications: Enabled: false PluginUpdater: Updates: true Updated: true Autobackup: Started: true Finished: true RemoteServer: false Chatfilter: Enabled: false File: chatfilter.txt Replacement: '*'

  • _ForgeUser6967005 posted a comment Aug 5, 2013

    @cyberze: Go

    The entry System in the PluginUpdater Tree isn't set, looks like I've already removed this for the next update...
    Just add a new entry System with the value DevBukkit in the PluginUpdater Tree and updating should work.

    The updater is sometimes a little bit buggy. But I've written a whole new Updater which should work much better and faster. Regarding the permissions, is this happening with all permissions or just some perms?

  • _ForgeUser1079970 posted a comment Aug 5, 2013

    @efreak1996: Go

    havent tried all of them but any i tried didnt work for example the one that does backup

    also i just got this one for like 3rd time, any idea what might cause it?

    2013-08-05 13:46:49 [INFO] [Bukkitmanager] Enabling Bukkitmanager v1.5 2013-08-05 13:46:49 [SEVERE] java.io.IOException: Unable to delete directory /home/minecraft/minecraft/backups/temp/skyworld. 2013-08-05 13:46:49 [SEVERE] at org.efreak.bukkitmanager.util.FileUtils.deleteDirectory(FileUtils.java:712) 2013-08-05 13:46:49 [SEVERE] at org.efreak.bukkitmanager.util.FileUtils.forceDelete(FileUtils.java:770) 2013-08-05 13:46:49 [SEVERE] at org.efreak.bukkitmanager.util.FileUtils.cleanDirectory(FileUtils.java:741) 2013-08-05 13:46:49 [SEVERE] at org.efreak.bukkitmanager.util.FileHelper.setupFolderStructure(FileHelper.java:54) 2013-08-05 13:46:49 [SEVERE] at org.efreak.bukkitmanager.Bukkitmanager.onEnable(Bukkitmanager.java:76) 2013-08-05 13:46:49 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) 2013-08-05 13:46:49 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) 2013-08-05 13:46:49 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:382) 2013-08-05 13:46:49 [SEVERE] at us.Myles.PWP.FakePluginManager.enablePlugin(FakePluginManager.java:199) 2013-08-05 13:46:49 [SEVERE] at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugin(CraftServer.java:286) 2013-08-05 13:46:49 [SEVERE] at org.bukkit.craftbukkit.v1_6_R2.CraftServer.enablePlugins(CraftServer.java:268) 2013-08-05 13:46:49 [SEVERE] at net.minecraft.server.v1_6_R2.MinecraftServer.l(MinecraftServer.java:319) 2013-08-05 13:46:49 [SEVERE] at net.minecraft.server.v1_6_R2.MinecraftServer.f(MinecraftServer.java:296) 2013-08-05 13:46:49 [SEVERE] at net.minecraft.server.v1_6_R2.MinecraftServer.a(MinecraftServer.java:256) 2013-08-05 13:46:49 [SEVERE] at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:164) 2013-08-05 13:46:49 [SEVERE] at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:397) 2013-08-05 13:46:49 [SEVERE] at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)

  • _ForgeUser6967005 posted a comment Aug 5, 2013

    @cyberze: Go

    Could you check with ls -l whether the minecraft user is allowed to modify this folder?

  • _ForgeUser1079970 posted a comment Aug 5, 2013

    @efreak1996: Go

    i run bukkit from root's it is placed in /home/minecraft though all of those has been set to rwxr-xr-x just change them to rwxrwxr-x but i still get [Warning] Couldn't clean Temporary Backup Folder! without error though

  • _ForgeUser6967005 posted a comment Aug 5, 2013

    Hm... try deleting the folder by yourself and check whether it happens again plz.

  • _ForgeUser1079970 posted a comment Aug 5, 2013

    @efreak1996: Go

    deleted and run the backup with /bm backup all backups has been made and looks valid but i got that in the process: 2013-08-06 06:11:53 [INFO] [Bukkitmanager] Autobackup started! 2013-08-06 06:11:53 [INFO] [Bukkitmanager] [Warning] Couldn't clean Temporary Backup Folder! 2013-08-06 06:11:53 [SEVERE] Exception in thread "Craft Scheduler Thread - 334" 2013-08-06 06:11:53 [SEVERE] org.apache.commons.lang.UnhandledException: Plugin Bukkitmanager v1.5 generated an exception while executing task 95 at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 at org.efreak.bukkitmanager.util.BackupHelper.copyJar(BackupHelper.java:107) at org.efreak.bukkitmanager.util.BackupHelper.backup(BackupHelper.java:61) at org.efreak.bukkitmanager.util.BackupHelper.access$000(BackupHelper.java:21) at org.efreak.bukkitmanager.util.BackupHelper$2.run(BackupHelper.java:40) at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftTask.run(CraftTask.java:58) at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) ... 3 more

  • _ForgeUser6967005 posted a comment Aug 6, 2013

    @cyberze: Go

    This looks like two errors, one happens while renaming the server jar file, so this can be fixed if you disable the server jar backup or only the renaming.
    But I have no idea why it can't clean the temporary backup folder. Maybe this is caused by the server jar backup error but i'm not sure.

  • _ForgeUser1079970 posted a comment Aug 6, 2013

    its not vital ;) ill wait for next version maybe it will fix itself :)

    greate job btw ;D

  • _ForgeUser6967005 posted a comment Aug 6, 2013

    @cyberze: Go

    I hope so :D
    Thx :)

  • _ForgeUser6967005 removed a tag New Aug 6, 2013
  • _ForgeUser6967005 added a tag Accepted Aug 6, 2013
  • _ForgeUser1079970 posted a comment Aug 6, 2013

    @efreak1996: Go

    uhm a lil more help cause i though ill go aroung with a diffrent approach i set this: PostExecution: Enabled: true File: backup.sh in config and made a script:

    1. !/bin/bash rm -rf /home/minecraft/minecraft/backups/temp/* in script folder, the script itself works perfectly but does not seem to be called at all btw plugin does the backup np problem its just the deleting files afterwards thats an issue

    so my question is when is it called or rather how to make it work lol

  • _ForgeUser6967005 posted a comment Aug 6, 2013

    @cyberze: Go

    The script should be called after everything is done, which includes the Temp file removing. It is possible that the script isn't executed because oft this issue. I will check this ;)


To post a comment, please login or register a new account.