-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Qurey:Can not query from Object storage #4466
Comments
|
Thanks very much for your reply. |
By the way, I am running in a virtual machine. The operating system is centos . |
I am facing the same issue with the new version v0.22.0, whereas at the exact same moment v0.21.1 is working fine so I fear there is a bug introduction on the latest version.
on my side, even a thanos tools bucket inspect is failing. Also compactor and stores. ./Downloads/thanos-0.21.1.darwin-amd64/thanos tools bucket inspect --objstore.config-file=/Users/ahurtaud/Downloads/thanos/bucket.yaml --timeout=20m
level=info ts=2021-08-05T13:37:15.377671Z caller=factory.go:46 msg="loading bucket configuration"
level=info ts=2021-08-05T13:37:19.41476Z caller=fetcher.go:476 component=block.BaseFetcher msg="successfully synchronized block metadata" duration=3.424255479s cached=702 returned=702 partial=0
[...] ./Downloads/thanos-0.22.0.darwin-amd64/thanos tools bucket inspect --objstore.config-file=/Users/ahurtaud/Downloads/thanos/bucket.yaml --timeout=20m
level=info ts=2021-08-05T13:10:33.506004Z caller=factory.go:46 msg="loading bucket configuration"
level=error ts=2021-08-05T13:21:05.480248Z caller=main.go:130 err="307 errors: meta.json file exists: 01F8Y8NRW38HNQ69HCWYYA3A6M/meta.json: cannot get properties for Azure blob, address: 01F8Y8NRW38HNQ69HCWYYA3A6M/meta.json: Head \"https://<redacted>/01F8Y8NRW38HNQ69HCWYYA3A6M/meta.json?timeout=1162\": dial tcp: lookup <redacted> on 172.16.107.37:53: dial udp 172.16.107.37:53: socket: too many open files; get meta file: 01F5J3YERX9VZH6SDWZJ5AAME1/meta.json: cannot get properties for container: 01F5J3YERX9VZH6SDWZJ5AAME1/meta.json: Head \"https://<redacted>/01F5J3YERX9VZH6SDWZJ5AAME1/meta.json?timeout=1161\": dial tcp: lookup <redacted> on 172.16.107.37:53: dial udp 172.16.107.37:53: socket: too many open files [...] |
Thanks for the information @ahurtaud - the I can't see anything obvious in the upstream azure blob repo. I wonder whether we are unintentionally setting some parameters that we previously did not set before? WDYT @wiardvanrij ? |
What we implement were extra config options which you could alter. Those options are kept at "default" i.e. what Azure would do anyway It was my intention, to make sure it was not breaking and it has been tested. Though only on k8s. Obviously it could be that I missed something but I would not know what. |
#4605 might be related |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
this is still valid to me :/ thanos has a lot of issues with our azure blob storage compared to before 0.22. |
The fix was made but only made it in 0.23. Could you perhaps try it again with that version? Please do let me know if that works for you. Otherwise I would love to get some more details. |
I run with the command as follows:
nohup thanos receive
--tsdb.path "/aiops/prometheusData/metricsData"
--grpc-address 0.0.0.0:10907
--http-address 0.0.0.0:10909
--receive.replication-factor 1
--label "receive_replica="0""
--label "receive_cluster="aiopssection""
--receive.local-endpoint 10.0.90.202:10907
--receive.hashrings-file /aiops/hashring.json
--remote-write.address 0.0.0.0:10908
--objstore.config-file "/aiops/bucket.yml" > /thanos_receive.log 2>&1 &
nohup thanos query --http-address 0.0.0.0:19192 --grpc-address 0.0.0.0:19193 --store 10.0.90.202:10907 --store 10.0.90.202:19090 > /thanos_query.log 2>&1 &
nohup thanos store --data-dir /aiops/thanosStoreGateway --objstore.config-file /aiops/bucket.yml --http-address 0.0.0.0:19191 --grpc-address 0.0.0.0:19090 > /thanos_store.log 2>&1 &
But I find that the query result on the website url http://10.0.90.202:19192 only include the data from local disk with thanos receive command. That is to say, the data on object store is not queried.
I read the log file thanos_query.log, and find many record like this:
level=warn ts=2021-07-21T07:12:35.910427898Z caller=proxy.go:450 component=proxy request="min_time:1624258500000 max_time:1626850800000 matchers:<type:RE name:"instance" value:"10\.0\.90\.210:9100" > matchers:<name:"name" value:"node_memory_MemAvailable_bytes" > aggregates:COUNT aggregates:SUM " err="receive series from Addr: 10.0.90.202:19090 LabelSets: {receive_cluster="aiopssection", receive_replica="0", tenant_id="default-tenant"} Mint: 16 21123202783 Maxt: 1626847200000: rpc error: code = Aborted desc = fetch series for block 01F9J4Q0B5WYV9SH6KCP2WN3AX: load chunks: get range reader: Get "http://10.0.90.203/api/v1/obj/aiopssection/01F9J4Q0B5WYV9SH6KCP2WN3AX/chunks/000001/?offset=51277073&size=16806\": dial tcp 10.0.90.203:80: socket: too many open files" msg="returning partial response"
We can see there is an log for error. Can anyone help me to solve this problem? Thanks very much.
The text was updated successfully, but these errors were encountered: