Skip to main content

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?

Hi Francis,
Is it a new platform and your first job or some other jobs have already published previously?

If first case, can you test this post: 

If second case, can you verify if the ssh exchange key for centreonBI user with the central host is always valid? Maybe the password of centreonBI on the central server was changed.

To verify this do that:
connect on MBI server,

open  a session with the centreonBI account (like su - centreonBI)

now, try to connect to the central server with centreonBI account (like ssh centreonBI@<central-server>).

If password required or renew exchange key validation, something was changed on central and it’s the reason of failed publication jobs.

Validate exchange key and try again.

Kind regards


Reply