cloudcoderdotorg / CloudCoder

A web-based programming exercise system.
GNU Affero General Public License v3.0
71 stars 60 forks source link

Error in test Submission :no Builders found #83

Open rtasaithambi opened 9 years ago

rtasaithambi commented 9 years ago

When I submit the test then it shows the error like "No builders found ". Note :I run this application in local machine(Linux) both webapp and builder in same machine..

Please help me to go further step...

Thanks.

daveho commented 9 years ago

Check the logs for the webapp and the builder - I'm guessing the builder isn't connecting to the webapp properly.

gtomar commented 9 years ago

I am facing the same error : "Cannot test submission: no Builders are available". I checked logs and nothing seemed fishy.

Builder log

2015-01-21 18:25:05,384 Builder2Daemon INFO - Using instance temporary directory /usr0/home/builder/builder/instance-10041 2015-01-21 18:25:05,389 ThreadGroupSecurityManager INFO - ThreadGroupSecurityManager created 2015-01-21 18:25:05,404 Builder2Daemon INFO - Builder starting 2015-01-21 18:25:05,404 Builder2Daemon INFO - appHost=erebor.lti.cs.cmu.edu 2015-01-21 18:25:05,404 Builder2Daemon INFO - appPort=47374 2015-01-21 18:25:05,407 Builder2Daemon INFO - numThreads=2

Webapp log

2015-01-21 19:00:25,293 NocacheJsFilter INFO - Adding Cache-Control header to /cloudcoder/cloudcoder/cloudcoder.nocache.js 2015-01-21 19:00:25,729 GetCoursesAndProblemsServiceImpl INFO - Loading courses and registrations for user gtomar 2015-01-21 19:00:27,066 NocacheJsFilter INFO - Adding Cache-Control header to /cloudcoder/cloudcoder/cloudcoder.nocache.js 2015-01-21 19:00:27,437 GetCoursesAndProblemsServiceImpl INFO - Loading courses and registrations for user gtomar 2015-01-21 19:00:36,511 GetCoursesAndProblemsServiceImpl INFO - Loading courses and registrations for user gtomar 2015-01-21 19:00:36,520 GetCoursesAndProblemsServiceImpl INFO - Loading courses and registrations for user gtomar 2015-01-21 19:00:49,150 GetCoursesAndProblemsServiceImpl INFO - getting problems/submission receipts for authenticated user gtomar 2015-01-21 19:00:49,157 GetCoursesAndProblemsServiceImpl INFO - Received 2 problems/submission receipts 2015-01-21 19:00:53,357 SubmitServiceImpl INFO - Passing submission to submit service...

daveho commented 9 years ago

Gaurav - the builder log should have a message that looks something like

2015-01-20 11:44:22,773 Builder2Server INFO - Connected!

If you don't see this, then the builder is unable to establish a connection with the webapp.

gtomar commented 9 years ago

I cannot see this message in my builder log. But cannot figure out why.

sprenks18 commented 9 years ago

ORIG: I'm having the same problem with the same set up. I'm not sure how to troubleshoot the problem. Looking through the code, it looks like I should be getting some kind of error message. If I'm not getting an error message, is there a looping problem? Or some other reason that I'm not getting an error message?

UPDATE: The problem may be that you had some issue during your original webapp installation and then, after fixing the original webapp installation, you didn't redo the builder set up. A new builder jar file is built when you are setting up the original webapp, and that is the jar file that is needed to make the process work. At least, that's what I gather from lots of trial and error.

RetroJoshua commented 4 years ago

I am having the same problem. So, I have checked the Builder log:

2019-10-25 14:49:37,530 Builder2Daemon INFO - appPort=47374 2019-10-25 14:49:37,540 Builder2Daemon INFO - numThreads=2 2019-10-25 14:49:37,921 Builder2Server INFO - Failed attempt to connect to server at 1571995177921 2019-10-25 14:49:37,921 Builder2Server INFO - Failed attempt to connect to server at 1571995177921 2019-10-25 14:49:37,925 NoConnectTimer ERROR - Cannot connect to CloudCoder server java.net.UnknownHostException: ec2-174-129-44-38.compute-1.amazonaws.com