S3FS mount error: Transport endpoint is not connected

3.6k views Asked by At

I have AWS Elastic Beanstalk with mounted S3 bucket via S3FS. I intended to let EB autoscale the instances. So I made an AMI image of the configured instance (with reboot) and then used that image in autoscaling configuration.

My /etc/fstab configuration looks like

s3fs#mybucket:/images /var/app/current/images fuse allow_other,use_cache=/tmp/cache 0 0

But when the instance is launched manualy or via autoscaling, the S3FS is mounted unreliably - I tried 5 manual reboots and only one worked, the other four ones hadn't S3 bucket mounted correctly. The mounted directory rights looked like d?????????, onwer ?, group?. Ls and fusermount -u throwed error: Transport endpoint is not connected

What could be the problem?

2

There are 2 answers

0
xmoni On

I already found where the problem is. Solved by adding uid and gid = 500 (ec2-user for root in my case of Amazon Linux AMI).

s3fs#mybucket:/images /var/app/current/images fuse uid=500,gid=500,allow_other,use_cache=/tmp/cache 0 0

Now it is working reliably

0
Andrew Gaul On

s3fs 1.85 provides default permissions for objects which should address these symptoms. Another workaround is the -o umask 027 flag or similar permission mask.