Forgive me if this is something easy but I'm new to logscape. My understanding is that both the manager and the forwarder should run on port 11000. Howerver, my forwarder seems to be running on port 11003 and it can't connect to the manager so it dies.
Here's a snippet of my agent.log...
2015-03-07 19:27:15,159 ERROR main (proxy.ProxyClient) Failing to make call:interface com.liquidlabs.vso.resource.ResourceSpace.getSystemResourceId Errors:8
2015-03-07 19:27:15,298 INFO netty-reply-1-1 (proxy.PeerHandler) Failed to pass on event, srcId[DeploymentService_StartAgent32236@user-service-5syncEndPoints--1907496b:14bf5964541:-68ae-4881] destId[DeploymentService_StartAgent32236@user-service-5]
2015-03-07 19:27:16,159 INFO main (addressing.KeepOrderedAddresser) ResourceSpace/interface com.liquidlabs.vso.resource.ResourceSpace Refreshing Endpoints existingEPS:[]
2015-03-07 19:27:16,160 WARN main (vso.SpaceServiceImpl) _HA_>>>>>>>>> Trying to Refresh Endpoints for:ResourceSpace from:ProxyClient/-979051605 id:LookupSpace h:-979051605 fact:ProxyFactoryImpl@54495403 stcp://172.16.5.15:11003/?svc=SHARED&host=user-service-5&_startTime=07-Mar-15_19-26-56&udp=0 if:LookupSpace,LifeCycle,Leasor [KeepOrderedAddresser:LookupSpace/interface com.liquidlabs.vso.lookup.LookupSpace /: list[stcp://172.16.4.171:11000/?svc=LookupSpace&host=ip-172-16-4-171&_startTime=07-Mar-15_18-54-05&udp=0] badEP[] replay?:false reason:] STARTED LastUsed:07-Mar-15 19:27:14,155 LastSync:07-Mar-15 19:27:05,273 LastRefresh:
2015-03-07 19:27:16,162 WARN main (vso.SpaceServiceImpl) _HA_<<<<<<<<< Given EPS:[stcp://172.16.4.171:11003/?svc=SHARED&host=ip-172-16-4-171&_startTime=07-Mar-15_18-54-01&udp=0]
at com.liquidlabs.transport.netty.NettySenderImpl.start(NettySenderImpl.java:198)
at com.liquidlabs.transport.netty.NettyPoolingSenderFactory.getSender(NettyPoolingSenderFactory.java:110)
at com.liquidlabs.transport.netty.NettySenderFactoryProxy.getSender(NettySenderFactoryProxy.java:102)
at com.liquidlabs.transport.netty.NettySenderFactoryProxy.send(NettySenderFactoryProxy.java:53)
... 12 more
2015-03-07 19:27:17,163 ERROR main (proxy.ProxyClient) Failing to make call:interface com.liquidlabs.vso.resource.ResourceSpace.getSystemResourceId Errors:9
Once you have a Logscape manager running you can use the configure script to have any new agents set up for you.
On your forwarder navigate to the "logscape/scripts" directory, where you'll see the configure.sh and configure.bat, execute whichever is appropriate for your system, and you'll be prompted for answers to a few questions, once complete your agent will be configured and can be started in the normal way.
I ran the configure.sh file and didn't specify a port (Just hit enter for the default 11000 port) and I'm still getting the error above. I double checked and I can connect to the Manager server on port 11000.
[root@user-service-3 ~]# cd /usr/local/logscape/scripts/
[root@user-service-3 scripts]# ./configure.sh
** Run from logscape/scripts: i.e. >./configure.sh **
Welcome to the LogScape Installer
---------------------------------
Which type/role of agent would you like to configure?
1. dev.Management (Runs Management Services and WebConsole on default port:8080) (includes:SocketServer,IndexStore,SysLogServer)
2. dev.Forwarder (Forward to Manager OR dedicated IndexStore instance)
3. dev.IndexStore (Receive forwarded data streams) - already run on Management node)
4. dev.Indexer (Index & Search)
5. dev.Failover (Run Failover instance - manual config of boot.properties needed)
(1-5) or enter another role <zone>.<subzone>.<role> (ending with Server or Indexer)? :2
General Configuration
---------------------
What is the Hostname/IpAddress where the LogScape Management is running: 172.16.4.171
Enter the Management port [Enter to accept 11000]?
Proceeding with Network connectivity check....
Opening Server:user-service-3.localdomain:11000
--------------------- Values Entered ------
AgentType:dev.Forwarder
WebPort:8080
Management:172.16.4.171:11000
Creating back-up of setup.conf
logscape_home=/usr/local/logscape
Run from >logscape/scripts: i.e. ./configure.sh
Working Dir:./..
Using Config:etc/setup.conf
Path:boot.properties:etc/logscape-service-x86.ini:etc/logscape-service-x64.ini:conf/agent.conf:conf/lookup.conf:logscape.sh:logscape.bat
The Logscape Agent can now be started using 'logscape.sh start' Credentials: (admin/ll4bs)
Actually, I just realized that the Forwarder is just trying to connect to the Manager on the wrong port. I just don't know how it determines to use port 11003 even after I select 11000 when running the config.sh
Hi Nathen, Thank you for the reply. When I log into my manager I don't see the forwarder listed because when I start the forwarded it tries to connect on port 11003 (or at least that is what it seems like from the error below - maybe I'm reading it wrong).
Manager IP: 172.16.4.171 Forwarder: 172.16.5.25
Here's a snippet of the agent.log file...
2015-03-27 15:38:16,807 WARN main (vso.SpaceServiceImpl) _HA_>>>>>>>>> Trying to Refresh Endpoints for:ResourceSpace from:ProxyClient/-979051605 id:LookupSpace h:-979051605 fact:ProxyFactoryImpl@54495403 stcp://172.16.5.25:11003/?svc=SHARED&host=invoice-service-3&_startTime=27-Mar-15_15-38-07&udp=0 if:LookupSpace,LifeCycle,Leasor [KeepOrderedAddresser:LookupSpace/interface com.liquidlabs.vso.lookup.LookupSpace /: list[stcp://172.16.4.171:11000/?svc=LookupSpace&host=ip-172-16-4-171&_startTime=07-Mar-15_18-54-05&udp=0] badEP[] replay?:false reason:] STARTED LastUsed:27-Mar-15 15:38:14,802 LastSync: LastRefresh: 2015-03-27 15:38:16,809 WARN main (vso.SpaceServiceImpl) _HA_<<<<<<<<< Given EPS:[stcp://172.16.4.171:11003/?svc=SHARED&host=ip-172-16-4-171&_startTime=07-Mar-15_18-54-01&udp=0] 2015-03-27 15:38:17,310 WARN main (netty.NettySenderFactoryProxy) Sender[noSender] Ex[ChannelFuture.connectFailed:stcp://172.16.4.171:11003/?svc=SHARED&host=ip-172-16-4-171&_startTime=07-Mar-15_18-54-01&udp=0] Stats[NettySendFactory senderPool:2 live:0 allSenders:2] URI[stcp://172.16.4.171:11003/?svc=SHARED&host=ip-172-16-4-171&_startTime=07-Mar-15_18-54-01&udp=0] Info[getSystemResourceId] LiveConnections:0 2015-03-27 15:38:17,811 WARN main (proxy.ProxyClient) RetryException:stcp://172.16.4.171:11003/?svc=SHARED&host=ip-172-16-4-171&_startTime=07-Mar-15_18-54-01&udp=0 ex:com.liquidlabs.transport.proxy.RetryInvocationException: SendFailed.Throwable:noSender com.liquidlabs.transport.proxy.RetryInvocationException: SendFailed.Throwable:noSender at com.liquidlabs.transport.netty.NettySenderFactoryProxy.send(NettySenderFactoryProxy.java:95) at com.liquidlabs.transport.netty.NettyEndPoint.send(NettyEndPoint.java:96) at com.liquidlabs.transport.proxy.PeerHandler.send(PeerHandler.java:380) at com.liquidlabs.transport.proxy.ProxyClient.sendInvocation(ProxyClient.java:548) at com.liquidlabs.transport.proxy.ProxyClient.clientExecute(ProxyClient.java:501) at com.liquidlabs.transport.proxy.ProxyClient.sendWithRetry(ProxyClient.java:460) at com.liquidlabs.transport.proxy.ProxyClient.invoke(ProxyClient.java:219) at com.sun.proxy.$Proxy8.getSystemResourceId(Unknown Source) at com.liquidlabs.vso.agent.ResourceAgentImpl.getSystemResourceId(ResourceAgentImpl.java:403) at com.liquidlabs.vso.agent.ResourceAgentImpl.start(ResourceAgentImpl.java:168) at com.liquidlabs.vso.VSOMain.startAgent(VSOMain.java:318) at com.liquidlabs.vso.VSOMain.agent(VSOMain.java:199) at com.liquidlabs.vso.VSOMain.main(VSOMain.java:131) Caused by: java.lang.RuntimeException: ChannelFuture.connectFailed:stcp://172.16.4.171:11003/?svc=SHARED&host=ip-172-16-4-171&_startTime=07-Mar-15_18-54-01&udp=0 at com.liquidlabs.transport.netty.NettySenderImpl.start(NettySenderImpl.java:198) at com.liquidlabs.transport.netty.NettyPoolingSenderFactory.getSender(NettyPoolingSenderFactory.java:110) at com.liquidlabs.transport.netty.NettySenderFactoryProxy.getSender(NettySenderFactoryProxy.java:102) at com.liquidlabs.transport.netty.NettySenderFactoryProxy.send(NettySenderFactoryProxy.java:53) ... 12 more
I am running java 1.8.0_25. I know your site says it doesn't work on java 8 but I actually installed it on another system running java 8 and it just worked.
Hi Nathen,
Thank you SOOO much for your help. The issue I was having was that I only had port 11000 opened on both the manager and the forwarder. Once I opened 11000-11100 on both it started working. BTW, I'm running on java 1.8 and it seems to work