mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[GH-ISSUE #1338] Transport endpoint not connected message when access zero bytes file from the /tmp cache folder #715
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#715
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 @rahul9222 on GitHub (Jul 24, 2020).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1338
Additional Information
Version of s3fs being used (s3fs --version)
Amazon Simple Storage Service File System V1.85 (commit:0e815c2) with OpenSSL
Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse)
fuse: 2.9.4
Kernel information (uname -r)
command result: 4.14.173-106.229.amzn1.x86_64
GNU/Linux Distribution, if applicable (cat /etc/os-release)
_command result:
NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03"
PRETTY_NAME="Amazon Linux AMI 2018.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2018.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
_
s3fs command line used, if applicable
Details about issue
We are using the above command to mount the S3 bucket to AWS EC2 machine.
As we have set
-o use_cache=/tmp/cacheparameter in the mount command.It create cache of the file when we access using the UI application.
Sometime, s3fs generate zero byte file in the Cache folder where in S3 bucket the file is proper.
When application try to access that file again from the UI as s3fs try to find the file in cache first then look for the S3 bucket.
It disconnect from the S3 bucket with error
Transport endpoint is not connected.Solution we are using right now
We move the zero bytes file from the /tmp/cache folder,
then umount the bucket and mount it again.
And send an email about the bucket failure.
/bin/find /tmp/cache -type f -size 0k -exec mv {} /home/ec2-user/movedtmp/ \;umount /home/ec2-user/html/userfiles/s3bucketclients3fs -o multireq_max=5 -o allow_other -o uid=500 -o gid=48 -o umask=0 -o use_cache=/tmp/cache s3bucketclient /home/ec2-user/html/userfiles/s3bucketclientIs there anything can be done to resolve this umounting issue due to the zero bytes files?
@gaul commented on GitHub (Jul 25, 2020):
If you see "Transport endpoint is not connected." this means that s3fs exited, possibly crashing. We need more logs to diagnose this further. Please re-run s3fs using
-f -dflags.@rahul9222 commented on GitHub (Aug 1, 2020):
As we were facing the issue on the Production Server with s3fs.
To resolve we remove the config
-o use_cache=/tmp/cachefrom the command.New command is
s3fs -o multireq_max=5 -o allow_other -o uid=500 -o gid=48 -o umask=0 s3bucketclient /home/ec2-user/html/userfiles/s3bucketclient@gaul commented on GitHub (Aug 16, 2020):
Please reopen if symptoms persist.