SpringAll icon indicating copy to clipboard operation
SpringAll copied to clipboard

posts fail to federate to some pods (http_multi_fail - response_code='0')

Open mblog opened this issue 14 years ago • 20 comments

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?

mblog avatar Jan 06 '12 07:01 mblog

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

sunflame avatar Jan 06 '12 13:01 sunflame

Thanks for reporting this. We'll try to figure out what's going on. Just to be clear - is this what's happening?

  1. you post a public post on your pod
  2. it fails to be sent to some remote pods, leaving that error in your logs
  3. your public post does not appear on those remote pods
  4. your public post does appear on some other pods

Is that right?

sarahmei avatar Jan 09 '12 00:01 sarahmei

Yes! That's right. A post to all aspekts (not public) works on all pods.

mblog avatar Jan 09 '12 08:01 mblog

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.

mblog avatar Jan 14 '12 11:01 mblog

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.

sarahmei avatar Jan 15 '12 02:01 sarahmei

The problem is not fixed for me.

Within my tests, I changed the timeout in ./lib/hydra_wrapper.rb. Is this the same?

mblog avatar Jan 16 '12 06:01 mblog

No, the pull request changed a different variable. Re-opening - maybe we should try adjusting the one in lib/hydra_wrapper.rb.

sarahmei avatar Jan 16 '12 06:01 sarahmei

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.

mblog avatar Jan 17 '12 06:01 mblog

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.

jhass avatar Jan 17 '12 10:01 jhass

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?!

mblog avatar Jan 31 '12 07:01 mblog

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 avatar May 06 '13 12:05 rivendale2010

@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.

Flaburgan avatar May 06 '13 12:05 Flaburgan

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! :)

rivendale2010 avatar May 06 '13 12:05 rivendale2010

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 ;))

Flaburgan avatar May 06 '13 12:05 Flaburgan

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

rivendale2010 avatar May 06 '13 12:05 rivendale2010

Now that we can have a higher throughput we can as well think about bumping the default timeout.

jhass avatar May 06 '13 13:05 jhass

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 :)

rivendale2010 avatar May 06 '13 13:05 rivendale2010

#4244 added more detailed logging on Curls 0 return code, please open new issues about each case if further discussion about it is needed.

jhass avatar Jun 22 '13 00:06 jhass

I don't think you really meant #4244 here...

Raven24 avatar Jun 22 '13 08:06 Raven24

Eh right, copy pasta fail... #4162 of course.

jhass avatar Jun 22 '13 08:06 jhass