cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitaly Pecharsky (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-935) login() request via Thrift/PHP fails with "Unexpected authentication problem" in cassandra log / "Internal error processing login" in Thrift
Date Tue, 30 Mar 2010 20:40:27 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12851574#action_12851574
] 

Vitaly Pecharsky commented on CASSANDRA-935:
--------------------------------------------

Running cassandra with "bin/cassandra -f -Dpasswd.properties=conf/passwd.properties -Daccess.properties=conf/access.properties"
solved the issue


> login() request via Thrift/PHP fails with "Unexpected authentication problem" in cassandra
log / "Internal error processing login" in Thrift
> --------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-935
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-935
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.6
>         Environment: PHP 5.3, Cassandra 0.6.0-rc1 (as in current vote), CentOS 5.4 x64,
4-node cluster
>            Reporter: Vitaly Pecharsky
>            Assignee: Roger Schildmeijer
>            Priority: Minor
>
> When issuing a login request via PHP Thrift with the following parameters:
> $auth_request = new cassandra_AuthenticationRequest;
> $auth_request->credentials = array (
>     "username" => "jsmith",
>      "password" => "havebadpass",
> );
> $client->login("Keyspace1", $auth_request);
> I get an exception, with the following details
> PHP Exception:
> PHP Fatal error:  Uncaught exception 'TApplicationException' with message 'Internal error
processing login' in /home/redsolar/html/includes/thrift/packages/cassandra/Cassandra.php:73
> Cassandra log:
> ERROR 13:00:53,823 Internal error processing login
> java.lang.RuntimeException: Unexpected authentication problem
>         at org.apache.cassandra.auth.SimpleAuthenticator.login(SimpleAuthenticator.java:113)
>         at org.apache.cassandra.thrift.CassandraServer.login(CassandraServer.java:651)
>         at org.apache.cassandra.thrift.Cassandra$Processor$login.process(Cassandra.java:1147)
>         at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:1125)
>         at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:253)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:636)
> Caused by: java.lang.NullPointerException
>         at java.io.FileInputStream.<init>(FileInputStream.java:133)
>         at java.io.FileInputStream.<init>(FileInputStream.java:96)
>         at org.apache.cassandra.auth.SimpleAuthenticator.login(SimpleAuthenticator.java:82)
>         ... 7 more
> File contents (all chmod 777 for testing):
> "conf/access.properties"
> Keyspace1=jsmith,Elvis Presley,dilbert
> "conf/password.properties"
> jsmith=havebadpass
> Elvis\ Presley=graceland4evar
> dilbert=nomoovertime

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message