PEXPlugins / PermissionsEx

A powerful permissions plugin for Minecraft
https://permissionsex.stellardrift.ca
Apache License 2.0
480 stars 298 forks source link

Trouble with PEX Backend? #923

Closed team2055 closed 11 years ago

team2055 commented 11 years ago

I dont know wat's wrong with permissions ex, but it mentiona backend several times... Please help... btw, the same severe message appears when someone logs in. My backend in the config file right now is set to nothing, but when this started, it was pointing to permissions.yml

Console:

08:33:12 [INFO] Starting minecraft server version 1.6.2 08:33:12 [INFO] Loading properties 08:33:12 [INFO] Default game type: ADVENTURE 08:33:12 [INFO] Generating keypair 08:33:12 [INFO] Starting Minecraft server on *:25565 08:33:13 [INFO] This server is running CraftBukkit version git-Bukkit-1.5.2-R1.0 -27-gdc25312-b2814jnks (MC: 1.6.2) (Implementing API version 1.6.2-R0.1-SNAPSHOT ) 08:33:13 [INFO] [PermissionsEx] sql backend registered! 08:33:13 [INFO] [PermissionsEx] file backend registered! 08:33:13 [INFO] [PermissionsEx] PermissionEx plugin initialized. 08:33:13 [INFO] ----- Bukkit Auto Updater ----- 08:33:13 [INFO] It appears that you're running a Development Build, when you've specified in bukkit.yml that you prefer to run Recommended Builds. 08:33:13 [INFO] If you would like to be kept informed about new Development Buil d releases, it is recommended that you change 'preferred-channel' in your bukkit .yml to 'dev'. 08:33:13 [INFO] With that set, you will be told whenever a new version is availa ble for download, so that you can always keep up to date and secure with the lat est fixes. 08:33:13 [INFO] If you would like to disable this warning, simply set 'suggest-c hannels' to false in bukkit.yml. 08:33:13 [INFO] ----- ------------------- ----- 08:33:13 [INFO] [VIP] Loading VIP v2.0.0 08:33:13 [INFO] [MultiWorld] Loading MultiWorld v3.5.0 08:33:13 [INFO] [AutoMessage] Loading AutoMessage v1.5 08:33:13 [INFO] [WorldEdit] Loading WorldEdit v5.5.7 08:33:13 [INFO] [DisguiseCraft] Loading DisguiseCraft v4.9 08:33:13 [INFO] [SurvivalGames] Loading SurvivalGames v0.5.8.49 08:33:13 [INFO] [ColorCodes] Loading ColorCodes v1.1 08:33:13 [INFO] [NBTEditor] Loading NBTEditor v0.0.6 08:33:13 [INFO] [Buycraft] Loading Buycraft v5.7 08:33:13 [INFO] [Heads] Loading Heads v1.3 08:33:13 [INFO] [PropHunt] Loading PropHunt v1.2 08:33:13 [INFO] [PermissionsEx] Loading PermissionsEx v1.19.6 08:33:14 [INFO] [PermissionsEx] Initializing file backend 08:33:14 [WARNING] Error loading permissions file: mapping values are not allowed here in "", line 3, column 12: default: true ^

08:33:14 [INFO] [Multiverse-Core] Loading Multiverse-Core v2.4-b527 08:33:14 [INFO] [Modifyworld] Loading Modifyworld v1.19.6 08:33:14 [INFO] [SuperSpleef] Loading SuperSpleef vB 0.1.7 08:33:14 [INFO] [AutoSaveWorld] Loading AutoSaveWorld v3.8 08:33:14 [INFO] [WorldGuard] Loading WorldGuard v5.7.5 08:33:14 [INFO] [dynmap] Loading dynmap v1.8-786 08:33:14 [INFO] [Essentials] Loading Essentials v2.11.1 08:33:14 [INFO] [ChatManager] Loading ChatManager v1.19.1 08:33:14 [INFO] [EssentialsSpawn] Loading EssentialsSpawn v2.11.1 08:33:14 [INFO] [Multiverse-Portals] Loading Multiverse-Portals v2.4-b548 08:33:14 [INFO] [SetRankPEX] Loading SetRankPEX v1.7 08:33:14 [INFO] [EssentialsChat] Loading EssentialsChat v2.11.1 08:33:14 [INFO] [JSONAPI] Loading JSONAPI v4.3.8 08:33:14 [INFO] Preparing level "world"

08:33:14 [SEVERE] Error occurred with PermissionsEx! Please post it to https:// github.com/PEXPlugins/PermissionsEx/issues/new?title=&body=%23%23%23+Description +%23%23%23%0A%0A%5BInsert+description+of+issue+here%5D%0A%23%23%23+What+PEX+Saw+ %23%23%23%0A%0AReason%3A+While+setting+backend%0A%0AStacktrace%3A%0A%60% 60%60%0Ajava.lang.IllegalStateException%3A+Error+loading+permissions+file%0D%0A% 09at+ru.tehkode.permissions.backends.FileBackend.reload%28FileBackend.java%3A249 %29%0D%0A%09at+ru.tehkode.permissions.backends.FileBackend.initialize%28FileBack end.java%3A84%29%0D%0A%09at+ru.tehkode.permissions.PermissionManager.setBackend% 28PermissionManager.java%3A427%29%0D%0A%09at+ru.tehkode.permissions.PermissionMa nager.initBackend%28PermissionManager.java%3A492%29%0D%0A%09at+ru.tehkode.permis sions.PermissionManager.%3Cinit%3E%28PermissionManager.java%3A55%29%0D%0A%09at+r u.tehkode.permissions.bukkit.PermissionsEx.onLoad%28PermissionsEx.java%3A83%29%0 D%0A%09at+org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugins%28CraftServer.j ava%3A244%29%0D%0A%09at+org.bukkit.craftbukkit.v1_6_R2.CraftServer.%3Cinit%3E%28 CraftServer.java%3A217%29%0D%0A%09at+net.minecraft.server.v1_6_R2.PlayerList.%3C init%3E%28PlayerList.java%3A56%29%0D%0A%09at+net.minecraft.server.v1_6_R2.Dedica tedPlayerList.%3Cinit%3E%28SourceFile%3A11%29%0D%0A%09at+net.minecraft.server.v1 _6_R2.DedicatedServer.init%28DedicatedServer.java%3A106%29%0D%0A%09at+net.minecr aft.server.v1_6_R2.MinecraftServer.run%28MinecraftServer.java%3A391%29%0D%0A%09a t+net.minecraft.server.v1_6_R2.ThreadServerApplication.run%28SourceFile%3A582%29 %0D%0ACaused+by%3A+org.bukkit.configuration.InvalidConfigurationException%3A+map ping+values+are+not+allowed+here%0A+in+%22%3Cstring%3E%22%2C+line+3%2C+column+12 %3A%0A++++++++default%3A+true%0A+++++++++++++++%5E%0A%0D%0A%09at+org.bukkit.conf iguration.file.YamlConfiguration.loadFromString%28YamlConfiguration.java%3A55%29 %0D%0A%09at+org.bukkit.configuration.file.FileConfiguration.load%28FileConfigura tion.java%3A138%29%0D%0A%09at+org.bukkit.configuration.file.FileConfiguration.lo ad%28FileConfiguration.java%3A105%29%0D%0A%09at+ru.tehkode.permissions.backends. FileBackend.reload%28FileBackend.java%3A232%29%0D%0A%09...+12+more%0D%0ACaused+b y%3A+mapping+values+are+not+allowed+here%0A+in+%22%3Cstring%3E%22%2C+line+3%2C+c olumn+12%3A%0A++++++++default%3A+true%0A+++++++++++++++%5E%0A%0D%0A%09at+org.yam l.snakeyaml.scanner.ScannerImpl.fetchValue%28ScannerImpl.java%3A733%29%0D%0A%09a t+org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens%28ScannerImpl.java%3A30 5%29%0D%0A%09at+org.yaml.snakeyaml.scanner.ScannerImpl.checkToken%28ScannerImpl. java%3A179%29%0D%0A%09at+org.yaml.snakeyaml.parser.ParserImpl%24ParseBlockMappin gKey.produce%28ParserImpl.java%3A563%29%0D%0A%09at+org.yaml.snakeyaml.parser.Par serImpl.peekEvent%28ParserImpl.java%3A161%29%0D%0A%09at+org.yaml.snakeyaml.parse r.ParserImpl.checkEvent%28ParserImpl.java%3A146%29%0D%0A%09at+org.yaml.snakeyaml .composer.Composer.composeMappingNode%28Composer.java%3A230%29%0D%0A%09at+org.ya ml.snakeyaml.composer.Composer.composeNode%28Composer.java%3A160%29%0D%0A%09at+o rg.yaml.snakeyaml.composer.Composer.composeDocument%28Composer.java%3A123%29%0D% 0A%09at+org.yaml.snakeyaml.composer.Composer.getSingleNode%28Composer.java%3A106 %29%0D%0A%09at+org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData%28Ba seConstructor.java%3A121%29%0D%0A%09at+org.yaml.snakeyaml.Yaml.loadFromReader%28 Yaml.java%3A480%29%0D%0A%09at+org.yaml.snakeyaml.Yaml.load%28Yaml.java%3A399%29% 0D%0A%09at+org.bukkit.configuration.file.YamlConfiguration.loadFromString%28Yaml Configuration.java%3A53%29%0D%0A%09...+15+more%0D%0A%60%60%60%0A%23%23%23+PEX+co nfiguration+%23%23%23%0A%60%60%60yaml%0Apermissions%3A%0A++backend%3A+file%0A++b ackends%3A%0A++++file%3A%0A++++++file%3A+permissions.yml%0A++superperms%3A+%7B%7 D%0A%60%60%60%0A%23%23%23+Permissions+database+%23%23%23%0A%60%60%60yaml%0Agroup s%3A%0A++Guest%0A++++default%3A+true%0A++++prefix%3A+%27%267%5B%268Guest%267%5D% 268%0A++++build%3A+false%0A++++permissions%3A%0A++++-+essentials.help%0A++++-+es sentials.list%0A++++-+essentials.motd%0A++++-+essentials.rules%0A++++-+essential s.spawn%0A++++-+spleef.join.1%0A++++-+spleef.join.2%0A++++-+spleef.join.3%0A++++ -+spleef.join.4%0A++++-+spleef.join.5%0A++++-+essentials.signs.use.heal%0A++++-+ essentials.signs.use.disposal%0A++++-+Modifyworld.chat%0A++++-+modifyworld.diges tion%0A++++-+modifyworld.sprint%0A++++-+modifyworld.sneak%0A++Member%3A%0A++++de fault%3A+false%0A++++prefix%3A+%27%267%5B%26cMember%267%5D%26c+%27%0A++++inherit ance%3A%0A++++-+Guest%0A++++build%3A+false%0A++++permissions%3A%0A++++-+essentia ls.help%0A++++-+essentials.rules%0A++++-+essentials.help%0A++++-+essentials.home %0A++++-+essentials.list%0A++++-+essentials.mail%0A++++-+essentials.mail.send%0A ++++-+essentials.motd%0A++++-+essentials.msg%0A++++-+essentials.rules%0A++++-+es sentials.signs.use.disposal%0A++++-+essentials.spawn%0A++++-+essentials.suicide% 0A++++-+Modifyworld.chat%0A++++-+modifyworld.digestion%0A++VIP%3A%0A++++default% 3A+false%0A++++prefix%3A+%27%267%5B%264VIP%267%5D%264+%27%0A++++inheritance%3A%0 A++++-+Guest%0A++++-+Member%0A++++build%3A+false%0A++++permissions%3A%0A++++-+es sentials.help%0A++++-+essentials.rules%0A++++-+essentials.motd%0A++++-+VIP.VIP%0 A++++-+VIP.10%0A++++-+Modifyworld.chat%0A++++-+modifyworld.digestion%0A++Elite%3 A%0A++++default%3A+false%0A++++prefix%3A+%27%267%5B%266ELITE%267%5D%266+%27%0A++ ++inheritance%3A%0A++++-+Guest%0A++++-+Member%0A++++-+VIP%0A++++build%3A+false%0 A++++permissions%3A%0A++++-+essentials.help%0A++++-+essentials.rules%0A++++-+ess entials.motd%0A++++-+VIP.VIP%0A++++-+VIP.10%0A++++-+Modifyworld.chat%0A++++-+mod ifyworld.digestion%0A++++-+modifyworld.sprint%0A++Mod%3A%0A++++default%3A+false% 0A++++prefix%3A+%27%261%5B%26bMod%261%5D%26b+%27%0A++++inheritance%3A%0A++++-+VI P%0A++++-+Member%0A++++-+Guest%0A++++-+Elite%0A++++build%3A+false%0A++++permissi ons%3A%0A++++-+essentials.helpop%0A++++-+essentials.nick%0A++++-+essentials.warp %0A++++-+essentials.warp.list%0A++Admin%3A%0A++++default%3A+false%0A++++prefix%3 A+%27%261%5B%263Admin%261%5D%263+%27%0A++++inheritance%3A%0A++++-+Mod%0A++++-+VI P%0A++++-+Member%0A++++-+Guest%0A++++-+Elite%0A++++build%3A+true%0A++++permissio ns%3A%0A++++-+essentials.gamemode%0A++++-+essentials.give%0A++++-+essentials.god %0A++Owner%3A%0A++++default%3A+false%0A++++prefix%3A+%27%261%5B%264Own%266er%261 %5D+%27%0A++++build%3A+true%0A++++permissions%3A%0A++++-+%27*%27%0Ausers%3A%0A++ exampleminecraftname%3A%0A++++group%3A%0A++++-+Owner%0A++exampleminecraftname2%3 A%0A++++group%3A%0A++++-+Admin%0A++Transformer2055%3A%0A++++group%3A%0A++++-+Own er%0A++GalaxyPatrol%3A%0A++++group%3A%0A++++-+Admin%0A++DjoshuaG%3A%0A++++group% 3A%0A++++-+Admin%0A++AnnandRose%3A%0A++++group%3A%0A++++-+Admin%0A++SteveHealthy %3A%0A++++group%3A%0A++++-+Admin%0A++saul1337%3A%0A++++group%3A%0A++++-+VIP%0A++ mouseymice%3A%0A++++group%3A%0A++++-+Mod%0A++mattster980%3A%0A++++group%3A%0A+++ +-+VIP%0A%60%60%60%0Aºr. Full error: java.lang.IllegalStateException: Error loading permissions file at ru.tehkode.permissions.backends.FileBackend.reload(FileBackend.java:2 49) at ru.tehkode.permissions.backends.FileBackend.initialize(FileBackend.ja va:84) at ru.tehkode.permissions.PermissionManager.setBackend(PermissionManager .java:427) at ru.tehkode.permissions.PermissionManager.initBackend(PermissionManage r.java:492) at ru.tehkode.permissions.PermissionManager.(PermissionManager.jav a:55) at ru.tehkode.permissions.bukkit.PermissionsEx.onLoad(PermissionsEx.java :83) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugins(CraftServer.ja va:244) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.(CraftServer.java:21 7) at net.minecraft.server.v1_6_R2.PlayerList.(PlayerList.java:56) at net.minecraft.server.v1_6_R2.DedicatedPlayerList.(SourceFile:11 ) at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.jav a:106) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java :391) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:5 82) Caused by: org.bukkit.configuration.InvalidConfigurationException: mapping value s are not allowed here in "", line 3, column 12: default: true ^

    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlCo

nfiguration.java:55) at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguratio n.java:138) at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguratio n.java:105) at ru.tehkode.permissions.backends.FileBackend.reload(FileBackend.java:2 32) ... 12 more Caused by: mapping values are not allowed here in "", line 3, column 12: default: true ^

    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:73

3) at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja va:305) at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:17 9) at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(Par serImpl.java:563) at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161) at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146) at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java :230) at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12 3) at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)

    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons

tructor.java:121) at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480) at org.yaml.snakeyaml.Yaml.load(Yaml.java:399) at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlCo nfiguration.java:53) ... 15 more

08:33:14 [INFO] Preparing start region for level 0 (Seed: -1438098684945641058) 08:33:15 [INFO] Preparing spawn area: 96% 08:33:15 [INFO] Preparing start region for level 1 (Seed: -1438098684945641058) 08:33:16 [INFO] Preparing start region for level 2 (Seed: -1438098684945641058) 08:33:16 [INFO] [VIP] Enabling VIP v2.0.0 08:33:16 [INFO] [VIP] VIP version 2.0.0 by Kostronor is enabled! 08:33:16 [INFO] [MultiWorld] Enabling MultiWorld v3.5.0 08:33:16 [INFO] Preparing start region for level 3 (Seed: 1190983397)

And, this is not the full console, just the part with the error.

Jeyge commented 11 years ago

It is slightly harder/almost impossible to figure out without having your permissions.yml file but it looks like you are missing a : at the end of line 2, "Guest". It should be:

groups:
  Guest:
team2055 commented 11 years ago

Sorry, here is the permissions filre :) I added the : , but the error persists. any help?

groups:
  Guest:
    default: true
    prefix: '&7[&8Guest&7]&8
    build: false
    permissions:
    - essentials.help
    - essentials.list
    - essentials.motd
    - essentials.rules
    - essentials.spawn
    - spleef.join.1
    - spleef.join.2
    - spleef.join.3
    - spleef.join.4
    - spleef.join.5
    - essentials.signs.use.heal
    - essentials.signs.use.disposal
    - Modifyworld.chat
    - modifyworld.digestion
    - modifyworld.sprint
    - modifyworld.sneak
  Member:
    default: false
    prefix: '&7[&cMember&7]&c '
    inheritance:
    - Guest
    build: false
    permissions:
    - essentials.help
    - essentials.rules
    - essentials.help
    - essentials.home
    - essentials.list
    - essentials.mail
    - essentials.mail.send
    - essentials.motd
    - essentials.msg
    - essentials.rules
    - essentials.signs.use.disposal
    - essentials.spawn
    - essentials.suicide
    - Modifyworld.chat
    - modifyworld.digestion
  VIP:
    default: false
    prefix: '&7[&4VIP&7]&4 '
    inheritance:
    - Guest
    - Member
    build: false
    permissions:
    - essentials.help
    - essentials.rules
    - essentials.motd
    - VIP.VIP
    - VIP.10
    - Modifyworld.chat
    - modifyworld.digestion
  Elite:
    default: false
    prefix: '&7[&6ELITE&7]&6 '
    inheritance:
    - Guest
    - Member
    - VIP
    build: false
    permissions:
    - essentials.help
    - essentials.rules
    - essentials.motd
    - VIP.VIP
    - VIP.10
    - Modifyworld.chat
    - modifyworld.digestion
    - modifyworld.sprint
  Mod:
    default: false
    prefix: '&1[&bMod&1]&b '
    inheritance:
    - VIP
    - Member
    - Guest
    - Elite
    build: false
    permissions:
    - essentials.helpop
    - essentials.nick
    - essentials.warp
    - essentials.warp.list
  Admin:
    default: false
    prefix: '&1[&3Admin&1]&3 '
    inheritance:
    - Mod
    - VIP
    - Member
    - Guest
    - Elite
    build: true
    permissions:
    - essentials.gamemode
    - essentials.give
    - essentials.god
  Owner:
    default: false
    prefix: '&1[&4Own&6er&1] '
    build: true
    permissions:
    - '*'
users:
  exampleminecraftname:
    group:
    - Owner
  exampleminecraftname2:
    group:
    - Admin
  Transformer2055:
    group:
    - Owner
  GalaxyPatrol:
    group:
    - Admin
  DjoshuaG:
    group:
    - Admin
  AnnandRose:
    group:
    - Admin
  SteveHealthy:
    group:
    - Admin
  saul1337:
    group:
    - VIP
  mouseymice:
    group:
    - Mod
  mattster980:
    group:
    - VIP
Jeyge commented 11 years ago

Assuming your spacing is correct, then your only other error is the missing quote from line 4.

    prefix: '&7[&8Guest&7]&8

should look like:

    prefix: '&7[&8Guest&7]&8'

If that doesn't fix it, you will need to post your permissions.yml file on pastebin.com to preserve the spacing and/or post the actual error from your server.log when the server is starting up.