-
Notifications
You must be signed in to change notification settings - Fork 39
VM Problem Trouble Shooting
when logining with web arena, if you get error with callback like this url,
the main reason is the web_module is not properly servicing. You need to redeploy the web module.
- Login VM as tc account.
- cd ~/web
- svn up (update to latest code, optional, as when VM created, it is pulling the latest code)
- ant -f build_tc.xml deploy (if you meet problem this this step check following.)
- jbb
- ./kill.sh (enter 'yes').
- ./start.sh
- tn (monitoring the log to make sure the jboss services are started properly).
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.
vi ~/.bash_profile
- update
JAVA_HOME
to/opt/jdk1.7.0_67
- for
PATH=$PATH:$HOME/bin:$JBOSS_HOME/bin:$JAVA_HOME/bin
, move$JAVA_HOME/bin
at first, likePATH=$JAVA_HOME/bin:$PATH:$HOME/bin:$JBOSS_HOME/bin
- relogin as tc account to make sure the environment variable take affect.
- rebuild as above.
If you meet problem like
Could not compile solution. Error :Unable to execute HTTP request: Connection to http://localhost:9324 refused
it is because the local SQS service is down, you can fix it by the following steps.
- login as
apps
account. - run
jps
to find the process id for elasticmq-server-x.x.x.jar kill -9 <<process id>>
- cd ~/dev/arena-vm
java -jar ~/dev/arena-vm/elasticmq-server-0.8.3.jar &
sleep 10
java -cp "/home/apps/app/lib/jars/*" -Darena.sqs-endpoint='http://localhost:9324' com.topcoder.arena.util.sqs.LocalSqsSetup 'http://localhost:9324' devArenaCode- compile admin-test listener-results proc-results mm-test practice srm-test