Error in import study
Hi, I am trying to upload a new study, and I get this error: "413 Request Entity Too Large 413 Request Entity Too Large nginx/1.23.1"
The problem is that even if I try to upload old studies (that I did successfully uploaded to Jatos in the past) I get the same error, so it's not really that the file is too heavy
I've looked at the tests and saw that Open WebSocket is fail, maybe this is the problem?
Would love any help!
Thank you!
Comments
Hi,
My first guess is that your Nginx is misconfigured, not allowing large uploads. Do you have access to the Nginx config? Can you post it here? Mostly I'm interested in the
client_max_body_size.Best,
Kristian
I'm not sure what it is..
I do have access to Jatos configuration if that helpful (maybe I need to update the version?)
Version: 3.6.1
URL host: https://lab.brief-ef.com
URL basepath: /
URL host + basepath: https://lab.brief-ef.com/
Local basepath: /home/centos/jatos
Study assets root path: /home/centos/jatos/study_assets_root
Result data max size: 5.0 MB
Result uploads allowed: true
Result uploads path: /home/centos/jatos/result_uploads
Result uploads max file size: 30.0 MB
Result uploads limit per study run: 50.0 MB
Study logs allowed: true
Study logs path: /home/centos/jatos/study_logs
Uses in-memory DB: false
User session validation: true
User session timeout: 1440
User session inactivity: 60
DB URL: jdbc:mysql://jatos-lab-db-cluster.cluster-ch9brhylthzi.eu-west-3.rds.amazonaws.com/jatos_db?characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
DB driver: com.mysql.cj.jdbc.Driver
JPA unit: mysqlPersistenceUnit
Google OAuth allowed: false
LDAP URL:
LDAP base DN:
LDAP timeout: 5000
Max results DB query size: 10
I can see from the error message that you posted, that you have an nginx reverse proxy in front of JATOS and the error message actually originates from there and not from JATOS. I guess something is configured wrong / too strict in nginx. If you google your error message you can get many results explaining this in more detail, e.g. https://serverfault.com/questions/814767/413-request-entity-too-large-in-nginx-with-client-max-body-size-set. Do you have an admin caring for the server where JATOS is running? Maybe forward this error to him (maybe together with the serverfault.com link).
Best,
Kristian