-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Loki+Helm] S3 backend error: incorrect region, the bucket is not in 'eu-west-1' region at endpoint '' #7403
Comments
When I add more granular s3 configs: s3: s3://my-bucket
bucketnames: my-bucket
endpoint: s3.eu-west-1.amazonaws.com
insecure: false
region: eu-west-1
s3forcepathstyle: true I get an UnmarshallError:
and the return value is an xml-formatted |
**What this PR does / why we need it**: This should make it easier for users to set the proper policies for their S3 storage. **Which issue(s) this PR fixes**: Relates to #7403 **Special notes for your reviewer**: **Checklist** - [ ] Reviewed the `CONTRIBUTING.md` guide - [x] Documentation added - [ ] Tests updated - [ ] `CHANGELOG.md` updated - [ ] Changes that require user attention or interaction to upgrade are documented in `docs/sources/upgrading/_index.md`
@jeschkies Yes, I allowed |
Digging into this a little further, it looks like loki expects static credentials to be passed into the config file. The I think this is still a problem based on this issue, which should be reopened. I'll take a look at this and see if I can come up with some sort of workable solution |
@sklarsa, you sure this is not already working? Because I am using Loki in Kubernetes with IRSA and Loki is able to access my S3 bucket. Here are the values I provide to my release of the grafana/loki chart: serviceAccount:
create: false
name: ${kubernetes_service_account.this[0].metadata[0].name}
monitoring:
dashboards:
enabled: false
rules:
enabled: false
alerts:
enabled: false
serviceMonitor:
enabled: false
selfMonitoring:
enabled: false
lokiCanary:
enabled: false
loki:
auth_enabled: false
storage:
type: s3
bucketNames:
chunks: ${aws_s3_bucket.this[0].id}
ruler: ${aws_s3_bucket.this[0].id}
admin: ${aws_s3_bucket.this[0].id}
s3:
region: ${local.region}
storage_config:
boltdb_shipper:
cache_ttl: 48h
compactor:
retention_enabled: true
limits_config:
retention_period: ${var.retention_period} |
@trallnag thank you, I'll give this config a try! Which versions of loki and the helm chart are you using? |
@sklarsa, I am using chart version |
Thanks! I can confirm that the config you sent works. I'll close my PR, since I'm guessing that the golang AWS cli uses the environment's default credential chain if no static credentials are provided 🤦 |
**What this PR does / why we need it**: This should make it easier for users to set the proper policies for their S3 storage. **Which issue(s) this PR fixes**: Relates to grafana#7403 **Special notes for your reviewer**: **Checklist** - [ ] Reviewed the `CONTRIBUTING.md` guide - [x] Documentation added - [ ] Tests updated - [ ] `CHANGELOG.md` updated - [ ] Changes that require user attention or interaction to upgrade are documented in `docs/sources/upgrading/_index.md`
**What this PR does / why we need it**: This should make it easier for users to set the proper policies for their S3 storage. **Which issue(s) this PR fixes**: Relates to grafana#7403 **Special notes for your reviewer**: **Checklist** - [ ] Reviewed the `CONTRIBUTING.md` guide - [x] Documentation added - [ ] Tests updated - [ ] `CHANGELOG.md` updated - [ ] Changes that require user attention or interaction to upgrade are documented in `docs/sources/upgrading/_index.md`
**What this PR does / why we need it**: This should make it easier for users to set the proper policies for their S3 storage. **Which issue(s) this PR fixes**: Relates to grafana#7403 **Special notes for your reviewer**: **Checklist** - [ ] Reviewed the `CONTRIBUTING.md` guide - [x] Documentation added - [ ] Tests updated - [ ] `CHANGELOG.md` updated - [ ] Changes that require user attention or interaction to upgrade are documented in `docs/sources/upgrading/_index.md`
Describe the bug
I'm running Loki in EKS using IRSA to use the s3 storage backend, and I'm getting the following errors in the
loki-read
pods:My helm chart values.yaml config is simple:
I can also confirm that the service account is configured correctly in a separate pod running the aws cli. I've also tried multiple permutations of the
s3:
storage config, but I've only gotten different errors around assuming the role, and figured that this was the closest that I got to a working solution.I've also confirmed the bucket region:
To Reproduce
Using the following helm chart & version:
Expected behavior
Able to connect to s3 bucket
Environment:
The text was updated successfully, but these errors were encountered: