Jump to content
For maintenance and updates, the community will be offline on 31 December 2022 ×
  • 0

[HELP] After starting more than 1 ch, other ch crash after 10-15sec - only ch1 running


Ulthar

Question

  • Premium

Guys, Hellooo.


When i start more than 1 ch, the first ch can start, the second is starting, but after 10-15 sec, another ch crash. i tested all ch, so i started every single ch, (started only ch1-2-3-4, everything is working fine(with editing start.sh file)) But more than 1 ch is not working.
Can someone help or give me a tip or something?
Tried with:  i just copy the ch1 folder and changed the porst, created the links inside the folder. Starting only ch2 is fine, but starting both ch, still only ch1 working.

Server is 40k. Using FoxFS. In the client source, checked IPs and ports, everything is good.

Sorry for my horrible english.

EDIT: Started 2 ch. First (ch1) is working, but CH2 is not.

Edited by Ulthar
title edit
  • Metin2 Dev 1
Link to comment
Share on other sites

19 answers to this question

Recommended Posts

  • 0
  • Distinguished Member

If you start them one by one they work? Then maybe you are using the same HOSTNAME for them in the CONFIG files.

Official hostnames:

ch1 1st core: first
ch1 2nd core: game1
ch1 3rd: game2

ch2 1st core: first
ch2 2nd core: game1
ch2 3rd core: game2

Link to comment
Share on other sites

  • 0
  • Premium
13 minutes ago, TMP4 said:

If you start them one by one they work?

Yea, they work.

My ch1 core1 config:
 

HOSTNAME: core1
CHANNEL: 1
PORT: 13010
P2P_PORT: 13110
DB_PORT: 11000
DB_ADDR: localhost
MAP_ALLOW: 1 3 4 6 21 23 24 26 41 43 44 46 51 13
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: localhost gamedb 6ExshcCdUMW65dq8KjSPtqkb player
COMMON_SQL: localhost gamedb 6ExshcCdUMW65dq8KjSPtqkb common
LOG_SQL: localhost gamedb 6ExshcCdUMW65dq8KjSPtqkb log
VIEW_RANGE: 8000
LOCALE_SERVICE: turkey
TEST_SERVER: 0
ADMINPAGE_IP: 185.128.112.9
ADMINPAGE_PASSWORD: 548SN3TBFcbqKL84sTExQ5Ja
SHOP_URL: testshop.com
CHECK_MULTIHACK: 0
MAX_LEVEL: 120


my ch2 core1 config:

HOSTNAME: core1
CHANNEL: 2
PORT: 14010
P2P_PORT: 14110
DB_PORT: 11000
DB_ADDR: localhost
MAP_ALLOW: 1 3 4 6 21 23 24 26 41 43 44 46 51
TABLE_POSTFIX:
PASSES_PER_SEC: 25
SAVE_EVENT_SECOND_CYCLE: 180
PING_EVENT_SECOND_CYCLE: 180
PLAYER_SQL: sqlserver gamedb 6ExshcCdUMW65dq8KjSPtqkb player
COMMON_SQL: sqlserver gamedb 6ExshcCdUMW65dq8KjSPtqkb common
LOG_SQL: sqlserver gamedb 6ExshcCdUMW65dq8KjSPtqkb log
VIEW_RANGE: 8000
LOCALE_SERVICE: turkey
TEST_SERVER: 0
ADMINPAGE_IP: 185.128.112.9
ADMINPAGE_PASSWORD: 548SN3TBFcbqKL84sTExQ5Ja
SHOP_URL: testshop.com
CHECK_MULTIHACK: 0
MAX_LEVEL: 120


 

Link to comment
Share on other sites

  • 0
  • Distinguished Member

They seems fine, maybe you want to censor your ip tho.

I can't tell what's the problem, try to do a gdb, maybe it will show some useful info.

Link to comment
Share on other sites

  • 0
  • Premium
27 minutes ago, TMP4 said:

They seems fine, maybe you want to censor your ip tho.

I can't tell what's the problem, try to do a gdb, maybe it will show some useful info.

thats not my ip btw, but gdb litteraly do nothing for me. Cant debug...

Link to comment
Share on other sites

  • 0
  • Premium
43 minutes ago, Istny said:

Maybe your server don't have enough RAM to run 2 channels at once ?

I created a freebsd, and uploaded my files. I gave 8gb ram to freebsd, and still not working 😄 so i dont think so 😕 VPS have 4gb RAM

Link to comment
Share on other sites

  • 0
  • Premium
2 hours ago, PetePeter said:

Just don't use same HOSTNAME, use this way:
 

HOSTNAME: channel1_core1
HOSTNAME: channel1_core2


Tried it, not working 😕

Link to comment
Share on other sites

  • 0
  • Premium
8 hours ago, Denizeri24 said:

try debugging..

 

On 12/5/2021 at 11:23 PM, Ulthar said:

thats not my ip btw, but gdb litteraly do nothing for me. Cant debug...

 

Link to comment
Share on other sites

  • 0
  • Distinguished Member
15 minutes ago, Ulthar said:

 

 

So the problem is that, without any clue nobody can help.
You say gdb doesn't do anything. So you write gdb like this:

[email protected]:~ # gdb

and what's the outout?

  1. command gdb not found? (pkg install gdb)
  2. you get an empty new line? like [email protected]:~ #
  3. other?

I suggest you to try removing gdb then if you installed it from ports then do pkg, if you did pkg then install from ports.

Link to comment
Share on other sites

  • 0
  • Premium
24 minutes ago, TMP4 said:

So the problem is that, without any clue nobody can help.
You say gdb doesn't do anything. So you write gdb like this:

[email protected]:~ # gdb

and what's the outout?

  1. command gdb not found? (pkg install gdb)
  2. you get an empty new line? like [email protected]:~ #
  3. other?

I suggest you to try removing gdb then if you installed it from ports then do pkg, if you did pkg then install from ports.

Thanks for answer again.
Im not getting game.core after the ch start, zero syserr, sero syslog.
If i want to debug, gdb telling me: (i dont remember perfectly) gdb-> file game-> core game.core-> "cant debug stripped version" Well, i uploaded my not stripped version, and i got the game.core again. Tried the same way, and got the same thing... xD

EDIT::

[email protected]:/usr/home/game/share/bin # file game
game: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 9.2, stripped

After i used this command, got this message. But after this, nothing happened. I dont have game.core, so i cant do: core game.core. 😕

I cant run the game in gdb too.

 

Edited by Ulthar
Link to comment
Share on other sites

  • 0
  • Premium

@ Ulthar You can't gdb stripped game file. The game file you are trying to debug, someone or you stripped before, so if you can't compile it again without command use: strip -s game then there is no way how someone can help you.

Edited by ReFresh

I'll be always helpful! 👊 

Link to comment
Share on other sites

  • 0
  • Premium
2 minutes ago, ReFresh said:

You can't gdb stripped game file. The game file you trying to debug someone or you stripped before, so if you can't compile it again without command use: -strip -s game. There is no way how someone can help you with that.

I tried it with non stripped game, and still not working 😄

Link to comment
Share on other sites

  • 0
  • Premium
4 minutes ago, ReFresh said:

Show us syssers of channels, syslogs etc. Looks like you don't have any knowledge with serverfiles.

SYSERR: Dec  7 17:24:07 :: socket_connect: HOST localhost:11000, could not connect.
SYSERR: Dec  7 17:24:07 :: ReadQuestCategoryToDict: QUEST couldnt find QuestIndex for name Quest: time_weapon(0)
SYSERR: Dec  7 17:24:18 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
SYSERR: Dec  7 17:24:18 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
SYSERR: Dec  7 17:25:08 :: socket_connect: HOST hereismyip:13199, could not connect.
SYSERR: Dec  7 17:25:10 :: pid_deinit: 
End of pid

This is ch2 syserr, cuz i started only the ch2. Same syserr in ch1 while im only starting ch2.

If i start only ch1,  this error is dissapear.

Edited by Ulthar
Link to comment
Share on other sites

  • 0
12 hours ago, Ulthar said:

Thanks for answer again.
Im not getting game.core after the ch start, zero syserr, sero syslog.
If i want to debug, gdb telling me: (i dont remember perfectly) gdb-> file game-> core game.core-> "cant debug stripped version" Well, i uploaded my not stripped version, and i got the game.core again. Tried the same way, and got the same thing... xD

EDIT::

[email protected]:/usr/home/game/share/bin # file game
game: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 9.2, stripped

After i used this command, got this message. But after this, nothing happened. I dont have game.core, so i cant do: core game.core. 😕

I cant run the game in gdb too.

 

 

I didn't tell you to debug the core file, i told you to debug the game file.

 

i change my words;

try debugging --> learn debugging..

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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