-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AssertionError(assert len(self._object_file_mapper) == (len(self.merged_indexer) + len(self.merged_filetype))) #21
Comments
Of course. Could you show all files related to metadata? (Represents a file within metadata.) |
Here is the only file in |
If I commented out the assertion, anyway it works to retreive data from the minio server. However, I found lots of annoying loggings as:
Can I turn them off? Sorry for lots of questions and bug reports. |
Thank you for the detailed bug report! While analyzing the bug you showed, I was able to find a few more bugs related to the NAS. def list_objects(self, bucket_name, prefix="", recursive=False):
_foldername = os.path.join(self.path, bucket_name, prefix)
if not recursive:
objects = [
os.path.join(prefix, f) for f in os.listdir(_foldername)
]
else:
objects = [
os.path.join(dp, f) for dp, dn, fn in os.walk(_foldername) for f in fn
]
return [Obj(o) for o in objects if o.startswith(prefix)] The second one is related to This 'caching' serves to map the location of the downloaded file and the key of the minio when calling the dataset. If you use the NAS setting, you don't actually need this caching. Solution
One thing I'd like to ask is, did you use the ip4 address when using the NAS settings? |
Yes I used IPv4 address. I'll check your solution ASAP. Thank you so much for the prompt solution! |
@jinserk For example: from matorage import DataConfig
# NAS example
data_config = DataConfig(
endpoint='/tmp/shared',
dataset_name='mnist',
additional={
"framework" : "pytorch",
"mode" : "training"
},
compressor={
"complevel" : 0,
"complib" : "zlib"
},
attributes=[
('image', 'float32', (28, 28)),
('target', 'int64', (1, ))
]
) If you use ipv4 for the endpoint, connection is established through HTTP protocol. |
Hi @graykode, By the way, I have two questions related to this:
|
It looks I cannot use the
|
|
I found the solution related to the first one. wget https://dl.min.io/server/minio/release/linux-amd64/minio
chmod +x minio
# minio for background running
nohup ./minio gateway nas /home/nlkey2022/shared & I don't know why we get a permission error in minio docker nas. I will leave an issue on the minio once. |
@graykode
In my quick and humble opinion, we need to check the |
I don't actually know the detailed configuration of the minio. So I will consider it. Thank you. I'll leave a thread when I find more options!! :) |
A step-by-step look at why this error occurs is as follows.
|
Can I ask you what this error stands for?
The text was updated successfully, but these errors were encountered: