Comments (5)
Hey Thomas, you should be able to configure this via the InactivityTimeout setting for your environment (search for "InactivityTimeout" on this page for more info).
from aws-toolkit-eclipse.
Hey David
Thank you for taking the time on this.
I think I have isolated a bug.
I changed the InactivityTimeout setting as you suggest however it doesn't behave as documented.
InactivityTimeout values up to 60 behave exactly as documented. Tasks that take a longer time than the InactivityTimeout value fail. Tasks that take less time than the InactivityTimeout succeed.
However (this is the bug), InactivityTimeout values of over 60 seconds do not behave as documented. Tasks that take a shorter time than the InactivityTimeout value but more than 60 seconds fail.
Basically there seems to be an undocumented upper value to the InactivityTimeout of 60 seconds.
Here are my logs when the task takes 120 seconds and the InactivityTimeout is set to 30:
2015-06-19T09:37:42Z init: initializing aws-sqsd 2.0 (2015-02-18)
2015-06-19T09:37:42Z start: polling https://sqs.eu-central-1.amazonaws.com/295923482971/awseb-e-zhmup3kvhm-stack-AWSEBWorkerQueue-1LUJ3UFSPYQGY
2015-06-19T09:38:26Z message: sent to %[http://localhost:80]
2015-06-19T09:38:56Z socket-err: 46502f2a-beda-4744-8fcf-f51ea6ad95a9 (1) Errno::ETIMEDOUT - 30.001
2015-06-19T09:38:58Z message: sent to %[http://localhost:80]
2015-06-19T09:39:29Z socket-err: 46502f2a-beda-4744-8fcf-f51ea6ad95a9 (2) Errno::ETIMEDOUT - 30.132
Repeated 8 more times (10 is the MaxRetries value)
This is the log when the when the task takes 120 seconds and the InactivityTimeout is set to 50:
2015-06-19T09:45:04Z init: initializing aws-sqsd 2.0 (2015-02-18)
2015-06-19T09:45:04Z start: polling https://sqs.eu-central-1.amazonaws.com/295923482971/awseb-e-zhmup3kvhm-stack-AWSEBWorkerQueue-1LUJ3UFSPYQGY
2015-06-19T09:46:41Z message: sent to %[http://localhost:80]
2015-06-19T09:47:31Z socket-err: 2f1cd567-5bee-4611-8d92-74cc0b9463dc (1) Errno::ETIMEDOUT - 50.002
2015-06-19T09:47:33Z message: sent to %[http://localhost:80]
2015-06-19T09:48:23Z socket-err: 2f1cd567-5bee-4611-8d92-74cc0b9463dc (2) Errno::ETIMEDOUT - 50.094
Repeated 8 more times (10 is the MaxRetries value)
This is the log when the task takes 120 seconds and the InactivityTimeout is set to 180:
2015-06-19T09:56:21Z init: initializing aws-sqsd 2.0 (2015-02-18)
2015-06-19T09:56:21Z start: polling https://sqs.eu-central-1.amazonaws.com/295923482971/awseb-e-zhmup3kvhm-stack-AWSEBWorkerQueue-1LUJ3UFSPYQGY
2015-06-19T09:58:24Z message: sent to %[http://localhost:80]
2015-06-19T09:59:24Z http-err: ecac994e-cee2-4665-b3df-b03585cf121d (1) 502 - 60.060
2015-06-19T09:59:26Z message: sent to %[http://localhost:80]
2015-06-19T10:00:26Z http-err: ecac994e-cee2-4665-b3df-b03585cf121d (2) 502 - 60.063
Repeated 8 more times (10 is the MaxRetries value)
Notice how the error has changed from a Errno::ETIMEDOUT to a 502. But also notice that the tasks fail at 60 seconds even though the InactivityTimeout is set to 180.
from aws-toolkit-eclipse.
I can prepose a workaround
the file /etc/httpd/conf.d/elasticbeanstalk.conf should set the ProxyTimeout to 1800.
1800 is the maximum value for InactivityTimeout as documented in http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options.html.
The question in my mind is what has caused this bug. Perhaps something in the SQS stack (Apache?) has changed recently.
from aws-toolkit-eclipse.
Hey Thomas, thanks for the detailed report and the workaround! I've passed this on to the Elastic Beanstalk team to look into.
from aws-toolkit-eclipse.
Closing this issue due to no response for a long time. Feel free to reopen it if you still have more questions.
from aws-toolkit-eclipse.
Related Issues (20)
- Unable to export project [HandyAWS] to jar file JAR creation failed. See details for additional information.
- Unable to upload lambda demo
- 409 "An update is in progress for resource" when uploading Lambda HOT 5
- AWS plugin install failing for Eclipse 2021-09 (jdk-17) HOT 2
- "Tomcat 8.5 with Corretto 8 running on 64bit Amazon Linux 2" Not supported in "Runtime Environment" for beanstalk
- AWS SSO login is not supported.
- Deploy Serverless Project hangs indefinitely at 10% progress HOT 1
- WTP Server cannot be saved - Custom Availability Zone option not supported for VPC environments
- Error when creating Custom Lamda Function handler HOT 1
- prv
- Getting java.lang.NoSuchMethodError while trying to create New Java Lambda Project HOT 3
- No documentation for how to enable existing projects
- when new AWS Lambda on Eclipse - NoSuchMethodError HOT 1
- Error : Currently displayed page contains invalid values. HOT 4
- AWS Eclipse Toolkit does not list Lambda with AWS Runtime Java 11 HOT 1
- The currently displayed page contains invalid values
- Trying to upload Java Serverless Application from eclipse. HOT 3
- Announcement: End of Life 2023-05-31 HOT 1
- Unable to create key pair HOT 1
- Error while trying to create a new AWS Web Project. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-toolkit-eclipse.