mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #721] Invalid credentials (working in s3cmd) #410
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#410
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AdvancedStyle on GitHub (Feb 22, 2018).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/721
I'm using the same IAM credentials on the same machine with s3cmd and it is working with normal access, but when using s3fs get invalid credentials message.
IAM Policy
Version of s3fs being used (s3fs --version)
Amazon Simple Storage Service File System V1.83(commit:e1dafe7) with OpenSSL
Copyright (C) 2010 Randy Rizun rrizun@gmail.com
License GPL2: GNU GPL version 2 http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Version of fuse being used (pkg-config --modversion fuse)
2.9.4
System information (uname -r)
4.4.0-1049-aws
Distro (cat /etc/issue)
Ubuntu 16.04.3 LTS
s3fs command line used (if applicable)
s3fs syslog messages (grep s3fs /var/log/syslog, or s3fs outputs)
if you execute s3fs with dbglevel, curldbg option, you can get detail debug messages
@undiabler commented on GitHub (Apr 18, 2018):
Same problem. Any ideas how to fix this?
@undiabler commented on GitHub (Apr 18, 2018):
Looks like we loose auth data following redirects.
Adding url param like
-o url="https://s3-eu-west-1.amazonaws.com"fixes the problem.@tomfanning commented on GitHub (Oct 30, 2018):
Confirmed this fix works for me. Region eu-west-2, ubuntu 14.04
@Rich43 commented on GitHub (Mar 22, 2019):
Confirmed this fixes the issue for me too, git cloned latest source.
@shlha commented on GitHub (Jun 17, 2019):
Not fixing for me. My bucket is in eu-west-2, any other suggestions please?
@shlha commented on GitHub (Jun 17, 2019):
Buckets get mounted but i get this error: ls: reading directory .: Input/output error
@gaul commented on GitHub (Jul 11, 2019):
Could you mount with debug options
-f -d -o curldbgand share the output?@ortonomy commented on GitHub (Jan 15, 2020):
This is still an issue in 2020! Hours of searching later, and I find this issue! Is there no way we can fix this?
@krzysztof-magosa commented on GitHub (Jan 27, 2020):
It's weird but it works without specifying URL for some buckets while on others it fails. For a time being I started generating URL in Terraform with region EC2 sits in but IMO it's not elegant.
@gaul commented on GitHub (Feb 2, 2020):
Closing due to inactivity. Please reopen if the issue persists and you can attach the debug logs. Issues do not magically fix themselves; without timely and precise feedback from users there is nothing we can do.
@ortonomy commented on GitHub (Feb 2, 2020):
@gaul -- specifying the URL works. What I meant was that you can't just use a region outside the default (US Ohio) without specifying the endpoint. Should it be able to handle the redirects?
@gaul commented on GitHub (Feb 2, 2020):
Can you test with the latest version 1.85 which adds some support for 301/307? Otherwise please open a separate issue.
@krzysztof-magosa commented on GitHub (Feb 3, 2020):
In my case it was lack of
s3:GetBucketLocationpermission. After adding it, s3fuse started mounting buckets without touching URL.@webristle commented on GitHub (Jun 12, 2020):
Great!!! thank you so much
@Peter2121 commented on GitHub (Aug 23, 2020):
Still does not work for me.
All permissions are granted, the bucked is correctly located, but 'Access denied' trying to mount it.
@juliogonzalez commented on GitHub (Aug 23, 2020):
Please open a new issue, provide all the information requested on the issue template, and the debug output as well (as requested at (https://github.com/s3fs-fuse/s3fs-fuse/issues/721#issuecomment-510292926)
The bug was reported against 1.83, and the latest version is now 1.87, so this require a fresh issue.
Also, it could be an IAM problem as pointed by @krzysztof-magosa at https://github.com/s3fs-fuse/s3fs-fuse/issues/721#issuecomment-581497299, so verify it is not your case.
@WoZ commented on GitHub (Jul 18, 2022):
If anyone read this on 2022, check
--endpointoption.github.com/s3fs-fuse/s3fs-fuse@2723e1049e/doc/man/s3fs.1.in (L235-L241)