I've written up my experiences in a blog:
http://pvh.wp.sanbi.ac.za/2015/12/04/faster-galaxy-with-uwsgi/
The only Galaxy side changes were the ones mentioned on the Scaling page. The Bad Gateway message means that Apache can't talk to the uWSGI so what is the state of uWSGI?
Are you using supervisord? Does supervisorctl show the uWSGI process running? Does ps ax |grep uwsgi show it running? What does sudo lsof -i :4001 show is listening on port 4001? That would be the starting point of my debugging.
Peter
It is uwsgi that I am trying but with apache. Could you let me know what changes you made to the configuration of Galaxy?
Thank you,
Makis
Date: Fri, 4 Dec 2015 10:01:56 +0200
Subject: Re: [galaxy-dev] Multiple web servers and handlers Galaxy failed
From: pvh@sanbi.ac.za
To: makis4ever@hotmail.com
CC: galaxy-dev@lists.bx.psu.edu; galaxy-dev@lists.galaxyproject.orgHi Makis, I recently implemented something like this using uWSGI with a nginx frontend. Would you consider using uWSGI instead of your current approach?
On 4 Dec 2015 09:40, "Makis Ladoukakis" <makis4ever@hotmail.com> wrote:Sorry for bumping my own question but I didn't get any replies. Has anyone succesfully installed a production Galaxy instance?
I could really use some advice.
Thank you,
Makis
From: makis4ever@hotmail.com
To: galaxy-dev@lists.bx.psu.edu; galaxy-dev@lists.galaxyproject.org
Date: Tue, 1 Dec 2015 18:03:44 +0200
Subject: [galaxy-dev] Multiple web servers and handlers Galaxy failed
Hello everyone,
I am trying to setup a Galaxy instance for a multi-user production environment and I tried to follow the instructions here:
https://wiki.galaxyproject.org/Admin/Config/Performance/Scaling
https://wiki.galaxyproject.org/Admin/Config/Performance/ProductionServer
https://wiki.galaxyproject.org/Admin/Config/ApacheProxy
but when I tried to start my galaxy instance (GALAXY_RUN_ALL=1 sh run.sh --daemon) I got the following error in my browser:Bad Gateway
The proxy server received an invalid response from an upstream server.
I don't get any errors from the paster.log files so I am guessing the error is somewhere in my apache configuration although I can't see where it could be.
Has anyone encountered this problem before?
Kind regards,
Makis
P.S. My apache configuration is as follows:
I added that to my apache httpd.conf file:
#for galaxy
#RewriteRule ^/galaxy(.*) http://localhost:8091$1 [P]
RewriteRule ^/galaxy$ /galaxy/ [R]
RewriteRule ^/galaxy/static/style/(.*) /home/galaxy/galaxy/static/june_2007_style/blue/$1 [L]
RewriteRule ^/galaxy/static/scripts/(.*) /home/galaxy/galaxy/static/scripts/packed/$1 [L]
RewriteRule ^/galaxy/static/(.*) /home/galaxy/galaxy/static/$1 [L]
RewriteRule ^/galaxy/favicon.ico /home/galaxy/galaxy/static/favicon.ico [L]
RewriteRule ^/galaxy/robots.txt /home/galaxy/galaxy/static/robots.txt [L]
LoadModule uwsgi_module /etc/httpd/modules/mod_uwsgi.so
<Location "/galaxy">
Sethandler uwsgi-handler
uWSGISocket 127.0.0.1:4001
uWSGImaxVars 512
</Location>
I am also attaching my job_conf.xml and galaxy.ini file.
___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: https://lists.galaxyproject.org/ To search Galaxy mailing lists use the unified search at: http://galaxyproject.org/search/mailinglists/
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client. To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
https://lists.galaxyproject.org/
To search Galaxy mailing lists use the unified search at:
http://galaxyproject.org/search/mailinglists/