mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #1943] Unable to list directory contents unless listing the full path to a file #980
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#980
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JossWhittle on GitHub (May 11, 2022).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1943
Additional Information
The following information is very important in order to help us to help you. Omission of the following details may delay your support request or receive no attention at all.
Keep in mind that the commands we provide to retrieve information are oriented to GNU/Linux Distributions, so you could need to use others if you use s3fs on macOS or BSD
Version of s3fs being used (s3fs --version)
1.91
Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse)
2.9.9-3
Kernel information (uname -r)
5.4.0-104-generic
GNU/Linux Distribution, if applicable (cat /etc/os-release)
Ubuntu 20.04 LTS
s3fs command line used, if applicable
s3fs syslog messages (grep s3fs /var/log/syslog, journalctl | grep s3fs, or s3fs outputs)
Assume a local file system mount point
/ceph/echo/hub.And a remote s3 bucket
rfi-hub-datasets:/mnt/that contains a filerfi-hub-datasets:/mnt/worldcontaining the texthello.Listing the parent directory shows the mount point with a zeroed date stamp.
Listing the mount point directory shows no contents.
[ERR] s3fs_xml.cpp:get_base_exp(110): marker_xp->nodesetval is empty.is reported.Listing the full file path
hub/worldreturns the expected result for that specific file.Cat'ing the full file path
hub/worldreturns the expected file contents for that specific file.Details about issue
The mount allows creating and removing files and directories, along with reading and writing file contents. But we cannot list the directory contents unless we specify the full path to a specific file.
Directory listing is possible on our ceph s3 cluster since we do this without issue using Boto3 and MinioMC.
This has also been tested without the
listobjectsv2option. The same exact behaviour is reported, although the request details in the logs are slightly different as is to be expected. The error[ERR] s3fs_xml.cpp:get_base_exp(110): marker_xp->nodesetval is empty.is the same in both cases.@waewoo commented on GitHub (Jun 6, 2022):
Hi,
For information, we identify the same problem.
Regards
@gaul commented on GitHub (Jun 12, 2022):
I'm not sure what kind of directory structure you have that causes these symptoms -- can you show the ls output of AWS CLI, e.g.,
I also note that you specified
-o notsup_compat_dir-- can you try removing this?@JossWhittle commented on GitHub (Jun 13, 2022):
@gaul Hi, yes it produces the same result without this flag. Many combinations or arguments have been attempted all with the same behaviour.
Cheers,
Joss
@hereTac commented on GitHub (Dec 13, 2022):
Any news here? The same situtation here. Any solution for now? @JossWhittle @gaul @ggtakec
@hereTac commented on GitHub (Dec 13, 2022):
Here is the log.
s3fs etloutput /mnt/s3test -o _netdev -o allow_other -o passwd_file=/root/.s3fs-etloutput -o use_path_request_style -o noatime -o parallel_count=10000 -o multipart_size=100 -o no_check_certificate -o max_write=131072 -o multireq_max=1000 -o mp_umask=000 -o umask=000 -o url=http://k8s.dc.xyz:19000 -o curldbgll s3test/umount -l s3test/@hereTac commented on GitHub (Dec 13, 2022):
In my opinion, after use s3fs mount bucket,
lsreturn empty. Unlesslsthe full path file first, it will return the right floders. (As the Linux world, every thing is file, so as floders. Looks like s3fs-S3 is not , the file's full path is not treat as file? May be it just a bug.@ggtakec commented on GitHub (Jan 15, 2023):
I haven't been able to reproduce this issue yet.
I thought that @JossWhittle's report maight have been influenced by #2057.
However, it seems that this assumption is wrong because it is specified as
rfi-hub-datasets:/mnt/@hereTac uses
V1.91 (commit:23a8124), so #2057 was already adapted.So that it seems there is another reason, but I still haven't found why the problem is happening.
I may still be overlooking something.
If there's any information I should add, please let me know.
@gaul commented on GitHub (Sep 8, 2023):
Could you test again using 1.93?
@fidgetingbits commented on GitHub (Nov 1, 2023):
FWIW I ran into a similar issue on 1.92 today with all the same symptoms, and explicitly setting
-ocompat_dirresulted in the folders showing up correctly.