Service Desk Attachment for download and upload anymore. Getting error AHD05949 Unable to acquire a repository session. File not uploaded

Document ID : KB000116630
Last Modified Date : 01/10/2018
Show Technical Document Details
Download and upload is not working anymore

We are getting error "AHD05949: Unable to acquire a repository session. File not uploaded"

1) Same error after restart of SDM, new/existing repositories 

2) The knowledge document KB000040173 did not help this time.

3) The command "pdm_configure" did not help.

4) This additional Attachment logging was enabled, but did not reveal a specific cause:
pdm_logstat -n rep_daemon verbose 
bop_logging rep_deamon:xxxxx ON 

CA Service Desk Manager (ITSM) 12.9 , 14.1, 17.1
Windows 2012
There was a very long filename in NX_ROOT\bopcfg\www\CATALINA_BASE\temp

We're not sure how such a long file name got created, it seemed that someone tried to upload a file like that, which resulted in rep_daemon not to respond anymore 
Delete the temporary very long filename from  NX_ROOT\bopcfg\www\CATALINA_BASE\temp