# I/O error on uploading video upto 4mb

**URL:** <https://www.ruby-forum.com/t/i-o-error-on-uploading-video-upto-4mb/227206>\
**Category:** NGINX\
**Created:** [March 7, 2013, 1:32pm UTC](https://www.ruby-forum.com/t/i-o-error-on-uploading-video-upto-4mb/227206 "2013-03-07T13:32:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shahzaib12](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@shahzaib12](https://www.ruby-forum.com/u/shahzaib12)\
**Post date:** [March 7, 2013, 1:32pm UTC](https://www.ruby-forum.com/t/i-o-error-on-uploading-video-upto-4mb/227206/1 "2013-03-07T13:32:42Z")

</div>

Hello,

```
   We recentyl changed our ip of the server to upgrade port to 2Gbps

```

but after upgrading port, we are unable to upload .flv video upto 4mb.  
Everything was working fine before the up-gradation. Following is the  
nginx.conf file. Please i need a quick help :-

user nginx;  
worker\_processes 16;  
worker\_rlimit\_nofile 300000; #2 filehandlers for each connection  
#error\_log logs/error.log;  
#error\_log logs/error.log notice;  
#error\_log logs/error.log info;

#pid logs/nginx.pid;

events {  
worker\_connections 6000;  
use epoll;  
}  
http {  
include mime.types;  
default\_type application/octet-stream;  
client\_body\_buffer\_size 128K;  
sendfile\_max\_chunk 128k;  
client\_max\_body\_size 800m;  
client\_header\_buffer\_size 256k;  
large\_client\_header\_buffers 4 256k;  
output\_buffers 1 512k;

# fastcgi\_buffers 512 8k;

# proxy\_buffers 512 8k;

# fastcgi\_read\_timeout 300s;

```
server_tokens off; #Conceals nginx version
#access_log logs/access.log main;
access_log off;
sendfile off;
#tcp_nopush on;

```

# gzip on;

# gzip\_vary on;

# gzip\_disable “MSIE [1-6].”;

# gzip\_proxied any;

# gzip\_http\_version 1.1;

# gzip\_min\_length 1000;

# gzip\_comp\_level 6;

# gzip\_buffers 16 8k;

# You can remove image/png image/x-icon image/gif image/jpeg if you have

slow CPU

# gzip\_types text/plain text/xml text/css application/x-javascript

application/xml application/xml+rss text/javascript  
application/atom+xml;  
ignore\_invalid\_headers on;  
client\_header\_timeout 3m;  
client\_body\_timeout 3m;  
send\_timeout 3m;  
keepalive\_timeout 0;  
reset\_timedout\_connection on;

Best Regards.

---

<div class="post-metadata">

**Author:** ![shahzaib12](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@shahzaib12](https://www.ruby-forum.com/u/shahzaib12)\
**Post date:** [March 7, 2013, 3:41pm UTC](https://www.ruby-forum.com/t/i-o-error-on-uploading-video-upto-4mb/227206/2 "2013-03-07T15:41:16Z")

</div>

The issue has been solved, it was monit tool which was creating issues.  
Thanks 🙂

Best Regards.  
Shahzaib
