Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large file upload fails after 30 seconds #102

Closed
hdave opened this issue Jan 10, 2018 · 2 comments
Closed

Large file upload fails after 30 seconds #102

hdave opened this issue Jan 10, 2018 · 2 comments

Comments

@hdave
Copy link

hdave commented Jan 10, 2018

I am using GLBC on a Google Cloud cluster - Kubernetes v1.8. In this instance, the ingress is for the Nexus repository manager and is defined as follows:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: my-nexus-https
  annotations:
    kubernetes.io/ingress.class: "gce"
    kubernetes.io/ingress.allow-http: "false"
  labels:
    app: ops-nginx
spec:
  tls:
  - hosts:
    - mycorp.com
    secretName: testssl
  backend:
    serviceName: my-nexus
    servicePort: 8081

If I then attempt to upload a file to Nexus via curl, it runs for about 30 seconds then fails as follows:

curl -i -k -T bigfile https://mycorp.com/repository/testbigfiles/

* GnuTLS recv error (-110): The TLS connection was non-properly terminated.
* Closing connection 0
curl: (56) GnuTLS recv error (-110): The TLS connection was non-properly terminated.

Logs in Nexus indicate client just dropped:

Caused by: org.eclipse.jetty.io.EofException: Early EOF
	at org.eclipse.jetty.server.HttpInput$3.noContent(HttpInput.java:791)
	at org.eclipse.jetty.server.HttpInput.read(HttpInput.java:157)
	at org.sonatype.nexus.common.hash.MultiHashingInputStream.read(MultiHashingInputStream.java:66)
	at com.google.common.io.CountingInputStream.read(CountingInputStream.java:63)
	at java.security.DigestInputStream.read(DigestInputStream.java:161)
	at java.io.FilterInputStream.read(FilterInputStream.java:133)
	at java.io.FilterInputStream.read(FilterInputStream.java:107)
	at com.google.common.io.ByteStreams.copy(ByteStreams.java:106)
	at org.sonatype.nexus.blobstore.file.internal.SimpleFileOperations.create(SimpleFileOperations.java:60)
	at org.sonatype.nexus.blobstore.file.FileBlobStore.lambda$0(FileBlobStore.java:287)
	at org.sonatype.nexus.blobstore.file.FileBlobStore.tryCreate(FileBlobStore.java:350)

I did not expect this behavior. This does not happen if I use the Type=LoadBalancer L4 load balancer. Thinking it might have been the L7's health check, I examined it in the cluster dashboard, but it is reporting healthy.

      "ingress.kubernetes.io/backends": "{\"k8s-be-31391--74104f0a9bad5b66\":\"HEALTHY\"}",

Any help is appreciated.

@hdave hdave changed the title Large file upload fails after short period Large file upload fails after 30 seconds Jan 10, 2018
@hdave
Copy link
Author

hdave commented Jan 11, 2018

Turns out, further investigation revealed this is a problem with L7 load balancing in general. Root cause and workaround is here: https://stackoverflow.com/questions/40208419/gcp-http-load-balancer-returns-502-error-if-post-data-is-large

@hdave hdave closed this as completed Jan 11, 2018
@G-Harmon
Copy link
Contributor

I'm glad you figured it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants