Jump to content

ONLY 1 CORE WORKING ON CH1, CH2 WORKS GOOD ON 2 CORES


Recommended Posts

Hello fellow devs;

It's been a while since I'm facing this problem and I've been struggling with it recently so I surrended and now I am seeking for help lol

My CHANNEL 1 only works on "core1";
Because whenever the player teleports to a "core2" configured map, he get disconnected with syserr (DESC::~DESC).

Despite this; my CHANNEL 2 works on 2 cores perfectly.
Ports are correctly configured through the firewall.


I tried do put only one single map in CH1 core2 and teleport there but it didn't worked: same logout;
Process "srv1-ch1-core2" is up and running without any syserrs.


The "CONFIG" of the two cores on CH1:


CORE1

Spoiler

VIEW_RANGE: 10000
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
DB_ADDR: 127.0.0.1
COMMON_SQL: 127.0.0.1 CORRECTUSERNAME CORRECTPASSWORD common CORRECTPORT
LOG_SQL: 127.0.0.1 CORRECTUSERNAME CORRECTPASSWORD log CORRECTPORT
ADMINPAGE_IP1: 18.8.8.8
ADMINPAGE_PASSWORD: 5894HAHUGAY3H4G8H
MAX_LEVEL: 120
CHANGE_ATTR_TIME_LIMIT: 0
EMOTION_MASK_REQUIRE: 0
PRISM_ITEM_REQUIRE: 0
SHOP_PRICE_3X_TAX: 0
GLOBAL_SHOUT: 1
ITEM_COUNT_LIMIT: 250
STATUS_POINT_GET_LEVEL_LIMIT: 120
STATUS_POINT_SET_MAX_VALUE: 90
SHOUT_LIMIT_LEVEL: 15
DB_LOG_LEVEL: 1
EMPIRE_LANGUAGE_CHECK: 0
PLAYER_SQL: 127.0.0.1 CORRECTUSERNAME CORRECTPASSWORD player CORRECTPORT
HOSTNAME: srv1-ch1-core1
CHANNEL: 1
MAP_ALLOW: 1 21 41 3 23 43 61 62 63 64 107 217 301 302 303 304
PORT: 30003
P2P_PORT: 30004
DB_PORT: 30000

 

 

 

CORE2

Spoiler

VIEW_RANGE: 10000
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
DB_ADDR: 127.0.0.1
COMMON_SQL: 127.0.0.1 CORRECTUSERNAME CORRECTPASSWORD common CORRECTPORT
LOG_SQL: 127.0.0.1 CORRECTUSERNAME CORRECTPASSWORD log CORRECTPORT
ADMINPAGE_IP1: 18.8.8.8
ADMINPAGE_PASSWORD: 58948HAHUGAY8H84G
MAX_LEVEL: 120
CHANGE_ATTR_TIME_LIMIT: 0
EMOTION_MASK_REQUIRE: 0
PRISM_ITEM_REQUIRE: 0
SHOP_PRICE_3X_TAX: 0
GLOBAL_SHOUT: 1
ITEM_COUNT_LIMIT: 250
STATUS_POINT_GET_LEVEL_LIMIT: 120
STATUS_POINT_SET_MAX_VALUE: 90
SHOUT_LIMIT_LEVEL: 15
DB_LOG_LEVEL: 1
EMPIRE_LANGUAGE_CHECK: 0
PLAYER_SQL: 127.0.0.1 CORRECTUSERNAME CORRECTPASSWORD player CORRECTPORT
HOSTNAME: srv1-ch1-core2
CHANNEL: 1
MAP_ALLOW: 65 66 67 68 69 70 71 72 73 206 104 193 207 208 216
PORT: 30005
P2P_PORT: 30006
DB_PORT: 30000

 



Thank to all of you for your precious time and help!

MACRO

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 months later...
On 5/25/2021 at 4:31 PM, WeedHex said:

game.core?

Hard to help you without seeing the whole FTP struct of server files.

Thanks for your interest;

Actually there's no crash of the process, so I'm not getting any game.core file; but here's the ftp struct:
 

Spoiler

spacer.png



The main problem is that it's impossible to use the private chat between players on different cores,
Also the shouting chat doesn't work as intended, since it's isolated for every core.

Looks like the cores can't communicate each others in some circumstances.

I thought about a networking problem and so I double checked my NAT hairpinning, but it was actually fine.
Important to mention that I've manually set my WAN IP in the "src/game/desc_client.cpp" file and frankly I'm not 100% sure about the implications of this on the cores communication, since there's no trace left to start debugging; f*ck me!!

This issue is stressing me out from months, I'm not sleeping well because of it.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

On 5/28/2021 at 10:11 PM, WeedHex said:

You have only 2 cores in the channel?

What files are you using?

Do you use any multilang system?

Thanks again for your interest, @WeedHex;

Current setup is 2 Channels with 2 Cores per channel;
The service is rolling on Martysama's 4.9.89 and I'm not using any multilanguage system.

All processes running good:

Spoiler

spacer.png



Only syserr is:

load: ANI directory = (null) 


At the start of every Core at every Channel;
That's something I've been investigating without any significant progress

 

 

On 5/29/2021 at 8:33 AM, r00t said:

About Ch1 Core2 that doesn't start, maybe problem can be in your start script or miss hardlink to gamecore.

Why do you setup IP in this way? 

Thank you for joining the post.

Actually CH1 - Core 2 starts ,and keeps running without any syserrs: that's the strange thing that makes me go mad!
I've already tried to change the starting script provived with the files, but nothing changed.

I actually don't use hardlinks, but I do have the actual compiled sources in " game/main/srv1/share/bin "; could be this messing up with something?

I've actually tried some time before to replace the mentioned files with some valid hardlinks, but the problem persisted.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.