Closed tim-krehan closed 7 months ago
I know that I am asking the obvious here, but: Is it taking the server longer than the configured timeout (5s
) to respond? curl
has a much higher default timeout than that.
If not, then details about the configuration would be great:
DNS should be a different error message as well as certificate errors, so it needs to be something different.
Oh my - the timeout might be the reason. Sorry that I bothered with that question😂 Maybe it was because I stared for 5h at the same thing...
Anyways, I will test that later and be sure to respond to this thread!
Many thanks for the fast & detailed answer!
No worries, it happens :slightly_smiling_face:
That said, if it really takes the server 5s to respond to the metrics request there is something wrong, but not something the exporter can fix.
Hey :) so I checked it and it indeed was the timeout stopping me from accessing the stats.
And another thing: I was throttled from making any more calls, because of a security feature from the webserver - the initial calls where too often during my testing. I also added the exporter server as a exception and here we go: 5 seconds more then enough and I am not throttled anymore.
Thanks for your help!
And another thing: I was throttled from making any more calls, because of a security feature from the webserver - the initial calls where too often during my testing. I also added the exporter server as a exception and here we go: 5 seconds more then enough and I am not throttled anymore.
Ah, that explains it quite well. Thanks for the follow-up! :+1:
Thanks for your help!
Happy to help. Have a nice day! :sunny:
I also added the exporter server as a exception and here we go: 5 seconds more then enough and I am not throttled anymore.
@tim-krehan : how did you do this?
im new to nextcloud and i use nginx as reverse proxy, to which i am also new. sorry if this is a rather general question and not immediately related to nextcloud-exporter.
i use NixOs and my nextcloud configuration is here. In which nextcloud-exporter is also configured. However i got the same time out error message:
for now i set the timout to 60s which seems to work.
but im not really happy with this approach and would like to set an exception for the exporter and would really appreciate a hint to the right direction on where and how to do that.
thank you!
Hi!
first of: awesome you wrote this! I am currently trying to get this to work, but sadly it fails while scraping as it seems:
The name resolution is working correctly and when I try to use curl it works:
My config looks like this:
Is there any extended logging, where I can provide more information? Also it may be worth noting, that I compiled the go binary from source.