Hi Dave!

Im using Ubuntu 14.04
Sorry, the end of my message was cut off.

*Curl -v localhost:9200 is now:*

< HTTP/1.1 200 OK
< Content-Type: application/json; charset=UTF-8
< Content-Length: 334
<
{
  "status" : 200,
  "name" : "node-1",
  "cluster_name" : "elasticsearch",
  "version" : {
    "number" : "1.4.4",
    "build_hash" : "c88f77ffc81301dfa9dfd81ca2232f09588bd512",
    "build_timestamp" : "2015-02-19T13:05:36Z",
    "build_snapshot" : false,
    "lucene_version" : "4.10.3"
  },
  "tagline" : "You Know, for Search"
}


*My /etc/hosts*

127.0.0.1                          localhost.localdomain localhost
127.0.1.1                          ubuntu localhost
XX.XXX.XXX.XXX           uzgridev

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Thank you very much for your help and guidance!

-Harri


On Thu, Mar 10, 2016 at 12:18 AM, Dave <[email protected]> wrote:

> Hi Harri,
>
> You said "This is the output of curl -v localhost:9200 now" but I don't
> see the output in your email.
>
> What operating system are you running on? If you're on a Mac you may want
> to try a reboot, I've had weird ES connectivity problems on Mac that have
> been resolved by a reboot.
>
> The unknown host message for localhost is confounding. I wonder what that
> could mean. Do you have localhost defined as 127.0.0.1 in your /etc/hosts
> file?
>
> Another alternative for running Usergrid locally is Usergrid-Vagrant:
> https://github.com/snoopdave/usergrid-vagrant
>
> Installing Usergrid can be a pain, but we'll get there!
>
> Hope that helps...
>
> Dave
>
>
> On Wed, Mar 9, 2016 at 4:30 PM Harri Wahlroos <[email protected]>
> wrote:
>
>> Hey!
>>
>> I was able to fix the "not logged in" issue by using Cassandra v.2.1.13
>> with Usergrid v.2.1.1
>> I also installed Elasticsearch v.1.4.4, but I still see this error in my
>> catalina.out:
>>
>> 23:24:04,858  INFO node:139 - [default] version[1.4.4], pid[9454],
>> build[c88f77f/2015-02-19T13:05:36Z]
>> 23:24:04,859  INFO node:141 - [default] initializing ...
>> 23:24:04,862  INFO plugins:151 - [default] loaded [], sites []
>> 23:24:06,311  INFO node:207 - [default] initialized
>> 23:24:06,311  INFO node:226 - [default] starting ...
>> 23:24:06,342  INFO transport:93 - [default] 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]}
>> 23:24:06,350  INFO discovery:85 - [default]
>> elasticsearch/DU7wUDZPRSik1Z2-c_9H6Q
>> 23:24:06,368  WARN netty:620 - [default] exception caught on transport
>> layer [[id: 0x118161fc]], 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)
>>
>> Any thoughts as to what I might try next? Are these outputs correct:
>> 23:24:04,859  INFO node:141 - [default] initializing ...
>> 23:24:04,862  INFO plugins:151 - [default] loaded [], sites []
>> 23:24:06,311  INFO node:207 - [default] initialized
>> 23:24:06,311  INFO node:226 - [default] starting ...
>>
>> This is the output of curl -v localhost:9200 now:
>>
>>
>> On Wed, Mar 9, 2016 at 2:34 PM, Dave <[email protected]> wrote:
>>
>>> Usergrid is known to work with Cassandra 1.2.x and 2.1.x, but I don't
>>> think it has been tested with 3.x.  I would recommend trying Cassandra
>>> 2.1.x to see if it solves this "not logged in" problem.
>>>
>>> Dave
>>>
>>>
>>> On Wed, Mar 9, 2016 at 6:55 AM Harri Wahlroos <[email protected]>
>>> wrote:
>>>
>>>> Hi Dave, thanks for your help!
>>>>
>>>> I downloaded the v.2.1.1 version and tried to "mvn clean install", but
>>>> I got the same error during build:
>>>>
>>>> "InvalidRequestException(why:You have not logged in)"
>>>>
>>>> What version of Cassandra should I be using with v.2.1.1 usergrid? I
>>>> have 3.0.3 Cassandra installed.
>>>>
>>>> Thanks,
>>>> Harri
>>>>
>>>>
>>>> On Tue, Mar 8, 2016 at 11:58 PM, Dave <[email protected]> wrote:
>>>>
>>>>> Hi Harri,
>>>>>
>>>>> Two other points:
>>>>>
>>>>> For ElasticSearch: it appears that you are running ElasticSearch
>>>>> v2.2.0 but Usergrid requires v1.4.4.  I hope we can allow Usergrid to be
>>>>> less sensitive to ElasticSearch versions in the future (by using the
>>>>> ElasticSearch transport client) but for now we need v1.4.4.
>>>>>
>>>>> For Cassandra: thanks to you we just found a fixed a bug that was
>>>>> causing Cassandra logins to fail.  We will get this fix into the next
>>>>> Usergrid release. For now, you could help us out by testing the code in 
>>>>> the
>>>>> Usergrid release-2.1.1 branch.  Build instructions are here ->
>>>>> https://github.com/apache/usergrid/blob/master/stack/README.md
>>>>>
>>>>> Thanks,
>>>>> Dave
>>>>>
>>>>>
>>>>> On Mon, Mar 7, 2016 at 6:50 PM Dave <[email protected]> wrote:
>>>>>
>>>>>> 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