Amazon S3 with s3fs and fuse, transport endpoint is not connected

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


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.