I managed to fix (hotfix) the issue using the massive timeouts as suggested by
I have never seen this error since this.
FYI, For AWS EB, the change of nginx config is lost after restart/redeploy/…
To make it permanent, use AWS EB .platfom extension.
For EB deployment, make a zip, which will contain
- uber jar
- .platform/nginx/conf.d/elasticbeanstalk/timeout.conf
with this content: timeout.conf
proxy_connect_timeout 600s;
proxy_read_timeout 900s;
proxy_send_timeout 900s;
It is also good idea to create a Gradle task to reate that zip.
build.gradle:
...
.....
.......
tasks.register('createPlatformDir', Copy) {
into('build/.platform')
from('src/main/elasticbeanstalk/.platform')
}
tasks.register('createEbExtensionsDir', Copy) {
into('build/.ebextensions')
from('src/main/elasticbeanstalk/.ebextensions')
}
tasks.register('bundleForElasticBeanstalk', Zip) {
dependsOn bootJar
dependsOn createPlatformDir
dependsOn createEbExtensionsDir
from('build/libs') {
include '*.jar'
}
into('.platform') {
from('build/.platform')
}
into('.ebextensions') {
from('build/.ebextensions')
}
archiveBaseName.set("aws-eb-${project.name}")
destinationDirectory.set(file('build/distributions'))
}
Good luck!
