mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[GH-ISSUE #2183] "cannot fstat / No such file or directory" when writing a file with ecryptfs (creates 0 byte file, then works if retried!). #1110
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#1110
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 @netlore on GitHub (Jun 7, 2023).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2183
Additional Information
Version of s3fs being used (
s3fs --version)Version of fuse being used (
pkg-config --modversion fuse,rpm -qi fuseordpkg -s fuse)Tried with both default "fuse3", and "fuse" packages, eg:-
OR
Kernel information (
uname -r)GNU/Linux Distribution, if applicable (
cat /etc/os-release)How to run s3fs, if applicable
I've tried running with gradually fewer options, even with single thread mode, with/without xattr & cache etc... but issue always seen.
I tried each of the following options in addition to single thread with "-s":-
Also, tried the "ecryptfs_xattr" option on the module load (kernel command line for ubuntu, as ecryptfs is compiled in).
s3fs syslog messages (
grep s3fs /var/log/syslog,journalctl | grep s3fs, ors3fs outputs)Details about issue
When using eCryptFS on top of s3fs, I encounter a situation where when writing a file I get the following error (example using cp to write the file, but the same issue is seen with vi, etc. "touch" does not exhibit the issue, but then it doesn't write data into the file):-
The files are created, but have 0 size... however if I attempt the copy again, the file is (over)written successfully... or if I "touch" the file first..
In this case, the ecryptfs mount is as follows:-
@ggtakec commented on GitHub (Jun 10, 2023):
@netlore
It seems that the combination of ecryptfs and s3fs was not finally resolved in the old issue.
I'd like to check, does this error occur not only for large files(using multipart uploads), but also for small files?
We have fixed
xattrin v1.92, so if possible, could you try it in v1.92?And if you can please try the
nomultipartoption. (However, this is just my concern and may be a waste of work.)Thanks in advance for your assistance.
@netlore commented on GitHub (Jun 12, 2023):
It definitely occurs for small files, I was initially testing with "touch" so I didn't notice the issue until I tried to write data into the files, but when trying to save a 5 byte test file with an editor, save fails once, but creates a 0 byte file, then if I try again, the data gets written... I wonder if it's some kind of race condition where the file isn't created in time for data to start being written.
I'm currently using the package supplied by Canonical, so I'll have to get hold of the new verison, and build it from source, but I'll let you know with 1.92 once I have had time to do that.
@ggtakec commented on GitHub (Jun 12, 2023):
@netlore Thank you for your cooperation.
If possible during testing, having logs with
dbglevel=info(andcurldbg) options may help identify the cause.(However, this option will output a lot of logs, so be careful.)
@netlore commented on GitHub (Jun 26, 2023):
@ggtakec Sorry it has taken so long to get to this... I can confirm that I can't replicate the issue the latest version from GIT, so I don't know how valuable it may be to continue to investigate, but I should mention that it appeared to possibly be some kind of race condition, since I was not able to replicate with the original version when connected to a really fast connection, only when I had a relatively slower connection.