CM file parameters you can change to address PEC ec=8 error

Document ID : KB000020528
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

When doing SCM checkin, checkout, hsync, hrefresh etc. transactions, due to slow network you might experience random errors like this:

E03020134: Unable to establish a remote connection (PEC ec=8).

In such cases, the PEC rtserver.cm and rtclient.cm files can be modified to increase timeout value to avoid this error.

Solution:

In the rtserver.cm file located under $RTHOME\standard directory, add the following lines, if they do not already exist:

 setopt CONN_MAX_RESTARTS 100       
 setopt CLIENT_RECONNECT_TIMEOUT 10 
 setopt CLIENT_CONNECT_TIMEOUT 40
 setopt SOCKET_CONNECT_TIMEOUT 15

In the rtclient.cm file located under $RTHOME\standard directory, add the following lines, if they do not already exist:

 setopt _socket_tcp_nodelay true       
 setopt _conn_init_timeout 30.0 

 setopt ptm_client_accept_timeout 300       
 setopt ptm_server_accept_timeout 300 

 setopt server_read_timeout 120.0       
 setopt server_write_timeout 120.0 

The rtclient.cm file should be changed on any computer with SCM components, like workbench client, plugin client etc, that experiences the PEC error. The rtserver.cm file should only be changed on the machine where the rtserver process is running ( by default, it is the SCM broker machine). Once the cm files are changed, please shutdown all SCM processes ( broker, hserver and all clients), and shutdown the rtserver process. Then restart the SCM broker and all client processes.