tursodatabase / libsql

libSQL is a fork of SQLite that is both Open Source, and Open Contributions.
https://turso.tech/libsql
MIT License
9.54k stars 252 forks source link

Creating namespaces in sqld following the docs does not work. #1622

Closed ptrxyz closed 1 month ago

ptrxyz commented 1 month ago

According to https://github.com/tursodatabase/libsql/blob/main/docs/USER_GUIDE.md#multitenancy it should be possible to create namespaces using the simple curl command state in the referred doc. However the call returns 404.

See the following screenshot: image

In the lower half, sqld is running with --enable-namespaces using the officially provided docker image. In the upper half, curl command was issued with a response code 404

ubersan commented 1 month ago

I think you need to follow this guide. Essentially namespaces are managed via the admin API, not the users api. So the route you want to access is expected not to be found on this host.

avinassh commented 1 month ago

^that is correct. Make sure to set the admin listen address:

export SQLD_ADMIN_LISTEN_ADDR="0.0.0.0:8000"