Hello DSpace technical community,

I am managing a DSpace 7/8 installation and have been encountering a 
recurring problem whenever users try to upload PDFs. The interface always 
returns a “upload failed” message. After numerous attempts to diagnose and 
fix this issue, I’m reaching out for your guidance. Below is a summary of 
the troubleshooting steps I’ve performed:

1. **Assetstore regeneration** – On version 7, I tried deleting the 
`/dspace/assetstore` directory and regenerating it. Interestingly, this fix 
worked for about a day, but then the “upload failed” error returned.
2. **Permissions and ownership** – I confirmed the permissions and 
ownership of `/dspace` and all subdirectories (including the assetstore). 
The Tomcat user owns these directories, and file system permissions are 
open enough to allow writing. Running manual tests (e.g., writing files to 
the assetstore as the Tomcat user) works without issue.
3. **Config checks** – I verified that `assetstore.dir` and other relevant 
paths in `dspace.cfg`/`local.cfg` point to the correct locations. I have 
also ensured that there is sufficient disk space and no file system quotas 
preventing uploads.
4. **Review of logs** – I examined the DSpace logs (`dspace.log`) and 
Tomcat logs. The messages show an error whenever files are stored, but 
there is no obvious stack trace pointing to permission issues. The error 
message is similar to: “Failed to upload file; upload failed.”
5. **System-level investigation** – I looked into whether the problem could 
be related to the service configuration. Some documentation suggests that 
Tomcat’s systemd unit may be sandboxed and unable to write to the 
assetstore directory unless configured with `ReadWritePaths=/dspace`. I 
haven’t yet edited the systemd unit file, as I’m seeking confirmation that 
this is the right direction.

At this stage, I’m uncertain what is causing the upload failures. I would 
appreciate any suggestions on further diagnostic steps or specific 
configuration changes to resolve this problem permanently.

Thank you in advance for your time and expertise.

Best regards, Gladys

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/dspace-tech/4757fe3c-7469-4f88-b4d4-5f0982a25feen%40googlegroups.com.

Reply via email to