Jump to content
  • 0

Problem with connection


Dazel

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  06/16/13
  • Last Seen:  

[Error]: Can not connect to login-server.

[Error]: The server communication passwords (default s1/p1) are probably invalid. 

[Error]: Also, please make sure your login db has the correct communication username/passwords and the gender of the account is S.

[Error]: The communication passwords are set in map_athena.conf and char_athena.conf

 

i have sql, dedicated server, using WinSCP for db, and using PuTTy for system maneagmnet, the problem is that my server was running perfectly 1 hour ago, and now, im not sure of what i did, the Char, and Map athena have their default userid and pswd s1 p1 and i've already checked in my loging db, there is 

"s1 p1" and gender "S", dont know what's happending, thanks for your help.

Link to comment
Share on other sites

12 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.02
  • Content Count:  429
  • Reputation:   60
  • Joined:  08/19/12
  • Last Seen:  

try to change it? 
and check also your inter_athena, Char-athena, Map-athena

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  06/16/13
  • Last Seen:  

do i have to edit this in "inter_athena"

 

// Log Inter Connections, etc.?

log_inter: 1

 

could it be if i add an "s" to that "1" it will get solved? or isnt.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

Have you set the option

use_MD5_passwords: yes

 

in conf/login_athena.conf?

If yes you have to make a hash of the user's password inside your database.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  06/16/13
  • Last Seen:  

a hash? excuse me, didnt understand your mean.



here's my hashtag..

post-18056-0-11391100-1371716297_thumb.jpg

post-18056-0-68887900-1371716300_thumb.jpg

post-18056-0-26573200-1371716304_thumb.jpg

post-18056-0-03969300-1371716308_thumb.jpg

Edited by kyyyyhh
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

By hash I mean the hash function :P (http://en.wikipedia.org/wiki/Hash_function)

 

Have a look at your login-table inside your database. If the password for your user is still plain text (e.g. p1 or whatever password you chose), execute this query:

UPDATE `login` SET `user_pass` = MD5(`user_pass`);
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  06/16/13
  • Last Seen:  

thank you for your time, where can i execute that query?, i dont really know where commands are injected. can you explain me that please. im newbie in this.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

Connect to your server with Putty and write

mysql -u your_user_name -p

 

and enter your password when prompted. (The same data you use in your config files)

You should now be connected to your database.

 

USE rathena_database_name 

 

(again, same database as specified in your config files)

 

Then use

SELECT `userid`, `user_pass` FROM `login`;

 

if the passwords do not look like someone smashed their head on the keyboard, write

UPDATE `login` SET `user_pass` = MD5(`user_pass`);

 

And write 

SELECT `userid`, `user_pass` FROM `login`;

 

to verify the passwords have been updated correctly.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  06/16/13
  • Last Seen:  

when i try to write "mysql -u your_user_name -p" this happens...

post-18056-0-29337200-1371721305_thumb.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

It seems you don't have access to the mysql binary.

How did you import the sql files (from trunk/sql-files) to create the database in the first place?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  06/16/13
  • Last Seen:  

im actually using 3 programs, PuTTy for SSH, WinSCP for editing tables and txts, and a web sql FTP to administrate accounts and stuff.

Edited by kyyyyhh
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

What kind of web SQL panel do you use? PHPMyAdmin?

If you log in to your web panel, you should be able to select the ragnarok database. Do so and search for some option that is called "SQL" or "Query". Execute this command there:

UPDATE `login` SET `user_pass` = MD5(`user_pass`);
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  06/16/13
  • Last Seen:  

i contacted to my hosting support, they solved the problem thanks a lot!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...