Closed anayeaye closed 9 months ago
@anayeaye so because of the mosaic/register
failure we shouldn't be seeing any datasets visualized in the front end right?
I also I wonder if the /cog/viewer
is functioning because it doesn't need database access unlike the mosaic endpoint.
@smohiudd
because of the mosaic/register failure we shouldn't be seeing any datasets visualized in the front end right
Yes, but because the proxy is configurable, the dashboard is safe even if we promote these intermediate changes
I also I wonder if the /cog/viewer is functioning because it doesn't need database access unlike the mosaic endpoint
I think so. I wonder if it could be something as simple as the new caching of the database connection secret for the tiler not working as expected--except the errors continue to be about RDS Proxy currently doesn’t support command-line options
, not access denied.
Going out on a limb here, I think this search path argument is the issue: https://github.com/stac-utils/titiler-pgstac/blob/115183534e362c49f60503c7c4584be44841c375/titiler/pgstac/db.py#L25
If that's correct, we'll have to establish the connection and then set search path to use RDS proxy. -c
flags aren't supported despite being baked into titiler pgstac's db.py
connection logic
This PR should provide a suitable workaround: https://github.com/NASA-IMPACT/veda-backend/pull/317
As an alternative, here is a change to titiler-pgstac: https://github.com/stac-utils/titiler-pgstac/pull/155
☝️ was merged and release intotitiler.pgstac==0.8.3
What
Certain raster-api endpoints are not yet working with the new veda-backend RDS-Proxy set up (PR 299).
For example, The /mosaic/register endpoint is not OK
Connections are timing out and a 504 is returned from the server
In the CloudWatch logs for the raster-api lambda we see connection pool <> RDS Proxy errors
The titiler can render tiles for the asset that the registered search would have found https://dev.openveda.cloud/api/raster/cog/viewer?url=s3://veda-data-store-staging/no2-monthly/OMI_trno2_0.10x0.10_201601_Col3_V4.nc.tif
The same search body does yield results from the stac-api
Note
When working this issue, confirm that the proxy is enabled (we may disable it while working on other backend issues). I will try and keep the status of the proxy configuration in the comments for this issue!
AC