Question

3
Replies
740
Views
Abhinay Chilukoorie (AbhinayC)
Centene Corporation
Senior Software Engineer
Centene Corporation
US
AbhinayC Member since 2018 12 posts
Centene Corporation
Posted: January 21, 2019
Last activity: January 23, 2019
Posted: 21 Jan 2019 23:05 EST
Last activity: 23 Jan 2019 0:29 EST
Closed
Solved

Connect-FTP permission denied

Hello friends,


I have a scenario where we are using Docx4j (pzGenerateDocument) to dynamically create word documents. pzGenerateDocument creates these word documents in /usr/local/tomcat/work/Catalina/localhost/prweb/StaticContent/global/ServiceExport/<document.docx>. The goal is to send these files to the remote FTP server for which, I planned on using Connect-FTP method. However, when the system is trying to access the file to transfer them, I am seeing permission denied message. Has any one faced this problem?


If any one has any idea to resolve this, please let me know. Any help is greatly appreciated. Our application is hosted in pega cloud. Pega engineers tell us that system has full permissions over that folder.

Hello friends,

I have a scenario where we are using Docx4j (pzGenerateDocument) to dynamically create word documents. pzGenerateDocument creates these word documents in /usr/local/tomcat/work/Catalina/localhost/prweb/StaticContent/global/ServiceExport/<document.docx>. The goal is to send these files to the remote FTP server for which, I planned on using Connect-FTP method. However, when the system is trying to access the file to transfer them, I am seeing permission denied message. Has any one faced this problem?

If any one has any idea to resolve this, please let me know. Any help is greatly appreciated. Our application is hosted in pega cloud. Pega engineers tell us that system has full permissions over that folder.

Caused by: com.pega.pegarules.pub.services.ConnectorException: Error working with local path: '/usr/local/tomcat/work/Catalina/localhost/prweb/StaticContent/global/ServiceExport/Initial_Letter_FHCP__1548034117428.docx', Permission denied 
      at com.pega.pegarules.integration.engine.internal.connect.ftp.FTPConnectorImpl.invoke(FTPConnectorImpl.java:530) ~[printegrint.jar:?] 
     at com.pega.pegarules.integration.engine.internal.util.PRServiceUtils.invokeFTPConnector(PRServiceUtils.java:3314) ~[printegrint.jar:?] 
  at com.pegarules.generated.activity.sh_action_createletterpdf_edc05987d0a309e070f8dbc5b92be8fd.step7_circum0(sh_action_createletterpdf_edc05987d0a309e070f8dbc5b92be8fd.java:705) ~[?:?] 
      at com.pegarules.generated.activity.sh_action_createletterpdf_edc05987d0a309e070f8dbc5b92be8fd.perform(sh_action_createletterpdf_edc05987d0a309e070f8dbc5b92be8fd.java:196) ~[?:?] 
        at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3556) ~[prprivate.jar:?] 
  at com.pega.pegarules.session.internal.mgmt.Executable.doAction(Executable.java:3286) ~[prprivate.jar:?] 
      at com.pegarules.generated.activity.ra_action_pyrunrecordexecute_025cb29e81d295d991d37ad8d1e40455.step2_circum0(ra_action_pyrunrecordexecute_025cb29e81d295d991d37ad8d1e40455.java:274) ~[?:?] 
    at com.pegarules.generated.activity.ra_action_pyrunrecordexecute_025cb29e81d295d991d37ad8d1e40455.perform(ra_action_pyrunrecordexecute_025cb29e81d295d991d37ad8d1e40455.java:88) ~[?:?] 
 at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3556) ~[prprivate.jar:?] 
   at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10878) ~[prprivate.jar:?] 
        at com.pegarules.generated.activity.ra_action_pzrunrecordexecute_1ec91911c2bc6b1febb6466a70877c6c.step11_circum0(ra_action_pzrunrecordexecute_1ec91911c2bc6b1febb6466a70877c6c.java:1011) ~[?:?] 
    at com.pegarules.generated.activity.ra_action_pzrunrecordexecute_1ec91911c2bc6b1febb6466a70877c6c.perform(ra_action_pzrunrecordexecute_1ec91911c2bc6b1febb6466a70877c6c.java:246) ~[?:?] 
        at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3556) ~[prprivate.jar:?] 
  at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:646) ~[prprivate.jar:?] 
      ... 51 more 

***Moderator Edit-Vidyaranjan: Updated SR details***

***Edited by Moderator Marissa to update platform capability tags****

Low-Code App Development Data Integration Java and Activities Cloud Services System Administration Support Case Parallel
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.