problem with updating secondary groups with xenforo
goflish opened this issue ยท 21 comments
Here's the config: http://pastebin.com/7ULqmPHv
I'm using pex with xenforo.
The player I tested with was in the group "vip" on xenforo, I logged into the server and the group "vip" was added to the player in pex.
I removed the player in xenforo from the group "vip" and placed the player into the group called "epic".
I logged into the server with that player and the group "epic" was added to the player in pex, however it did not remove the group called "vip" from that player in pex.
Now the player is part of both groups in pex.
I set the config option to "web-application" instead of two-way, from the way I understood it, it sounded like it needed to be set to this option in order to sync the groups as they are in the web application to pex.
Am I missing something somewhere? I can't have players part of multiple groups, each group has their own set of abilities/permissions.
Looks like there is a subtle bug in the routine that saves the player's group state, which is why you're seeing a single file named "null" in the player data directory. I'm testing a fix right now. :)
@iain-davis: Awesome, super excited for it! I am ready to test when it's finished. :)
@jflory7 @goflish:
Give this one a try: http://dev.bukkit.org/bukkit-plugins/communitybridge-fm/files/33-community-bridge-v2-3-5-build-449/
@iain-davis: Primary group synchronization still seems to work, but all of my donors are getting their ranks bumped off in-game still. :/
[18:56:58] [User Authenticator #9/INFO]: UUID of player CypressXM is 370387b1-0a16-4717-9bde-bc650afdf471
[18:56:58] [Server thread/INFO]: CypressXM[/67.161.37.169:41396] logged in with entity id 1335 at ([world] 398.6268224265529, 24.0, 16069.699999988079)
[18:56:58] [Craft Scheduler Thread - 6/INFO]: [CommunityBridge] Moved player 'CypressXM' to web application group ID '2'.
I keep trying to make this user a member of the primary group "Members", but I can't seem to get him to keep the secondary rank of "Baron".
@iain-davis: Oh, ouch, my folder is full of names and UUIDs. I'm going to delete it and start from scratch, and test the results. I will get back to you on it soon!
I deleted my entire "Players" directory now.
It seems that now, players aren't losing ranks, but their secondary ranks are not syncing to the website.
Do you at least have a file or two appearing the players folder with a uuid for the filename? :)
also checked my null file only lists the last user i synced.. if i sync more than one it overwrites it
@jflory7 @goflish @Chewychunga
I think it is getting too murky to troubleshoot three installations at once...
Each of you go ahead and start a brand new issue describing the current problem. Include the current version of your config.yml. If you can, run things with log-level: all, and include the CommunityBridge output in your issue. Be sure to include what version of CommunityBridge, Minecraft, Bukkit/Spigot in the report.
Thanks.
@goflish Looking at your original log postings, I noticed that they were for 2.3.4.445. I suspect this is the issue that was resolved with the subsequent release (2.3.5.449).
I've released a new version of CommunityBridge. Links to the new version:
BukkitDev: (removed due to dead links)
It may be necessary to scrub the player files in the Players directory for the synchronization to get back to a stable state.
Use this one instead: http://dev.bukkit.org/bukkit-plugins/communitybridge-fm/files/35-community-bridge-v2-3-7-build-454/
Looks like 2.3.4, 2.3.5, and 2.3.6 all had a bug that would mess up secondary groups. :)
I'll need a copy of your config (without the database name/username/password) to troubleshoot any issues. If you have changed the direction of synchronization, I recommend deleting the player's yml file in CommunityBridge's Player data directory and force the player to resync.
Here's the config: http://pastebin.com/7ULqmPHv
The only thing I see in the player folder is a file that say's, null.yml and here's the pastebin of what's in that file: pastebin.com/F1CeCJsB
I deleted that null file, restarted the server and logged back in- it just created another null file just like the one I posted in that pastebin.
I changed the log detail to all and this is what it shows when I login to my server in the console: http://pastebin.com/8ApYG31q
Edit: I just tested by deleting the community bridge directory and letting it reload with a server restart, I made all the config edits again and tested. (this test is with craftbukkit 1.7.2)
I'm still getting the same problems, it adds the group the player is in, but it doesn't remove the old group that they are no longer a part of.
Also, it made that same null.yml file again.
Also, it still only
I was using the latest spigot build for 1.7.9.
I just loaded up craftbukkit 1.7.2 build and it still does the same thing, no player file is created in the players folder and it only adds groups rather than remove groups they are not a part of.
My next test is going to be to delete my config file and let it reload with your latest update that you just released couple day's ago.
I am also having the exact same issues described by @goflish, @iain-davis. All of my players who have purchased ranks are constantly getting their ranks reset back to either the "default" or "Members" group of my permissions setup.
These are the error logs I am getting.
[16:24:16] [Craft Scheduler Thread - 540/INFO]: [CommunityBridge] Placed player 'TheCaptain100' in pseudo-primary permissions group 'Members'.
[16:24:16] [Craft Scheduler Thread - 540/WARN]: [CommunityBridge] Not changing web application group due to web application group ID lookup failure for: null. Player 'JRod1199' primary group state unchanged.
[16:24:16] [Craft Scheduler Thread - 540/WARN]: Exception in thread "Craft Scheduler Thread - 540"
[16:24:16] [Craft Scheduler Thread - 540/WARN]: org.apache.commons.lang.UnhandledException: Plugin CommunityBridge v2.3.4.445 generated an exception while executing task 20379
at org.bukkit.craftbukkit.v1_7_R3.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:744)
Caused by: java.lang.NullPointerException
at org.communitybridge.main.WebApplication.synchronizeGroupsSecondaryWebToGame(WebApplication.java:1087)
at org.communitybridge.main.WebApplication.synchronizeGroupsSecondary(WebApplication.java:951)
at org.communitybridge.main.WebApplication.synchronizeGroups(WebApplication.java:541)
at org.communitybridge.main.WebApplication.synchronizePlayer(WebApplication.java:426)
at org.communitybridge.main.WebApplication.synchronizeAll(WebApplication.java:410)
at org.communitybridge.main.CommunityBridge$2.run(CommunityBridge.java:258)
at org.bukkit.craftbukkit.v1_7_R3.scheduler.CraftTask.run(CraftTask.java:67)
at org.bukkit.craftbukkit.v1_7_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
... 3 more
I am also getting messages such as these thrown constantly every few seconds.
[16:40:23] [Craft Scheduler Thread - 547/INFO]: [CommunityBridge] Moved player 'CrissCrisis' to pseudo-primary permissions group 'default' from 'Members'.
[16:40:23] [Craft Scheduler Thread - 547/INFO]: [CommunityBridge] Moved player 'CrissCrisis' to web application group ID '1'.
[16:40:23] [Craft Scheduler Thread - 547/WARN]: [CommunityBridge] We thought we needed to add a secondary group ID 20...but we didn't?
- My CommunityBridge configuration file can be seen here: http://newpaste.md-5.net/p6jwnii4j/pocxor (Password is just "communitybridge")
- My permissions file for PermissionsEx can be seen here: http://newpaste.md-5.net/peq3bmyuh
- I am running Spigot #1475 on my server, which correlates to Minecraft 1.7.9.
- I am running CommunityBridge v2.3.4.445.
Thanks!