Nginx proxy pass download failure

I’m new to ODM and not strong with django. We have a few test images in webodm uploaded and processed I am trying to download the assets (e.g. However I get an error in the browser: could not be saved, because the source file could not be read

Since there are several applications on this server we are using nginx to listen on port 80 and proxy_pass to the webodm container port.
Nginx shows the following in the error logs:
[crit] 3751415#3751415: *180 open() "/var/lib/nginx/proxy/6/01/0000000016" failed (13: Permission denied) while reading upstream, client:, server: webodm.domain.tld, request: "GET /api/projects/11/tasks/b8150148-ef4c-4410-8474-37f384e5b315/download/ HTTP/1.1", upstream: "", host: "webodm.domain.tld", referrer: "http://webodm.domain.tld/dashboard/?project_task_open=11&project_task_expanded=b8150148-ef4c-4410-8474-37f384e5b315"

The directory /var/lib/nginx/proxy has directories owned by user ‘odm’ (mode 700) however nginx is running as user www-data.
So I am asking if it is possible to amend the user or permissions of those written files? Or if there is something else I am missing.
I tried setting ’ proxy_cache off;’ in the nginx conf to no avail.
Incidentally the cameras.json and shots.geojson usually download but not the other files.
Nginx conf:

server {
listen [::]:80;
client_max_body_size 0;
keepalive_timeout 5;
proxy_connect_timeout 60s;
proxy_read_timeout 300000s;
server_name webodm.domain.tld;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
proxy_pass http://localhost:8081/;

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.