Question

Job failed Centreon bi

  • 21 July 2022
  • 1 reply
  • 292 views

Badge +9

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][SFTP] Try to connect...
[21/07/2022 10:00:36 ] [INFO  ] [Publication][SFTP] Try to connect...
[21/07/2022 10:00:36 ] [INFO  ] [Publication][SFTP] Try to connect...
[21/07/2022 10:00:37 ] [INFO  ] [Publication][SFTP] Try to connect...
[21/07/2022 10:00:37 ] [INFO  ] [Publication][SFTP] Try to connect...
[21/07/2022 10:00:37 ] [INFO  ] [Publication][SFTP] Try to connect...
[21/07/2022 10:00:37 ] [INFO  ] [Publication][SFTP] Try to connect...
[21/07/2022 10:00:37 ] [INFO  ] [Publication][SFTP] Try to connect...
[21/07/2022 10:00:37 ] [INFO  ] [Publication][SFTP] Try to connect...
[21/07/2022 10:00:37 ] [INFO  ] [Publication][SFTP] Try to connect...
[21/07/2022 10:00:37 ] [INFO  ] [Publication][SFTP] Try to connect...
[21/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 ] [ERROR ] [Publication][SFTP]  ... Failed to connect
[21/07/2022 10:00:37 ] [ERROR ] 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?

1 reply

Userlevel 2
Badge +6

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