Create 2 server

every service work fine include worldsvr_02_01 but, i check log there is error in

Tue May 3 2016 23:04:02.939505 3078416080]: [##ERROR##] connect 127.0.0.1:38122 fail[Tue May 3 2016 23:04:02.939515 3078416080]: [##ERROR##] Link(): link open fail(Automatic), Exit
[Tue May 3 2016 23:04:02.939523 3078416080]: [##ERROR##] OpenLinkLayer(): ChatNode link failed
[Tue May 3 2016 23:04:02.939531 3078416080]: [##ERROR##] RunServer(): Initialize fail


ChatNode_02
[NetLib]Port=38122
SendMaxBufSize=131072
SendMaxBufSizeUserHandler=131072
SendMaxBufSizeLinkHandler=1048576
ProcessDataLimit=10000
MaxUserNum=20000
WatchsNoPackLimit=100000
SystemLogTTimeOut=100
ReactorTimeOut=-1
DisableReactorPipe=1
UseEncryptPacket=0
ConnectRetryTime=5000
ConnectRetryNum=20
LogLevel=1
MemPoolUnitSizeClass=2


[ChatNode]
ServerNationIdx=2
ChatNodeIdx=2
Timer=1:1000,2:10000
ProcessLayerTaskNum=8
NoNotifyTimeLimit=120000
NoResponseTimeout=180000
NoActiveLimitTime=120000
BroadCastOverServerNation=0
CharLevelForGuildCreate=40
UseGuildCreateFee=1
AllowGuildBoard=0
# Search party
UseRegisterCache=1
CacheUpdateTime=10000
LogSay=0


CommonIniPath=Common2nd.ini


[DBAgent]
Addr=127.0.0.1
Port=38181


[GlobalMgrSvr]
Addr=127.0.0.1
Port=38170



error in ChatNode_02

[Tue May 3 2016 23:09:27.504613 3078342352]: [##ERROR##] remoteAddr(127.0.0.1), connectRetryNum_(19,0), serverAddr(127.0.0.1:38181)[Tue May 3 2016 23:09:27.504680 3078342352]: try connect 127.0.0.1:38181, Sync
[Tue May 3 2016 23:09:27.506330 3078342352]: sock 7 ->LinkHandler close



38181 = port DBAgent

DBAgent Setting
[NetLib]Port=38181
SendMaxBufSize=65536
SendMaxBufSizeUserHandler=131072
SendMaxBufSizeLinkHandler=1048576
ProcessDataLimit=10000
MaxUserNum=100
WatchsNoPackLimit=100000
SystemLogTTimeOut=100
ReactorTimeOut=-1
LogLevel=3


[DBAgent]
ServerIdx=1
DBProcessTNum=5
DSN=CabalGame01




ServerIdx=2
DBProcessTNum=5
DSN=CabalGame02


[DSN]
DBId=sa
DBPwd=
DBAppName=DaemonName
 
Upvote 0
Code:
[root@localhost bin]# ln -s /usr/bin/DBAgent CashDBAgent_02
[root@localhost bin]# ln -s /usr/bin/ChatNode ChatNode_02
[root@localhost bin]# ln -s /usr/bin/DBAgent DBAgent_02
[root@localhost bin]# ln -s /usr/bin/WorldSvr WorldSvr_02_01
[root@localhost bin]# ln -s /usr/bin/PartySvr PartySvr_02
[root@localhost bin]# ln -s /usr/bin/AgentShop AgentShop_02
[root@localhost bin]# cd
[root@localhost ~]# cd /etc/init.d
[root@localhost init.d]# ln -s /etc/init.d/cabal_server CashDBAgent_02
[root@localhost init.d]# ln -s /etc/init.d/cabal_server ChatNode_02
[root@localhost init.d]# ln -s /etc/init.d/cabal_server DBAgent_02
[root@localhost init.d]# ln -s /etc/init.d/cabal_server WorldSvr_02_01
[root@localhost init.d]# ln -s /etc/init.d/cabal_server PartySvr_02
[root@localhost init.d]# ln -s /etc/init.d/cabal_server AgentShop_02

error in worldsvr_02_01

Code:
[COLOR=#141823][Wed May 4 2016 21:26:08.972320 3077561200]: [#[/COLOR][URL="https://www.facebook.com/hashtag/error?source=feed_text&story_id=10206226435451942"][COLOR=#627AAD]‪#‎[/COLOR]ERROR‬[/URL][COLOR=#141823]##] OnResultItems(): ItemNum(0)[/COLOR]
[COLOR=#141823]ACE_ASSERT: file WorldMgr.cpp, line 240 assertion failed for '0'.Aborting...[/COLOR]
[COLOR=#141823][Wed May 4 2016 21:26:08.972444 3077561200]: SIGABRT[/COLOR][COLOR=#141823]
[Wed May 4 2016 21:26:08.972783 3077561200]: [MemCoreDumper] DUMP : /home/cabal/WorldSvr_02_01_SIGABRT_20160504_212608.core
3078391504: work_pending_i: Interrupted system call

help[/COLOR]
 
Upvote 0
Code:
ln -sf /usr/bin/DBAgent /usr/bin/DBAgent_02
ln -sf /usr/bin/ChatNode /usr/bin/ChatNode_02
ln -sf /usr/bin/AgentShop /usr/bin/AgentShop_02
ln -sf /usr/bin/PartySvr /usr/bin/PartySvr_02
ln -sf /usr/bin/WorldSvr /usr/bin/WorldSvr_02_01

chmod 0700 /usr/bin/DBAgent_02
chmod 0700 /usr/bin/ChatNode_02
chmod 0700 /usr/bin/AgentShop_02
chmod 0700 /usr/bin/PartySvr_02
chmod 0700 /usr/bin/WorldSvr_02_01

ln -sf /etc/init.d/cabal_server /etc/init.d/DBAgent_02
ln -sf /etc/init.d/cabal_server /etc/init.d/ChatNode_02
ln -sf /etc/init.d/cabal_server /etc/init.d/AgentShop_02
ln -sf /etc/init.d/cabal_server /etc/init.d/PartySvr_02
ln -sf /etc/init.d/cabal_server /etc/init.d/WorldSvr_02_01

chmod 0700 /etc/init.d/DBAgent_02
chmod 0700 /etc/init.d/ChatNode_02
chmod 0700 /etc/init.d/AgentShop_02
chmod 0700 /etc/init.d/PartySvr_02
chmod 0700 /etc/init.d/WorldSvr_02_01

thats the commands i used on the shell
then i downloaded the ini files, renamed them, changed the ports and the serverid
changed the odbc.ini
and added on the mssql server the Server02 database

then i started the server and it was working :)
 
Upvote 0
Code:
ln -sf /usr/bin/DBAgent /usr/bin/DBAgent_02
ln -sf /usr/bin/ChatNode /usr/bin/ChatNode_02
ln -sf /usr/bin/AgentShop /usr/bin/AgentShop_02
ln -sf /usr/bin/PartySvr /usr/bin/PartySvr_02
ln -sf /usr/bin/WorldSvr /usr/bin/WorldSvr_02_01

chmod 0700 /usr/bin/DBAgent_02
chmod 0700 /usr/bin/ChatNode_02
chmod 0700 /usr/bin/AgentShop_02
chmod 0700 /usr/bin/PartySvr_02
chmod 0700 /usr/bin/WorldSvr_02_01

ln -sf /etc/init.d/cabal_server /etc/init.d/DBAgent_02
ln -sf /etc/init.d/cabal_server /etc/init.d/ChatNode_02
ln -sf /etc/init.d/cabal_server /etc/init.d/AgentShop_02
ln -sf /etc/init.d/cabal_server /etc/init.d/PartySvr_02
ln -sf /etc/init.d/cabal_server /etc/init.d/WorldSvr_02_01

chmod 0700 /etc/init.d/DBAgent_02
chmod 0700 /etc/init.d/ChatNode_02
chmod 0700 /etc/init.d/AgentShop_02
chmod 0700 /etc/init.d/PartySvr_02
chmod 0700 /etc/init.d/WorldSvr_02_01

thats the commands i used on the shell
then i downloaded the ini files, renamed them, changed the ports and the serverid
changed the odbc.ini
and added on the mssql server the Server02 database

then i started the server and it was working :)

did you make any change inside DBAgent.ini?
 
Upvote 0
Check this out:

did you make any change inside DBAgent.ini?

[NetLib]
ConnectRetryNum=20
ConnectTimeout=10000
CutUnregisteredCommand=0
DisableReactorPipe=0
LinklayerAsyncConnect=0
LogLevel=3
MaxStayTimeInQueue=0
MaxUserNum=300
MemCoreDumperPath=/home/cabal
MemPoolUnitSizeClass=3
Port=38182
ProcessDataLimit=100000
ReactorTimeOut=100
SendMaxBufSizeUserHandler=131072
SendMaxBufSizeLinkHandler=1048576
TcpNoDelay=1
UseEncryptPacket=0
WatchsNoPackLimit=100000

SendMaxBufSize=65536
SystemLogTTimeOut=100
ConnectRetryTime=5000

[DBAgent]
DBProcessTNum=20
ProcessLayerThreadsByServerType=233:5
UseEncryptText=0
UseQueryTimeOutSec=0
ServerIdx=2
CacheUserDataKeepMin=60
UseDungeonRankingSchedule=1
Timer=1:10000
DSN=CabalGame01

[DSN]
DBId=sa
DBPwd=DBPASSWD
DBAppName=DBAgent_02
 
Upvote 0
All service work fine. There is no error but 2nd server not show. Is there I need to edit in client side? Coz I wonder how to edit channel name for 2nd server.

 
Upvote 0
Cabal_msg.enc ->
<msg id="server1-1" cont="Name for ServerIdx=1" />
<msg id="server2-1" cont="name for svridx=2" />

To see two servers on list you need to check GlobalMgrSvr and add two servers correctly.

And about channel name i think its something related to GroupIdx in WorldSvr.
Can't have two same, just try it lol.
 
Upvote 0
Cabal_msg.enc ->
<msg id="server1-1" cont="Name for ServerIdx=1" />
<msg id="server2-1" cont="name for svridx=2" />

To see two servers on list you need to check GlobalMgrSvr and add two servers correctly.



And about channel name i think its something related to GroupIdx in WorldSvr.
Can't have two same, just try it lol.


that for server name. what for channel name

<msg id="channel10" cont="Channel 10" /> <--- this for 1st server



Code:
[NetLib]
ConnectRetryNum=10
ConnectTimeout=10000
CutUnregisteredCommand=0
DisableReactorPipe=0
LinklayerAsyncConnect=0
LogLevel=3
MaxStayTimeInQueue=0
MaxUserNum=-1
MemPoolUnitSizeClass=2
Port=38170
ProcessDataLimit=1024
ReactorTimeOut=-1
SendMaxBufSizeLinkHandler=262144
SendMaxBufSizeUserHandler=262144
TcpNoDelay=1
UseEncryptPacket=0
WatchsNoPackLimit=1000


SendMaxBufSize=65536
SystemLogTTimeOut=100
ConnectRetryTime=5000


[GlobalMgrSvr]
LoadServerAndChannelType=1
SubPasswordCheckIntervalMinute=60
SubPasswordCheckMaxCount=5
UseChangeCCUSystem=0
AllowDuplicatedDaemon=1
DefaultServerOpen=0
DisorderIfLicenseVerifyFailed=1
ForceLicenseVerifyFail=0
DailyQuestResetTime=0
DailyQuestDuration=1440
WorldMaxUserNum=450
NoNotifyTimeLimit=60000
ChatLinkOverServerNation=0
Timer=1:10000,2:300000


[DefaultServerCfg]
#Channels
Languages=0


[Server01]
ServerType=16
Languages=0


# Channel 1 (WorldSvr_01_01)
ChannelType01=1
MaxUserNum01=300
ServerOpen01=1






[Server02]
ServerType=0
Languages=0


# Channel 1 (WorldSvr_02_01)
ChannelType01=1
MaxUserNum01=300
ServerOpen01=1




[DBAgent]
Addr=127.0.0.1
Port=38180


[RockAndRoll]
Type=0
RARAddress=127.0.0.1
RARPortNum=32001
Interval=21600000


this my global
 
Upvote 0
Back