Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ar Check Internal Error #11

Closed
airmyles opened this issue Oct 16, 2013 · 38 comments
Closed

Ar Check Internal Error #11

airmyles opened this issue Oct 16, 2013 · 38 comments

Comments

@airmyles
Copy link

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

http://pastebin.com/kgfDSKPh

@MrBrainBusta
Copy link

Its because you have the config incorrect. Paste your config file and I can help you out.

@airmyles
Copy link
Author

Advanced Config http://pastebin.com/BCE4GQDs

@airmyles
Copy link
Author

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.

@Staartvin
Copy link
Owner

What permissions plugin are you using?

@airmyles
Copy link
Author

permissionsEX

@Staartvin
Copy link
Owner

What does your server.log say about Autorank?

@airmyles
Copy link
Author

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!

@Staartvin
Copy link
Owner

Try to use another user or let Autorank have access to your database.

@airmyles
Copy link
Author

Can't get this plugin to connect to my database either. I only have 1 MySQL database

@Staartvin
Copy link
Owner

You have to check your inbound and outbound allowed connections for your database.

@airmyles
Copy link
Author

do you mind talking me through how to do that? I don't know my way around the database to well

@Armarr
Copy link
Collaborator

Armarr commented Oct 19, 2013

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?

@airmyles
Copy link
Author

yes i am using a hosted minecraft server with Multicraft as my control panel. I access the MySQL database using phpMyAdmin

@Armarr
Copy link
Collaborator

Armarr commented Oct 19, 2013

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.

@airmyles
Copy link
Author

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

@Armarr
Copy link
Collaborator

Armarr commented Oct 19, 2013

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

@airmyles
Copy link
Author

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.

@Armarr
Copy link
Collaborator

Armarr commented Oct 19, 2013

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.

@airmyles
Copy link
Author

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)

@Armarr
Copy link
Collaborator

Armarr commented Oct 19, 2013

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.

@airmyles
Copy link
Author

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.

@airmyles
Copy link
Author

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.

@Armarr
Copy link
Collaborator

Armarr commented Oct 19, 2013

oh god
"use advanced config: false"
might wanna change that
xD
lets hope thats the last issue, that'd be an easy one

@Armarr
Copy link
Collaborator

Armarr commented Oct 19, 2013

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

http://screencloud.net/v/p69e

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.

@airmyles
Copy link
Author

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

@airmyles
Copy link
Author

what do you mean by "a dummy permissions file in PEX and the stats plugin" was that something else I need to change?

@airmyles
Copy link
Author

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

@Armarr
Copy link
Collaborator

Armarr commented Oct 19, 2013

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/

@airmyles
Copy link
Author

yes I use that stats plugin. the one by lolmewn

@Staartvin
Copy link
Owner

I know that my code is deprecated. The new Stats versions are Beta though, so I can't support them yet.

@Staartvin
Copy link
Owner

Once Stats has a official release I can update to the new code. Otherwise it would lose backwards compatibility.

@airmyles
Copy link
Author

so if I drop down to the latest non-beta build of stats it should work?

@Staartvin
Copy link
Owner

Yes, it should.

@Staartvin
Copy link
Owner

I'll add a reminder to the Autorank files.

@airmyles
Copy link
Author

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

@Staartvin
Copy link
Owner

Great! Post if you need more help! ;)

@Staartvin
Copy link
Owner

@Armarr I'll add a warning whenever stats is not found but stats required requirements are in the config.

@JINXADORE
Copy link

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants