S3fs-fuse: s3fs: BUCKET bucket.name.with.dots, name not compatible with virtual-hosted style.

Created on 13 Jan 2016  路  5Comments  路  Source: s3fs-fuse/s3fs-fuse

When I try to mount a bucket where the bucket name has periods in it (e.g., "bucket.name.with.dots"), the attempt to mount fails with the following error:

$ s3fs bucket.name.with.dots local/mount/point/
s3fs: BUCKET bucket.name.with.dots, name not compatible with virtual-hosted style.

I am able to successfully mount other buckets that have simple alphanumeric names (e.g., "bucket1").

Most helpful comment

The alternative to virtual-hosted style requests is path style requests:

s3fs -o use_path_request_style -o url=http://s3.amazonaws.com bucket.name local/mount/point

All 5 comments

The alternative to virtual-hosted style requests is path style requests:

s3fs -o use_path_request_style -o url=http://s3.amazonaws.com bucket.name local/mount/point

Thank you for the quick tip, @RobbKistler ! That worked like a charm.

I am running into a problem with buckets with dots in their names.

s3fs -o url=http://s3.amazonaws.com -o use_path_request_style -o endpoint=us-west-2 -o bucket=a.b.cd.ef  <mount_dir>

I can see in df -h.

ubuntu@ip-172-31-45-177:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
s3fs            XT     0  XT   0% <mount_dir>

But, I don't see anything in mount_dir when I ls <mount_dir>. When I cd <mount_dir> and ls, I see the following error message:

ls: error while loading shared libraries: libselinux.so.1: file too short

s3fs version is 1.83

Amazon Simple Storage Service File System V1.83(commit:0f503ce) with OpenSSL

Can we have an equivalent in /etc/fstab form?

Apparently s3fs.cpp:4915 only checks that bucket names cannot contain upper case characters in virtual-hosted style. I.e renaming buckets (if possible) or creating a bucket with a valid name will help here too.

Was this page helpful?
0 / 5 - 0 ratings