Question
CTFS
CA
Last activity: 30 Nov 2018 14:15 EST
Pega Chat 7.4.7 - Installation on-premise
We recently did an on premise setup of the Pega 7.4.7 Chat software with Node/Redis/Postgres. What is not clear from the documentation of the on –premise setup (7.4.7) is which ports need to be opened up from our internal firewall to the Pega Chat hosts. The questions we have are -
- By default, the config.json is setup to use websockets. If that is the case do we need the BOSH port 5280 to be opened ?
- We are using Pega Customer Service 7.3 to work with Pega Chat 7.4.7 ? Do we need to be on Pega Customer Service 7.4 as well ?
***Edited by Moderator Marissa to update platform capability tags****
***Edited by Moderator Marissa to update SR Details***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
SR-C71574 Resolution:
Perform the following local-change:
Please change the following line in chat/server/xmpp/index.js file
line no. 36 from
var BOSHServerOptions = {port : serverOptions.bosh.port, domain : serverOptions.bosh.host, cors : {credentials : true}};
to
var BOSHServerOptions = {port : serverOptions.bosh.port, host : serverOptions.bosh.host, cors : {credentials : true}};
and undo the change in the 'xmpp-node-server' node module
Pegasystems Inc.
US
Hi, @HunaidM9 - Good questions. (In general, plz post multiple questions separately, so that each question can have its own thread/discussion.)
I can speak to your Question #2 - We are using Pega Customer Service 7.3 to work with Pega Chat 7.4.7 ? Do we need to be on Pega Customer Service 7.4 as well ?
Matthew: Yes, you can certainly use Pega Customer Service 7.31 with the Pega Chat server/engine 7.4.x. Note, however, that most of the chat features are exposed in / controlled by the Customer Service application (for admins, managers, and customer service agents), so you will only have those chat features that are part of the Pega CS release you use, which in this case is CS 7.31.
But all those chat features in Pega CS 7.31 will work just fine when connecting to the Chat server 7.4.
In fact, you may want to look into the most recent release of the Chat server, which is 8.1. That will also work with Pega CS 7.31.
Pegasystems Inc.
IN
Yes, BOSH port 5280 should be opened to work with CS 7.31. Websockets is supported from CS7.4 onwards. Please find configuration below.
CTFS
CA
@gades, We made the changes for the BOSH configuration as suggested above. However we see startup error EAFNOSUPPORT. We are running on RHEL 3.10.0-862.11.6.el7.x86_64
Validation was successful.
SMTP is not configured.
XMPP Server Options:
{ websocket: true,
bosh: { enabled: true, port: 5280, host: 'localhost' },
chatPort: 8080,
chatProtocol: 'http',
chatHost: 'localhost' }
Starting XMPP server on port: 8080 and 5280
XMPP BOSH server started.
XMPP WebSocket server started.
[ 'Error: listen EAFNOSUPPORT :::5280',
' at Object._errnoException (util.js:1022:11)',
' at _exceptionWithHostPort (util.js:1044:20)',
' at Server.setupListenHandle [as _listen2] (net.js:1334:19)',
' at listenInCluster (net.js:1392:12)',
' at doListen (net.js:1501:7)',
' at _combinedTickCallback (internal/process/next_tick.js:141:11)',
' at process._tickCallback (internal/process/next_tick.js:180:9)' ]
CTFS
CA
@gades - btw, I made this local change (underlined and bold) to get it to work.
chat/node_modules/node-xmpp-server/lib/Server.js
Server.prototype.listen = function (port, host, fn) {
if (typeof port === 'function') {
fn = port
port = host = null
} else if (typeof host === 'function') {
fn = host
host = null
}
port = port || this.port
host = host || this.options.host || this.options.domain || '::'
this.server.listen(port, host, fn)
}
Pegasystems Inc.
IN
Can you try changing "host" to " Proprietary information hidden" instead of "localhost"?
bosh: { enabled: true, port: 5280, host: ' Proprietary information hidden' }
Thanks,
Srikanth
CTFS
CA
@gades, I had previously changed the bosh.host to localhost, Proprietary information hidden, Proprietary information hidden but none of those values were passed into the BOSHServer setup. This is confirmed by the error message Error: listen EAFNOSUPPORT :::5280 which has the port but no host.
Hence the local change to chat/node_modules/node-xmpp-server/lib/Server.js
Pegasystems Inc.
IN
Please create SR. We will analyse the issue. Ideally you should not change node modules.
Thanks,
Srikanth
Pegasystems Inc.
US
When you open a Support Request, please reference this post URL in it and let us know the SR ID so that we may track this for you!
CTFS
CA
SR-C71574 created for your reference. It includes the URL this post as well.
Thanks,
Hunaid
Pegasystems Inc.
US
Thank you!
Accepted Solution
Pegasystems Inc.
US
SR-C71574 Resolution:
Perform the following local-change:
Please change the following line in chat/server/xmpp/index.js file
line no. 36 from
var BOSHServerOptions = {port : serverOptions.bosh.port, domain : serverOptions.bosh.host, cors : {credentials : true}};
to
var BOSHServerOptions = {port : serverOptions.bosh.port, host : serverOptions.bosh.host, cors : {credentials : true}};
and undo the change in the 'xmpp-node-server' node module