Cons113 Error: 1004 rsslGetHostByName() failed
when i try to run Cons113 with private -username -password -clientId , it shows that
loggerMsg
TimeStamp: 13:44:37.182
ClientName: ChannelCallbackClient
Severity: Warning
Text: Received ChannelDownReconnecting event on channel Channel_4
Instance Name Consumer_4_1
RsslReactor 0x0x1804260
RsslChannel 0x0x1804260
Error Id -1
Internal sysError 0
Error Location
Error Text </XXX/Real-Time-SDK/Cpp-C/Eta/Impl/Transport/ripcutils.c:1445> Error: 1004 rsslGetHostByName() failed. Host name is incorrect. System errno: (0)
loggerMsgEnd
how to solve this problem ?
Best Answer
-
According to the error, it looks like the OpenSSL is unable to locate the certificate file, such as cert.pem.
On my Linux machine, the certificate file is at /etc/pki/tls.
sh-4.2# ls -al /etc/pki/tls
total 36
drwxr-xr-x 5 root root 4096 May 12 02:06 .
drwxr-xr-x 1 root root 4096 May 12 02:06 ..
lrwxrwxrwx 1 root root 49 May 12 02:06 cert.pem -> /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
drwxr-xr-x 2 root root 4096 May 12 02:06 certs
drwxr-xr-x 2 root root 4096 Mar 28 10:36 misc
-rw-r--r-- 1 root root 10923 Mar 28 10:31 openssl.cnf
drwxr-xr-x 2 root root 4096 Mar 28 10:36 privateThen, I specified this file in the EmaConfig.xml under the Channel_4 element.
<OpenSSLCAStore value="/etc/pki/tls/cert.pem"/>
If I don't specify it, I get the following error.
However, after specifying the OpenSSLCAStore, the application works properly.
loggerMsg
TimeStamp: 05:25:25.854
ClientName: ChannelCallbackClient
Severity: Success
Text: Received ChannelUp event on channel Channel_4
Instance Name Consumer_4_1
Connected component version: ads3.4.2.L1.linux.tis.rrg 64-bit
loggerMsgEndI hope this will help you
0
Answers
-
The error indicates that it was unable to resolve the configured server name.
Cons113 is used to connect to Refinitiv Real-Time Optimized so you need to verify the EmaConfig.xml configuration file in the working directory of the Cons113.
<Channel>
<Name value="Channel_4"/>
<ChannelType value="ChannelType::RSSL_ENCRYPTED"/>
<CompressionType value="CompressionType::None"/>
<GuaranteedOutputBuffers value="5000"/>
<Location value="eu-west"/>
<EnableSessionManagement value="1"/>
<EncryptedProtocolType value="EncryptedProtocolType::RSSL_SOCKET"/>
<ObjectName value=""/>
</Channel>You may specify the Location instead of the Host and Port configurations.
To verify the problem, you need to enable the verbose logging in EMA by using the following configurations.
<Consumer>
<Name value="Consumer_4"/>
<Channel value="Channel_4"/>
<Logger value="Logger_1"/>
<Dictionary value="Dictionary_2"/>
</Consumer>
...
...
<Logger>
<Name value="Logger_1"/>
<LoggerType value="LoggerType::File"/>
<LoggerSeverity value="LoggerSeverity::Verbose"/>
</Logger>The EMA log file (emaLog_xxx.log) will be created in the working directory.
To verify the problem, please share the EMA log file (emaLog_xxx.log) and the EMA configuration file (EMAConfig.xml).
0 -
when i upload the emaconfig.xml and emaLog_xxx.log, it remainds me something went wrong!
--- EmaConfig.xml ---
<Channel>
<Name value="Channel_4"/>
<ChannelType value="ChannelType::RSSL_ENCRYPTED"/>
<CompressionType value="CompressionType::None"/>
<GuaranteedOutputBuffers value="5000"/>
<!--<Host value="com.amazonaws.vpce.us-east-1.vpcesvc-04b75a16bc641742c"/>
<Port value="14002"/>-->
<!-- EMA discovers a host and a port from RDP service discovery for the specified location
when both of them are not set and the session management is enable. -->
<!--<Location value="us-east-1"/>-->
<Location value="eu-west"/>
<EnableSessionManagement value="1"/>
<EncryptedProtocolType value="EncryptedProtocolType::RSSL_SOCKET"/>
<!-- ObjectName is optional: defaulted to "" -->
<ObjectName value=""/>
</Channel>
--- EmaLog_xxx.log --
loggerMsg
TimeStamp: 11:29:03.756
ClientName: ChannelCallbackClient
Severity: Warning
Text: Received ChannelDownReconnecting event on channel Channel_4
Instance Name Consumer_4_1
RsslReactor 0x0x2c2a620
RsslChannel 0x0x2c2a620
Error Id -1
Internal sysError 0
Error Location /home/XXX/Real-Time-SDK/Cpp-C/Eta/Impl/Reactor/rsslReactorWorker.c:1480
Error Text </home/XXX//Real-Time-SDK/Cpp-C/Eta/Impl/Transport/ripcsslutils.c:1188> Error: 2002 Certificate validation error. OpenSSL Return code: self signed certificate in certificate chain
loggerMsgEnd
0 -
openssl version in my machine:
openssl-1.0.2k-1.fc24.x86_64
openssl-libs-1.0.2k-1.fc24.x86_64
openssl-devel-1.0.2k-1.fc24.x86_64
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛