I have datastax cassandra 6.8 installed in dev server and i also installed Stargate newest version in another dev server. The connection is established between Stargate and Cassandra. I dont see anything error in log file. I am able to use postman to run a rest call to Stargate to get auth_token. After that, i set that token to header and make a GET call to retrieve data
http://{{dev server and port}}/v2/keyspaces/dco/test1?where={"id":{"$eq":"c8e67364-1547-4833-9208-9ea9c0f0acf6"}}
I get this error
{
"description": "Server error: org.apache.cassandra.stargate.transport.ServerError: Unexpected persistence error: Name authentication_schemes/INTERNAL is not valid for any resource type",
"code": 500
}
The error looks like my user/pass that i used to get auth_token doesn't have right to retrieve data. But I have tried to use that user/pass to login cassandra and i am able to do select and insert queries.
Could you please help me to figure out how i bypass this problem.
Below are my screenshot of postman and Cassandra db
Cassandra table test1 (id is uuid and primary key)
id | create_date
--------------------------------------+---------------------------------
f47dee1b-1b51-4e25-933f-6f3f8817a6f5 | 1970-01-01 00:00:00.000000+0000
c8e67364-1547-4833-9208-9ea9c0f0acf6 | 2021-09-16 18:59:16.352000+0000
faae6180-0464-11ec-9a03-0242ac130003 | 2009-07-13 08:30:12.000000+0000
There isn't enough information in your post to determine what the underlying problem is so I'm going to post my test environment so you could compare it to yours.
DSE configuration
This is my single-node DSE 6.8.15 cluster:
These are the entries I've configured in
cassandra.yaml
:And in
dse.yaml
:Stargate configuration
The IP of my Stargate node is
10.101.36.44
and I've started it with:For reference, I used the example in the Stargate.io Installation Guide.
Once Stargate is up, I can confirm that all the necessary ports for the API endpoints are up:
Testing
In my cluster, I have created this table:
And the table contains the following data:
Here is how I generated the authentication token and saved it as an environment variable:
Here's a quick connectivity test by checking that the
sgoneks
keyspace exists:Finally, I retrieved the vaccination details for
name='alice'
here:As a side note, you might find it easier to just use Astra DB because it comes with Stargate.io pre-configured and ready to use.
If you're still having issues with your DSE installation, I'd recommend logging a ticket with DataStax Support so one of our engineers can assist you directly. Cheers!