mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-25 15:45:51 +03:00
[GH-ISSUE #414] 504 Gateway Time-out / nginx/1.0.15 #310
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 @chamambom on GitHub (Sep 2, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/414
My webvirtmgr setup is working perfectly and i have no issues whatsoever except for the webserver optimisation tricks that are failing.
I am trying to clone an 8gig VM from the webinterface (i want to manage all my migrations snapshots from webvirtmgr not virt-manager) and im getting the following error 504 Gateway Time-out on nginx/1.0.15
points to NOTE: 1) My nginx webserver is not using any php fork or proxying apache ,its just nginx
i have tried all the tricks as below
fastcgi_connect_timeout 300s;
fastcgi_send_timeout 300s;
fastcgi_read_timeout 300s;
fastcgi_buffer_size 128k;
fastcgi_buffers 8 128k;
playing around with the figures and all but alas i am still getting 504 Gateway Time-out / nginx/1.0.15
@chamambom commented on GitHub (Sep 2, 2014):
and the irony of it is that the clone gets created..... but i am not so sure if say the vm i am trying to clone is 60g or more ,will it get created
@retspen commented on GitHub (Sep 2, 2014):
You can check the same in console with qemu-img utility.
$ time qemu-img convert -f qcow2 -O qcow2 source_image.img targer_image.img
@chamambom commented on GitHub (Sep 2, 2014):
Hie retspen , before i try the command you gave me , i want to understand you first.Are you saying even if i run the clone command using the terminal , there will be a timeout ?
@AlexH-HankIT commented on GitHub (Sep 2, 2014):
Yes, there is always a timeout. It's normal for webservers. I think the proxy timeout is causing your problems. I saw it once or twice in my own webvirtmgr. You can use these parameters in your 'location /' blog in /etc/nginx/conf.d/webvirtmgr.conf:
Adjust the values to something suitable for your environment.
I don't know for sure if this correct, but just test it ;)
@retspen commented on GitHub (Sep 2, 2014):
Command will show how long an image is cloning. You can change timeout in /var/www/webvirtmgr/conf/gunicorn.conf.py
@AlexH-HankIT commented on GitHub (Sep 2, 2014):
I wonder if it's possible to create a progress bar?
@retspen commented on GitHub (Sep 4, 2014):
It is very hard and this only as effect
@retspen commented on GitHub (Sep 5, 2014):
Update nginx config for changing timeout. https://github.com/retspen/webvirtmgr/wiki/Install-WebVirtMgr
@chamambom commented on GitHub (Sep 5, 2014):
Hie Anatoliy
I had already changed timeout in /var/www/webvirtmgr/conf/gunicorn.conf.py
and i seem to have noticed a change after i increased the timeout.....
does it mean i have to remove it and use this instead
http://gunicorn.conf.py
server {
listen 80 default_server;
}
On Fri, Sep 5, 2014 at 12:13 PM, Anatoliy Guskov notifications@github.com
wrote:
@retspen commented on GitHub (Sep 5, 2014):
After added parallel connections in gunicorn.conf.py timeout paramert doesn't work normally. Only nginx timeout works normally.
@chamambom commented on GitHub (Sep 5, 2014):
I see , let me clone 20G,40G and 60G vms and see if the timeout is fixed
http://gunicorn.conf.py
On Fri, Sep 5, 2014 at 3:01 PM, Anatoliy Guskov notifications@github.com
wrote:
@chamambom commented on GitHub (Sep 6, 2014):
i think its working now , if the vm size is a bit larger ,i guess i will have to play around with the timeout settings