Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. READ MORE

Getting a '[statistics] connection refused' error

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
TalendSolutionExpert
Contributor II
Contributor II

Getting a '[statistics] connection refused' error

Last Update:

Jan 22, 2024 9:35:30 PM

Updated By:

Jamie_Gregory

Created date:

Apr 1, 2021 6:16:10 AM

Talend Version

All versions

Summary

 

Additional Versions 
Product

Data Integration

Component

Studio

Problem Description

Running a Job in Studio with remote Target Exec shows the following refused connection:

 

[statistics]connecting to socket on port 3615
[statistics] connection refused
...
Unable to connect to xx.xxx.xxx.x on port 3615

 

The IP address of the Studio machine is xx.xxx.xxx.x, which is assumed to be accessible from the JobServer machine.

Problem root cause

Because you are running the Job with statistics enabled, Studio picks a random port in a configured range (in this case, 3615), and provides it to JobServer to use to send statistics to Studio. However, JobServer can't use this port because it is either not open or there is a security restriction on the JobServer machine.

Solution or Workaround

Disable statistics by going to the Job Run tab > Advanced settings and clearing the Statistics check box.

 

Or if you need statistics, make sure the port picked up by Studio is open from your JobServer machine. These ports are from a range that you can configure in Studio by going to Preferences > Talend > Run/Debug > Stats port range.

JIRA ticket number 
Labels (1)
Comments
mbutry
Contributor II
Contributor II

The remote engine also needs to be configured to enable this feature:

in org.talend.remote.jobserver.server.cfg set

# Enable the process message publisher or not. false by default
org.talend.remote.jobserver.server.TalendJobServer.ENABLED_PROCESS_MESSAGE=true

It is set to false by default

 

 

Xiaodi_Shi
Support
Support

Hello @mbutry 

Really thanks for your sharing your solution here and we will update it after making an investigation on this use case.

Best regards

Sabrina

Version history
Last update:
‎2024-01-22 09:35 PM
Updated by: