Uploads returning 404 error

20 views
Skip to first unread message

Isset Guerrero Galache

unread,
Jul 26, 2022, 3:18:37 PMJul 26
to AtoM Users
Hi everyone.

We are an investigation institute in UNAM México, and we are users of AtoM since 2013.

We are starting a new project so I did a fresh install of the app, I followed all the instructions in the tutorials plus it's not my first installation, but for some reason I can't display any kind of digital objects.

I already checked the permissions of the uploads folder, I checked that the files are there, I cleaned the cache, I regenerated the digital objects, I repopulate the search index, I checked that I was not missing libraries, and I don't know what else to do to correct this problem.

In the logs, the only error shown is:

[error] 24577#24577: *69 open() "/var/www/nginx/******/uploads/r/null/a/f/c/afcdb3efa649f36110a6ae7f334a447f51ade7de80d1bbf54981f5a0c1913178/P01_141.jpg" failed (2: No such file or directory), client: **.**.**.**, server: **.**.**.**, request: "GET /uploads/r/null/a/f/c/afcdb3efa649f36110a6ae7f334a447f51ade7de80d1bbf54981f5a0c1913178/P01_141.jpg HTTP/1.1", upstream: "fastcgi://unix:/run/php7.2-fpm.atom.sock", host: "**.**.**.**", referrer: "http://**.**.**.**/index.php/p01

I hope you can help me. As additional information, here is my configuration:

AtoM version 2.6.4
Ubuntu Server 15.04 LTS
PHP version 7.2
Nginx version 1.14

Thanks for your attention and for the help

Isset

--
Ing. Isset Guerrero Galache
Departamento de Cómputo
Instituto de Investigaciones Estéticas, UNAM

Dan Gillean

unread,
Jul 27, 2022, 9:09:46 AMJul 27
to ICA-AtoM Users
Hi there, 

I noticed that you have changed the installation path for AtoM / Nginx, from the recommended /usr/share/nginx/atom to /var/www/nginx/xxxxx. This is fine, but may also be the cause of the issue if you haven't accounted for this change elsewhere. 

Specifically, I suggest you check the Nginx configuration block created during installation. There are a few places in the config block that use paths - make sure these match your installation! See: 
  • sudo systemctl reload nginx
You may also want to clear the application cache and restart PHP-FPM, to ensure you are seeing the latest versions of pages before re-testing: 
  • php symfony cc
  • sudo systemctl restart php7.2-fpm
Let us know if that helps!

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory
he / him


--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/f88952e7-cfb9-4fa4-a19b-84b1285ffb71n%40googlegroups.com.

Isset Guerrero Galache

unread,
Jul 27, 2022, 1:23:28 PMJul 27
to AtoM Users
Hi Dan.

Thanks to the detail you gave me I can solve my problem. I just create a symbolic link in the path you mention to my installation location and the problem is solved.

Thanks a lot for your help.

Isset
Reply all
Reply to author
Forward
0 new messages