Failed to update: gnutls_handshake() failed

Bug #1488186 reported by Leo Arias
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snappy
Invalid
High
Unassigned

Bug Description

During the jenkins executions of the integration tests I found this error:

sudo snappy update
error from system-image-cli: gnutls_handshake() failed: The TLS connection was non-properly terminated.: https://system-image.ubuntu.com/gpg/image-master.tar.xz
/tmp/snappy-tests-job/16222/src/launchpad.net/snappy/_integration-tests/tests/failover_systemd_loop_test.go:113:
    ...open /tmp/snappy-tests-job/16222/src/launchpad.net/snappy/_integration-tests/tests/failover_systemd_loop_test.go: no such file or directory
/tmp/snappy-tests-job/16222/src/launchpad.net/snappy/_integration-tests/testutils/common/common.go:190:
    ...open /tmp/snappy-tests-job/16222/src/launchpad.net/snappy/_integration-tests/testutils/common/common.go: no such file or directory
... value *exec.ExitError = &exec.ExitError{ProcessState:(*os.ProcessState)(0xc82016cac0)} ("exit status 1")
... Error: error from system-image-cli: gnutls_handshake() failed: The TLS connection was non-properly terminated.: https://system-image.ubuntu.com/gpg/image-master.tar.xz

Michael Vogt (mvo)
Changed in snappy:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Michael Vogt (mvo) wrote :

This error comes from the "system-image-cli" binary which uses pycurl/gnutls. This means that either the system-image server or the client have problems, its odd that it only happens sometimes (or a network problem with the datacenter which seems unlikely).

Do you see any pattern when it comes to the architecture or anything else? Or is it just random?

Fwiw, it seems like its happening in gnutls deep in gnutls_record.c:recv_headers() its also not a timeout issue as this will trigger a different error code in gnutls.

Whats strange is that
"""
for i in $(seq 10); do curl https://system-image.ubuntu.com/gpg/image-master.tar.xz >/dev/null; sleep 0.2; done
"""
does work just fine for me. I wonder if we could run this on the jenkins host to see if that shows errors there.

Revision history for this message
Leo Arias (elopio) wrote :

I ran the loop many times from the jenkins machine. No errors there either.

Revision history for this message
Leo Arias (elopio) wrote :

I've send an RT. Will keep you posted.

Revision history for this message
Federico Gimenez (fgimenez) wrote :
Revision history for this message
Leo Arias (elopio) wrote :

this morning it failed on ubuntu-device-flash like this: http://pastebin.ubuntu.com/12896071/

Revision history for this message
Leo Arias (elopio) wrote :

another u-d-f error today: http://pastebin.ubuntu.com/12970390/

Revision history for this message
Leo Arias (elopio) wrote :

As suggested by nessita, I'm opening different bugs for the package download and the icon download, because they are in different servers: bug #1510136 and bug #1510138. We can keep this one to track the failure to download from system-image.

Revision history for this message
Leo Arias (elopio) wrote :

Even if this happens to be a problem in the servers, the client should handle this better with retries.

Revision history for this message
Leo Arias (elopio) wrote :

we are no longer using system image. We already have bugs opened for downloads failing on the store, so I'm just closing this.

Changed in snappy:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.