mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-27 00:25:51 +03:00
[GH-ISSUE #222] 502 Gateway Error - Nginx #174
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @amitk79 on GitHub (Feb 4, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/222
When we clone or launch a new instance from templates, After sometime it gives 502 error on Nginx. I have increased proxy read and timeout but still same. It seems it is timeout issue from backend. Can you please confirm ?
Thanks for awesome product.
@retspen commented on GitHub (Feb 4, 2014):
Timeout operation in nginx. You can change timeout in nginx.conf
@amitk79 commented on GitHub (Feb 4, 2014):
Thanks for update!!
I was using 540 earlier so I don't think it will make any difference. Other option is we can make these number more ?
Same, If I am cloning 100GB image. Can't we make it run as a backend ?
Becuase this way Launch from template will never work if we will have to launch say 200GB image.
@retspen commented on GitHub (Feb 4, 2014):
How long do you clone your image? 600 - this is 10min
@amitk79 commented on GitHub (Feb 4, 2014):
I am copying 10 GB and after copying 1.3 GB it says 502 Bad Gateway. I mean after 60s it is showing 502.
My Nginx setting:
Restart done.
@jtsoftex commented on GitHub (Feb 28, 2014):
Hi,
It is strange, when I am uploading iso directly via like http://192.168.0.xxx:8000/ it is working fine and can upload 5 GB iso file.
When I am doing same via nginx proxy it is not working and giving 502 bad gateway after some time.
What I noticed that when I am uploading via nginx, firstly it is uploading file 100% (don't know where) and after that it starts copying in /tmp folder and after copying 1.5 Gb it gives me 502.
When I am doing directly on :8000 it starts copying file directly in /tmp folder and then to my iso folder.
Can you please clear me on its working ? or any workaround ?
@retspen commented on GitHub (Feb 28, 2014):
Add
client_max_body_size 5299293140;to /etc/nginx/nginx.conf into sectionhttp { ... }@Expert-Newbie commented on GitHub (Jan 16, 2018):
Hello,
Just in case you are using Webvirtmgr behind a proxy nginx.
Solution :
I had to change
DEBUG = TRUEtoDEBUG = Truein /var/www/webvirtmgr/webvirtmgr/settings.pythen
systemctl stop supervisord.serviceandsystemctl start supervisord.serviceand finallysystemctl restart nginxand it works !Explanation :
The problem doesn't come from nginx but from the service behind the port (in my case port 8000) that nginx redirect on.
I used the log with
systemctl status supervisord.service -land i had an error with python.This link help me to find the solution : https://stackoverflow.com/questions/30095032/nameerror-name-true-is-not-defined
Hope it works for you too !