[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
terracotta ha启动的问题  XML
Forum Index -> Terracotta 中文社区
Author Message
batizhao

neo

Joined: 10/19/2010 02:26:22
Messages: 5
Offline

214,217两台机器,完全相同的tc-config,启动时异常。214不断的自动重启.
214日志如下:
D:\terracotta\bin>start-tc-server.bat -f ../tc-config.xml
2010-10-19 17:19:24,273 INFO - Terracotta 3.3.0, as of 20100716-150712 (Revision
15922 by cruise@su10mo5 from 3.3)
2010-10-19 17:19:25,570 INFO - Successfully loaded base configuration from file
at 'D:\terracotta\bin\..\tc-config.xml'.
2010-10-19 17:19:26,023 INFO - Log file: 'D:\terracotta\bin\..\logs\server-logs\
terracotta-server.log'.
2010-10-19 17:19:26,726 INFO - Available Max Runtime Memory: 490MB
2010-10-19 17:19:27,726 INFO - JMX Server started. Available at URL[service:jmx:
jmxmp://0.0.0.0:9520]
2010-10-19 17:19:35,538 INFO - Becoming State[ ACTIVE-COORDINATOR ]
2010-10-19 17:19:35,570 INFO - Terracotta Server instance has started up as ACTI
VE node on 0.0.0.0:9510 successfully, and is now ready for work.
2010-10-19 17:20:12,054 INFO - NodeID[132.159.205.217:9510] joined the cluster
2010-10-19 17:20:12,070 WARN - Requesting node to quit : NodeID : NodeID[132.159
.205.217:9510] Error Type : Two or more Active servers detected in the cluster
2010-10-19 17:20:12,070 WARN - Requesting node to quit : NodeID : NodeID[132.159
.205.217:9510] Error Type : COMMUNICATION ERROR
2010-10-19 17:20:12,085 ERROR - This Terracotta server instance shut down becaus
e of a conflict or communication failure with another Terracotta server instance
. The database must be manually wiped before it can be started and allowed to re
join the cluster.

217日志如下:
D:\terracotta\bin>start-tc-server.bat -f ../tc-config.xml
2010-10-19 17:19:54,242 INFO - Terracotta 3.3.0, as of 20100716-150712 (Revision
15922 by cruise@su10mo5 from 3.3)
2010-10-19 17:19:55,507 INFO - Successfully loaded base configuration from file
at 'D:\terracotta\bin\..\tc-config.xml'.
2010-10-19 17:19:55,976 INFO - Log file: 'D:\terracotta\bin\..\logs\server-logs\
terracotta-server.log'.
2010-10-19 17:19:56,804 INFO - Available Max Runtime Memory: 490MB
2010-10-19 17:19:57,695 INFO - JMX Server started. Available at URL[service:jmx:
jmxmp://0.0.0.0:9520]
2010-10-19 17:20:05,273 INFO - Becoming State[ ACTIVE-COORDINATOR ]
2010-10-19 17:20:05,304 INFO - Terracotta Server instance has started up as ACTI
VE node on 0.0.0.0:9510 successfully, and is now ready for work.
2010-10-19 17:20:11,273 INFO - NodeID[132.159.205.214:9510] joined the cluster
2010-10-19 17:20:11,273 WARN - Requesting node to quit : NodeID : NodeID[132.159
.205.214:9510] Error Type : Two or more Active servers detected in the cluster
2010-10-19 17:20:11,288 WARN - Requesting node to quit : NodeID : NodeID[132.159
.205.214:9510] Error Type : COMMUNICATION ERROR
2010-10-19 17:20:11,288 WARN - Ignoring Quit request from NodeID[132.159.205.214
:9510] since remote servers weight is not greater than local weight
2010-10-19 17:20:11,288 WARN - Ignoring Quit request from NodeID[132.159.205.214
:9510] since remote servers weight is not greater than local weight
2010-10-19 17:20:14,413 WARN - NodeID[132.159.205.214:9510] left the cluster
 Filename tc-config.xml [Disk] Download
 Description tc-config
 Filesize 4 Kbytes
 Downloaded:  380 time(s)

 Filename terracotta-server.log [Disk] Download
 Description 217 log
 Filesize 45 Kbytes
 Downloaded:  735 time(s)

 Filename terracotta-server.log [Disk] Download
 Description 214 log
 Filesize 39 Kbytes
 Downloaded:  650 time(s)

etsai

master

Joined: 07/31/2007 10:14:38
Messages: 72
Offline

You need to clear up 214 database before restarting as warning message below.

2010-10-19 17:20:12,085 ERROR - This Terracotta server instance shut down becaus
e of a conflict or communication failure with another Terracotta server instance
. The database must be manually wiped before it can be started and allowed to re
join the cluster.
batizhao

neo

Joined: 10/19/2010 02:26:22
Messages: 5
Offline

logs\server-data已经删除,还是同样的问题。
下边有两个目录:dirty-objectdb-backup,objectdb。
一个文件:startup.lck。
etsai

master

Joined: 07/31/2007 10:14:38
Messages: 72
Offline

Looked into your logs. Seems unstable connection between 214 and 217. Failed to talk to each other, both became active, called split-brain problem. Then one will be killed (when they finally could talk to each other) for it to be restarted and join as passive. But you need to clean up database before restart. I guess the root cause was unstable connection between 214 and 217. See the log below, it took 10+ secs without much traffic and disconnected.

2010-10-19 17:20:35,851 [L2_L2:TCWorkerComm # 2_R] WARN com.tc.net.protocol.transport.ServerMessageTransport - ConnectionID(0.04c80970cfde4aabbba19196f1b6d663): CLOSE EVENT : com.tc.net.core.TCConnectionJDK14@1207990807: connected: false, closed: true local=132.159.205.214:9530 remote=132.159.205.217:3400 connect=[Tue Oct 19 17:20:24 GMT+08:00 2010] idle=0ms [169 read, 84 write]. STATUS : ESTABLISHED

batizhao

neo

Joined: 10/19/2010 02:26:22
Messages: 5
Offline

try other server,Same problem.
network no problem.
batizhao

neo

Joined: 10/19/2010 02:26:22
Messages: 5
Offline

i got it.
see:http://forums.terracotta.org/forums/posts/list/1109.page

from:
<election-time>5</election-time>
to:
<election-time>20</election-time>

terracotta,why?

214 log:
D:\terracotta\bin>start-tc-server.bat -f ../tc-config.xml
2010-10-20 16:55:15,976 INFO - Terracotta 3.3.0, as of 20100716-150712 (Revision
15922 by cruise@su10mo5 from 3.3)
2010-10-20 16:55:16,695 INFO - Successfully loaded base configuration from file
at 'D:\terracotta\bin\..\tc-config.xml'.
2010-10-20 16:55:17,148 INFO - Log file: 'D:\terracotta\bin\..\logs\server-logs\
terracotta-server.log'.
2010-10-20 16:55:19,663 INFO - Available Max Runtime Memory: 490MB
2010-10-20 16:55:22,335 INFO - JMX Server started. Available at URL[service:jmx:
jmxmp://0.0.0.0:9520]
2010-10-20 16:55:43,741 INFO - Becoming State[ ACTIVE-COORDINATOR ]
2010-10-20 16:55:43,773 INFO - Terracotta Server instance has started up as ACTI
VE node on 0.0.0.0:9510 successfully, and is now ready for work.
2010-10-20 16:55:47,601 INFO - NodeID[132.159.205.217:9510] joined the cluster

217 log:
D:\terracotta\bin>start-tc-server.bat -f ../tc-config.xml
2010-10-20 16:55:18,757 INFO - Terracotta 3.3.0, as of 20100716-150712 (Revision
15922 by cruise@su10mo5 from 3.3)
2010-10-20 16:55:19,679 INFO - Successfully loaded base configuration from file
at 'D:\terracotta\bin\..\tc-config.xml'.
2010-10-20 16:55:20,100 INFO - Log file: 'D:\terracotta\bin\..\logs\server-logs\
terracotta-server.log'.
2010-10-20 16:55:22,804 INFO - Available Max Runtime Memory: 490MB
2010-10-20 16:55:25,507 INFO - JMX Server started. Available at URL[service:jmx:
jmxmp://0.0.0.0:9520]
2010-10-20 16:55:38,132 INFO - Moved to State[ PASSIVE-UNINITIALIZED ]
2010-10-20 16:55:38,132 INFO - NodeID[132.159.205.214:9510] joined the cluster
2010-10-20 16:55:38,179 INFO - Moved to State[ PASSIVE-STANDBY ]
BUGS

neo

Joined: 02/27/2013 05:20:24
Messages: 8
Offline

I have two Teracotta TCServer,and I start one server,then anthor cann't be start!
log:
cache@cscache:/cache/terracotta-3.7.3/bin>./start-tc-server.sh -f ../tc-config.xml -n CACHE84
2013-03-01 21:35:01,172 INFO - Terracotta 3.7.3, as of 20130116-060539 (Revision unknown-21992 by cruise@su10vmo118 from 3.7.3)
2013-03-01 21:35:01,584 INFO - Successfully loaded base configuration from file at '/cache/terracotta-3.7.3/bin/../tc-config.xml'.
2013-03-01 21:35:01,636 INFO - Log file: '/cache/terracotta-3.7.3/bin/../terracotta/demo-server/server84-logs/terracotta-server.log'.
2013-03-01 21:35:02,311 INFO - Available Max Runtime Memory: 490MB
2013-03-01 21:35:02,554 ERROR - Unable to start the JMX server. Do you have another Terracotta Server instance running?
 
Forum Index -> Terracotta 中文社区
Go to:   
Powered by JForum 2.1.7 © JForum Team