Closed marcosguedes closed 3 months ago
Note the config for the internal nginx config can be found here: https://github.com/sameersbn/docker-redmine/blob/master/assets/runtime/config/nginx/redmine
If you want to try modifying it, you can volume mount over it.
- ./config/nginx/redmine:/etc/docker-redmine/runtime/config/nginx/redmine:ro
And you can reload just nginx
docker-compose exec -T redmine nginx -s reload
I've changed all timeouts on my nginx reverse proxy
Do you get the same timeout if you try downloading the file going around your reverse proxy?
I can't go around my reverse proxy as this server is being directly served by another machine.
Mounting over it looks like the ticket, but proxy_read_timeout
and proxy_connect_timeout
are already fairly generous with 300s. My assumption was wrong. I'll have to look for another cause. I'll keep it posted here if I happen to find out
Nevertheless thanks. I'm not well versed with docker and that technique will help me in the future
I did just try to upload then download a 3.4GB iso on a fresh repo and it downloaded without issue. Though it was all run locally on my machine so ideal case networking, but atleasts its possible.
Closing
Hi everyone, thanks a bunch for this project! I've been using Redmine with the provided docker-compose.yml for a few months now. I'm on 5.0.5 and it's all working fine, however, I noticed I can upload large files by changing NGINX_MAX_UPLOAD_SIZE but I can't download them. It fails midway.
My nginx reverse proxy gets the error
upstream prematurely closed connection while reading upstream
so I believe the error might come from nginx or unicorn timeouts inside the docker.Here's my environment config (minus sensitive settings)
I've changed all timeouts on my nginx reverse proxy to 600s so I don't think that's the cause.
nginx and unicorn logs on /srv/docker/redmine/redmine-logs/ don't provide any clues. Doing
docker logs redmine --follow
also doesn't show any errors. I don't know what else I should check to troubleshoot thisI'm think the issue stems from nginx timeouts because I had similar problems on other projects with redmine installed manually. However, the logs don't show anything. Is there a way I can troubleshoot this better and/or change nginx timeouts if at all possible?
Thank you