Hi all,
I'm having trouble uploading data to xnat using compressed image uploader and the file manager. In both cases there's a error 413:
Error 413: error
Issue uploading your data:
413 Request Entity Too Large
nginx/1.28.0
I'm running the latest version using xnat-docker-compose and I've recently upgraded from xnat 1.8.6.1
XNAT_VERSION=1.9.3.3
PG_VERSION=16.9-alpine
NGINX_VERSION=1.29.0-alpine-perl
I've checked online and on this forum and the error points to nginx configuration line "client_max_body_size". However, this line is already there in nginx.conf, so it seems this is not because of nginx configuration. I also tried to enter the line under the http and server configuration, but that didn't help. There's unfortunately also no other errors/messages in the log files to give me any idea what's wrong.
Would anyone have any clues what to look for to try and resolve this? Thank you!
This is the current server configuration in the nginx.conf file (no change from xnat-docker-compose master branch):
server {
listen 80;
location / {
proxy_pass http://xnat-web:8080;
proxy_redirect http://xnat-web:8080 $scheme://localhost;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 150;
proxy_send_timeout 100;
proxy_read_timeout 100;
proxy_buffers 4 32k;
client_max_body_size 0;
client_body_buffer_size 128k;
}
Best,
Roman