A
A
Alexander2020-11-30 12:06:56
1C-Bitrix
Alexander, 2020-11-30 12:06:56

How to set up sockets (Push&Pull) on an additional site in BitrixEnv?

Deployed a copy of the site to dev.site as an additional site in BitrixEnv, i.e. in the /home/bitrix/ext_www/dev

folder

WebSocket connection to '...' failed: Error in connection establishment: net::ERR_CERT_AUTHORITY_INVALID

bubbles: false
cancelBubble: false
cancelable: false
composed: false
currentTarget: WebSocket {url: "wss://dev.сайт/bitrix/subws/?CHANNEL_ID=e8d54…645111ee1e9ee8210639c&binaryMode=true&revision=19", readyState: 3, bufferedAmount: 0, onopen: null, onerror: null, …}
defaultPrevented: false
eventPhase: 0
isTrusted: true
path: []
returnValue: true
srcElement: WebSocket {url: "wss://dev.сайт/bitrix/subws/?CHANNEL_ID=e8d54…645111ee1e9ee8210639c&binaryMode=true&revision=19", readyState: 3, bufferedAmount: 0, onopen: null, onerror: null, …}
target: WebSocket {url: "wss://dev.сайт/bitrix/subws/?CHANNEL_ID=e8d54…645111ee1e9ee8210639c&binaryMode=true&revision=19", readyState: 3, bufferedAmount: 0, onopen: null, onerror: null, …}
timeStamp: 21547.630000000026
type: "error"

5fc4b4b9efcab652408375.png
After about a minute, it starts working - the connection status becomes - online:
5fc4b62689920678297277.png

At the same time, the system check says that the sockets are not working:
5fc4b69792808507028477.png

As I understand it, P&P starts working bypassing the sockets.

What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Emelyanov, 2020-11-30
@babarun

Settings > Product settings > Module settings > Push and Pull.
Try to iterate through different options for virtual machines:
5fc4d1bbd916c505794083.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question