500 nginx bad gateway when Update vbulletin template

hello

when i update template in vbulletin php forum i got this error in
vhost-error_log

2012/09/09 23:13:16 [error] 10313#0: *3877 upstream prematurely closed
connection while reading response header from upstream, client:
192.168.1.1,
server: site.net, request: “POST
/vb/admincp/template.php?do=updatetemplate
HTTP/1.1”, upstream:
http://66.212.18.72:8081/vb/admincp/template.php?do=updatetemplate”,
host:
www.site.net”, referrer: “http://www.site.net/vb/login.php?do=login
2012/09/09 23:14:17 [error] 10313#0: *5145 upstream prematurely closed
connection while reading response header from upstream, client:
192.168.1.1,
server: site.net, request: “POST
/vb/admincp/template.php?do=updatetemplate
HTTP/1.1”, upstream:
http://66.212.18.72:8081/vb/admincp/template.php?do=updatetemplate”,
host:
www.site.net”, referrer:
http://www.site.net/vb/admincp/template.php?s=&do=edit&templateid=2206&group=ad_&searchstring=&expandset=32
2012/09/09 23:16:02 [error] 10313#0: *6896 upstream prematurely closed
connection while reading response header from upstream, client:
192.168.1.1,
server: site.net, request: “POST
/vb/admincp/template.php?do=updatetemplate
HTTP/1.1”, upstream:
http://66.212.18.72:8081/vb/admincp/template.php?do=updatetemplate”,
host:
www.site.net”, referrer:
http://www.site.net/vb/admincp/template.php?s=&do=edit&templateid=2206&group=ad_&searchstring=&expandset=32

so what’s the problem

thanks

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,230591,230591#msg-230591

and here is the nginx configurations for the site

server {
error_log /var/log/nginx/vhost-error_log warn;
listen 192.168.1.1:80;
server_name site.com www.site.com;
access_log /usr/local/apache/domlogs/site.com-bytes_log
bytes_log;
access_log /usr/local/apache/domlogs/site.com combined;
root /home/deltacom/public_html;
location / {
location
~..(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|html|htm|txt|js|css|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso)$
{
expires 7d;
try_files $uri @backend;
}
error_page 405 = @backend;
add_header X-Cache “HIT from Backend”;
proxy_pass http://192.168.1.1:8081;
include proxy.inc;
}
location @backend {
internal;
proxy_pass http://192.168.1.1:8081;
include proxy.inc;
}
location ~ .
.(php|jsp|cgi|pl|py)?$ {
proxy_pass http://192.168.1.1:8081;
include proxy.inc;
}
location ~ /.ht {
deny all;
}
}

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,230591,230592#msg-230592

sorry error is 502 not 500

502 Bad Gateway
nginx

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,230591,230593#msg-230593

hello

what exactly i should check regard this issue ?

thanks

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,230591,230633#msg-230633

On Monday 10 September 2012 01:35:21 iLinux85 wrote:

hello

when i update template in vbulletin php forum i got this error in
vhost-error_log
[…]
so what’s the problem

It looks like the problem is on php side.

wbr, Valentin V. Bartenev

hi,

i’ve seen similar issues with apc enabled on php side. on my
installation nginx returned an error 5xx as well when upgrading typo3
core. may be restarting your php (or at least clearing byte-code-cache)
helps.

regards,
chris

Am 10.09.2012 um 21:14 schrieb iLinux85 [email protected]:

On Monday 10 September 2012 23:14:54 iLinux85 wrote:

hello

what exactly i should check regard this issue ?

You should check the error log of your application server (php-fpm,
apache, or
whatever you use).

wbr, Valentin V. Bartenev

here is my main nginx.conf

user nobody;

no need for more workers in the proxy mode

worker_processes 2;
error_log /var/log/nginx/error.log info;
worker_rlimit_nofile 20480;
events {
worker_connections 5120; # increase for busier servers
use epoll; # you should use epoll here for Linux kernels 2.6.x
}
http {
server_name_in_redirect off;
server_names_hash_max_size 10240;
server_names_hash_bucket_size 1024;
include mime.types;
default_type application/octet-stream;
server_tokens off;
#disable_symlinks if_not_owner;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 5;
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 image/png image/x-icon image/gif image/jpeg
application/xml+rss text/javascript application/atom+xml;
ignore_invalid_headers on;
client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
reset_timedout_connection on;
connection_pool_size 256;
client_header_buffer_size 256k;
large_client_header_buffers 4 256k;
client_max_body_size 200M;
client_body_buffer_size 128k;
request_pool_size 32k;
output_buffers 4 32k;
postpone_output 1460;
proxy_temp_path /tmp/nginx_proxy/;
client_body_in_file_only on;
log_format bytes_log “$msec $bytes_sent .”;
include “/etc/nginx/vhosts/*”;
}

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,230591,230682#msg-230682

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs