Closed seboudry closed 3 months ago
This is the first time that I see that error, maybe you can try the following:
https://github.com/AzBuilder/terrakube/issues/496
The above is related to some nginx configuration when you are uploading some big files
I think it is failing in this part of the code when it is trying to upload the terraform code file and create the file in MINIO
According to this maybe adding the following to your helm chart values could work for you.
api:
env:
- name: JAVA_TOOL_OPTIONS
value: "-Dcom.amazonaws.sdk.s3.defaultStreamBufferSize=YOUR_MAX_PUT_SIZE"
I tried all of these without success...
api:
env:
- name: JAVA_TOOL_OPTIONS
value: >
-Dcom.amazonaws.sdk.s3.defaultStreamBufferSize=100MB
-Dspring.servlet.multipart.max-file-size=100MB
-Dspring.servlet.multipart.max-request-size=100MB
ingress:
api:
annotations:
nginx.ingress.kubernetes.io/client-body-buffer-size: 100M
nginx.ingress.kubernetes.io/proxy-body-size: 100M
I tried all of these without success...
api: env: - name: JAVA_TOOL_OPTIONS value: > -Dcom.amazonaws.sdk.s3.defaultStreamBufferSize=100MB -Dspring.servlet.multipart.max-file-size=100MB -Dspring.servlet.multipart.max-request-size=100MB ingress: api: annotations: nginx.ingress.kubernetes.io/client-body-buffer-size: 100M nginx.ingress.kubernetes.io/proxy-body-size: 100M
Quick question, what is the size of the folder where you are running the terraform cli?
Nice question!
I figured out that the tf.state
used to migrate to terrakube was still on the directory...
After ignoring it on .terraformignore
, it's working!
I will test separately the different options to know wich ones are required.
OK, so no configuration is needed...
Sorry to distrub @alfespa17 and thanks to help diagnose the pain point.
But I don't know a method to get the actual size fo the sent archive...
Bug description 🐞
Hi!
With embedded minio as state storage backend when I try to run a
terraform plan
from my computer I get a 500 error from Terrakube API.Here's the API component logs:
Steps to reproduce
Expected behavior
No response
Example repository
Anything else?
I also defined
client-body-buffer-size
(see Helm values) to be shure Nginx ingress controller doesn't buffer anything.But I don't know where is the root cause between my laptop, GCP load balancer, Nginx ingress contoller, Terrakube API, MinIO storage.