You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have a s3 cloud bucket, where user can store their cubes. These cubes are served by xcube server in order to be visualised with xcube viewer. I don't know how many cubes each user has or who the user are. The bucket structure is: s3://<bucket>/cubes/<user_name>/*.zarr
therefore my configuration of the server looks like this:
DataStores:
- Identifier: <precise_identifyer>
StoreId: s3
StoreParams:
root: <bucket>/cubes
max_depth: 3
storage_options:
anon: false # I have a .aws file, which
Datasets:
- Identifier: "*.zarr"
Style: "default"
The viewer launches without problem, but does not show the data layer of first data cube of the list. It is the correct location within the bucket though, shown by the id in the info panel. I know where the data of the cube is, therefore create a time series for a point where I know data should be. This leads to a Cannot reach server message:
the server logs don't show any errors:
(xcube) alicja@alicja:~/Desktop/projects/service-cyanoalert$ xcube serve -c /home/alicja/Desktop/projects/service-cyanoalert/bigfe/1_development/xcube-viewer-app/stage/api/server-config_for_testing.yml -v
xcube Server: WMTS, catalogue, data access, tile, feature, time-series services for xarray-enabled data cubes, version 0.9.3.dev0
[I 220112 08:33:31 service:239] configuration file '/home/alicja/Desktop/projects/service-cyanoalert/bigfe/1_development/xcube-viewer-app/stage/api/server-config_for_testing.yml' successfully loaded
[I 220112 08:33:31 service:168] service running, listening on localhost:8080, try http://localhost:8080/datasets
[I 220112 08:33:31 service:169] press CTRL+C to stop service
[I 220112 08:34:03 perf:79] get granted scopes: took 0.03ms
[I 220112 08:34:03 context:283] scanning store 'bigfe'
[I 220112 08:34:03 credentials:1224] Found credentials in shared credentials file: ~/.aws/credentials
For testing reasons I do know the user prefix in the bucket, and if I test them separately they work as expected:
DataStores:
- Identifier: <precise_identifyer>
StoreId: s3
StoreParams:
root: <bucket>/cubes/<user_name>
max_depth: 3
storage_options:
anon: false # I have a .aws file, which
Datasets:
- Identifier: "*.zarr"
Style: "default"
The text was updated successfully, but these errors were encountered:
Ok, the problem is that datasets identified in any sub-paths of root will have identifiers that contain forward slashes. And these are currently not URL-encoded.
forman
changed the title
xcube server not working with certain DataStores configuration
xcube server cannot serve nested datasets
Jan 19, 2022
Describe the bug
I have a s3 cloud bucket, where user can store their cubes. These cubes are served by xcube server in order to be visualised with xcube viewer. I don't know how many cubes each user has or who the user are. The bucket structure is:
s3://<bucket>/cubes/<user_name>/*.zarr
therefore my configuration of the server looks like this:
The viewer launches without problem, but does not show the data layer of first data cube of the list. It is the correct location within the bucket though, shown by the id in the info panel. I know where the data of the cube is, therefore create a time series for a point where I know data should be. This leads to a
Cannot reach server
message:the server logs don't show any errors:
For testing reasons I do know the user prefix in the bucket, and if I test them separately they work as expected:
The text was updated successfully, but these errors were encountered: