-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
I think I caught a regression on the latest GWSS release that breaks PDF uploads. Sheila was getting an error attempting to upload PDF's in the UI, at the point where you add them to the File tab in creating a new work.
- I was able to replicate on test and prod , with various PDF's.
- The error is about permissions to the
tmp/cache/hyrax/uploaded_files/file folder:Errno::EACCES (Permission denied @ dir_s_mkdir - /opt/scholarspace/scholarspace-hyrax/tmp/cache/hyrax/uploaded_file/file/1729536544-189-0019-6326) - On test, I noticed that the
.envfile had the TEMP_FILE_BASE set to thescholarspace-hyrax/tmpdirectory, notscholarspace/scholarspace-tmp, so I changed that, restarted the containers, and saw that the problem was resolved. - However, on prod, the
.envfile has that variable set toscholarspace/scholarspace-tmp. But I noticed that the folders intmp/cache/hyraxpath were all set to root ownership. - I restarted the containers on prod (without making any configuration changes), and uploading files seems to work as expected.
So what's going on? My guess is that some other process is resetting the tmp directories to root access, whereas the upload action needs them to be owned by the scholarspace user. Could it be that Bulkrax or the ETD loader is doing this?