File upload results with connection reset Unicorn Meta Zoo #1: Why another podcast? ...
How to find if a column is referenced in a computed column?
Are there moral objections to a life motivated purely by money? How to sway a person from this lifestyle?
Why did C use the -> operator instead of reusing the . operator?
Raising a bilingual kid. When should we introduce the majority language?
Why do games have consumables?
Double-nominative constructions and “von”
How to have a sharp product image?
tikz-feynman: edge labels
When do you need buffers/drivers on buses in a microprocessor design?
std::unique_ptr of base class holding reference of derived class does not show warning in gcc compiler while naked pointer shows it. Why?
How to translate "red flag" into Spanish?
Israeli soda type drink
My admission is revoked after accepting the admission offer
What does a straight horizontal line above a few notes, after a changed tempo mean?
Scheduling based problem
Is it acceptable to use working hours to read general interest books?
Is it possible to cast 2x Final Payment while sacrificing just one creature?
How would this chord from "Rocket Man" be analyzed?
Check if a string is entirely made of the same substring
What makes accurate emulation of old systems a difficult task?
How to avoid introduction cliches
What is it called when you ride around on your front wheel?
What is the term for a person whose job is to place products on shelves in stores?
As an international instructor, should I openly talk about my accent?
File upload results with connection reset
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraShould I, and how do I, backup my database for a web application that is hosted on an Amazon EC2 server?Configuring PHP on Windows 7 with Apache Web ServerSetting correct permissions for uploading filesIf someone downloaded 600GB , can that be a DOS attackAdminer - can't allow for larger file uploads than 2mbDocker VS VM when scalingPHP FPM / Nginx on Debian Jessie: error 500 and no logsNginx v Redis: Upstream Prematurely Closed ConnectionCan't increase upload_max_filesize in a Wordpress LAMP stackPHP Sessions deleted after 2 or 3 minutes in MS Azure scale set environment
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I am experiencing an issue on an EC2 instance. When trying to upload a file I get different behaviours :
- file size about 1.5mb : file is correctly sent to the server and processed by the backend
- file size about 2mb :
408 Timeout
- file size larger than 2mb : upload freezes at about 23 seconds and I get a
ERR:CONNECTION_RESET
message in the console
Stack :
- EC2 instance (not using any ELB)
Docker with the following :
- httpd (2.4+)
- proxy php-fpm (php7+)
- mysql
- redis (not in use yet)
I have tried the following :
- Increased TimeOut to 120, KeepAlive On and increased KeepAliveTimeout to 120 in apache
- Increased LimitRequestBody and LimitXMLRequestBody to 25000000
- Added
ProxySet connectiontimeout=120 timeout=120
in theProxy
directive in apache when calling the php-fpm proxy - Set
pm.process_idle_timeout = 120s
in the php-fpm conf file - Increased all possible Timeout and File Size parameters in the php.ini
- Rebuilt more than a hundered times the docker stack and rebooted the instance countless times
And, of course, this works perfectly fine locally, but doesn't on the EC2 instance.
Thoughts anyone ? Thanks in advance
linux php docker amazon-ec2 httpd
New contributor
add a comment |
I am experiencing an issue on an EC2 instance. When trying to upload a file I get different behaviours :
- file size about 1.5mb : file is correctly sent to the server and processed by the backend
- file size about 2mb :
408 Timeout
- file size larger than 2mb : upload freezes at about 23 seconds and I get a
ERR:CONNECTION_RESET
message in the console
Stack :
- EC2 instance (not using any ELB)
Docker with the following :
- httpd (2.4+)
- proxy php-fpm (php7+)
- mysql
- redis (not in use yet)
I have tried the following :
- Increased TimeOut to 120, KeepAlive On and increased KeepAliveTimeout to 120 in apache
- Increased LimitRequestBody and LimitXMLRequestBody to 25000000
- Added
ProxySet connectiontimeout=120 timeout=120
in theProxy
directive in apache when calling the php-fpm proxy - Set
pm.process_idle_timeout = 120s
in the php-fpm conf file - Increased all possible Timeout and File Size parameters in the php.ini
- Rebuilt more than a hundered times the docker stack and rebooted the instance countless times
And, of course, this works perfectly fine locally, but doesn't on the EC2 instance.
Thoughts anyone ? Thanks in advance
linux php docker amazon-ec2 httpd
New contributor
add a comment |
I am experiencing an issue on an EC2 instance. When trying to upload a file I get different behaviours :
- file size about 1.5mb : file is correctly sent to the server and processed by the backend
- file size about 2mb :
408 Timeout
- file size larger than 2mb : upload freezes at about 23 seconds and I get a
ERR:CONNECTION_RESET
message in the console
Stack :
- EC2 instance (not using any ELB)
Docker with the following :
- httpd (2.4+)
- proxy php-fpm (php7+)
- mysql
- redis (not in use yet)
I have tried the following :
- Increased TimeOut to 120, KeepAlive On and increased KeepAliveTimeout to 120 in apache
- Increased LimitRequestBody and LimitXMLRequestBody to 25000000
- Added
ProxySet connectiontimeout=120 timeout=120
in theProxy
directive in apache when calling the php-fpm proxy - Set
pm.process_idle_timeout = 120s
in the php-fpm conf file - Increased all possible Timeout and File Size parameters in the php.ini
- Rebuilt more than a hundered times the docker stack and rebooted the instance countless times
And, of course, this works perfectly fine locally, but doesn't on the EC2 instance.
Thoughts anyone ? Thanks in advance
linux php docker amazon-ec2 httpd
New contributor
I am experiencing an issue on an EC2 instance. When trying to upload a file I get different behaviours :
- file size about 1.5mb : file is correctly sent to the server and processed by the backend
- file size about 2mb :
408 Timeout
- file size larger than 2mb : upload freezes at about 23 seconds and I get a
ERR:CONNECTION_RESET
message in the console
Stack :
- EC2 instance (not using any ELB)
Docker with the following :
- httpd (2.4+)
- proxy php-fpm (php7+)
- mysql
- redis (not in use yet)
I have tried the following :
- Increased TimeOut to 120, KeepAlive On and increased KeepAliveTimeout to 120 in apache
- Increased LimitRequestBody and LimitXMLRequestBody to 25000000
- Added
ProxySet connectiontimeout=120 timeout=120
in theProxy
directive in apache when calling the php-fpm proxy - Set
pm.process_idle_timeout = 120s
in the php-fpm conf file - Increased all possible Timeout and File Size parameters in the php.ini
- Rebuilt more than a hundered times the docker stack and rebooted the instance countless times
And, of course, this works perfectly fine locally, but doesn't on the EC2 instance.
Thoughts anyone ? Thanks in advance
linux php docker amazon-ec2 httpd
linux php docker amazon-ec2 httpd
New contributor
New contributor
edited 22 hours ago
ness
New contributor
asked 22 hours ago
nessness
13
13
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Finally solved it by adding the following line in apache :
RequestReadTimeout handshake=5 header=10 body=120
Which specifies timeouts at different statuses of the request
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
ness is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1429196%2ffile-upload-results-with-connection-reset%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Finally solved it by adding the following line in apache :
RequestReadTimeout handshake=5 header=10 body=120
Which specifies timeouts at different statuses of the request
New contributor
add a comment |
Finally solved it by adding the following line in apache :
RequestReadTimeout handshake=5 header=10 body=120
Which specifies timeouts at different statuses of the request
New contributor
add a comment |
Finally solved it by adding the following line in apache :
RequestReadTimeout handshake=5 header=10 body=120
Which specifies timeouts at different statuses of the request
New contributor
Finally solved it by adding the following line in apache :
RequestReadTimeout handshake=5 header=10 body=120
Which specifies timeouts at different statuses of the request
New contributor
New contributor
answered 18 hours ago
nessness
13
13
New contributor
New contributor
add a comment |
add a comment |
ness is a new contributor. Be nice, and check out our Code of Conduct.
ness is a new contributor. Be nice, and check out our Code of Conduct.
ness is a new contributor. Be nice, and check out our Code of Conduct.
ness is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1429196%2ffile-upload-results-with-connection-reset%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown