Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us at Qlik Connect 2026 in Orlando, April 13–15: Register Here!
cancel
Showing results for 
Search instead for 
Did you mean: 
piotrek_w
Contributor III
Contributor III

Data Gateway - Connector error gRPC server failed to initialize after 3 attempts (DirectAccess-5000)

Hi All,

 

After the upgrade from Data Gateway 1.7.0 to 1.7.3 file connector or ODBC connector are not working any longer.

Connector process started but gRPC server failed to initialize after 3 attempts (DirectAccess-5000)

Environment:

  • Windows Server 2022 Standard
  • Microsoft .Net Runtime 8.0.11
  • Microsoft ASP.NET Core 8.0.11
  • Microsoft Visual C++ 2015-2022 Redistributable
  • Data Gateway 1.7.3

Data Gateway status is Connected. 

For instance: using ODBC connector I can test connection and status is successful. I can then connect to SQL server find data base and table. I can even see the sample data and generate script. Everything seems to work unless I run the script. Then I get an errors:

File connector
(Connector error: Unknown reason:. Connector process started but gRPC server failed to initialize after 3 attempts (DirectAccess-5000)
ODBC connector
Connector error: Unknown reason:. Connector process started but gRPC server failed to initialize after 3 attempts (DirectAccess-1500)

In logs I can see:

[DEBUG] DAG - RequestId=NA ClientSessionId= ReloadId=NA AppId=NA Message=Testing connection to connector on port 49152, attempt 1 of 3. ODBC process (12408)
[ 8] [WARN ] DAG - RequestId=NA ClientSessionId= ReloadId=NA AppId=NA Message=ODBC connector process (12408) with worker process (22624) is not listening on Data Port: 49152 or Management Port: 49153, attempt 1 of 3
[ 8] [DEBUG] DAG - RequestId=NA ClientSessionId= ReloadId=NA AppId=NA Message=Testing connection to connector on port 49152, attempt 2 of 3. ODBC process (12408)
[ 8] [WARN ] DAG - RequestId=NA ClientSessionId= ReloadId=NA AppId=NA Message=ODBC connector process (12408) with worker process (22624) is not listening on Data Port: 49152 or Management Port: 49153, attempt 2 of 3
[ 8] [DEBUG] DAG - RequestId=NA ClientSessionId= ReloadId=NA AppId=NA Message=Testing connection to connector on port 49152, attempt 3 of 3. ODBC process (12408)
[ 8] [WARN ] DAG - RequestId=NA ClientSessionId= ReloadId=NA AppId=NA Message=ODBC connector process (12408) with worker process (22624) is not listening on Data Port: 49152 or Management Port: 49153, attempt 3 of 3
[ 8] [WARN ] DAG - RequestId=NA ClientSessionId= ReloadId=NA AppId=NA Message=ODBC connector process (12408) with worker process (22624) failed readiness check, going to kill it...
[ 8] [INFO ] DAG - RequestId=NA ClientSessionId= ReloadId=NA AppId=NA Message=An old instance of ODBC (12408 started 5 seconds ago) is running, going to kill it...

Is it something related with the port? 

Why File connector and ODBC connector are listening on port 49152? I could not find this port in documentation...

Any ideas? 

Thanks in advance!

 

BR,

Piotr

 

 

 

 

Labels (3)
1 Reply
JanJorissen
Support
Support

Hi Piotr

Port 49152 is the port that Direct Access Gateway uses for inter-process communication. It is a default port. 
If the file connector is listening on that port, it isn't the default configuration. In (much) older versions, default ports may have differed, but in your case, most likely the File port value was set manually, as the communication port has been the same.

The File Ports as listed on our Help:

  • 3045 (File Connector REST API)
  • 50300 (File Connector gRPC)

https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Gateways/direct-access-g...

As for the errors, set a unique value for the file connector  and the ODBC connector
5000 Errors are in the same category as 500 HTML errors, an unexpected condition, and not very well defined.

For reference of our internal ports, here's the correct page:
https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Gateways/direct-access-g...