mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[GH-ISSUE #1252] create file in a mounted directory success, but modify and read would fail #671
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#671
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 @kathur2rain on GitHub (Mar 17, 2020).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1252
Version of s3fs being used (s3fs --version)
1.84
Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse)
2.9.9
Kernel information (uname -r)
4.19.76-linuxkit
GNU/Linux Distribution, if applicable (cat /etc/os-release)
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
s3fs command line used, if applicable
s3fs syslog messages (grep s3fs /var/log/syslog, journalctl | grep s3fs, or s3fs outputs)
did not see any output by these command.
i did manage to get some log output by set dbglevel=info and curldbg, but they are too long and most of them are normal message.
I just noticed that, in the log, Date was in GMT, but both my s3 server(which is minio) and my host machine are in UTC. I don't know if this matters.
Details about issue
I built a docker environment, with devices: dev/fuse, cap_add: sys_admin, successfully I mounted my bucket to /tmp/qe and write some a .sqlite file (db file from sqlite) into disk with no error.
I wrote the file in my program, via python sqlite api and also i tried to use gdal create sqlite datasource, both worked for me.
I was able to read that sqlite file after download it, but everytime i try to read it via sqlite3 (sqlite client) in docker container, i got an error
I guess it might be problem from mount permission, but i'm not able to find out a solution, could anyone provide hints?
update:
I just find that I can touch create a txt file in bash,
but even
return IO error
I updated this down below, seems I can create new empty file, or create new file with content, delete file. But I can't read existing file and I can't write to existing file.
@ggtakec commented on GitHub (Mar 21, 2020):
It looks like some error has occurred.
To find out the exact cause, you could run s3fs with the "-d" option for debug message, and you could get more communication information by "-o curldbg" option.
Please check the debug messages for any errors, and report it to us.
Thanks in advance for your assistance.
@kathur2rain commented on GitHub (Mar 26, 2020):
hi, thanks for the reply, sorry for being late.
here's some of the debug information I copied from docker logs. I just selected a piece of them since there's no warning and no error just info pop up and I select the most recent ones. I think these logs may be related. there's a lot of logs, and all of them seem similar, I can't figure out the crucial ones.
will it because of the connection not released?
I can create new file with
and i can also delete it
however, read it is forbiddent
@kathur2rain commented on GitHub (May 6, 2020):
I was using docker and as long as I map my program code to /tmp in docker, I'll encounter this problem. I accidentally solved this problem by map my program code to /data rather than /tmp in docker。 close for now~