mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #428] all my file contents change to ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ #231
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#231
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 @Fei-Guang on GitHub (Jun 6, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/428
i used 1.79 and started s3fs as
$s3fs mybucket /opt/s3fs -o nomultipart,use_cache=/tmp.
last week , everything seems ok,
the size of under /tmp/ is about 30G
but today ,i removed all cache under /tmp and restart my ubuntu system. then remount
/opt/s3fs, every file contents have changed .
$vi /opt/s3fs/config.txt
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
~
~
~
~
~
~
~
~
~
"config.txt" [noeol] 1L, 509C
@jamessoubry commented on GitHub (Jun 6, 2016):
We are getting the same issue with 1.79, 1.80 but not 1.78 It seems to only corrupt plane text files when copying to the cache directory
@Fei-Guang commented on GitHub (Jun 7, 2016):
do you know why the text file changed to binary file?
@jamessoubry commented on GitHub (Jun 8, 2016):
not sure yet. i'm reviewing the diff between 1.78 and 1.79 to try and work out what has broken it but theres a lot of code to go through.
@ggtakec commented on GitHub (Jun 12, 2016):
Hi, @Fei-Guang
The cache file made by s3fs is the contents of the object(file) obtained in blocks.
Range that has not yet been GET does not exist in the cache file and it looks to all non-download area is 0x00.
Maybe, you see those cache file directly, and I think that looking at a range that has not yet been GET.
Regards,
@jamessoubry commented on GitHub (Jun 20, 2016):
Hi, @ggtakec @Fei-Guang, I have done extensive testing and have worked out, for us, the issue happens when we delete items from the cache folder without deleting the .stat folder. we originally had a puppet script that deleted items held in the cache for a long time to reduce the cache folder size. It seems this is no longer possible. @Fei-Guang can you test if this is the same issue with you?
@ggtakec commented on GitHub (Jun 29, 2016):
Hi, @jamessoubry
As you said, I was able to reproduce the bug after I deleted the cache file without deleting .stat file.
Since the bug occurs when it is deleted during the upload / download of files, I need the time to fix this.
Please wait a little while.
And thanks for your assistance.
@ggtakec commented on GitHub (Jul 3, 2016):
@jamessoubry I merged #444, it fixed about removing cache files during upload/download a object.
Please try to use it.
Thanks in advance for your help.
@jamessoubry commented on GitHub (Jul 18, 2016):
@ggtakec Thanks for the help. I will test and get back to you
@jamessoubry commented on GitHub (Aug 31, 2016):
@ggtakec fyi Ive not got round to testing this yet. will hopefully do it soon
@ggtakec commented on GitHub (Dec 4, 2016):
@jamessoubry
I merged codes to master branch for fixing #435 bug which is very similar to this issue.
I fixed this issue with #444, but there may still have been defects.
But now I merged codes by #511, I think that this issue is solved.
I'm going to close this issue, but please reopen or post new issue if the problem continues.
Thanks in advance for your help.
@ayush-san commented on GitHub (Dec 5, 2019):
I am using s3fs version 1.85 and facing this issue in only some files where some content is changed to ^@^@^@^@^@^@^@^@^@^@
I am using s3fs entry in fstab to mount my s3 folder
s3fs#BUCKET_NAME:/airflow/ /mnt/airflow fuse _netdev,iam_role=auto,umask=0022,uid=0,gid=0,allow_otherIt was working fine but with the new deployment, some files content is getting changed to ^@^@^@^@^@^@^@^@^@^@.
By unmounting and mounting again and restarting the process fixed the issue, but I don't think it's a correct way to proceed
@gaul commented on GitHub (Jan 26, 2020):
Please test with master and open a new issue if your symptoms persist.