If you have confirmed that tomcat user has the correct permissions and that 
the assetstore dir exists, you also need to check tomcat.service file. If 
using tomcat9, it will be /lib/systemd/system/tomcat9.service on ubuntu. It 
has these security settings by default so simply add your dspace deployment 
dir

ReadWritePaths=/etc/tomcat9/Catalina/
ReadWritePaths=/var/lib/tomcat9/webapps/
ReadWritePaths=/var/log/tomcat9/

Apparently, tomcat will not write to other dirs not listed here.

However, I have also read somewhere that this file shouldn't be edited 
directly. Instead, copy it to /etc/systemd/system/ tomcat9.service and edit 
it from there.

Then reload systemd and restart tomcat

sudo systemctl daemon-reload

sudo systemctl restart tomcat9.service


On Thursday, August 6, 2020 at 10:15:10 PM UTC+3 John Gaythorpe wrote:

> As obvious, no response. So now rebuilt on Windows platform Dspace 6.3 
> still does not create assetstore directory. But once manually created 
> DSPACE does run on Windows 2019. I just could not install an old version of 
> Debian just to see if it would work. That makes no sense from a security 
> perspective. Joys of Open Software and no support. Never thought it would 
> be better to use Windows for the project but it is. Richard S. would turn 
> over in his grave if he was dead. :-)
>
> On Friday, July 31, 2020 at 5:11:56 PM UTC-7 John Gaythorpe wrote:
>
>>
>>
>> Debug of DSPACE (Ignore where assetstore is as that is a test location 
>>>> with the right permissions. Debug of Cocoon breaks DSPACE completely where 
>>>> you can't even login, so no debug of that):
>>>>
>>>
>>  2020-07-31 16:58:40,446 DEBUG 
>> org.hibernate.event.internal.AbstractSaveEventListener @ Generated 
>> identifier: 826112af-dbf6-44ba-a8e9-5ff4baddedf6, using strategy: 
>> org.hibernate.id.UUIDGenerator
>> 2020-07-31 16:58:40,578 DEBUG 
>> org.dspace.storage.bitstore.DSBitStoreService @ Local filename for 
>> 64857734476825596812084523027347344934 is 
>> /opt/repository/assetstore/64/85/77/64857734476825596812084523027347344934
>> 2020-07-31 16:58:40,589 ERROR 
>> org.dspace.storage.bitstore.DSBitStoreService @ 
>> put(64857734476825596812084523027347344934, inputstream)
>> java.io.IOException: No such file or directory
>>
>>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/dspace-tech/2cbe35b2-2046-44c0-88d7-c55e400eaa1an%40googlegroups.com.

Reply via email to