AW: AssertionError on PasswordAuthenticator
Hi, thanks, that was the issue. I got distracted from too much debugging, when I hunted down Usergrid username/password instead of Cassandra Username/Password. This way I overlooked the error in simply copying the config file from the link that Nate pointed to. One closer look would have sufficed. Thanks for your support anyway. Best, Andreas Von: Nate McCall [mailto:n...@thelastpickle.com] Gesendet: Montag, 27. Juli 2015 23:36 An: Cassandra Users Betreff: Re: AssertionError on PasswordAuthenticator Any ideas what might be wrong or which prerequisites need to be met? This is the first request for a connection. Sam makes a good point. Make sure you have the username and password properties set in the configuration file: https://github.com/apache/incubator-usergrid/blob/master/stack/config/src/main/resources/usergrid-default.properties#L52-L53 See this page for details on configuration: http://usergrid.readthedocs.org/en/latest/deploy-local.html#install-and-configure-cassandra For Usergrid specific questions, feel free to stop by our mail list or IRC channel both of which are listed here: http://usergrid.incubator.apache.org/community/ -- - Nate McCall Austin, TX @zznate Co-Founder & Sr. Technical Consultant Apache Cassandra Consulting http://www.thelastpickle.com
Re: AssertionError on PasswordAuthenticator
> > > Any ideas what might be wrong or which prerequisites need to be met? This > is the first request for a connection. > > > Sam makes a good point. Make sure you have the username and password properties set in the configuration file: https://github.com/apache/incubator-usergrid/blob/master/stack/config/src/main/resources/usergrid-default.properties#L52-L53 See this page for details on configuration: http://usergrid.readthedocs.org/en/latest/deploy-local.html#install-and-configure-cassandra For Usergrid specific questions, feel free to stop by our mail list or IRC channel both of which are listed here: http://usergrid.incubator.apache.org/community/ -- - Nate McCall Austin, TX @zznate Co-Founder & Sr. Technical Consultant Apache Cassandra Consulting http://www.thelastpickle.com
Re: AssertionError on PasswordAuthenticator
I don't know Usergrid at all, but the error can be reproduced with cqlsh by supplying an empty string for the username, e.g bin/cqlsh -u "" -p cassandra So I guess something in Usergrid is not setting it correctly. On Sat, Jul 25, 2015 at 5:22 PM, Andreas Schlüter < dr.andreas.schlue...@gmx.de> wrote: > Hi, > > > > I am starting to setup Usergrid on Cassandra, but I run into an issue that > I debugged into and which does not seem to be related to Usergrid or my > setup, since I run into an AssertionError (which should never happen > according to the comment in the Cassandra Code, and which I don’t see how > to avoid from the client side). > > When I do a Login from Usergrid via thrift, I get the following > stacktrace: (Cassandra Version is 2.08, I used the standard > username/password cassandra/cassandra to exclude errors here) > > > > ERROR [Thrift:16] 2015-07-25 15:02:32,480 CassandraDaemon.java (line 199) > Exception in thread Thread[Thrift:16,5, > > main] > > java.lang.AssertionError: > org.apache.cassandra.exceptions.InvalidRequestException: Key may not be > empty > > at > org.apache.cassandra.auth.PasswordAuthenticator.authenticate(PasswordAuthenticator.java:117) > > at > org.apache.cassandra.thrift.CassandraServer.login(CassandraServer.java:1471) > > at > org.apache.cassandra.thrift.Cassandra$Processor$login.getResult(Cassandra.java:3505) > > at > org.apache.cassandra.thrift.Cassandra$Processor$login.getResult(Cassandra.java:3489) > > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > > at > org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:201 > > ) > > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > > at java.lang.Thread.run(Thread.java:745) > > Caused by: org.apache.cassandra.exceptions.InvalidRequestException: Key > may not be empty > > at > org.apache.cassandra.cql3.QueryProcessor.validateKey(QueryProcessor.java:120) > > at > org.apache.cassandra.cql3.statements.SelectStatement.getSliceCommands(SelectStatement.java:344) > > at > org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:206) > > at > org.apache.cassandra.auth.PasswordAuthenticator.authenticate(PasswordAuthenticator.java:110) > > > > Any ideas what might be wrong or which prerequisites need to be met? This > is the first request for a connection. > > > > Help would be greatly appreciated, I tried everything I could come up with > supported by Google… > > > > Thanks in advance, > > Andreas >
AssertionError on PasswordAuthenticator
Hi, I am starting to setup Usergrid on Cassandra, but I run into an issue that I debugged into and which does not seem to be related to Usergrid or my setup, since I run into an AssertionError (which should never happen according to the comment in the Cassandra Code, and which I dont see how to avoid from the client side). When I do a Login from Usergrid via thrift, I get the following stacktrace: (Cassandra Version is 2.08, I used the standard username/password cassandra/cassandra to exclude errors here) ERROR [Thrift:16] 2015-07-25 15:02:32,480 CassandraDaemon.java (line 199) Exception in thread Thread[Thrift:16,5, main] java.lang.AssertionError: org.apache.cassandra.exceptions.InvalidRequestException: Key may not be empty at org.apache.cassandra.auth.PasswordAuthenticator.authenticate(PasswordAuthent icator.java:117) at org.apache.cassandra.thrift.CassandraServer.login(CassandraServer.java:1471) at org.apache.cassandra.thrift.Cassandra$Processor$login.getResult(Cassandra.ja va:3505) at org.apache.cassandra.thrift.Cassandra$Processor$login.getResult(Cassandra.ja va:3489) at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(Custom TThreadPoolServer.java:201 ) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11 45) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6 15) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.cassandra.exceptions.InvalidRequestException: Key may not be empty at org.apache.cassandra.cql3.QueryProcessor.validateKey(QueryProcessor.java:120 ) at org.apache.cassandra.cql3.statements.SelectStatement.getSliceCommands(Select Statement.java:344) at org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement .java:206) at org.apache.cassandra.auth.PasswordAuthenticator.authenticate(PasswordAuthent icator.java:110) Any ideas what might be wrong or which prerequisites need to be met? This is the first request for a connection. Help would be greatly appreciated, I tried everything I could come up with supported by Google Thanks in advance, Andreas