<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,<br>
Thanks for reporting this issue, it will be fixed in the next release.<br>
Also could i know why you are using client_max_body_size 5G; in the config file?<br>
<br>
Thanks,<br>
Gaurav<br>
<br>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<br>
<div>
<div>
<div class="gmail_quote">Hello,<br>
<br>
Don't know if this is the best way to report a bug, but here goes :).<br>
<br>
I have 2 gluster servers running glusterfs-3.3beta1 on which I have<br>
configured the Object Storage platform. The servers are on a private<br>
network with no public IP's and i was trying to load balance the<br>
object storage system using nginx. It worked great except that every<br>
other request would be answered with a 503 error. Upon inspection of<br>
/var/log/swift/proxy.error I found the following traceback:<br>
<br>
Jul 29 13:28:53 storage05 proxy-server ERROR 500 Traceback (most<br>
recent call last):#012 &nbsp;File<br>
&quot;/usr/local/lib/python2.6/dist-packages/swift-1.4_dev-py2.6.egg/swift/obj/server.py&quot;,<br>
line 891, in __call__#012 &nbsp; &nbsp;res = getattr(self, req.method)(req)#012<br>
File &quot;/usr/local/lib/python2.6/dist-packages/swift-1.4_dev-py2.6.egg/swift/obj/server.py&quot;,<br>
line 733, in GET#012 &nbsp; &nbsp;if file_obj.metadata[X-ETAG] in<br>
request.if_none_match:#012NameError: global name 'X' is not<br>
defined#012 From Object Server <a href="http://127.0.0.1:6010" target="_blank">127.0.0.1:6010</a><br>
<br>
(txn:<br>
tx2abf0954-1043-4976-a692-39da260d9271)<br>
<br>
It seams that at line 733 in<br>
/usr/local/lib/python2.6/dist-packages/swift-1.4_dev-py2.6.egg/swift/obj/server.py,<br>
is trying to call X-ETAG instead of X_ETAG (i think its a typo).<br>
Replacing the dash with an<br>
underscore takes care of the error on my system. If its of any help,<br>
here is the nginx config i used:<br>
<br>
<br>
worker_processes &nbsp;1;<br>
<br>
events {<br>
&nbsp;worker_connections &nbsp;1024;<br>
}<br>
<br>
<br>
http {<br>
&nbsp;include &nbsp; &nbsp; &nbsp; mime.types;<br>
&nbsp;default_type &nbsp;application/octet-stream;<br>
<br>
&nbsp;sendfile &nbsp; &nbsp; &nbsp; &nbsp;on;<br>
&nbsp;keepalive_timeout &nbsp;65;<br>
<br>
&nbsp;upstream backend-secure {<br>
&nbsp; &nbsp; &nbsp;server <a href="http://192.168.5.5:443" target="_blank">192.168.5.5:443</a>;<br>
&nbsp; &nbsp; &nbsp;server <a href="http://192.168.5.6:443" target="_blank">192.168.5.6:443</a>;<br>
&nbsp;}<br>
<br>
server {<br>
&nbsp; &nbsp; &nbsp;listen 80;<br>
&nbsp; &nbsp; &nbsp;client_max_body_size 5G;<br>
&nbsp; &nbsp; &nbsp;location / {<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_pass <a href="https://backend-secure" target="_blank">https://backend-secure</a>;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_set_header Host $host;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_set_header X-Real-IP $remote_addr;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_set_header X-Forwarded-Proto https;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_redirect &nbsp; &nbsp; off;<br>
<br>
&nbsp; &nbsp; &nbsp;}<br>
&nbsp;}<br>
&nbsp;server {<br>
&nbsp; &nbsp; &nbsp;listen 443 ssl;<br>
&nbsp; &nbsp; &nbsp;client_max_body_size 5G;<br>
&nbsp; &nbsp; &nbsp;ssl_certificate &nbsp; &nbsp; &nbsp;/etc/nginx/ssl/cert.crt;<br>
&nbsp; &nbsp; &nbsp;ssl_certificate_key &nbsp;/etc/nginx/ssl/key.key;<br>
&nbsp; &nbsp; &nbsp;location / {<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_pass <a href="https://backend-secure" target="_blank">https://backend-secure</a>;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_set_header Host $host;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_set_header X-Real-IP $remote_addr;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_set_header X-Forwarded-Proto https;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_redirect &nbsp; &nbsp; off;<br>
&nbsp; &nbsp; &nbsp;}<br>
&nbsp;}<br>
}<br>
<br>
<br>
Best regards,<br>
Gabriel<br>
_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="http://gluster.org/cgi-bin/mailman/listinfo/gluster-users" target="_blank">http://gluster.org/cgi-bin/mailman/listinfo/gluster-users</a><br>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>