xcube serve: ValueError: group not found at path ' ' when using cubes from s3 bucket with access credentials #328
Labels
wontfix
This will not be worked on
xcube serve
This is related to server component, CLI "xcube serve"
Describe the bug
When starting an xcube server where the cube locations and configurations are specified via a configuration.yml and the cube is located in an s3 bucket which is access-protected, the cube cannot be displayed in a xcube vierwer due to
'ValueError: group not found at path''
ofxcube serve
.To Reproduce
Steps to reproduce the behavior:
Datasets:
Title: "Sentinel-2 RGB"
Format: zarr
Endpoint: "https://s3.eu-central-1.amazonaws.com"
Path: "/eurodatacube-test/demo/xcube-gen-489bb051-61e3-4854-bb6e-c05213b4fd15.zarr"
FileSystem: "obs"
AccessKeyId: "dcfs-user-acces-id"
SecretAccessKey: "dcfs-user-access-key"
Region: "eu-central-1"
Style: default
Styles:
ColorMappings:
B02:
ColorBar: "bone"
ValueRange: [0., 0.05]
B03:
ColorBar: "bone"
ValueRange: [0., 0.05]
B04:
ColorBar: "bone"
ValueRange: [0., 0.05]
rgb:
Red:
Variable: B04
ValueRange: [0., 0.25]
Green:
Variable: B03
ValueRange: [0., 0.25]
Blue:
Variable: B02
ValueRange: [0., 0.25]
xcube serve -c config.yml -v
Expected behavior
By passing the correct AccesKeyId and SecretAccessKey the cube should be displayed in the viewer without any issues.
The same cube can be opened via the xcube python api by
from xcube.core.dsio import open_cube
ds = open_cube('https://s3.eu-central-1.amazonaws.com/eurodatacube-test/demo/xcube-gen-489bb051-61e3-4854-bb6e-c05213b4fd15.zarr', client_kwargs=client_kwargs)
The text was updated successfully, but these errors were encountered: