Code Monkey home page Code Monkey logo

Comments (13)

guilhermesgb avatar guilhermesgb commented on August 23, 2024

This is a problem that can be observed happening with many other "long-duration" tests as well... they fail sometimes because Heroku will decide not to serve them (that's a guess) and respond with a H12 Request Timeout error. These tests usually start working again after a while. We maybe should deploy the protocol inspector in our own servers before v1.0.

I ran the buddycloud_disco test against surevine.com a couple times and it managed to succeed everytime here but I know that it fails sometimes, but I think the reason is 100% Heroku related.

from buddycloud-tests-framework.

pniederlag avatar pniederlag commented on August 23, 2024

I just observed the DISCO test failing, also my prosody instance seems to be setup properly. In the end I could only get the buddycloud_server_disco passing by adding a PTR record.
In order to find out about the miracles behind the disco discovery I found https://github.com/buddycloud/buddycloud-xep/blob/master/sections/30.discovery.xml which clearly points out how it works and pointed me to the solution with adding a PTR record

from buddycloud-tests-framework.

imaginator avatar imaginator commented on August 23, 2024

@t3dev - we just had a call about this and, yes you can use a PTR record. But the DISCO stuff should be working and @guilhermesgb is looking at it.

from buddycloud-tests-framework.

pniederlag avatar pniederlag commented on August 23, 2024

I cloned the testing framework and tried to poke into it. Even raising the timeout to 30 seconds the disco discovery fails for me. I can't get any clou from the Exception as it seems to be empty. using xmpp-console in pidgin works nicely with:

<iq to="datenbetrieb.de" type="get" id="440a5251-e6fa-4b59-86a7-ed4e895a2ae5-1" from="[email protected]"><query xmlns="http://jabber.org/protocol/disco#items" /></iq>

Does disco need credentials or require a login to work?

from buddycloud-tests-framework.

imaginator avatar imaginator commented on August 23, 2024

@guilhermesgb could it be something to do TLS security and the remote domain not having a valid certificate and therefore dropping the s2s connection?

Which domain do you test from? https://xmpp.net/result.php?domain=datenbetrieb.de&type=server

from buddycloud-tests-framework.

guilhermesgb avatar guilhermesgb commented on August 23, 2024

I really don't know. This test used to work as is (the disco, at least)...
at some point it stopped working but we failed to detect when and what
caused this.

from buddycloud-tests-framework.

guilhermesgb avatar guilhermesgb commented on August 23, 2024

The test connects to the xmpp-servers without SSL and TLS:

https://github.com/buddycloud/buddycloud-tests-framework/blob/master/installation/tests/buddycloud_server_disco.py#L146
xmpp.connect(conn_address, reattempt=False, use_ssl=False, use_tls=False)

Maybe this has something to do with it (secure connection is a must)?

On Tue, Apr 29, 2014 at 2:29 PM, Guilherme Santos [email protected]:

I really don't know. This test used to work as is (the disco, at least)...
at some point it stopped working but we failed to detect when and what
caused this.

Guilherme Santos Galvão Baptista
UFCG Undergraduate Student - CS Major
UW-Madison Former Exchange Student - CS Major

from buddycloud-tests-framework.

guilhermesgb avatar guilhermesgb commented on August 23, 2024

I've read through the sleekxmpp source - it seems that if an SSL error
occurs, it is stopping the Send thread from sending our disco#items stanza:
https://github.com/fritzy/SleekXMPP/blob/d002d4c06fd90f5c6c0ddb38c0a38efc8fefd9ea/sleekxmpp/xmlstream/xmlstream.py#L1759
So I'm guessing that it indeed is a SSL-related problem...

On Tue, Apr 29, 2014 at 2:55 PM, Guilherme Santos [email protected]:

The test connects to the xmpp-servers without SSL and TLS:

https://github.com/buddycloud/buddycloud-tests-framework/blob/master/installation/tests/buddycloud_server_disco.py#L146
xmpp.connect(conn_address, reattempt=False, use_ssl=False, use_tls=False)

Maybe this has something to do with it (secure connection is a must)?

On Tue, Apr 29, 2014 at 2:29 PM, Guilherme Santos [email protected]:

I really don't know. This test used to work as is (the disco, at
least)... at some point it stopped working but we failed to detect when and
what caused this.

Guilherme Santos Galvão Baptista
UFCG Undergraduate Student - CS Major
UW-Madison Former Exchange Student - CS Major

Guilherme Santos Galvão Baptista
UFCG Undergraduate Student - CS Major
UW-Madison Former Exchange Student - CS Major

from buddycloud-tests-framework.

pniederlag avatar pniederlag commented on August 23, 2024

sleekXMPP ends with IqTimeout. On every attempt I find this in my prosody.log:

info incoming s2s stream (unknown host)->buddycloud.org closed: This host does not serve buddycloud.org

from buddycloud-tests-framework.

guilhermesgb avatar guilhermesgb commented on August 23, 2024

I've just finally fixed this test. Somehow this test used to work a few
months ago but I guess it was due to luck.
I've fixed this test following @abmargb 's take on performing disco
discovery with sleekxmpp, which I found
herehttps://github.com/buddycloud/hosting/blob/0bd8b4f7babaa1404911e29b17146a286fb6b5d2/hosting/xmppclient.py
.
After finding this I remembered him warning me about not doing things quite
correctly on that test, 'couple weeks ago.

By the way, @t3dev, I ran the protocol against datenbetrieb.de again and
just saw Service Discovery failing but now it seems the failure is
appropriate: apparently there's no XMPP Component whose identity is "of
category 'pubsub' and type 'channels'" (which is required, according
to thishttps://github.com/buddycloud/buddycloud-xep/blob/master/sections/30.discovery.xml)
defined (none of the components returned by disco#items presents this
identity when disco#info is performed).

On Wed, Apr 30, 2014 at 6:38 AM, Peter Niederlag
[email protected]:

sleekXMPP ends with IqTimeout. On every attempt I find this in my
prosody.log:

info incoming s2s stream (unknown host)->buddycloud.org closed: This host
does not serve buddycloud.org


Reply to this email directly or view it on GitHubhttps://github.com//issues/24#issuecomment-41778015
.

Guilherme Santos Galvão Baptista
UFCG Undergraduate Student - CS Major
UW-Madison Former Exchange Student - CS Major

from buddycloud-tests-framework.

guilhermesgb avatar guilhermesgb commented on August 23, 2024

On Wed, Apr 30, 2014 at 9:45 AM, Guilherme Santos [email protected]:

datenbetrieb.de

Actually, I've payed more attention to the logs, what is happening when we
disco#info the buddycloud.datenbetrieb.de
http://buddycloud.datenbetrieb.de *component is this:
*DEBUG:sleekxmpp.xmlstream.xmlstream:RECV: Component
unavailable

I don't know what would cause this... @abmargb, any ideas?

Cheers,
Guilherme

Guilherme Santos Galvão Baptista
UFCG Undergraduate Student - CS Major
UW-Madison Former Exchange Student - CS Major

from buddycloud-tests-framework.

abmargb avatar abmargb commented on August 23, 2024

Weird. Will take a look on this as soon as I have time.

On Wed, Apr 30, 2014 at 9:57 AM, Guilherme Santos
[email protected]:

On Wed, Apr 30, 2014 at 9:45 AM, Guilherme Santos [email protected]:

datenbetrieb.de

Actually, I've payed more attention to the logs, what is happening when we
disco#info the buddycloud.datenbetrieb.de
http://buddycloud.datenbetrieb.de *component is this:
*DEBUG:sleekxmpp.xmlstream.xmlstream:RECV: Component
unavailable

I don't know what would cause this... @abmargb, any ideas?

Cheers,
Guilherme

Guilherme Santos Galvão Baptista
UFCG Undergraduate Student - CS Major
UW-Madison Former Exchange Student - CS Major

Reply to this email directly or view it on GitHubhttps://github.com//issues/24#issuecomment-41792967
.

Abmar Barros
MSc in Computer Science from the Federal University of Campina Grande -
www.ufcg.edu.br
OurGrid Team Leader - www.ourgrid.org
Buddycloud Dev - www.buddycloud.org
Paraíba - Brazil

from buddycloud-tests-framework.

pniederlag avatar pniederlag commented on August 23, 2024

awesome, thx. It works nicely now! @guilhermesgb I have been frequently debugging/restarting/changing the services and DNS so failures are likely.

from buddycloud-tests-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.