Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

VM Problem Trouble Shooting

skyhit edited this page Jan 13, 2015 · 2 revisions

Problem with Web Arena Login

when logining with web arena, if you get error with callback like this url,

https://tc.cloud.topcoder.com/reg2/callback.action?code=txnGyaLLY1rC1gnP&state=http%3A%2F%2Farena.cloud.topcoder.com%3A3000%2F%23%2Fa%2Fhome

the main reason is the web_module is not properly servicing. You need to redeploy the web module.

  1. Login VM as tc account.
  2. cd ~/web
  3. svn up (update to latest code, optional, as when VM created, it is pulling the latest code)
  4. ant -f build_tc.xml deploy (if you meet problem this this step check following.)
  5. jbb
  6. ./kill.sh (enter 'yes').
  7. ./start.sh
  8. tn (monitoring the log to make sure the jboss services are started properly).

Problem with TopCoder Web Build

when doing 'ant -f build_tc.xml deploy', if you get error like

HttpClientHandler: java.lang.RuntimeException: Could not generate DH keypair url=https://coder.topcoder.com/internal/internal-artifacts/trunk/concurrent/

the main reason is there are problem with SVN server. to get round it, is to use JDK 7 or higher.

  1. vi ~/.bash_profile
  2. update JAVA_HOME to /opt/jdk1.7.0_67
  3. for PATH=$PATH:$HOME/bin:$JBOSS_HOME/bin:$JAVA_HOME/bin, move $JAVA_HOME/bin at first, like PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:$JBOSS_HOME/bin
  4. relogin as tc account to make sure the environment variable take affect.
  5. rebuild as above.

Clone this wiki locally