mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 21:35:58 +03:00
[GH-ISSUE #2021] S3FS mount operation hangs on fuse_main() #1016
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#1016
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 @lifayt on GitHub (Aug 11, 2022).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2021
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)
Also tested with 1.91
Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse)
Kernel information (uname -r)
GNU/Linux Distribution, if applicable (cat /etc/os-release)
s3fs command line used, if applicable
/etc/fstab entry, if applicable
s3fs syslog messages (grep s3fs /var/log/syslog, journalctl | grep s3fs, or s3fs outputs)
Details about issue
Once the command is executed, it hangs indefinitely. I was able to figure out where the process hangs by compiling s3fs from source, and then inserting my own debug statements. The process currently hangs in the following area:
fuse_main never returns, and any parts of s3fs.cpp after this function call don't execute. I'm relatively unfamiliar with c++ so at this point I'm sorta running into a brick wall. Any hints would be helpful!
@ggtakec commented on GitHub (Aug 14, 2022):
The
fuse_mainfunction never returns while s3fs is up and the process is resident, so it doesn't matter that it appears to block in that function.Normally after the
fuse_maincall, the log that thes3fs_initfunction was called should be output, but it seems to be blocked before that.It seems to be blocked during libfuse processing.
We may need information such as the state of your libfuse installation to resolve this issue.
And since you are using version v1.87, can you try with v1.91 or master branch code if possible?
(#1966 is v1.91, so if the cause is the same, s3fs will be blocked as well.)
@lifayt commented on GitHub (Aug 15, 2022):
Hi @ggtakec, thanks for responding. I have also tried this with v1.91, the issue is there as well. I installed backwards from 1.91 to 1.87 to see if the issue could be resolved by installing an older version. In terms of libfuse, the process we follow is to install the fuse libs via
sudo yum install fuse-2.9.2-11.amzn2 fuse-devel-2.9.2-11.amzn2 fuse-libs-2.9.2-11.amzn2, though I have tried all three available versions of fuse on AL2 (2.9.2-8, 2.9.2-9, 2.9.2-11).@ggtakec commented on GitHub (Aug 15, 2022):
The same phenomenon occurs in v1.91 and v1.87(and intermediate versions?).
Unfortunately I haven't been able to reproduce this yet.
(I need to know why s3fs_init is not being called...)
It doesn't look like there's anything wrong with your libfuse installation, does it? (though 2.9.2 should be fine)
@lifayt commented on GitHub (Aug 15, 2022):
Our initial hunch is that this is linked to the most recent release of the
AL2 Amazon Machine Image in some way (the issue seems to have cropped up
when we updated to the latest image). The other issue reporting this also
occurs after the release of the most recent AMI.
I think that AMI is the following AL2 release: 2.0.20220719.0
Whats a way I could help debug why s3fs_init is not being called?
On Mon, Aug 15, 2022 at 08:43 Takeshi Nakatani @.***>
wrote:
@ggtakec commented on GitHub (Aug 16, 2022):
I tried with
amzn2-ami-kernel-5.10-hvm-2.0.20211201.0-x86_64-gp2andfuse-2.9.2-11.amzn2.In this environment I didn't receive any errors and s3fs worked fine.
There may be other conditions as well.
(If it is before
fuse_mainis called, it may be locked bys3fsprocessing, but iffuse_mainis called, it is difficult to check the cause without reproducing.)@lifayt commented on GitHub (Aug 16, 2022):
That is a pretty old ami - our suspicion is that this started with:
Amazon Linux 2 AMI 2.0.20220606.1 x86_64 HVM gp2oramzn2-ami-hvm-2.0.20220606.1-x86_64-gp2. Are you able to try that one?Edit: This is probably the newer version of the one you're using:
amzn2-ami-kernel-5.10-hvm-2.0.20220606.1-x86_64-gp2@ggtakec commented on GitHub (Aug 17, 2022):
I couldn't find
amzn2-ami-hvm-2.0.20220606.1-x86_64-gp2, but I foundamzn2-ami-hvm-2.0.20220719.0-x86_64-gp2which seems to be newer and tried on it.It seems that s3fs worked fine on it.(I installed s3fs v1.91 package without building)
I think that if it is reproduced, we are able to proceed towards solving the problem, but I have not been able to reproduce it yet.
@lifayt commented on GitHub (Sep 6, 2022):
Updating to the latest released Amazon AMI resolved this issue, so it seems this was limited to a small 1 or 2 ami slice of releases.
@ggtakec commented on GitHub (Sep 6, 2022):
@lifayt Thank you for your kind and continued checking and reporting!