Hi Everyone,
I’m trying to run Backendless Pro on a VirtualBox machine on Windows 10. I’ve created a ubunutu box and I installed Docker on it. Then, I followed the instructions and ran:
sudo ./backendless_install.sh
which went fine. Then, used:
sudo ./backendless_start.sh
and I noticed this error while starting:
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | ----------------------------------------
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless |
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | Play server PID 31
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | env START_MODE=play java -server -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -Xms1024m -Xmx1536m -XX:-OmitStackTraceInFastThrow -Dhttp.port=9000 -Dlogback.configurationFile=conf/logger.xml -Dorg.jboss.logging.provider=slf4j -Dconfig.file=conf/application.conf -Denv=development -Dmonitoring.port=2502 --add-modules java.se --add-exports java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.management/sun.management=ALL-UNNAMED --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED -cp "*" play.core.server.ProdServerStart
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | 11:24:23.853 [INFO] WaiterService |main| Check access to consul
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | 11:24:27.071 [INFO] WaiterService |main| Check access to 'bl.production' redis
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | 11:24:29.880 [INFO] c.b.config.ConnectionConfig |main| Default template is 'jdbc:${dialect}://${host}:${port}?zeroDateTimeBehavior=${zeroDateTimeBehavior}&&useSSL=${useSSL}&&requireSSL=${requireSSL}&&dumpQueriesOnException=${dumpQueriesOnException}&&exceptionInterceptors=${exceptionInterceptors}&&allowPublicKeyRetrieval=${allowPublicKeyRetrieval}'
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | 11:24:29.930 [INFO] WaiterService |main| Check access to main_backendless
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | 11:24:30.041 [INFO] c.b.config.ConnectionConfig |main| Connection Url template for database 'main' is 'jdbc:${dialect}://${host}:${port}?zeroDateTimeBehavior=${zeroDateTimeBehavior}&&useSSL=${useSSL}&&requireSSL=${requireSSL}&&dumpQueriesOnException=${dumpQueriesOnException}&&exceptionInterceptors=${exceptionInterceptors}&&allowPublicKeyRetrieval=${allowPublicKeyRetrieval}'
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | 11:24:30.043 [INFO] c.b.config.ConnectionConfig |main| Connection Url for database 'main' is 'jdbc:mysql://bl-mysql:3306?zeroDateTimeBehavior=convertToNull&&useSSL=false&&requireSSL=false&&dumpQueriesOnException=true&&exceptionInterceptors=com.backendless.util.jdbc.ExceptionLogInterceptor&&allowPublicKeyRetrieval=true'
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | 11:24:31.576 [INFO] WaiterService |main| Check access to mongo
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | Sep 18, 2020 11:24:33 AM com.hazelcast.config.AbstractXmlConfigHelper
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | WARNING: Name of the hazelcast schema location[http://www.hazelcast.com/schema/client-config/hazelcast-client-config-4.1.xsd] is incorrect, using default
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | Exception in thread "main" java.lang.ExceptionInInitializerError
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.backendless.inject.config.CommonInjectorConfig.configure(CommonInjectorConfig.java:154)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.google.inject.AbstractModule.configure(AbstractModule.java:61)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:344)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.google.inject.spi.Elements.getElements(Elements.java:103)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.google.inject.util.Modules$OverrideModule.configure(Modules.java:173)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.google.inject.AbstractModule.configure(AbstractModule.java:61)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:344)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.google.inject.spi.Elements.getElements(Elements.java:103)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:137)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.google.inject.Guice.createInjector(Guice.java:87)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.google.inject.Guice.createInjector(Guice.java:78)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at play.api.inject.guice.GuiceBuilder.injector(GuiceInjectorBuilder.scala:200)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at play.inject.guice.GuiceBuilder.injector(GuiceBuilder.java:211)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at play.inject.guice.GuiceApplicationBuilder.build(GuiceApplicationBuilder.java:121)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at play.inject.guice.GuiceApplicationLoader.load(GuiceApplicationLoader.java:32)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at play.api.ApplicationLoader$JavaApplicationLoaderAdapter$1.load(ApplicationLoader.scala:179)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at play.core.server.ProdServerStart$.start(ProdServerStart.scala:53)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at play.core.server.ProdServerStart$.main(ProdServerStart.scala:29)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at play.core.server.ProdServerStart.main(ProdServerStart.scala)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | Caused by: java.lang.RuntimeException: Failed to configure discovery strategies
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.hazelcast.spi.discovery.impl.DefaultDiscoveryService.loadDiscoveryStrategies(DefaultDiscoveryService.java:149)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.hazelcast.spi.discovery.impl.DefaultDiscoveryService.<init>(DefaultDiscoveryService.java:57)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.hazelcast.spi.discovery.impl.DefaultDiscoveryServiceProvider.newDiscoveryService(DefaultDiscoveryServiceProvider.java:29)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.hazelcast.client.impl.clientside.ClusterDiscoveryServiceBuilder.initDiscoveryService(ClusterDiscoveryServiceBuilder.java:246)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.hazelcast.client.impl.clientside.ClusterDiscoveryServiceBuilder.build(ClusterDiscoveryServiceBuilder.java:99)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.hazelcast.client.impl.clientside.HazelcastClientInstanceImpl.initClusterDiscoveryService(HazelcastClientInstanceImpl.java:285)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.hazelcast.client.impl.clientside.HazelcastClientInstanceImpl.<init>(HazelcastClientInstanceImpl.java:242)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.hazelcast.client.HazelcastClient.constructHazelcastClient(HazelcastClient.java:458)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.hazelcast.client.HazelcastClient.newHazelcastClientInternal(HazelcastClient.java:416)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.hazelcast.client.HazelcastClient.newHazelcastClient(HazelcastClient.java:136)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.backendless.cache.CacheManagerImpl.<clinit>(CacheManagerImpl.java:101)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | ... 20 more
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | Caused by: java.lang.RuntimeException: Could not get /var/run/secrets/kubernetes.io/serviceaccount/token
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.hazelcast.kubernetes.KubernetesConfig.readFileContents(KubernetesConfig.java:162)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.hazelcast.kubernetes.KubernetesConfig.readAccountToken(KubernetesConfig.java:140)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.hazelcast.kubernetes.KubernetesConfig.getApiToken(KubernetesConfig.java:125)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.hazelcast.kubernetes.KubernetesConfig.<init>(KubernetesConfig.java:94)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.hazelcast.kubernetes.HazelcastKubernetesDiscoveryStrategy.<init>(HazelcastKubernetesDiscoveryStrategy.java:42)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.hazelcast.kubernetes.HazelcastKubernetesDiscoveryStrategyFactory.newDiscoveryStrategy(HazelcastKubernetesDiscoveryStrategyFactory.java:64)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.hazelcast.spi.discovery.impl.DefaultDiscoveryService.buildDiscoveryStrategy(DefaultDiscoveryService.java:183)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.hazelcast.spi.discovery.impl.DefaultDiscoveryService.loadDiscoveryStrategies(DefaultDiscoveryService.java:141)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | ... 30 more
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | Caused by: java.io.FileNotFoundException: /var/run/secrets/kubernetes.io/serviceaccount/token (No such file or directory)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at java.base/java.io.FileInputStream.open0(Native Method)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | at com.hazelcast.kubernetes.KubernetesConfig.readFileContents(KubernetesConfig.java:158)
bl-swarm_bl-server.1.ibj64kjqy8xz@backendless | ... 37 more
bl-swarm_bl-server.1.sqifyto9wmc6@backendless | * Starting Name Service Cache Daemon nscd
bl-swarm_bl-server.1.sqifyto9wmc6@backendless | ...done.
bl-swarm_bl-server.1.sqifyto9wmc6@backendless |
bl-swarm_bl-server.1.sqifyto9wmc6@backendless | ----------------------------------------
bl-swarm_bl-server.1.sqifyto9wmc6@backendless | Running Play server ...
bl-swarm_bl-server.1.sqifyto9wmc6@backendless | env START_MODE=play java -server -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -Xms1024m -Xmx1536m -XX:-OmitStackTraceInFastThrow -Dhttp.port=9000 -Dlogback.configurationFile=conf/logger.xml -Dorg.jboss.logging.provider=slf4j -Dconfig.file=conf/application.conf -Denv=development -Dmonitoring.port=2502 --add-modules java.se --add-exports java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.management/sun.management=ALL-UNNAMED --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED -cp "*" play.core.server.ProdServerStart &
and I noticed that when I run:
sudo docker ps
that I’m getting this result:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5d8167678e36 backendless/bl-hazelcast:latest "/opt/backendless/st…" 18 seconds ago Up 11 seconds (health: starting) bl-swarm_bl-hazelcast.1.338jllzkj9z7jzcvooocpebrr
f8ad2e724a7d backendless/bl-server:latest "/opt/backendless/st…" 22 seconds ago Up 15 seconds (health: starting) bl-swarm_bl-server.1.l51vusnkj3qtckmjsgkdjm550
3e4672cbe3d3 backendless/bl-server:latest "/opt/backendless/st…" 30 seconds ago Up 22 seconds bl-swarm_bl-taskman.1.ktdvcrvb5o3bgcdbdui89d7ya
70c376daab7b mysql:5.7 "docker-entrypoint.s…" 14 minutes ago Up 14 minutes 3306/tcp, 33060/tcp bl-swarm_bl-mysql.1.ykpnsa6dgz58eg46zqg1mu3vr
a8b235804e14 mongo:3.4.3 "docker-entrypoint.s…" 15 minutes ago Up 15 minutes 27017/tcp bl-swarm_bl-mongo.1.kumfv0eb3uj44yxbh610ykv96
75cf80ec4207 backendless/bl-rt-server:latest "/opt/backendless/st…" 15 minutes ago Up 15 minutes (healthy) bl-swarm_bl-rt-server.1.uv2oc00vjw5lvfwvlr6ptbncw
2b2aae3cc466 backendless/bl-coderunner-java:latest "/opt/backendless/st…" 15 minutes ago Up 15 minutes (healthy) bl-swarm_bl-coderunner-java.1.rzq6rwxvyflleka19j80difdr
98b549444afc redis:4 "docker-entrypoint.s…" 15 minutes ago Up 15 minutes 6379/tcp bl-swarm_bl-redis.1.yuybdnq47dbvebt75qep1e1vr
6c6b5c61852d redis:4 "docker-entrypoint.s…" 15 minutes ago Up 15 minutes 6379/tcp bl-swarm_bl-redis-debug.1.qmyzhakl9txiqktbkm6cz1nkp
360fcea07ffc backendless/bl-web-console:latest "/opt/backendless/st…" 15 minutes ago Up 15 minutes (healthy) bl-swarm_bl-web-console.1.0qod8on1p9z934qhuynp4w9ri
dd4c0bbd876e consul:1.1.0 "docker-entrypoint.s…" 15 minutes ago Up 15 minutes 8300-8302/tcp, 8500/tcp, 8301-8302/udp, 8600/tcp, 8600/udp bl-swarm_bl-consul.1.8uj5ory2gzou3cg5gewufrkq6
7b1235c41f5b backendless/bl-coderunner-js:latest "/opt/backendless/st…" 15 minutes ago Up 15 minutes (healthy) bl-swarm_bl-coderunner-js.1.w255deylxbaq456imu24ilzt7
The top 3 containers keep crashing and restarting. Can you help? Any problem that you can spot?