Hi Harri,

I have not seen these error messages before, but I'll make some guesses:

The ElasticSearch error message "java.net.UnknownHostException:
localhost:9200" is mysterious because "localhost" is usually interpreted as
127.0.0.1. I guess you could try specifying the cassandra.url property as
127.0.0.1:8080.

The Cassandra error message "InvalidRequestException(why:You have not
logged in)" is also somewhat mysterious, since you have specified your
Cassandra username and password.  Is there any chance that those
credentials could be incorrect?

Hope that helps...

Dave

On Thu, Mar 3, 2016 at 2:28 AM Harri Wahlroos <[email protected]>
wrote:

> Hello.
>
> I have been trying to start usergrid but I keep getting stuck at starting
> tomcat7 and receiving error in catalina.out.
> I am trying to set up cassandra + lasticsearch + tomcat7, all running on
> the same local machine.
>
> I have Cassandra up and running , "nodetool status" gives me:
>
> Datacenter: datacenter1
> =======================
> Status=Up/Down
> |/ State=Normal/Leaving/Joining/Moving
> --  Address    Load       Tokens       Owns    Host ID
>                Rack
> UN  127.0.0.1  213.79 KB  256          ?
> 71462e58-4f82-4ca7-8779-9f4863dbf     fb8  rack1
>
> I have elasticsearch up and running, curl -v 127.0.0.1:9200 gives me:
>
> {
>   "name" : "node-1",
>   "cluster_name" : "elasticsearch",
>   "version" : {
>     "number" : "2.2.0",
>     "build_hash" : "8ff36d139e16f8720f2947ef62c8167a888992fe",
>     "build_timestamp" : "2016-01-27T13:32:39Z",
>     "build_snapshot" : false,
>     "lucene_version" : "5.4.1"
>   },
>   "tagline" : "You Know, for Search"
> }
> * Connection #0 to host 127.0.0.1 left intact
>
> When I try to start tomcat7 with "service tomcat7 start" I get the
> following errors in tomcat7 catalina.out logfile.
>
> *From what I can see there is an error with cassandra:*
>
> 21:25:49,876  INFO CountingConnectionPoolMonitor:194 - AddHost: localhost
> 21:25:49,876  INFO Slf4jConnectionPoolMonitorImpl:67 - HostAdded:
> localhost(127.0.0.1):9160
> 21:25:49,923  WARN Slf4jConnectionPoolMonitorImpl:31 - *BadRequestException:
> [host=localhost(127.0.0.1):9160, latency=16(38),
> attempts=1]InvalidRequestException(why:You have not logged in)*
> 21:25:49,925  WARN GuicyFigModule:352 - No property defaults file
> org/apache/usergrid/persistence/index/IndexFig.properties found for
> IndexFig.
> 21:25:49,933  WARN GuicyFigModule:352 - No property defaults file
> org/apache/usergrid/persistence/core/metrics/MetricsFig.properties found
> for MetricsFig.
>
> *And there is an error with elasticsearch:*
>
> ,879  INFO transport:93 - [node-1] bound_address {inet[
> 0.0.0.0/0.0.0.0:9301] <http://0.0.0.0/0.0.0.0:9301%5D>}, publish_address
> {inet[/XX.XXX.XXX.XXX:9301]}
> 21:25:51,892  INFO discovery:85 - [node-1]
> elasticsearch/RIaKYgv1R-yTKJ_aknZOuw
> 21:25:51,905  WARN netty:620 - [node-1] exception caught on transport
> layer [[id: 0xc1bc7fca]], closing connection
> java.net.UnknownHostException: localhost:9200
>
> I have these in my "*usergrid-deployment.properties*" located at
> */usr/share/tomcat7/lib/*
>
> usergrid.cluster_name=uzgridev
>
> cassandra.url=localhost:9160
> cassandra.cluster=CASS-1
> cassandra.username=XX
> cassandra.password=XX
>
> elasticsearch.cluster_name=elasticsearch
> elasticsearch.hosts=localhost:9200
>
> elasticsearch.embedded=false
> elasticsearch.index_prefix=usergrid
>
> Thank you for any help you can provide.
>
> *Here is the complete tomcat7 catalina.out log:*
>
> Mar 02, 2016 9:25:39 PM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["http-bio-8080"]
> Mar 02, 2016 9:25:39 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 476 ms
> Mar 02, 2016 9:25:39 PM org.apache.catalina.core.StandardService
> startInternal
> INFO: Starting service Catalina
> Mar 02, 2016 9:25:39 PM org.apache.catalina.core.StandardEngine
> startInternal
> INFO: Starting Servlet Engine: Apache Tomcat/7.0.52 (Ubuntu)
> Mar 02, 2016 9:25:39 PM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive /var/lib/tomcat7/webapps/ROOT.war
> 21:25:49,067  WARN URLConfigurationSource:120 - No URLs will be polled as
> dynamic configuration sources.
> 21:25:49,067  INFO URLConfigurationSource:121 - To enable URLs as dynamic
> configuration sources, define System property
> archaius.configurationSource.additionalUrls or make config.properties
> available on classpath.
> 21:25:49,085  INFO XmlWebApplicationContext:1376 - Bean 'serviceModule' of
> type [class org.apache.usergrid.services.guice.ServiceModuleImpl] is not
> eligible for getting processed by all BeanPostProcessors (for example: not
> eligible for auto-proxying)
> 21:25:49,762  WARN GuicyFigModule:352 - No property defaults file
> org/apache/usergrid/persistence/core/astyanax/CassandraFig.properties found
> for CassandraFig.
> 21:25:49,769  INFO DynamicPropertyFactory:281 - DynamicPropertyFactory is
> initialized with configuration sources:
> com.netflix.config.ConcurrentCompositeConfiguration@354adf28
> 21:25:49,870  INFO ConnectionPoolMBeanManager:53 - Registering mbean:
> com.netflix.MonitoredResources:type=ASTYANAX,name=ConnectionPool-Shared,ServiceType=connectionpool
> 21:25:49,876  INFO CountingConnectionPoolMonitor:194 - AddHost: localhost
> 21:25:49,876  INFO Slf4jConnectionPoolMonitorImpl:67 - HostAdded:
> localhost(127.0.0.1):9160
> 21:25:49,923  WARN Slf4jConnectionPoolMonitorImpl:31 -
> BadRequestException: [host=localhost(127.0.0.1):9160, latency=16(38),
> attempts=1]InvalidRequestException(why:You have not logged in)
> 21:25:49,925  WARN GuicyFigModule:352 - No property defaults file
> org/apache/usergrid/persistence/index/IndexFig.properties found for
> IndexFig.
> 21:25:49,933  WARN GuicyFigModule:352 - No property defaults file
> org/apache/usergrid/persistence/core/metrics/MetricsFig.properties found
> for MetricsFig.
> 21:25:49,944  WARN MetricsFactoryImpl:65 - MetricsService:Logger not
> started.
> 21:25:50,119  INFO node:139 - [node-1] version[1.4.4], pid[19438],
> build[c88f77f/2015-02-19T13:05:36Z]
> 21:25:50,120  INFO node:141 - [node-1] initializing ...
> 21:25:50,123  INFO plugins:151 - [node-1] loaded [], sites []
> 21:25:51,819  INFO node:207 - [node-1] initialized
> 21:25:51,819  INFO node:226 - [node-1] starting ...
> 21:25:51,879  INFO transport:93 - [node-1] bound_address {inet[
> 0.0.0.0/0.0.0.0:9301] <http://0.0.0.0/0.0.0.0:9301%5D>}, publish_address
> {inet[/XX.XXX.XXX.XXX:9301]}
> 21:25:51,892  INFO discovery:85 - [node-1]
> elasticsearch/RIaKYgv1R-yTKJ_aknZOuw
> 21:25:51,905  WARN netty:620 - [node-1] exception caught on transport
> layer [[id: 0xc1bc7fca]], closing connection
> java.net.UnknownHostException: localhost:9200
> at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> at java.net.Socket.connect(Socket.java:589)
> at
> org.elasticsearch.common.netty.channel.socket.oio.OioClientSocketPipelineSink.connect(OioClientSocketPipelineSink.java:109)
> at
> org.elasticsearch.common.netty.channel.socket.oio.OioClientSocketPipelineSink.eventSunk(OioClientSocketPipelineSink.java:69)
> at
> org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:574)
> at
> org.elasticsearch.common.netty.channel.Channels.connect(Channels.java:634)
> at
> org.elasticsearch.common.netty.channel.AbstractChannel.connect(AbstractChannel.java:207)
> at
> org.elasticsearch.common.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:229)
> at
> org.elasticsearch.common.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:182)
> at
> org.elasticsearch.transport.netty.NettyTransport.connectToChannelsLight(NettyTransport.java:769)
> at
> org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:737)
> at
> org.elasticsearch.transport.netty.NettyTransport.connectToNodeLight(NettyTransport.java:709)
> at
> org.elasticsearch.transport.TransportService.connectToNodeLight(TransportService.java:154)
> at
> org.elasticsearch.discovery.zen.ping.unicast.UnicastZenPing$3.run(UnicastZenPing.java:376)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
>
> Thank you for any help!
>

Reply via email to