Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

server setting:

Ubuntu server 10.10
using nginx 0.7.67
PHP 5.3.3 with PHP-FPM
Drupal 7 site. 
post_max_size = 1000M
upload_max_filesize = 1000M
max_execution_time = 3600
request_terminate_timeout = 3600s  <---this is PHP-FPM setting

When uploading from local PC to server, the upload bar suddenly stop and a popup message come up:

An AJAX HTTP request terminated abnormally.
Debugging information follows.
Path: /file/ajax/field_vid/und/0/form-E3f71tOgO8ZCiQgVryNSshhFe8Xl4ieBkJJswXjSgwA
StatusText: n/a
ReadyState: undefined

The popup message come 30 sec to 60 sec after clicking "upload" button.

Maybe this related with upload from local PC. So, I try to upload remotely. It fails too with a popup message:

An AJAX HTTP request terminated abnormally.
Debugging information follows.
Path: /file/ajax/field_vid/und/0/form-i9q-9xhs7bR9v9GMaqF9Z4Jyh8E5gIzjA4qMlRRR7cM
StatusText: n/a
ResponseText: 504 Gateway Time-out

ReadyState: undefined

I've done searching on the net and has tried many solution with no luck


If 504 Gateway error usually the server-side fault. If PHP has been configured fine, it must be other problem.

Since the error popup is from ajax, I think this maybe related to something missing. FYI, the server dont have any "upload progress" package installed.

(the upload progress bar still works even without installing any "upload progress" package)

Installing upload progress in nginx is involving reinstall make me think twice to do it. Do you think upload progress is mandatory in this case?

share|improve this question
up vote 0 down vote accepted

1.I think you might have one of the following :

1.1 Misconfiguration in upload settings .

1.2 Some kind of network packet fragmentation

2.You can test this further following these steps :

2.1.See the time pattern for the error .

2.2.See if it's a size pattern (files over 100 mb or something like that )

For point 1.1. You could play with the settings after you complete point 2. For point 1.2. You could try to copy a file in the local network after you have the upper limit for the upload , then try to copy it outside your network if applicable .

share|improve this answer
1.1 Upload setting is correct. Upload limit inherit PHP (1000MB). 1.2 Have tried, but same result. 2.1 The error come sometime more than one minute. I think this not because nginx or PHP misconfiguration. 2.2 Have tried many size: 5MB, 15MB, 45MB, 74MB, and 600MB. Only 5MB (from local PC) and 15MB (from other server) successfully uploaded. I think both of the files can be uploaded because not require long time – apasajja Apr 19 '12 at 11:29
Yes , it could be a timeout set or a size limitation . I would speak with the "network guy" , he might be able to help you here . – Alex H Apr 20 '12 at 5:43

Since you aren't posting your nginx conf there's a chance you haven't tried the setting

client_max_body_size 1000M;

on your http block. The problem is, I don't know if that setting is valid for nginx 0.7.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.