Hello,
I'm having troubles to start multiple servers like in the documentation (https://documentation.progress.com/output/rb/doc/index.html#page/rb%2Fdistributing-load-with-nginx-and-tomcat.html%23)
I'm on Ubuntu-server 16.04 LTS
I can run a standalone rollbase againt mysl database with only master.war, router.war, rest.war and webapi.war without problems (or all components for other tests)
I wan't to add a production server, so I put the prod1.war in an other server, call it PROD1 in the node-config.json but it never join the master, rb-system.log put "Blocking initialization"
I don't know how to do.
This is my node-config.json
Yes I saw, but it's not that.
It seems to be related to the webproxy parameter.
When I delete tis entry the server master start normally
Please provide web proxy value like below.
"webProxies" : [{ "url": "http://192.168.1.100:9080" } ]
Thanks
Srinivas
Ok this is helpfull.
now I can join the nginx server but I have this error : java.net.SocketTimeoutException: Read timed out
On the nginx server i have this error :
2018/08/29 07:50:12 [error] 6#6: can not initialize jvm memory util
2018/08/29 07:50:12 [error] 6#6: jvm start times 2
2018/08/29 07:50:16 [alert] 1#1: worker process 6 exited with fatal code 2 and cannot be respawned
2018/08/29 07:50:16 [alert] 1#1: worker process 7 exited with fatal code 2 and cannot be respawned
Exception in thread "main" Exception in thread "main" java.lang.NoClassDefFoundError: nginx/clojure/MiniConstantsjava.lang.NoClassDefFoundError: nginx/clojure/MiniConstants
Could you please check jvm_path value is correct in nginx-jvm.conf file?
Please refer below documentation
documentation.progress.com/.../index.html
I followed this doc :
jvm_path '/usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so';
jvm_classpath '/opt/nginx/lib/*';
Ok nginx works, but in rollbase I have this error now :
9-Aug-2018 08:51:49 INFO Log:95 - NGINX add config payload
{"entries":[{"hostName":"192.168.1.10","port":8080,"componentType":"WEBAPI","componentName":"WEBAPI"}]}
29-Aug-2018 08:51:49 INFO Log:95 - Sending add config to 1 NGINX servers
29-Aug-2018 08:51:49 ERROR Log:97 - Exception during NGINX topology update on Name: 192.168.1.100:9080, URL: http://192.168.1.100:9080 via HTTP method PUT, body
params null
com.rb.util.web.WebException: Unauthorized
GREAT GREAT GREAT.
Thank you so much.
It finally works.
Just a little pb on the login page, i'm redirected to mydomain.comrouter/login/login.jsp on first time, i have to put manually the slash before router and it works
Ok i found the pb, it's in my node-config.json.
All work fine for me. I can go ahead to test it.
Thank you for your patience
Best regards
David
Dear Srinivas,
I have a last error, in the console panel, my PROD1 server show
192.168.1.20:8080[Error getting sessions from remote server]
any idea ?
This is the servers list :
and catalina.log :
29-Aug-2018 12:43:26.003 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'URIEnrocding' to 'UTF-8' didnot find a matching property.29-Aug-2018 12:43:26.209 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.3329-Aug-2018 12:43:26.210 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Aug 12 2018 08:20:08 UTC29-Aug-2018 12:43:26.210 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.33.029-Aug-2018 12:43:26.210 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux29-Aug-2018 12:43:26.211 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.9.93-linuxkit-aufs29-Aug-2018 12:43:26.211 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd6429-Aug-2018 12:43:26.211 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-8-oracle/jre29-Aug-2018 12:43:26.212 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_181-b1329-Aug-2018 12:43:26.212 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation29-Aug-2018 12:43:26.212 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /usr/local/tomcat29-Aug-2018 12:43:26.212 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/local/tomcat29-Aug-2018 12:43:26.214 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties29-Aug-2018 12:43:26.218 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager29-Aug-2018 12:43:26.220 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=204829-Aug-2018 12:43:26.220 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources29-Aug-2018 12:43:26.221 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=002729-Aug-2018 12:43:26.221 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=29-Aug-2018 12:43:26.222 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat29-Aug-2018 12:43:26.222 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat29-Aug-2018 12:43:26.222 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp29-Aug-2018 12:43:26.223 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]29-Aug-2018 12:43:27.222 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]29-Aug-2018 12:43:27.287 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read29-Aug-2018 12:43:27.313 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]29-Aug-2018 12:43:27.334 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read29-Aug-2018 12:43:27.334 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 3302 ms29-Aug-2018 12:43:27.432 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]29-Aug-2018 12:43:27.434 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.3329-Aug-2018 12:43:27.539 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/usr/local/tomcat/webapps/prod1.war]29-Aug-2018 12:43:29.996 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for thislogger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.29-Aug-2018 12:43:34.230 INFO [localhost-startStop-1] com.hazelcast.instance.AddressPicker.null [LOCAL] [rb_global] [3.10] Interfaces is disabled, trying to pick one address from TCP-IP config addresses: [192.168.1.10, 192.168.1.20, 192.168.50.21]29-Aug-2018 12:43:34.231 INFO [localhost-startStop-1] com.hazelcast.instance.AddressPicker.null [LOCAL] [rb_global] [3.10] Prefer IPv4 stack is true.29-Aug-2018 12:43:34.255 INFO [localhost-startStop-1] com.hazelcast.instance.AddressPicker.null [LOCAL] [rb_global] [3.10] Picked [192.168.1.20]:5701, using socket ServerSocket[addr=/192.168.1.20,localport=5701], bind any local is false29-Aug-2018 12:43:34.294 INFO [localhost-startStop-1] com.hazelcast.system.null [192.168.1.20]:5701 [rb_global] [3.10] Hazelcast 3.10 (20180424 - d9afa99) starting at [192.168.1.20]:570129-Aug-2018 12:43:34.305 INFO [localhost-startStop-1] com.hazelcast.system.null [192.168.1.20]:5701 [rb_global] [3.10] Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved.29-Aug-2018 12:43:34.306 INFO [localhost-startStop-1] com.hazelcast.system.null [192.168.1.20]:5701 [rb_global] [3.10] Configured Hazelcast Serialization version: 129-Aug-2018 12:43:34.307 INFO [localhost-startStop-1] com.hazelcast.instance.Node.null [192.168.1.20]:5701 [rb_global] [3.10] A non-empty group password is configured for the Hazelcast member. Starting with Hazelcast version 3.8.2, members with the same group name, but with different group passwords (that do not use authentication) form a cluster. The group password configuration will be removed completely in a future release.29-Aug-2018 12:43:35.372 INFO [localhost-startStop-1] com.hazelcast.spi.impl.operationservice.impl.BackpressureRegulator.null [192.168.1.20]:5701 [rb_global] [3.10] Backpressure is disabled29-Aug-2018 12:43:35.424 INFO [localhost-startStop-1] com.hazelcast.spi.impl.operationservice.impl.InboundResponseHandlerSupplier.null [192.168.1.20]:5701 [rb_global] [3.10] Running with 2 response threads29-Aug-2018 12:43:37.512 INFO [localhost-startStop-1] com.hazelcast.instance.Node.null [192.168.1.20]:5701 [rb_global] [3.10] Creating TcpIpJoiner29-Aug-2018 12:43:38.235 INFO [localhost-startStop-1] com.hazelcast.spi.impl.operationexecutor.impl.OperationExecutorImpl.null [192.168.1.20]:5701 [rb_global] [3.10] Starting 2 partition threads and 3 generic threads (1 dedicated for priority tasks)29-Aug-2018 12:43:38.238 INFO [localhost-startStop-1] com.hazelcast.internal.diagnostics.Diagnostics.null [192.168.1.20]:5701 [rb_global] [3.10] Diagnostics disabled. To enable add -Dhazelcast.diagnostics.enabled=true to the JVM arguments.29-Aug-2018 12:43:38.266 INFO [localhost-startStop-1] com.hazelcast.core.LifecycleService.null [192.168.1.20]:5701 [rb_global] [3.10] [192.168.1.20]:5701 is STARTING29-Aug-2018 12:43:38.353 INFO [hz.rb_global.cached.thread-3] com.hazelcast.nio.tcp.TcpIpConnector.null [192.168.1.20]:5701 [rb_global] [3.10] Connecting to /192.168.50.21:5701, timeout: 0, bind-any: true29-Aug-2018 12:43:38.364 INFO [hz.rb_global.cached.thread-2] com.hazelcast.nio.tcp.TcpIpConnector.null [192.168.1.20]:5701 [rb_global] [3.10] Connecting to /192.168.1.10:5701, timeout: 0, bind-any: true29-Aug-2018 12:43:38.373 INFO [hz.rb_global.cached.thread-2] com.hazelcast.nio.tcp.TcpIpConnectionManager.null [192.168.1.20]:5701 [rb_global] [3.10] Established socket connection between /192.168.1.20:60307 and /192.168.1.10:570129-Aug-2018 12:43:38.413 INFO [hz.rb_global.IO.thread-Acceptor] com.hazelcast.nio.tcp.TcpIpAcceptor.null [192.168.1.20]:5701 [rb_global] [3.10] Accepting socket connection from /192.168.1.10:5921129-Aug-2018 12:43:38.413 INFO [hz.rb_global.IO.thread-Acceptor] com.hazelcast.nio.tcp.TcpIpConnectionManager.null [192.168.1.20]:5701 [rb_global] [3.10] Established socket connection between/192.168.1.20:5701 and /192.168.1.10:5921129-Aug-2018 12:43:51.406 INFO [hz.rb_global.generic-operation.thread-1] com.hazelcast.system.null [192.168.1.20]:5701 [rb_global] [3.10] Cluster version set to 3.1029-Aug-2018 12:43:51.409 INFO [hz.rb_global.generic-operation.thread-1] com.hazelcast.internal.cluster.ClusterService.null [192.168.1.20]:5701 [rb_global] [3.10]
Members {size:2, ver:2} [ Member [192.168.1.10]:5701 - a5f4024a-e535-49f1-a34f-87f796a1ed3b Member [192.168.1.20]:5701 - b27b5bc1-4b90-40aa-b366-e91b57d2a6aa this]
29-Aug-2018 12:43:52.492 INFO [localhost-startStop-1] com.hazelcast.internal.jmx.ManagementService.null [192.168.1.20]:5701 [rb_global] [3.10] Hazelcast JMX agent enabled.29-Aug-2018 12:43:52.601 INFO [localhost-startStop-1] com.hazelcast.core.LifecycleService.null [192.168.1.20]:5701 [rb_global] [3.10] [192.168.1.20]:5701 is STARTED29-Aug-2018 12:43:59.357 INFO [hz.rb_global.cached.thread-3] com.hazelcast.nio.tcp.TcpIpConnector.null [192.168.1.20]:5701 [rb_global] [3.10] Could not connect to: /192.168.50.21:5701. Reason: SocketException[Connection refused to address /192.168.50.21:5701]29-Aug-2018 12:44:37.944 INFO [localhost-startStop-1] com.hazelcast.instance.AddressPicker.null [LOCAL] [PROD1] [3.10] Interfaces is disabled, trying to pick one address from TCP-IP config addresses: [192.168.1.21, 192.168.1.20]29-Aug-2018 12:44:37.954 INFO [localhost-startStop-1] com.hazelcast.instance.AddressPicker.null [LOCAL] [PROD1] [3.10] Prefer IPv4 stack is true.29-Aug-2018 12:44:37.954 INFO [localhost-startStop-1] com.hazelcast.instance.AddressPicker.null [LOCAL] [PROD1] [3.10] Picked [192.168.1.20]:5703, using socket ServerSocket[addr=/192.168.1.20,localport=5703], bind any local is false29-Aug-2018 12:44:37.956 INFO [localhost-startStop-1] com.hazelcast.system.null [192.168.1.20]:5703 [PROD1] [3.10] Hazelcast 3.10 (20180424 - d9afa99) starting at [192.168.1.20]:570329-Aug-2018 12:44:37.956 INFO [localhost-startStop-1] com.hazelcast.system.null [192.168.1.20]:5703 [PROD1] [3.10] Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved.29-Aug-2018 12:44:37.956 INFO [localhost-startStop-1] com.hazelcast.system.null [192.168.1.20]:5703 [PROD1] [3.10] Configured Hazelcast Serialization version: 129-Aug-2018 12:44:37.957 INFO [localhost-startStop-1] com.hazelcast.instance.Node.null [192.168.1.20]:5703 [PROD1] [3.10] A non-empty group password is configured for the Hazelcast member. Starting with Hazelcast version 3.8.2, members with the same group name, but with different group passwords (that do not use authentication) form a cluster. The group password configuration will be removed completely in a future release.29-Aug-2018 12:44:37.996 INFO [localhost-startStop-1] com.hazelcast.spi.impl.operationservice.impl.BackpressureRegulator.null [192.168.1.20]:5703 [PROD1] [3.10] Backpressure is disabled29-Aug-2018 12:44:37.997 INFO [localhost-startStop-1] com.hazelcast.spi.impl.operationservice.impl.InboundResponseHandlerSupplier.null [192.168.1.20]:5703 [PROD1] [3.10] Running with 2 response threads29-Aug-2018 12:44:38.006 INFO [localhost-startStop-1] com.hazelcast.instance.Node.null [192.168.1.20]:5703 [PROD1] [3.10] Creating TcpIpJoiner29-Aug-2018 12:44:38.056 INFO [localhost-startStop-1] com.hazelcast.spi.impl.operationexecutor.impl.OperationExecutorImpl.null [192.168.1.20]:5703 [PROD1] [3.10] Starting 2 partition threadsand 3 generic threads (1 dedicated for priority tasks)29-Aug-2018 12:44:38.060 INFO [localhost-startStop-1] com.hazelcast.internal.diagnostics.Diagnostics.null [192.168.1.20]:5703 [PROD1] [3.10] Diagnostics disabled. To enable add -Dhazelcast.diagnostics.enabled=true to the JVM arguments.29-Aug-2018 12:44:38.061 INFO [localhost-startStop-1] com.hazelcast.core.LifecycleService.null [192.168.1.20]:5703 [PROD1] [3.10] [192.168.1.20]:5703 is STARTING29-Aug-2018 12:44:38.099 INFO [hz.PROD1.cached.thread-2] com.hazelcast.nio.tcp.TcpIpConnector.null [192.168.1.20]:5703 [PROD1] [3.10] Connecting to /192.168.1.21:5703, timeout: 0, bind-any: true29-Aug-2018 12:44:41.236 INFO [hz.PROD1.cached.thread-2] com.hazelcast.nio.tcp.TcpIpConnector.null [192.168.1.20]:5703 [PROD1] [3.10] Could not connect to: /192.168.1.21:5703. Reason: SocketException[No route to host to address /192.168.1.21:5703]29-Aug-2018 12:44:41.237 INFO [hz.PROD1.cached.thread-2] com.hazelcast.cluster.impl.TcpIpJoiner.null [192.168.1.20]:5703 [PROD1] [3.10] [192.168.1.21]:5703 is added to the blacklist.29-Aug-2018 12:44:42.097 INFO [localhost-startStop-1] com.hazelcast.system.null [192.168.1.20]:5703 [PROD1] [3.10] Cluster version set to 3.1029-Aug-2018 12:44:42.097 INFO [localhost-startStop-1] com.hazelcast.internal.cluster.ClusterService.null [192.168.1.20]:5703 [PROD1] [3.10]
Members {size:1, ver:1} [ Member [192.168.1.20]:5703 - be5451a0-2caa-473a-85ec-055912eb9505 this]
29-Aug-2018 12:44:42.101 INFO [localhost-startStop-1] com.hazelcast.internal.jmx.ManagementService.null [192.168.1.20]:5703 [PROD1] [3.10] Hazelcast JMX agent enabled.29-Aug-2018 12:44:42.108 INFO [localhost-startStop-1] com.hazelcast.core.LifecycleService.null [192.168.1.20]:5703 [PROD1] [3.10] [192.168.1.20]:5703 is STARTED29-Aug-2018 12:44:45.315 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/usr/local/tomcat/webapps/prod1.war] has finished in [77,773] ms29-Aug-2018 12:44:45.329 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]29-Aug-2018 12:44:45.351 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]29-Aug-2018 12:44:45.355 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 78019 ms29-Aug-2018 12:45:36.673 INFO [http-nio-8080-exec-1] com.hazelcast.internal.partition.impl.PartitionStateManager.null [192.168.1.20]:5703 [PROD1] [3.10] Initializing cluster partition table arrangement...29-Aug-2018 12:45:53.234 INFO [hz.rb_global.InvocationMonitorThread] com.hazelcast.spi.impl.operationservice.impl.InvocationMonitor.null [192.168.1.20]:5701 [rb_global] [3.10] Invocations:2 timeouts:1 backup-timeouts:029-Aug-2018 12:46:45.233 INFO [hz.rb_global.InvocationMonitorThread] com.hazelcast.spi.impl.operationservice.impl.InvocationMonitor.null [192.168.1.20]:5701 [rb_global] [3.10] Invocations:1 timeouts:1 backup-timeouts:0
Ok. I see. I expose my port but it seems it didn't work. I'm on docker for testing prupose.
I'll try in an other environnement in order to have more features to diagnose firewall, ...
Thanks a lot.
Regards