Question: 502 - bad gatewway
1
gravatar for coussementpieter
23 months ago by
coussementpieter • 10 wrote:

I install galaxy on a local server with most of production tweaks on the websites https://wiki.galaxyproject.org/Admin/Config/Performance/ProductionServer https://wiki.galaxyproject.org/Admin/Config/nginxProxy (except for the upload stuff with nginx, which needs nginx recompiling)

Galaxy is up and running. However I often get a 502 bad gateway response from nginx. A simple refresh fixes it, but this is not ideal. What could go wrong? What logs do I need to check?

software error galaxy • 608 views
ADD COMMENT • link • modified 3 months ago by danielfortin86 • 110 • written 23 months ago by coussementpieter • 10
1
gravatar for danielfortin86
3 months ago by
United States
danielfortin86 • 110 wrote:

If anyone else runs into this issue the solution I found that the solution was to comment out the ipv6 line and change the server from localhost to 127.0.0.1, e.g.:

#        listen       [::]:80 default_server;
server 127.0.0.1:8080;
ADD COMMENT • link written 3 months ago by danielfortin86 • 110

Thanks for posting back your solution!

For others who have this particular type of Nginx config problem, how to configure (more generalized) is covered here: https://docs.galaxyproject.org/en/master/admin/nginx.html?highlight=nginx%20listen

ADD REPLY • link modified 3 months ago • written 3 months ago by Jennifer Hillman Jackson ♦ 25k
0
gravatar for Jennifer Hillman Jackson
22 months ago by
United States
Jennifer Hillman Jackson ♦ 25k wrote:

Hello,

This is probably an Apache-Nginx issue unrelated to Galaxy. There is much discussion about how to fix the bad gateway problem online. This is one example (top google hit, well written): https://www.scalescale.com/tips/nginx/502-bad-gateway-error-using-nginx/#

Hope you are able to sort this out. Jen, Galaxy team

ADD COMMENT • link written 22 months ago by Jennifer Hillman Jackson ♦ 25k
0
gravatar for danielfortin86
3 months ago by
United States
danielfortin86 • 110 wrote:

I'm also experiencing this issue with a new installation and have tried out the suggestions on https://www.scalescale.com/tips/nginx/502-bad-gateway-error-using-nginx/# without success. Any one have any suggestions?

ADD COMMENT • link written 3 months ago by danielfortin86 • 110

Hello,

The updated help for configuring Nginx is in the Galaxy docs here: https://docs.galaxyproject.org/en/master/admin/nginx.html

If that does not resolve your config problem, you can ask the developers for help at the Galaxy Gitter channel: https://gitter.im/galaxyproject/Lobby

Thanks! Jen, Galaxy team

ADD REPLY • link modified 3 months ago • written 3 months ago by Jennifer Hillman Jackson ♦ 25k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 176 users visited in the last hour