-
|
I'm trying to create an icechunk repo on OSN, and when I try this: import icechunk
storage = icechunk.s3_storage(bucket="esip", endpoint_url='https://usgs.osn.mghpcc.org',
prefix="rsignell/necofs/icechunk2",
access_key_id=os.environ['OSN_ACCESS_KEY_ID'],
secret_access_key=os.environ['OSN_SECRET_ACCESS_KEY'])
repo = icechunk.Repository.create(storage)I get back: ---------------------------------------------------------------------------
IcechunkError Traceback (most recent call last)
Cell In[13], line 6
1 import icechunk
2 storage = icechunk.s3_storage(bucket="esip", endpoint_url='https://usgs.osn.mghpcc.org',
3 prefix="rsignell/necofs/icechunk2",
4 access_key_id=os.environ['OSN_ACCESS_KEY_ID'],
5 secret_access_key=os.environ['OSN_SECRET_ACCESS_KEY'])
----> 6 repo = icechunk.Repository.create(storage)
File ~/miniforge3/envs/icechunk/lib/python3.12/site-packages/icechunk/repository.py:51, in Repository.create(cls, storage, config, virtual_chunk_credentials)
25 @classmethod
26 def create(
27 cls,
(...)
30 virtual_chunk_credentials: dict[str, AnyCredential] | None = None,
31 ) -> Self:
32 """
33 Create a new Icechunk repository.
34 If one already exists at the given store location, an error will be raised.
(...)
48 An instance of the Repository class.
49 """
50 return cls(
---> 51 PyRepository.create(
52 storage,
53 config=config,
54 virtual_chunk_credentials=virtual_chunk_credentials,
55 )
56 )
IcechunkError: x error listing objects in object store dispatch failure
|
| context:
| 0: icechunk::repository::create
| at icechunk/src/repository.rs:138
|
|-> error listing objects in object store dispatch failure
|-> dispatch failure
|-> io error
|-> error trying to connect: dns error: failed to lookup address information: Name or service not known
|-> dns error: failed to lookup address information: Name or service not known
`-> failed to lookup address information: Name or service not knownI'm a novice here, so guessing/hoping it's a simple user error? |
Beta Was this translation helpful? Give feedback.
Answered by
rsignell
Feb 27, 2025
Replies: 2 comments 9 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
|
That's strange because everything with fsspec seems to work -- I tried listing and uploading a local file. import fsspec
fs = fsspec.filesystem('s3', anon=True, endpoint_url='https://usgs.osn.mghpcc.org/')
fs.ls('esip/rsignell/era5')producing |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Oh, I just tried adding
allow_http=Trueand THAT worked! (no region specification necessary!)