langflow icon indicating copy to clipboard operation
langflow copied to clipboard

ValueError: Error building vertex Astra DB Search: {"errors":[{"message":"Unknown namespace default_keyspace, you must create it first.","errorCode":"NAMESPACE_DOES_NOT_EXIST"}]}

Open msmygit opened this issue 10 months ago • 9 comments

Describe the bug Running Langflow v1.0.0a24 version locally on macOS Sonoma 14.4.1 and hitting the below error.

ValueError: Error building vertex Astra DB Search: {"errors":[{"message":"Unknown namespace default_keyspace, you must create it                                                        
                             first.","errorCode":"NAMESPACE_DOES_NOT_EXIST"}]}
image

See the attached file for detailed console error. Follwed the following resources,

  • https://pre-release.langflow.org/guides/rag-with-astradb

langflow-rag-with-astra-a24-error-20240423.txt

Browser and Version

  • Browser [safari]
  • Version [Version 17.3 (19617.2.4.11.8)]

To Reproduce Steps to reproduce the behavior:

  1. Start following https://pre-release.langflow.org/guides/rag-with-astradb and then you hit this error at the below step,
image 3. Validated Astra DB console and can ensure that `default_keyspace` namespace is also available. The token is of type `Organization Administrator` permission (https://docs.datastax.com/en/astra/astra-db-vector/administration/manage-database-access.html#organization-administrator-role) too. image

Screenshots added all applicable details above.

Additional context I'm only using the default Open AI embedding and unsure I'm receiving an error related to Google Vertex AI here. Thank you in advance!

msmygit avatar Apr 23 '24 15:04 msmygit

Error with langflow-1.0.0a27 version is attached below for reference. v1.0.0a27-rag-with-astradb-error-20240429.txt

msmygit avatar Apr 29 '24 13:04 msmygit

Hey @msmygit

Thank you!

Looking into it now.

ogabrielluiz avatar Apr 29 '24 13:04 ogabrielluiz

Could you try setting the namespace in the Advanced parameters of the component?

ogabrielluiz avatar Apr 29 '24 13:04 ogabrielluiz

Thank you @ogabrielluiz . FWIW, I also have ASTRA_DB_NAMESPACE=default_keyspace on the env file which didn't make a difference, but let me try the advanced section route.

msmygit avatar Apr 29 '24 13:04 msmygit

No luck, image

msmygit avatar Apr 29 '24 13:04 msmygit

Could it be that you are using the wrong credentials?

I just tested it here and it is working.

ogabrielluiz avatar Apr 29 '24 14:04 ogabrielluiz

I tried with the Organization Administrator role and still the same result. Is there a place where I need to provide the secure connect bundle? image

FWIW, in order to validate the token permissions, I also tried using it via a standalone CQLSH and it works fine and I can see the presence of default_keyspace:

cqlsh-astra-vector % /Users/username/Downloads/cqlsh-astra-vector/bin/cqlsh -u token --disable-history -p 'AstraCS:MASKED' -b /Users/username/Downloads/secure-connect-vector-ec62fc37.zip 
Connected to cndb at 127.0.0.1:9042.
[cqlsh 6.8.0 | Cassandra 4.0.0.6816 | CQL spec 3.4.5 | Native protocol v4]
Use HELP for help.
token@cqlsh> DESC KEYSPACES;

system_auth         system         default_keyspace     
data_endpoint_auth  datastax_sla   system_views         
system_schema       system_traces  system_virtual_schema

token@cqlsh>

Also, attempted to upgrade to langflow-1.0.0a28 with the same result. Is there any other triage info that I could give you to narrow down this issue?

msmygit avatar Apr 29 '24 21:04 msmygit

fwiw, logs/langflow.log is empty too.

msmygit avatar Apr 29 '24 21:04 msmygit

Hello @msmygit, Sorry for the delay. Did you try using the new version? Does the error still persist?

anovazzi1 avatar Jul 01 '24 16:07 anovazzi1

Hi @msmygit

We hope you're doing well. Just a friendly reminder that if we do not hear back from you within the next 3 days, we will close this issue. If you need more time or further assistance, please let us know.


Thank you for your understanding!

carlosrcoelho avatar Jul 17 '24 14:07 carlosrcoelho

Thank you for your contribution! This issue will be closed. If you have any questions or encounter another problem, please open a new issue and we will be ready to assist you.

carlosrcoelho avatar Jul 22 '24 00:07 carlosrcoelho