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

MySQL function SHA2 does not exist #5189

Closed
bgamez23 opened this issue Jul 7, 2020 · 12 comments
Closed

MySQL function SHA2 does not exist #5189

bgamez23 opened this issue Jul 7, 2020 · 12 comments

Comments

@bgamez23
Copy link

@bgamez23 bgamez23 commented Jul 7, 2020

  • Client Date:
  • Server Mode: Pre-Renewal
  • Description of Issue: i got this error [SQL]: DB error - FUNCTION ragnarok.SHA2 does not exist on centos but does not exist in windows server.

    • Result: [SQL]: DB error - FUNCTION ragnarok.SHA2 does not exist
      [Debug]: at account.cpp:664 - UPDATE login SET web_auth_token = LEFT( SHA2( CONCAT( UUID(), RAND() ), 256 ), 16 ), web_auth_token_enabled = '1' WHERE account_id = '2000000'. it also happens on another account who login the game.

    • Expected Result:

    • How to Reproduce: i don't know how to produce since it only appears when i login my character.

    • Official Information:

  • Modifications that may affect results: pre-renewal setup server and vip enabled

@secretdataz
Copy link
Member

@secretdataz secretdataz commented Jul 7, 2020

What's your CentOS version?

@bgamez23
Copy link
Author

@bgamez23 bgamez23 commented Jul 7, 2020

Cent0S release 6.10 (Final)

@bgamez23
Copy link
Author

@bgamez23 bgamez23 commented Jul 7, 2020

image

@aleos89
Copy link
Contributor

@aleos89 aleos89 commented Jul 8, 2020

What SQL product are you using and it's version?

@bgamez23
Copy link
Author

@bgamez23 bgamez23 commented Jul 8, 2020

image

@aleos89
Copy link
Contributor

@aleos89 aleos89 commented Jul 8, 2020

You need to update to 5.5.6 or later.

@LiamKarlMitchell
Copy link
Contributor

@LiamKarlMitchell LiamKarlMitchell commented Jul 9, 2020

What about doing the crypt in code rather than the DB.
I've been curious to implement bcrypt

@Lemongrass3110
Copy link
Member

@Lemongrass3110 Lemongrass3110 commented Jul 9, 2020

What about doing the crypt in code rather than the DB.
I've been curious to implement bcrypt

@LiamKarlMitchell he can simply leave out the hashing or change the sql command. It was just added because there were security concerns for only using UUID. Basically doing it in code would drag some big dependencies into rAthena, which we want to prevent if we can.

@Badarosk0
Copy link

@Badarosk0 Badarosk0 commented Jul 9, 2020

  • rAthena Hash: ff38cf7

  • Client Date:

  • Server Mode: Pre-Renewal

  • Description of Issue: i got this error [SQL]: DB error - FUNCTION ragnarok.SHA2 does not exist on centos but does not exist in windows server.

    • Result: [SQL]: DB error - FUNCTION ragnarok.SHA2 does not exist
      [Debug]: at account.cpp:664 - UPDATE login SET web_auth_token = LEFT( SHA2( CONCAT( UUID(), RAND() ), 256 ), 16 ), web_auth_token_enabled = '1' WHERE account_id = '2000000'. it also happens on another account who login the game.
    • Expected Result:
    • How to Reproduce: i don't know how to produce since it only appears when i login my character.
    • Official Information:
  • Modifications that may affect results: pre-renewal setup server and vip enabled

I also have this same problem.

I use MD5 encoding, can that be?

I use Cent0S release 6.10 (Final). Do I need to update?

@bgamez23
Copy link
Author

@bgamez23 bgamez23 commented Jul 9, 2020

  • rAthena Hash: ff38cf7

  • Client Date:

  • Server Mode: Pre-Renewal

  • Description of Issue: i got this error [SQL]: DB error - FUNCTION ragnarok.SHA2 does not exist on centos but does not exist in windows server.

    • Result: [SQL]: DB error - FUNCTION ragnarok.SHA2 does not exist
      [Debug]: at account.cpp:664 - UPDATE login SET web_auth_token = LEFT( SHA2( CONCAT( UUID(), RAND() ), 256 ), 16 ), web_auth_token_enabled = '1' WHERE account_id = '2000000'. it also happens on another account who login the game.
    • Expected Result:
    • How to Reproduce: i don't know how to produce since it only appears when i login my character.
    • Official Information:
  • Modifications that may affect results: pre-renewal setup server and vip enabled

I also have this same problem.

I use MD5 encoding, can that be?

I use Cent0S release 6.10 (Final). Do I need to update?

might be compatible problem for mysql that installed on your centos.i haven't tried to update mine since it was work fine before the web_auth_token implementation.

@Badarosk0
Copy link

@Badarosk0 Badarosk0 commented Jul 9, 2020

I will update my mysql and check if it will resolve.

EDIT:

Solved after mysql update. Thank you

Lemongrass3110 added a commit that referenced this issue Jul 11, 2020
@Lemongrass3110 Lemongrass3110 changed the title [SQL]: DB error - FUNCTION ragnarok.SHA2 does not exist MySQL function SHA2 does not exist Jul 11, 2020
@phaeloliveira
Copy link

@phaeloliveira phaeloliveira commented Mar 17, 2021

I have the same error , I can log in the game but I can't cast skills, can someone help.

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

No branches or pull requests

7 participants