servicedesk 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) tecdoc KB000040173 did not help this time.

3) pdm_configure did not help too 

4) pdm_logstat -n rep_daemon verbpose 
bop_logging rep_deamon:xxxxx ON 

-> verbose log not telling the cause.

servicedesk 12.9 , 14.1
Windows 2012
We have 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