Amazon S3 with s3fs and fuse, transport endpoint is not connected
Solution 1
Well, the solution was simple: to unmount and mount the dir. The error transport endpoint is not connected
was solved by unmounting the s3 folder and then mounting again.
Command to unmount
fusermount -u /s3
Command to mount
/usr/bin/s3fs -o allow_other bucketname /s3
Takes 3 minutes to sync.
Solution 2
I don't recommend to access s3 via quick and dirty fuse drivers. S3 isn't really designed to act as a file system, see this SOF answer for a nice summary
You would probably never dare to mount a Linux mirror website just because it holds files. This is comparable
Let your process write files to your local fs, then sync your s3 bucket with tools like cron and s3cmd
If you insist in using s3fs..
sudo echo "yourawskey:yourawssecret" > /etc/passwd-s3fs
sudo chmod 640 /etc/passwd-s3fs
sudo /usr/bin/s3fs yours3bucket /yourmountpoint -ouse_cache=/tmp
Verify with mount
Source: http://code.google.com/p/s3fs/wiki/FuseOverAmazon
Solution 3
I was using old security credential before. Regeneration of security credentials (AccessId, AccessKey) solved the issue.
Solution 4
This was a permissions issue on the bucket for me. Adding the "list" and "view permissions" for "everyone" in the AWS UI allowed bucket access.
If you don't want to allow everyone access, then make sure you are using the AWS credentials associated with the user that has access to the bucket in S3Fuse
Related videos on Youtube
Comments
-
ilansch almost 2 years
Redhat with Fuse 2.4.8
S3FS version 1.59From the AWS online management console i can browse the files on the S3 bucket.
When i log-in (ssh) to my /s3 folder, i cannot access it.
also the command: "/usr/bin/s3fs -o allow_other bucket /s3"
return: s3fs: unable to access MOUNTPOINT /s3: Transport endpoint is not connectedWhat could be the reason? How can i fix it ? does this folder need to be unmount and then mounted again ?
Thanks !
-
ilansch over 11 yearsOK, change the way im working will be implemented later on, but for now how to fix the problem ?
-
Michel Feldheim over 11 yearsAdded an example usage above
-
ilansch over 11 yearsthanks informative answer. answer was useful but i didnt use your commands
-
pmagunia over 9 yearsUsing an old credential was my problem as well.
-
Amin Ariana about 8 yearson some machines,
umount -f
would be a more available command for the first part. -
Rehmat almost 5 yearsI was trying to mount Wasabi S3, and for that I had to use
-o url=https://s3.wasabisys.com
-
piyush sachdeva over 3 years@Yuval , kudos to you! this was the simplest working solution that I have found after browsing tons of sites today. Thank you very much!
-
Soren almost 3 yearsWhat does
yours3bucket
stand for? I understand it is a placeholder, but what needs to be put there? What does it look like?