posts fail to federate to some pods (http_multi_fail - response_code='0')
Since a few weeks i get the following error:
event=http_multi_fail sender_id=1 url=https://pod.geraspora.de/receive/public response_code='0' event=http_multi_fail sender_id=1 url=https://joindiaspora.com/receive/public response_code='0' event=http_multi_fail sender_id=1 url=http://diaspora.wampire.net/receive/public response_code='0' event=http_multi_fail sender_id=1 url=https://social.mrzyx.de/receive/public response_code='0' event=http_multi_fail sender_id=1 url=https://diasp.org/receive/public response_code='0' event=http_multi_fail sender_id=1 url=http://befriends.cc/receive/public response_code='0' event=http_multi_fail sender_id=1 url=http://diaspa.co.uk/receive/public response_code='0' event=http_multi_fail sender_id=1 url=http://diaspora.netzspielplatz.de:3000/receive/public response_code='0' event=http_multi_fail sender_id=1 url=https://diaspora.hopfmueller.at/receive/public response_code='0' event=http_multi_fail sender_id=1 url=https://diasp.3towers.de/receive/public response_code='503' event=resque_job job=Jobs::HttpMulti ms=37523.6620903015 arg1="1" arg2="ICAgICAgPFhNTD4KICAgICAgPHBvc3Q" arg3="1234610171920212435364042444749" arg4="Postzord::Dispatcher::Public" status=complete
On this remote pods my public post is missing. The error occurs only with public posts and not on all pods. Any ideas?
I'm seeing similar errors.
event=resque_setup rails_env=production event=http_multi_fail sender_id=2 url=https://joindiaspora.com/receive/users// response_code='0' event=resque_job job=Jobs::HttpMulti ms= arg1="2" arg2="" arg3="2" arg4="Postzord::Dispatcher::Private" arg5="1" status=complete
Thanks for reporting this. We'll try to figure out what's going on. Just to be clear - is this what's happening?
- you post a public post on your pod
- it fails to be sent to some remote pods, leaving that error in your logs
- your public post does not appear on those remote pods
- your public post does appear on some other pods
Is that right?
Yes! That's right. A post to all aspekts (not public) works on all pods.
The timeout for Typhoeus is to short. Currently this is 5 seconds. If I increase the timeout to 100 seconds, all public posts appear on those remote pods.
We rolled in a 25-second timeout as suggested by @MrZYX so I'm closing this issue - reopen if that's not enough to fix the problem.
The problem is not fixed for me.
Within my tests, I changed the timeout in ./lib/hydra_wrapper.rb. Is this the same?
No, the pull request changed a different variable. Re-opening - maybe we should try adjusting the one in lib/hydra_wrapper.rb.
25 seconds isn't enough on my pod. I need 40 seconds. The question is, why do I get a timeout on these pods, but not at all?!
Perhaps it is an error with the account on my pod. When I using a test account (on my pod), it also works with a timeout of 5 seconds (to diasp.org). But the post is sent to fewer servers.
Hm I think 40 seconds would already blow up larger pods though I've no experience on that.
I agree the issue is why the request/response is so slow. We should find out if it's the request or the response taking so long and if it's the response if it's a network error, a setup error of the remote pod or an error in our code, which shouldn't be slow unless the remote pod is running in single process mode.
Is a response of 25-40 seconds really slow? The default settings of postfix are 60s connection-timeout and 300s helo-timeout. Maybe a large pod needs more worker?!
thanks for this tip. i have single user pod. it started with this issue when i reached about 20 pod in pod list.
i optimize as much as i could, was not till i discover this help that i could fix :)
@rivendale2010 which version your pod is running? In the new version (currently still in the develop branch) resque is dropped in favor of sidekiq. This should improve that.
Fla i run the dev code, usually less than a week old, glutton for punishments :) he!...
but the problem has been long term. i now have 45 pod in pod list, and i need 50 seconds in this setting to work.
reasons are beyond me. just trial and errors, and lame hardware to boot! :)
well, sidekiq should be quicker than resque and was merged only few weeks ago, did you upgrade to it?
(look at the changelog, there is stuff to do ;))
sidekiq made a noticeable performance improvement. :) the embedded objects are more responsive, and generally the processing of the queues is quicker and takes less memory, which i am short of :)
but it these errors were not removed till i doubled the timeout in hydra_wrapper.rb
Now that we can have a higher throughput we can as well think about bumping the default timeout.
seems like a balancing act :) i have a couple of times had pods go down in such a way that it creates a long delay hfase.com is one of them, when i removed it (by hand using sql editor) it helped :)
#4244 added more detailed logging on Curls 0 return code, please open new issues about each case if further discussion about it is needed.
I don't think you really meant #4244 here...
Eh right, copy pasta fail... #4162 of course.