SpringAll icon indicating copy to clipboard operation
SpringAll copied to clipboard

Search for people (webfinger) on other pods broken?

Open tomka opened this issue 15 years ago • 3 comments

Hi,

my pod is running on commit 1ecdba9baede43b5330a4cf98390adcc1f813c73 and I want to search someone on a different pod. Doing that never gives me results. Looking into the logs I see the following (actual diaspora id changed to [email protected]):

event=request_started verb=GET path=/people?utf8=%E2%9C%93&q=someone%40pod.org ip=88.73.207.76  pid=15605  time=1320481936 
template="shared/_invitations.haml" count=1 ms=2.683 total_ms=2.683 event=render  pid=15605  time=1320481936 
template="js/_websocket_js.haml" count=1 ms=1.064 total_ms=1.064 event=render  pid=15605  time=1320481936 
template="layouts/_header.html.haml" count=1 ms=260.628 total_ms=260.628 event=render  pid=15605  time=1320481936 
template="people/index.html.haml" count=1 ms=304.225 total_ms=304.225 event=render  pid=15605  time=1320481936 
status=200 Person=1 view_ms=305.878054626465 Profile=1 User=1 controller="PeopleController" db_ms=1.911 ms=327 total_ar_instances=3 format="HTML" event=request_completed params="{\"utf8\"=>\"\342\234\223\", \"q\"=>\"[email protected]\"}" ms_in_instantiate=0.295162200927734 action="index"  pid=15605  time=1320481936 
event=resque_setup rails_env=production pid=27959  time=1319577542 
event=webfinger status=initialized [email protected] pid=15834  time=1320481939 
event=receive status=abort [email protected] reason='undefined method `closed?' for nil:NilClass' pid=15834  time=1320481939 
event=resque_job job=Jobs::SocketWebfinger ms=275.460004806519 arg1="2" arg2="[email protected]" arg3="" status=complete  pid=15834  time=1320481939

Now the last lines show the problem, there seems to be an undefined method. The pod on the other side seems to produce an error like:

event=http_multi_fail sender_id=1  url=https://diaspora.myownpod.net/receive/users/5e7173dadd7a925f/ response_code='0' pid=10213  time=1320479454

If this is of interest: my pod uses SSL with a CAcert certificate (which is treated as self-signed by most of the browsers, because not being included by default).

tomka avatar Nov 05 '11 08:11 tomka

Hi, I have a similar problem. I do find people on different pods when I look for them specifically with the @pod address, but not if I look for people (that I know are on a pod I already have contacts from) without the address. Probably related, I do not get all the public posts as I should (sometimes normally, sometimes not at all, sometimes only when I click a contact's profile explicitly).

The error I get is:

< event=http_multi_fail sender_id=2  url=http://somepodsaddress/receive/users/--guess I should leave this out?--/ response_code='301' pid=22402  time=1323706569 
< event=resque_job job=Jobs::HttpMulti ms=638.117074966431 arg1="2" arg2="--guess I should leave this out?--" arg3="32" arg4="Postzord::Dispatcher::Private" status=complete  pid=22402  time=1323706569 
< event=resque_setup rails_env=production pid=7927  time=1323511356 
< event=resque_job job=Jobs::HttpMulti ms=1299.39103126526 arg1="2" arg2="--guess I should leave this out?--" arg3="32" arg4="Postzord::Dispatcher::Private" arg5="1" status=complete  pid=22406  time=1323706571 

As far as I can see the error occurs in hydra_wrapper.rb:

lib/hydra_wrapper.rb:        Rails.logger.info("event=http_multi_fail sender_id=#{@user.id}  url=#{response.effective_url} response_code='#{response.code}'")

bvdelft avatar Dec 12 '11 16:12 bvdelft

I'm seeing the same messages above on my pod at familyfirst.me. What I've also noticed is that no one is able to find users on my pod from other pods (checked on diasp.org and diasp0ra.ca). If someone wants to look in their own logs when doing a seach, I'm [email protected].

I'm using a startssl.com cert, which is hit or miss for being trusted in my experience (my droid phone doesn't, but chrome on my laptop does).

sunflame avatar Jan 06 '12 13:01 sunflame

Sorry for the trouble. This is most likely an SSL configuration issue. Come talk to us in IRC to get it sorted out if it's still an issue.

sarahmei avatar Jan 09 '12 19:01 sarahmei