-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Bad Gateway returned by Nginx #39
Comments
The answer is in the nginx error log:
The proxy is configured to redirect to port 8081, so it's not surprising that XNAT running on port 8080 isn't responding. I'm not sure why you're getting that configuration: there is an nginx configuration in the file nginx/xnat, but it's not referenced by anything and shouldn't be active (I'm going to delete it actually). nginx/Dockerfile references nginx/nginx.conf, which is what's active when I run this configuration without modification. Revert any changes you've made to the configuration, whether to nginx.conf, to reference nginx/xnat, or whatever it is that's getting the nginx configuration to redirect to port 8081 on the XNAT container. If you update to the latest commit (which I'll push momentarily), the nginx/xnat configuration has been removed. There is no other reference to port 8081 in the project. As for why 8080 and 8000 are published ports, that's a relic of this project being used primarily as a development platform: 8080 for exactly what you did (validating that XNAT is working without proxy) and 8000 for attaching to container JVM to debug code. I removed that and also added environment variables to make it possible to change heap size settings. The default minimum and maximum are 256m (up from 128m) and 2g (same as prior, 2048m, just different notation) and can be overridden in a number of ways but for example:
|
Aaah what a rookie mistake! I forgot to re-build Docker images after reset to HEAD of origin :) Thousand apologies. |
When compose services have started and xnat is accessed on http://localhost Nginx returns a bad gateway error.
The logs of Nginx show:
To Reproduce
Steps to reproduce the behavior:
docker-compose up -d
and wait for the Xnat service to start.xnat-nginx
service:Expected behavior
I expect to be redirected to the
xnat-web
service.Docker server environment (please complete the following information):
Configuration:
Additional context
xnat-web
service? Should all traffic not go through Nginx?The text was updated successfully, but these errors were encountered: