• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • npurwar
  • Reporter: tgautier
  • December 15, 2008
  • 0
  • Watchers: 0
  • April 10, 2009
  • December 18, 2008

Description

We should give a more informative error message here. It appears this is the result of specifying the same l2-group-port when running 2 servers on the same system.

com.tc.util.TCAssertionError: Duplicate nodes specified in config, please check 10.0.0.150:9530 was not null at com.tc.util.Assert.failure(Assert.java:60) at com.tc.util.Assert.assertNull(Assert.java:139) at com.tc.net.groups.TCGroupMemberDiscoveryStatic.setupNodes(TCGroupMemberDiscoveryStatic.java:53) at com.tc.net.groups.TCGroupManagerImpl.join(TCGroupManagerImpl.java:325) at com.tc.l2.ha.L2HACoordinator.start(L2HACoordinator.java:226) at com.tc.objectserver.impl.DistributedObjectServer.start(DistributedObjectServer.java:873) at com.tc.server.TCServerImpl.startDSOServer(TCServerImpl.java:376) at com.tc.server.TCServerImpl.access$500(TCServerImpl.java:74) at com.tc.server.TCServerImpl$StartAction.execute(TCServerImpl.java:343)

     at com.tc.lang.StartupHelper.startUp(StartupHelper.java:39)
     at com.tc.server.TCServerImpl.startServer(TCServerImpl.java:369)

Comments

Taylor Gautier 2008-12-15

Reference to the forum post here: http://forums.terracotta.org/forums/posts/list/1647.page

Himadri Singh 2009-03-13

For 2.7.3 Build, while starting first L2 server got the exception

2009-03-12 23:46:25,036 INFO - Terracotta 2.7.3, as of 20090129-100125 (Revision 11424 by [email protected] from 2.7) 2009-03-12 23:46:25,616 INFO - Configuration loaded from the file at ‘/shares/perf/hsingh/sabre/conf/tc-config.xml’. 2009-03-12 23:46:25,642 INFO - Log file: ‘/export1/bench/tc-runtime/sabre-test-app/server-logs/terracotta-server.log’. 2009-03-12 23:46:26,383 INFO - Statistics store: ‘/export1/bench/tc-runtime/sabre-test-app/server-stats’. 2009-03-12 23:46:26,392 INFO - Available Max Runtime Memory: 488MB 2009-03-12 23:46:26,622 INFO - Statistics buffer: ‘/export1/bench/tc-runtime/sabre-test-app/server-stats’. 2009-03-12 23:46:26,712 INFO - JMX Server started. Available at URL[service:jmx:jmxmp://0.0.0.0:9521] com.tc.util.TCAssertionError: Duplicate nodes specified in config, please check perf29:9530 was not null at com.tc.util.Assert.failure(Assert.java:60) at com.tc.util.Assert.assertNull(Assert.java:139) at com.tc.net.groups.TCGroupMemberDiscoveryStatic.setupNodes(TCGroupMemberDiscoveryStatic.java:53) at com.tc.net.groups.TCGroupManagerImpl.join(TCGroupManagerImpl.java:325) at com.tc.l2.ha.L2HACoordinator.start(L2HACoordinator.java:226) at com.tc.objectserver.impl.DistributedObjectServer.start(DistributedObjectServer.java:924) at com.tc.server.TCServerImpl.startDSOServer(TCServerImpl.java:407) at com.tc.server.TCServerImpl.access$600(TCServerImpl.java:76) at com.tc.server.TCServerImpl$StartAction.execute(TCServerImpl.java:362) at com.tc.lang.StartupHelper.startUp(StartupHelper.java:39) at com.tc.server.TCServerImpl.startServer(TCServerImpl.java:392) at com.tc.server.TCServerImpl.start(TCServerImpl.java:175) at com.tc.server.TCServerMain.main(TCServerMain.java:28)

For 3.0.0-stable0, first L2 server started successfully,

2009-03-12 23:45:08,597 INFO - Terracotta 3.0.0-stable0, as of 20090306-110324 (Revision 12024 by [email protected] from 3.0) 2009-03-12 23:45:09,069 INFO - Configuration loaded from the file at ‘/shares/perf/hsingh/sabre/conf/tc-config.xml’. 2009-03-12 23:45:09,263 INFO - Log file: ‘/export1/bench/tc-runtime/sabre-test-app/server-logs/terracotta-server.log’. 2009-03-12 23:45:12,046 INFO - Statistics store: ‘/export1/bench/tc-runtime/sabre-test-app/server-stats’. 2009-03-12 23:45:12,056 INFO - Available Max Runtime Memory: 488MB 2009-03-12 23:45:14,316 INFO - Statistics buffer: ‘/export1/bench/tc-runtime/sabre-test-app/server-stats’. 2009-03-12 23:45:14,386 INFO - JMX Server started. Available at URL[service:jmx:jmxmp://0.0.0.0:9521] 2009-03-12 23:45:16,069 INFO - Becoming State[ ACTIVE-COORDINATOR ] 2009-03-12 23:45:16,092 INFO - Terracotta Server instance has started up as ACTIVE node on 0:0:0:0:0:0:0:0:9511 successfully, and is now ready for work. 2009-03-12 23:45:16,101 INFO - Update Checker: Checking… 2009-03-12 23:45:16,192 INFO - Update Checker: No updates found 2009-03-12 23:45:16,193 INFO - Update Checker: Next check at Thu Mar 19 23:45:16 PDT 2009

And second L2 server printed

2009-03-12 23:45:22,277 INFO - Terracotta 3.0.0-stable0, as of 20090306-110324 (Revision 12024 by [email protected] from 3.0) 2009-03-12 23:45:22,758 INFO - Configuration loaded from the file at ‘/shares/perf/hsingh/sabre/conf/tc-config.xml’. 2009-03-12 23:45:22,950 INFO - Log file: ‘/export1/bench/tc-runtime/sabre-test-app/server-logs/12/terracotta-server.log’. 2009-03-12 23:45:23,683 INFO - Statistics store: ‘/export1/bench/tc-runtime/sabre-test-app/server-stats/12’. 2009-03-12 23:45:23,693 INFO - Available Max Runtime Memory: 488MB 2009-03-12 23:45:23,954 INFO - Statistics buffer: ‘/export1/bench/tc-runtime/sabre-test-app/server-stats/12’. 2009-03-12 23:45:24,031 INFO - JMX Server started. Available at URL[service:jmx:jmxmp://0.0.0.0:9520] 2009-03-12 23:45:24,955 ERROR - com.tc.net.groups.GroupException: java.net.BindException: Address already in use