mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 21:35:58 +03:00
[GH-ISSUE #1629] Can't mount s3 bucket #858
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#858
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 @waffles333 on GitHub (Apr 21, 2021).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1629
Additional Information
I am using s3fs to mount an s3 bucket to my filesystem and it never seems to complete. I never get any errors either. I turned up as much debug as I could and will paste it below
Sorry, I had to strip out some things like region and ip's
Here's the command I am running
s3fs mybucket /mnt/s3fs/ -o passwd_file=/usr/home/myname/.passwd-s3fs -o url=https://s3.<region>.amazonaws.com -o endpoint=<region> -o dbglevel=debug -f -o curldbg -dHere's my output
It just repeats the following indefinitely. I let it go for 3 hours earlier today
Version of s3fs being used (s3fs --version)
1.80
Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse)
2.9.2
Kernel information (uname -r)
3.10.0-957.5.1.el7.x86_64
GNU/Linux Distribution, if applicable (cat /etc/os-release)
NAME="Red Hat Enterprise Linux Server"
VERSION="7.6 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.6"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.6 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.6:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.6
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.6"
@waffles333 commented on GitHub (Apr 22, 2021):
checked /var/logs/messages
and found this a bunch of times:
Apr 21 16:05:20 2021 lz01 CloudWatch-PutInstanceData: No IAM role is associated with this EC2 instance.Seems related. It is looking like I might need to create a new IAM role with access to my s3 bucket and assign that role to my EC2. Strange that I am not seeing any sort of "permission denied" messages though
@waffles333 commented on GitHub (Apr 22, 2021):
it looks like the bucket is mounted, I just don't have perms to read/write to it now
here's my latest command:
s3fs mybucket /mnt/s3fs/ -o passwd_file=/etc/passwd-s3fs -o url=https://s3.<region>.amazonaws.com -o endpoint=<region> -opublic_bucket=1,use_sse=1,allow_other,mp_umask=0077,umask=0077,uid=0,gid=0 -o iam_role=auto -o dbglevel=debug -f -o curldbg -d -s@waffles333 commented on GitHub (Apr 22, 2021):
I now have the bucket mounted and can read/write to it properly. The issue was that I needed to add an access policy to it