I have been using the Backendless Standalone v3.0.0
Byt, Why is it an error in Deploy.sh
./Deploy.sh
I have been using the Backendless Standalone v3.0.0
Byt, Why is it an error in Deploy.sh
./Deploy.sh
Hi Kunito,
How long ago did you download Standalone build? Could you check the version number in the file you downloaded? The latest one is 3.0.0-10. There will be a few updates in CodeRunner in the new release this week (3.0.0-16).
Regards,
Mark
Hi Mark
Version of Standalone is 3.0.0-10
Business logic is Download from Standalone.
CodeRunner SDK is to Download from https://backendless.com/downloads/, I have to copy “./libs” and “./bin”.
Do you have improved in version 3.0.0-16
I’m sorry in poor English.
thanks
Hi Kunito,
I opened an internal ticket to investigate the problem. We will let you know the status once we reproduce the problem.
Regards,
Mark
Hi!
Could you provide your runner.properties file from bin folder?
# This is main configuration file for Code Runner
# Application id
application.id = FB7B8829-****-E5E1-****-83812751ED00
# Code Runner ID assigned by Backendless Console.
application.secretKey = F98165C6-****-B88C-****-647458EE7400
# Application version name
# Default: v1
application.version = v1
# Optional argument. Search path for classes which will be used for debugging or publishing.
# By default Code Runner looks for the ./build/classes directory located in the current directory
location.classes = ../classes/
# Optional argument. Search path for jar files which are the dependencies for the code which is debugged or published.
# By default Code Runner looks for the ./build/libs directory located in the current directory.
location.jar = ../libs/
# System properties
# Don't touch, if you do not really understand this
system.server.url = http://****.****.amazonaws.com:80/api
system.redis.master.host = ****.****.amazonaws.com
system.redis.master.port = 7738
system.pool.core = 20
system.type = LOCAL
system.repo.path = ../repo/
enterprise.allowedHosts = api.backendless.com,\
ec2-54-84-11-243.compute-1.amazonaws.com:80,\
localhost,\
localhost:9000,\
api.gmo-mbaas.com
system.redis.master.host = 127.0.0.1
↓
system.redis.master.host = ..amazonaws.com
Hi Kunito,
There is a new build of Standalone Backendless available on our site. The problem is fixed in that build. Please re-download and try again.
Regards,
Mark
Mark
Even if I tried, it was an error.
I’m building the environment in AWS from ‘https://bitnami.com/stack/backendless’.
A port of 7738 and 7737 is opened.
# This is main configuration file for Code Runner
# Application id
application.id = D3C5565D-xxxxx-961C-xxxxx-88D35E127600
# Code Runner ID assigned by Backendless Console.
application.secretKey = 66E337DC-xxxxx-9E74-xxxxx-83C6FD23A300
# Application version name
# Default: v1
application.version = v1
# Optional argument. Search path for classes which will be used for debugging or publishing.
# By default Code Runner looks for the ./build/classes directory located in the current directory
location.classes = ../classes/
# Optional argument. Search path for jar files which are the dependencies for the code which is debugged or published.
# By default Code Runner looks for the ./build/libs directory located in the current directory.
location.jar = ../libs/
# System properties
# Don't touch, if you do not really understand this
system.server.url = http://xxxxx.compute-1.amazonaws.com:80/api
system.redis.master.host = 127.0.0.1
system.redis.master.port = 7738
system.pool.core = 20
system.type = LOCAL
system.repo.path = ../repo/
enterprise.allowedHosts = api.backendless.com,\
xxxxx.compute-1.amazonaws.com:80,\
localhost,\
localhost:9000,\
api.gmo-mbaas.com
$ ./Deploy.sh
[INFO] CodeRunner(tm) Backendless Debugging Utility
[INFO] Copyright(C) 2016 Backendless Corp. All rights reserved.
[INFO] Version: 3.0.0 Build date: 20160129-0801
[INFO] CodeRunner session is running for 2 hours and will be terminated on 04:16:13.487[UTC]
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.backendless.coderunner.CodeRunnerLoader.main(CodeRunnerLoader.java:39)
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:50)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:86)
at com.backendless.redis.JedisManager.getJedis(JedisManager.java:94)
at com.backendless.redis.JedisManager.execute(JedisManager.java:220)
at com.backendless.redis.JedisManager.create(JedisManager.java:74)
at com.backendless.redis.JedisManager.create(JedisManager.java:54)
at com.backendless.coderunner.redis.RedisPoolManager.<init>(RedisPoolManager.java:62)
at com.backendless.coderunner.redis.RedisPoolManager.<clinit>(RedisPoolManager.java:19)
... 1 more
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused
at redis.clients.jedis.Connection.connect(Connection.java:154)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:83)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1643)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:85)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:861)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:435)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363)
at redis.clients.util.Pool.getResource(Pool.java:48)
... 8 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
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:589)
at redis.clients.jedis.Connection.connect(Connection.java:148)
... 15 more
Digirock-Ishizaki:bin ishizakunito$
Digirock-Ishizaki:bin ishizakunito$
Digirock-Ishizaki:bin ishizakunito$
Digirock-Ishizaki:bin ishizakunito$ ./CodeRunner.sh
Listening for transport dt_socket at address: 5005
Exception in thread "main" java.lang.RuntimeException: com.mashape.unirest.http.exceptions.UnirestException: org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:7737 [/127.0.0.1] failed: Connection refused
at com.backendless.coderunner.config.RemoteConfigProvider.retrieveHosts(RemoteConfigProvider.java:32)
at com.backendless.coderunner.config.RemoteConfigProvider.<init>(RemoteConfigProvider.java:15)
at com.backendless.coderunner.config.Config.init(Config.java:25)
at com.backendless.coderunner.CodeRunnerLoader.main(CodeRunnerLoader.java:34)
Caused by: com.mashape.unirest.http.exceptions.UnirestException: org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:7737 [/127.0.0.1] failed: Connection refused
at com.mashape.unirest.http.HttpClientHelper.request(HttpClientHelper.java:146)
at com.mashape.unirest.request.BaseRequest.asJson(BaseRequest.java:68)
at com.backendless.coderunner.config.RemoteConfigProvider.retrieveHosts(RemoteConfigProvider.java:27)
... 3 more
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:7737 [/127.0.0.1] failed: Connection refused
at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:142)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:319)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
at com.mashape.unirest.http.HttpClientHelper.request(HttpClientHelper.java:141)
... 5 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
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:589)
at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72)
at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:125)
... 16 more
change CodeRunner.sh
java $JAVA_ARGS -Dbackendless.component=xxxx.compute-1.amazonaws.com -Dbackendless.flightcontrol=xxxx.compute-1.amazonaws.com:7737 -cp "*:../libs/*" com.backendless.coderunner.CodeRunnerLoader $@
error
$ ./CodeRunner.sh
Listening for transport dt_socket at address: 5005
[INFO] CodeRunner(tm) Backendless Debugging Utility
[INFO] Copyright(C) 2016 Backendless Corp. All rights reserved.
[INFO] Version: 3.0.0 Build date: 20160129-0801
[INFO] CodeRunner session is running for 2 hours and will be terminated on 05:04:57.373[UTC]
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.backendless.coderunner.CodeRunnerLoader.main(CodeRunnerLoader.java:39)
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:50)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:86)
at com.backendless.redis.JedisManager.getJedis(JedisManager.java:94)
at com.backendless.redis.JedisManager.execute(JedisManager.java:220)
at com.backendless.redis.JedisManager.create(JedisManager.java:74)
at com.backendless.redis.JedisManager.create(JedisManager.java:54)
at com.backendless.coderunner.redis.RedisPoolManager.<init>(RedisPoolManager.java:62)
at com.backendless.coderunner.redis.RedisPoolManager.<clinit>(RedisPoolManager.java:19)
... 1 more
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused
at redis.clients.jedis.Connection.connect(Connection.java:154)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:83)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1643)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:85)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:861)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:435)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363)
at redis.clients.util.Pool.getResource(Pool.java:48)
... 8 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
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:589)
at redis.clients.jedis.Connection.connect(Connection.java:148)
... 15 more
I don’t understand a setting method and am in trouble.
Hello!
Can you set system.redis.master.host to your server IP and try again?
Also check that port 7738 is enabled in security group.
Here are instructions for configuring CodeRunner after downloading (above “How to configure email…”): https://wiki.bitnami.com/Applications/Bitnami_Standalone_Backendless#How_to_begin_developing_applications_with_Standalone_Backendless.3f
best regards,
Alex
Hi Alex,
I changed system.redis.master.host to server IP.
I checked that port 7738 is enabled in security group.
But it’ll be an error.
Can you please confirm that the error you describe here: http://support.backendless.com/t/standalone-3-0-0-16business-logic-debugdeploy is the same? Then we would close this ticket and continue investigating the dedicated one.