Hello
Â
I often had a failed job. When I look in my logs, I think my problem comes from the sftp connection. Here is today's log:
>21/07/2022 10:00:35 ] INFO Â ] ]Publication]nSFTP] Try to connect...
/21/07/2022 10:00:36 ] ]INFO Â ] Publication]oSFTP] Try to connect...
21/07/2022 10:00:36 ] INFO Â ] ÂPublication]iSFTP] Try to connect...
r21/07/2022 10:00:37 ] 7INFO Â ] Publication]tSFTP] Try to connect...
b21/07/2022 10:00:37 ] 3INFO Â ] OPublication]aSFTP] Try to connect...
<21/07/2022 10:00:37 ] :INFO Â ] FPublication]cSFTP] Try to connect...
.21/07/2022 10:00:37 ] 0INFO Â ] NPublication]iSFTP] Try to connect...
.21/07/2022 10:00:37 ] 0INFO Â ] IPublication]lSFTP] Try to connect...
.21/07/2022 10:00:37 ] :INFO Â ] [Publication]bSFTP] Try to connect...
t21/07/2022 10:00:37 ] 0INFO Â ] Publication]uSFTP] Try to connect...
c21/07/2022 10:00:37 ] 1INFO Â ] ]Publication]PSFTP] Try to connect...
e21/07/2022 10:00:37 ] ERROR ] Error while opening SFTP session
com.jcraft.jsch.JSchException: connection is closed by foreign host
    at com.jcraft.jsch.Session.connect(Session.java:269)
    at com.jcraft.jsch.Session.connect(Session.java:183)
    at com.merethis.cbis.job.publish.impl.SFTPConnection.connect(SFTPConnection.java:122)
    at com.merethis.cbis.job.publish.impl.PublisherSFTP.connect(PublisherSFTP.java:144)
    at com.merethis.cbis.job.publish.impl.JobReportPublish.execute(JobReportPublish.java:101)
    at com.merethis.cbis.job.JobReport.subTaskPublish(JobReport.java:574)
    at com.merethis.cbis.job.JobReport.execute(JobReport.java:252)
    at com.merethis.cbis.job.JobReport.run(JobReport.java:202)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
21/07/2022 10:00:37 ] TERROR ] nPublication]:SFTP] Â ... Failed to connect
E21/07/2022 10:00:37 ] FERROR ] Failed during PUBLISH step for job CD92_DSI_APPLICATIONS_C2_NOUVEAU_RAPPORT_Daily
Â
I had to increase my number of ssh sessions (1000) but that does not change anything.Why do I have an sftp connection limit?