Я внедрял систему упражнений для программирования на веб-сайте github (https://github.com/daveho/CloudCoder).
Работа с документацией (https://github.com/cloudcoderdotorg/CloudCoder/wiki) помогла мне легко реализовать ее.
Я создал два экземпляра ec2 (например,-1.webapp & 2. builderapp) В установка приложения webapp & builder Я использовал эти инструкции - https://github.com/cloudcoderdotorg/CloudCoder/wiki/Bootstrap
Но я не смог выполнить его успешно, и теперь я столкнулся с проблемой, описанной ниже в журналах сервера builderapp ie (/home/builder/builder/logs/builder.log):
2020-04-28 12:47:11,525 Builder2Daemon INFO - Using instance temporary directory /home/builder/builder/instance-22224
2020-04-28 12:47:11,533 ThreadGroupSecurityManager INFO - ThreadGroupSecurityManager created
2020-04-28 12:47:11,561 Builder2Daemon INFO - Builder starting
2020-04-28 12:47:11,561 Builder2Daemon INFO - appHost=ec2-13-233-27-186.ap-south-1.compute.amazonaws.com
2020-04-28 12:47:11,561 Builder2Daemon INFO - appPort=47374
2020-04-28 12:47:11,564 Builder2Daemon INFO - numThreads=2
2020-04-28 12:49:22,853 Builder2Server INFO - Failed attempt to connect to server at 1588078162852
2020-04-28 12:49:22,853 Builder2Server INFO - Failed attempt to connect to server at 1588078162853
2020-04-28 12:49:22,856 NoConnectTimer ERROR - Cannot connect to CloudCoder server
java.net.ConnectException: Connection timed out (Connection timed out)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:607)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:681)
at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:439)
at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88)
at org.cloudcoder.builder2.server.SSLSocketFactoryAdapter.createSocket(SSLSocketFactoryAdapter.java:42)
at org.cloudcoder.builder2.server.WebappSocketFactory.connectToWebapp(WebappSocketFactory.java:159)
at org.cloudcoder.builder2.server.Builder2Server.createSecureSocket(Builder2Server.java:357)
at org.cloudcoder.builder2.server.Builder2Server.attemptToConnectToServer(Builder2Server.java:368)
at org.cloudcoder.builder2.server.Builder2Server.runOnce(Builder2Server.java:290)
at org.cloudcoder.builder2.server.Builder2Server.run(Builder2Server.java:276)
at java.lang.Thread.run(Thread.java:748)
2020-04-28 20:17:37,188 Builder2Server INFO - Failed attempt to connect to server at 1588105057188
2020-04-28 20:17:37,188 Builder2Server INFO - Failed attempt to connect to server at 1588105057188
Это наполовину рабочий сайт - https://ec2-13-235-49-127.ap-south-1.compute.amazonaws.com/cloudcoder/#login
имя пользователя - admin
пароль - admin
Проблема: - Я не могу выполнить код в компиляторе на моем сайте.