ldsec/medco

Panic! at the unlynx timeout

Closed this issue · 1 comments

Hi,
We are having a Unlynx timeout in our MedCo deployment between two distinct networks. The medco-connector logs look like this:
�[36mINFO�[0m[687890] user is authorized to request the endpoint with authorization medco-explore �[36mINFO�[0m[687890] i2b2 XML request to http://i2b2:8080/i2b2/services/OntologyService/getModifierChildren �[36mINFO�[0m[687891] Token validation successful with provider: https://medco.vantage6.ai/auth/realms/master/protocol/openid-connect/certs �[36mINFO�[0m[687891] authenticated user test �[36mINFO�[0m[687891] user is authorized to request the endpoint with authorization medco-explore �[36mINFO�[0m[687891] i2b2 XML request to http://i2b2:8080/i2b2/services/OntologyService/getModifierChildren �[31mERRO�[0m[687963] unlynx timeout 2021/08/03 13:12:18 http: panic serving 172.28.0.6:53850: runtime error: index out of range [0] with length 0

While the Unlynx logs look like this:
/go/pkg/mod/go.dedis.ch/onet/v3@v3.2.0/network/router.go:476 E : router.go:112 (network.(*Router).Start.func1) - receiving server identity from "" failed: Error while receiving ServerIdentity during negotiation receiving: buffer read: Unknown Error: go.dedis.ch/onet/v3/network.(*Router).receiveServerIdentity /go/pkg/mod/go.dedis.ch/onet/v3@v3.2.0/network/router.go:476 E : tcp.go:287 (network.handleError) - Unknown error caught: read tcp 172.28.0.2:2000->162.142.125.54:44640: read: connection reset by peer E : router.go:112 (network.(*Router).Start.func1) - receiving server identity from "" failed: Error while receiving ServerIdentity during negotiation receiving: buffer read: Unknown Error: go.dedis.ch/onet/v3/network.(*Router).receiveServerIdentity /go/pkg/mod/go.dedis.ch/onet/v3@v3.2.0/network/router.go:476 E : router.go:112 (network.(*Router).Start.func1) - receiving server identity from "" failed: Error while receiving ServerIdentity during negotiation receiving: buffer read: Unknown Error: go.dedis.ch/onet/v3/network.(*Router).receiveServerIdentity /go/pkg/mod/go.dedis.ch/onet/v3@v3.2.0/network/router.go:476 E : router.go:112 (network.(*Router).Start.func1) - receiving server identity from "" failed: Error while receiving ServerIdentity during negotiation receiving: buffer read: Unknown Error: go.dedis.ch/onet/v3/network.(*Router).receiveServerIdentity /go/pkg/mod/go.dedis.ch/onet/v3@v3.2.0/network/router.go:476 E : tcp.go:287 (network.handleError) - Unknown error caught: read tcp 172.28.0.2:2000->162.142.125.54:50196: read: connection reset by peer E : router.go:112 (network.(*Router).Start.func1) - receiving server identity from "" failed: Error while receiving ServerIdentity during negotiation receiving: buffer read: Unknown Error: go.dedis.ch/onet/v3/network.(*Router).receiveServerIdentity

We suspect a closed port (because none of our local deployments panicked like this), but I think this error should be caught and be more explicit if it's the case.

Error reminds me of this one: #35