mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #244] Cache-related bug after v1.79 #132
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#132
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 @bpascard on GitHub (Aug 18, 2015).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/244
I had an automated deployment setup that installed s3fs by cloning master. Yesterday I started getting s3fs write failures.
I use this command to mount my bucket :
/usr/bin/s3fs my_bucket /shared -d -o endpoint="eu-west-1" -o use_cache=/tmp -o allow_otherIf I try to write to a file with
echo 'hello world' > /shared/test.txtI get an input/output error and an empty file is created on the S3 at /shared/test.txt.
Based on /var/log/messages s3fs seems to have issues accessing the cache directory
When I omit the use_cache option the issue goes away.
When I use release version 1.79 everything seems to work fine with cache enabled.
Sorry I wasn't able to track down the wrongful commit
@niklasenB commented on GitHub (Aug 19, 2015):
I raised #230 and closed it, since this issue describes it more precise as you have figured out it's the cache parameter.
@gaul commented on GitHub (Aug 21, 2015):
@bpascard Does
mkdir /tmp/my_bucketwork around this issue?@bpascard commented on GitHub (Aug 21, 2015):
@andrewgaul If I recall correctly that didn't solve it. Can someone check?
I tried to track the
failed to open cache stat file path ...error which implied some kind of error about reading the 'stat cache directory'. The error is raised in src/fdcache.cpp line 147 :At src/fdcache.cpp (line 62) inside the method CacheFileStat::MakeCacheFileStatPath theres this comment :
// make stat dir top path( "/<cache_dir>/.<bucket_name>.stat" )I tried
mkdir /tmp/.my_bucket.statto no avail, s3fs even deletes the directory after running.I also tried a lot of other tricks on /tmp including
chmod -R 777and various recursive calls tochownchanging groups and users even though I run s3fs as root.@gaborkukucska commented on GitHub (Sep 24, 2015):
Same error here. By removing the "-o use_cache=/tmp" section from my commands, the write permissions solve.
original command: "s3fs bucketname -o use_cache=/tmp -o allow_other -o nonempty /path/to/folder/"
@ggtakec commented on GitHub (Mar 29, 2019):
We kept this issue open for a long time.
I checked with the latest version(1.86), but the same problem did not occur.
Please try again with the latest version.
I will close this, but if the problem persists, please reopen or post a new issue.