Jump to content
  • 0

Connection to login and map servers lost in a Docker container


Jowy129

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  04/20/13
  • Last Seen:  

Hello,

I hope I chose the good subforum... I'm trying to start a RO server but it losts the connection with the char server and the login server. I followed some guides and tried to find some answers here and there. I think I'm missing something.

First, I have my RO server on a docker container (I'll just call it my docker) and the database is on the physical server (I'll call it the master) which started the docker on the same machine, with this command :

docker run -it -d -p 22222:22 -p 49152:80 -p 49153:3306 -p 5121:5121 -p 6121:6121 -p 6900:6900 robuild

Then, on the master, I used this command for the DB user and the server account :

create database prerathena;
create user 'ragnarok'@'%' identified by 'ragnarokpass';
grant select,insert,update,delete on `prerathena`.* to 'ragnarok'@'%';
update `login` set `userid` = "server", `user_pass` = md5("serverpass") where `account_id` = 1;

On the docker, I made those changes...

In conf/import/char_conf.txt :

userid: server
passwd: serverpass
server_name: MyServer
pincode_enabled: no
pincode_force: no
char_moves_unlimited: yes
char_ip: 163.X.X.X
login_ip: 163.X.X.X

In conf/import/inter_conf.txt :

login_server_id: ragnarok
login_server_pw: ragnarokpass
login_server_db: prerathena
login_case_sensitive: yes
ipban_db_id: ragnarok
ipban_db_pw: ragnarokpass
ipban_db_db: prerathena
char_server_id: ragnarok
char_server_pw: ragnarokpass
char_server_db: prerathena
map_server_id: ragnarok
map_server_pw: ragnarokpass
map_server_db: prerathena
log_db_id: ragnarok
log_db_pw: ragnarokpass
log_db_db: prerathena
use_sql_db: yes

In conf/import/map_conf.txt :

userid: server
passwd: serverpass
map_ip: 163.X.X.X
char_ip: 163.X.X.X

In conf/map_athena.conf :
 

// Interserver communication passwords, set in account.txt (or equiv.)
userid: server
passwd: serverpass

// Character Server IP
// The map server connects to the character server using this IP address.
// NOTE: This is useful when you are running behind a firewall or are on
// a machine with multiple interfaces.
char_ip: 163.X.X.X

// The map server listens on the interface with this IP address.
// NOTE: This allows you to run multiple servers on multiple interfaces
// while using the same ports for each server.
//bind_ip: 127.0.0.1

// Character Server Port
char_port: 6121

// Map Server IP
// The IP address which clients will use to connect.
// Set this to what your server's public IP address is.
map_ip: 163.X.X.X

// Map Server Port
map_port: 5121

In conf/char_athena.conf :

// Server Communication username and password.
userid: server
passwd: serverpass

// Server name, use alternative character such as ASCII 160 for spaces.
// NOTE: Do not use spaces or any of these characters which are not allowed in
//       Windows filenames \/:*?"<>|
//       ... or else guild emblems won't work client-side!
server_name: MyServer

// Wisp name for server: used to send wisp from server to players (between 4 to 23 characters)
wisp_server_name: Server

// Login Server IP
// The character server connects to the login server using this IP address.
// NOTE: This is useful when you are running behind a firewall or are on
// a machine with multiple interfaces.
login_ip: 163.X.X.X

// The character server listens on the interface with this IP address.
// NOTE: This allows you to run multiple servers on multiple interfaces
// while using the same ports for each server.
//bind_ip: 127.0.0.1

// Login Server Port
login_port: 6900

// Character Server IP
// The IP address which clients will use to connect.
// Set this to what your server's public IP address is.
char_ip: 163.X.X.X

// Character Server Port
char_port: 6121

In conf/inter_athena.conf :

// MySQL Login server
login_server_ip: 163.X.X.X
login_server_port: 3306
login_server_id: ragnarok
login_server_pw: ragnarokpass
login_server_db: prerathena
login_codepage:
login_case_sensitive: no

ipban_db_ip: 163.X.X.X
ipban_db_port: 3306
ipban_db_id: ragnarok
ipban_db_pw: ragnarokpass
ipban_db_db: prerathena
ipban_codepage:

// MySQL Character server
char_server_ip: 163.X.X.X
char_server_port: 3306
char_server_id: ragnarok
char_server_pw: ragnarokpass
char_server_db: prerathena

// MySQL Map Server
map_server_ip: 163.X.X.X
map_server_port: 3306
map_server_id: ragnarok
map_server_pw: ragnarokpass
map_server_db: prerathena

// MySQL Log Database
log_db_ip: 163.X.X.X
log_db_port: 3306
log_db_id: ragnarok
log_db_pw: ragnarokpass
log_db_db: prerathena
log_codepage:
log_login_db: loginlog

I even tried (thanks to this post) the subnet in conf/subnet_athena.conf , but I takes longer to lose the connection and that's all :

subnet: 255.0.0.0:163.X.X.X:163.X.X.X

Changing this makes a long "logging in to char server..." but finally fails by itself or if I try to connect on the server with the client.

So, what can I do to avoid this loop :

2it0iva.jpg

Thank you.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...