Can not login using Craft Control App
ntimo opened this issue · 7 comments
Hello,
when I try to login using the craft control app I get this error. Can someone please help me thanks :)
[API Request] admin requested: jsonapi.users.user.permissions(["admin"]){AUTHED, NOT ALLOWED}
That error means the username and password is correct but that user doesn't have proper permissions to access the "jsonapi.users.user.permissions" method. Have you changed your permissions configuration?
Sure, but what do I have to change?
Please post your users.yml
and groups.yml
file.
Groups File:
groups:
- name: full_control
streams:
- ALLOW_ALL
methods:
- ALLOW_ALL
- name: chat_only
permissions:
- view_online_player_list
- view_map
- view_chat
- speak_in_chat
User:
users:
- username: admin
password: somepw
logging: true
groups:
- full_control
Try running jsonapi reloadgroups
in your server console
sure, now I get:
[10:28:26 WARN]: Unexpected exception while parsing console command "jsonapi reloadgroups"
org.bukkit.command.CommandException: Unhandled exception executing command 'jsonapi' in plugin JSONAPI v5.7.0
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.12.jar:git-Spigot-23b6354-0481ae9]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.12.jar:git-Spigot-23b6354-0481ae9]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:644) ~[spigot-1.12.jar:git-Spigot-23b6354-0481ae9]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchServerCommand(CraftServer.java:630) [spigot-1.12.jar:git-Spigot-23b6354-0481ae9]
at net.minecraft.server.v1_12_R1.DedicatedServer.aP(DedicatedServer.java:443) [spigot-1.12.jar:git-Spigot-23b6354-0481ae9]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [spigot-1.12.jar:git-Spigot-23b6354-0481ae9]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:678) [spigot-1.12.jar:git-Spigot-23b6354-0481ae9]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:576) [spigot-1.12.jar:git-Spigot-23b6354-0481ae9]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]
Caused by: java.lang.NullPointerException
at com.alecgorge.minecraft.jsonapi.JSONAPI.onCommand(JSONAPI.java:634) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.12.jar:git-Spigot-23b6354-0481ae9]
... 8 more
Try the app again I think that might be an issue while it tries to send the response info.
If that doesn't work, please replaced JSONAPI with a debug build: https://ci.alecgorge.com/job/JSONAPI-Debug/
After installing, restart the server and try to connect with the app. If it doesn't work, please send me the whole server log from the start