We are trying to configure our simple scalable Loki deployment to use NetApp ONTAP S3-compatible storage but are running into issues with the read path.
The configuration we’ve tried is as follows:
# aws:
# bucketnames: irs-loki-test
# endpoint: ict-mc2-oss02.server.ufl.edu
# region: default
# access_key_id: OMITTED
# secret_access_key: OMITTED
# insecure: false
# s3forcepathstyle: true
# http_config:
# insecure_skip_verify: true
I’ve enabled debug logging on the Loki write nodes and they look fine, chunks are being processed and flushed, and we can see files in the bucket like so, using rclone to check the system:
$ rclone ls mc2-loki-test:irs-loki-test/irs --max-age 5m
5308 1bce3a591abcb16c/19832b03908:198331e1624:3645d254
26817 1cb46683eec122aa/19832b30cfe:19833210506:b5cd8f29
558 1d04d62111b0309b/19832eabcd3:19832eabcd4:7ffab4cb
2497 4039560a5a438f27/19832b26d87:1983320bb70:1c11c777
5234 64ba633177e729c9/19832b1954a:198332046e7:aa773d77
2532 838fb526047f0d7e/19832b0c8de:198331ff10e:badf9c30
2178 afc11eb03b6c2f77/19832b18f25:19833203108:9e0c4e77
2181 c63326ad860d739b/19832b18f58:198332030d1:80fcd981
2159 c63326ad860d739b/19832b18f58:198332030d1:c2c19fc0
1460 d55d5de328835fc3/19832b32efa:1983321ac3e:4bcceaa8
2126 d712ce47832ddcdc/19832b37cac:19833221e84:98fdc5c4
2142 f88a71f38300e72b/19832b37cac:19833221e84:ab7a3a31
554 fb00fae29cdcdc15/19832eabda0:19832eabda1:f289b426
However on the read-side, when we try to query Loki we see the following errors:
Jul 22 12:13:24 az1-irs-o11y-test-loki-read-01 loki[1825728]: ts=2025-07-22T16:13:24.3448604Z caller=spanlogger.go:111 user=irs caller=log.go:168 level=error msg=“failed downloading chunks” err="failed to load chunk ‘irs/c86f9a16511d94fd/19832748c34:19832e2cb24:f4889002’: failed to get s3 object: NoSuchKey: The specified key does not exist.\n\tstatus code: 404, request id: , host id: "
Jul 22 12:13:24 az1-irs-o11y-test-loki-read-01 loki[1825728]: level=error ts=2025-07-22T16:13:24.369684258Z caller=parallel_chunk_fetch.go:71 msg=“error fetching chunks” err="failed to load chunk ‘irs/bdcdf1a4d38649fa/19832712714:19832df178c:23ab6c02’: failed to get s3 object: NoSuchKey: The specified key does not exist.\n\tstatus code: 404, request id: , host id: "
Jul 22 12:13:24 az1-irs-o11y-test-loki-read-01 loki[1825728]: ts=2025-07-22T16:13:24.369734882Z caller=spanlogger.go:111 user=irs caller=log.go:168 level=error msg=“failed downloading chunks” err="failed to load chunk ‘irs/bdcdf1a4d38649fa/19832712714:19832df178c:23ab6c02’: failed to get s3 object: NoSuchKey: The specified key does not exist.\n\tstatus code: 404, request id: , host id: "
Jul 22 12:13:28 az1-irs-o11y-test-loki-read-01 loki[1825728]: level=error ts=2025-07-22T16:13:28.333512967Z caller=parallel_chunk_fetch.go:71 msg=“error fetching chunks” err="failed to load chunk ‘irs/bfa0a085aa73f3ef/198326a9069:19832d86deb:daaa3f92’: failed to get s3 object: NoSuchKey: The specified key does not exist.\n\tstatus code: 404, request id: , host id: "
Jul 22 12:13:28 az1-irs-o11y-test-loki-read-01 loki[1825728]: ts=2025-07-22T16:13:28.333563552Z caller=spanlogger.go:111 user=irs caller=log.go:168 level=error msg=“failed downloading chunks” err="failed to load chunk ‘irs/bfa0a085aa73f3ef/198326a9069:19832d86deb:daaa3f92’: failed to get s3 object: NoSuchKey: The specified key does not exist.\n\tstatus code: 404, request id: , host id: "
Jul 22 12:13:36 az1-irs-o11y-test-loki-read-01 loki[1825728]: level=error ts=2025-07-22T16:13:36.461777332Z caller=parallel_chunk_fetch.go:71 msg=“error fetching chunks” err="failed to load chunk ‘irs/8443d47f5592e6fd/198326a8e08:19832d954ec:9dcd511b’: failed to get s3 object: NoSuchKey: The specified key does not exist.\n\tstatus code: 404, request id: , host id: "
Jul 22 12:13:36 az1-irs-o11y-test-loki-read-01 loki[1825728]: ts=2025-07-22T16:13:36.461823862Z caller=spanlogger.go:111 user=irs caller=log.go:168 level=error msg=“failed downloading chunks” err="failed to load chunk ‘irs/8443d47f5592e6fd/198326a8e08:19832d954ec:9dcd511b’: failed to get s3 object: NoSuchKey: The specified key does not exist.\n\tstatus code: 404, request id: , host id: "
Jul 22 12:13:39 az1-irs-o11y-test-loki-read-01 loki[1825728]: level=error ts=2025-07-22T16:13:38.958364586Z caller=parallel_chunk_fetch.go:71 msg=“error fetching chunks” err="failed to load chunk ‘irs/c86f9a16511d94fd/19832748c34:19832e2cb24:f4889002’: failed to get s3 object: NoSuchKey: The specified key does not exist.\n\tstatus code: 404, request id: , host id: "
Jul 22 12:13:39 az1-irs-o11y-test-loki-read-01 loki[1825728]: ts=2025-07-22T16:13:38.958421886Z caller=spanlogger.go:111 user=irs caller=log.go:168 level=error msg=“failed downloading chunks” err="failed to load chunk ‘irs/c86f9a16511d94fd/19832748c34:19832e2cb24:f4889002’: failed to get s3 object: NoSuchKey: The specified key does not exist.\n\tstatus code: 404, request id: , host id: "
Loki actually continues to work, reading from the cache, but it only stores around 3 hours or so of data at a given time.
Any assistance with this would be greatly appreciated. I’ve also opened a Github issue here: Loki S3 Compatibility with NetApp ONTAP · Issue #18398 · grafana/loki · GitHub
thanks!