Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

NodeJS unable to connect to Redis through IPv6

SA-58244

Summary



In a Pega Chat, NodeJS component is unable to connect to Redis through IPv6.

From the network, telnetting to the Redis port works on IPv4 and IPv6:


[aaaaa(bbbb):/path/more_paths] host a_host
a_host has address aa.b.ccc.dd
[aaaaa(bbbb):/path/more_paths] telnet a_host a_port
Trying aa.b.ccc.dd...
Connected to a_host.
Escape character is '^]'.
^]
telnet> quit
Connection closed.

[aaaaa(bbbb):/path/more_paths] host another_host
another_host has IPv6 address 1111:xxxx:222:yyyy::xx
[aaaaa(bbbb):/path/more_paths] telnet another_host a_port
Trying 1111:xxxx:222:yyyy::xx...
Connected to another_host.
Escape character is '^]'.
^]
telnet> quit
Connection closed.



Error Messages



[a_host:/home/xxxxxx1] curl -I -H "Authorization:privateAPIKey 00kzq8abIzwqaHaLTPo4Aq78" http://another_host:xxx/api/chat/companyId
HTTP/1.1 402 Payment Required
Access-Control-Allow-Origin: *
Content-Type: application/json; charset=utf-8
Content-Length: 137
ETag: W/"89-a2d5378b"
set-cookie: connect.sid=s%3AMlmxk5mi55M17r2qd3-kdGPc60CWfTJf.z6BLOZAYfYSxM%2Bjv0L%2BvKsCzHv9mBLMmnw0hAG27PuM; Path=/; Expires=
Date:
Connection: keep-alive
Set-Cookieabcdefg_8080=!tX3uzWJUg66X/i5mUYuzWta7KB/GJQ1sgHa8ccOBNHcMuwFXfZ17GaTzuOEXPzg+D4Q5n4b8zln/27I7ZgEQg1Fe01wYmo4o/suB9I8c; path=/; Httponly; Secure



Steps to Reproduce



In the config.json file, configure a DNS alias which resolves to an IPv6 address.

"redis" : {
"master" : {
"host" : "a_host",
"port" : xxxx
}
}

a_host has IPv6 address 1111:xxxx:222:yyyy::xx



Root Cause



This issue was determined to be a product enhancement request.
Pega Chat 7.31.1 is not built to run on IPv6 only systems.



Resolution



As a local-change, reconfigure the system to access a direct IPv6 address without Domain Name System (DNS) lookup.

An enhancement request, FDBK-26494, is created for consideration by Pega Product Management.



 
Suggest Edit

Published October 17, 2018 - Updated December 2, 2021

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us