S3fs-fuse: Unable to mount a specific folder

Created on 20 Mar 2018  路  9Comments  路  Source: s3fs-fuse/s3fs-fuse

Additional Information

_The following information is very important in order to help us to help you. Omission of the following details may delay your support request or receive no attention at all._

Version of s3fs being used (s3fs --version)

1.83

Version of fuse being used (pkg-config --modversion fuse)

2.9.4_

System information (uname -r)

4.4.0-98-generic

Distro (cat /etc/issue)

Ubuntu 16.04.2 LTS n l

s3fs command line used (if applicable)

sudo s3fs bucket:/folder -o use_cache=/tmp -o allow_other -o uid=1001 -o mp_umask=002 -o multireq_max=20 -o endpoint=us-west-2 /s3 -f -d -d

/etc/fstab entry (if applicable):


s3fs syslog messages (grep s3fs /var/log/syslog, or s3fs outputs)

Mar 20 06:22:43 s3fs[17907]: check services.
Mar 20 06:22:43 s3fs[17907]: check a bucket.
Mar 20 06:22:43 s3fs[17907]: URL is https://s3.amazonaws.com/bucket/folder/
Mar 20 06:22:43 s3fs[17907]: URL changed is https://bucket.s3.amazonaws.com/folder/
Mar 20 06:22:43 s3fs[17907]: computing signature [GET] [/folder/] [] []
Mar 20 06:22:43 s3fs[17907]: url is https://s3.amazonaws.com
Mar 20 06:22:43 s3fs[17907]: HTTP response code 400 was returned, returning EIO.
Mar 20 06:22:43 s3fs[17907]: curl.cpp:CheckBucket(3096): Check bucket failed, S3 response: #012AuthorizationHeaderMalformedThe authorization header is malformed; the region 'us-east-1' is wrong; expecting 'us-west-2'us-west-2
Mar 20 06:22:43 s3fs[17907]: s3fs.cpp:s3fs_check_service(3768): Could not connect wrong region us-east-1, so retry to connect region us-west-2.
Mar 20 06:22:43 s3fs[17907]: check a bucket.
Mar 20 06:22:43 s3fs[17907]: URL is https://s3-us-west-2.amazonaws.com/bucket/folder/
Mar 20 06:22:43 s3fs[17907]: URL changed is https://bucket.s3-us-west-2.amazonaws.com/folder/
Mar 20 06:22:43 s3fs[17907]: computing signature [GET] [/folder/] [] []
Mar 20 06:22:43 s3fs[17907]: url is https://s3-us-west-2.amazonaws.com
Mar 20 06:22:43 s3fs[17907]: HTTP response code 404 was returned, returning ENOENT
Mar 20 06:22:43 s3fs[17907]: curl.cpp:CheckBucket(3096): Check bucket failed, S3 response: #012NoSuchKeyThe specified key does not exist.folder/
Mar 20 06:22:43 s3fs[17907]: s3fs.cpp:s3fs_check_service(3806): bucket not found(host=https://s3-us-west-2.amazonaws.com) - result of checking service.
Mar 20 06:22:43 s3fs[17907]: s3fs.cpp:s3fs_exit_fuseloop(3361): Exiting FUSE event loop due to errors
Mar 20 06:22:43 s3fs[17907]: destroy

detail about the issue

On the same machine, I used to be able to mount bucket:/folder with the command given above, however, after the machine is rebooted, it doesnt seem to be able to do so anymore. Help!

Most helpful comment

@mayying I solved it with aws console. Go to console, click on create folder and give name of the folder which is throwing error and try again it worked for me.

It do not make sense logically. But seems like a s3 bug.

All 9 comments

I am also facing the same issue.

I can mount the bucket as it is, but when I specify the sub-folder, it tells key do not exist

@mayying I solved it with aws console. Go to console, click on create folder and give name of the folder which is throwing error and try again it worked for me.

It do not make sense logically. But seems like a s3 bug.

Thanks @akhilputhiry, this was driving me crazy!

@akhilputhiry Akhil, i also stuck at the same issue. I followed above instructions and its not working for me. any suggestions to make it work.

Helped me

s3 = ::Aws::S3::Client.new(config)
s3.put_object(bucket: bucket, key: "path/to/directory/", content_type: 'application/x-directory')

Must specify Content-Type equal to application/x-directory

You guys should look at this: https://github.com/s3fs-fuse/s3fs-fuse/wiki/FAQ#q-could-not-mount-with-specifying-the-path-under-bucket

Does these symptoms occur in recent versions of s3fs, e.g., 1.85? I believe it improves permission and directory handling.

Closing due to inactivity. Please reopen if symptoms persist.

You guys should look at this: https://github.com/s3fs-fuse/s3fs-fuse/wiki/FAQ#q-could-not-mount-with-specifying-the-path-under-bucket

It is not workable with minio .

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yuanzhou picture yuanzhou  路  10Comments

bubba-h57 picture bubba-h57  路  3Comments

neilmillard picture neilmillard  路  3Comments

KES777 picture KES777  路  5Comments

herriojr picture herriojr  路  6Comments