Ar Check Internal Error
airmyles opened this issue ยท 38 comments
I'm running stats hooked up with AutoRank. When players use ar check command it says an internal error has occurred. Auto Ranking of players does not work. I only base it off of time played, blocks broken, and blocks changed. I am using the most recent version of Stats and AutoRank. This is what is on console
Its because you have the config incorrect. Paste your config file and I can help you out.
Advanced Config http://pastebin.com/BCE4GQDs
I redid the config to this http://pastebin.com/1t5pdNLq now it just lists the players time and says they don't have a next rank. It got rid of the Internal Error though.
this is all that shows about autorank
2013-10-18 16:03:47 [INFO] [Autorank] Enabling Autorank v2.7 Beta
2013-10-18 16:03:47 [INFO] [Autorank] Simple config file loaded
2013-10-18 16:03:47 [INFO] [Autorank] Advanced config file loaded
2013-10-18 16:03:47 [INFO] [Autorank] New playerdata.yml file loaded. AR can keep track of player progress now!
2013-10-18 16:03:47 [INFO] [Autorank] Interval check every 5 minutes.
2013-10-18 16:03:47 [INFO] [Autorank] Data file loaded
2013-10-18 16:03:47 [INFO] [Autorank] Vault Hooked!
2013-10-18 16:03:47 [INFO] [Autorank] Hooked into Stats! Stats requirements can be used.
2013-10-18 16:03:47 [INFO] [Autorank] Config files have been correctly setup!
2013-10-18 16:03:47 [INFO] [Autorank] Language file loaded (lang.yml)
2013-10-18 16:03:47 [INFO] SQLDataStorage.connect
2013-10-18 16:03:47 [INFO] SQLException: Access denied for user 'user'@'%' to database 'minecraft'
2013-10-18 16:03:47 [INFO] SQLState: 42000
2013-10-18 16:03:47 [INFO] VendorError: 1044
2013-10-18 16:03:47 [SEVERE] [Autorank] Could not connect to 'address'
2013-10-18 16:03:47 [INFO] [Autorank] Autorank 2.7 Beta has been enabled!
Can't get this plugin to connect to my database either. I only have 1 MySQL database
You have to check your inbound and outbound allowed connections for your database.
Anyway, if you do want SQL to work just put the login info you can find on multicraft in the Autorank config.
It's under Advanced > MySql Database
hostname in the config = Host in multicraft
and database in config = Username in multicraft
table you can just leave as the default "autorank", it should generate the table automatically if it has the right permissions
yeah, unfortunately it does not work. And for while i don't think it has connected. I just never had the time to look into it since other things were more important seeing as the plugin was still functioning fine. But now i came upon this issue since the update as well.
Oh and where you see
hostname: localhost:3306
The :3306 is important too, its the server port, 3306 is the default so whatever your multicraft lists as ip, just adding :3306 to the end should work.
Still not connecting. I tried a reload, restart etc. Won't connect and still not registering that players can achieve a new rankup. In place of localhost i have the Ip Address next to Host listed on the Control Panel. Do 'quotes' around them or anything matter as well? (Even though i have tried every combination of things i can think of)
EDIT: never mind, I missed where you said that the original issue was fixed
@Staartvin should still take a look at the depreciated method that's used in the Stats API though.
just to confirm, Everything in the advanced config that is typed out about the player requirement ranking is ok, correct? Ranks are newbie, amateur, crafter, builder, survivor, merchant, expert, hero. If so i will copy that and backup the player data and try removing all the files and everything and configure everything all over again.
I apologize if there was a bit of miscommunication. The original issue (the reason created this ticket) about when typing /ar check. It lists only the time, what rank they are and that they do not have another rankup. It should list the time, and the requirements for the next rank up like it used to before the update.
oh god
"use advanced config: false"
might wanna change that
xD
lets hope thats the last issue, that'd be an easy one
I got it to work with your last posted config but with ^ turned to true
a dummy permissions file in PEX and the stats plugin
Btw @Staartvin this error: java.lang.NoSuchMethodError: nl.lolmewn.stats.api.StatsAPI.getTotalBlocksBroken(Ljava/lang/String;)
is caused by people not having Stats installed (I forgot :P)
maybe you could have autorank give a better warning about this.
omg can't believe that wasn't change. Originally after I updated it would say and internal error occurred. so I rewrote the config correctly after regenerating the advanced config file. so I never changed that. I just turned it on and ayers are saying it it listing their time played and that an internal error has occurred. lol so not sure. I had to do this on my phone this time. best if I wait 15 minutes until im home
what do you mean by "a dummy permissions file in PEX and the stats plugin" was that something else I need to change?
Ok this is what shows in console when doing the /ar check now. http://pastebin.com/ybEbxnUP It has that stats API error you mentioned above but i do have stats installed as well as vault. Both up-to-date. I would think it may be caused by the fact Stats plugin was completely re-written if i remember correctly. AutoRank and Stats both had a big update around the same time. But considering it seems im the only one with this issue it doesn't seem likely...Probably something on my end
do you mind talking me through how to do that? I don't know my way around the database to well
Are on using a multicraft hosted server?
Something that looks like this: http://screencloud.net/v/swae
If not, what way of accessing the database does your server host provide?
yes i am using a hosted minecraft server with Multicraft as my control panel. I access the MySQL database using phpMyAdmin
Hmm, I hadn't followed this issue very closely previously so I just noticed now that you don't even have an SQL setting in your config. Did you leave that out from the pastebin text or do you not have a need for a database?
Because Autorank shouldn't even try to connect to the database if there is no config entry.
I left it out of the pastebin text instead of just clearing out the information. Here is what it looks like though. Sorry about that
sql:
enabled: true
hostname: IpAddress
username: user
password: 'password'
database: minecraft
table: autorank
Just to be sure, you are using this stats plugin right? There are a couple of similar looking stats plugins out there.
http://dev.bukkit.org/bukkit-plugins/lolmewnstats/
I know that my code is deprecated. The new Stats versions are Beta though, so I can't support them yet.
Once Stats has a official release I can update to the new code. Otherwise it would lose backwards compatibility.
ok thank you so much for your help everyone that commented here. I will try that out when I get home. hopefully that's the final solution!! You've all been great help
@Armarr I'll add a warning whenever stats is not found but stats required requirements are in the config.
Hey ,
we have a Server and we are Trying to do a Advanced config edit but we fail every time.
We ask around and noone could help us so the Author is the last posibility.
Could you please help and tell us the reason why the config is still Invaild and Groups are not defined ?
This is a debug file of Autorank. You should give this to an author or ticket manager of Autorank.
You can go to http://pastebin.com/ and paste this file. Then, give the link and state the problems you're having in a ticket on the Autorank page.
Date created: 2019-07-07 16:33:54
Autorank version: 3.7.2
Server implementation: git-Spigot-1.7.9-R0.2-208-ge0f2e95 (MC: 1.7.10)
Server version: 1.7.10-R0.1-SNAPSHOT
Server warning state: DEFAULT
Ranks defined:
------------------- ChangeGroup debug info -------------------
Group: Nomad
- Nomad
- 1 requirements
- 3 results
Group: Vagabond
- Vagabond
- 1 requirements
- 3 results
Group: Drifter
- Drifter
- 1 requirements
- 3 results
Group: Scarab
- Scarab
- 1 requirements
- 3 results
Group: Seeker
- Seeker
- 1 requirements
- 3 results
Group: Dunewalker
- Dunewalker
- 1 requirements
- 3 results
Group: Sandstalker
- Sandstalker
- 1 requirements
- 3 results
Group: Pharaoh
- Pharaoh
- 1 requirements
- 3 results
Group: Inquisitor
- Inquisitor
- 1 requirements
- 3 results
Config used: AdvancedConfig.yml
Using MySQL: false
Java version: 10.0.2
Operating system: Windows 10
OS version: 10.0
OS architecture: amd64
Loaded addons: []
Thank you !