OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Installation/Technical Issues or Problems "Synchronizer can't connect to server" & "app.ERROR: WebSocket write error"

This topic contains 5 replies, has 3 voices, and was last updated by  Dmitriy Pasechnik 6 years, 1 month ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #27744

    travnewmatic
    Participant

    1. Application related information:
    Application Type: OroCRM
    Application Version: 2.1
    Application Edition: Community

    2. Environment related information:
    OS, name and version: Ubuntu 16.04
    Web server, name and version: Apache 2.4.18-2ubuntu3.4
    Database, name and version: MySQL 5.7.19-0ubuntu0.16.04.1
    PHP, version: PHP 1:7.0+35ubuntu6

    Got Orocrm up and running but I seem to be having some issues with the Websocket feature.

    My parameters.yml file:

    root@localhost:~# cat /usr/share/orocrm/app/config/parameters.yml
    parameters:
    database_driver: pdo_mysql
    database_host: 127.0.0.1
    database_port: null
    database_name: xxxx
    database_user: xxxx
    database_password: xxxx
    database_drop: full
    mailer_transport: mail
    mailer_host: null
    mailer_port: null
    mailer_encryption: null
    mailer_user: null
    mailer_password: null
    websocket_bind_address: 0.0.0.0
    websocket_bind_port: 8080
    websocket_frontend_host: ‘*’
    websocket_frontend_port: 8080
    websocket_backend_host: ‘*’
    websocket_backend_port: 8080
    web_backend_prefix: ”
    session_handler: session.handler.native_file
    locale: en
    secret: xxxxxxxx
    installed: ‘2017-08-09T16:01:54+08:00’
    assets_version: 1258344f
    assets_version_strategy: time_hash
    message_queue_transport: dbal
    message_queue_transport_config: null

    I can see that the clank process is running:

    root@localhost:~# ps auxf | grep clank
    www-data 21071 0.0 2.2 367032 89244 ? S 07:24 0:00 \_ php /usr/share/orocrm/app/console clank:server –env=prod

    I can see that a process is listening on :8080

    root@localhost:~# netstat -an | grep :8080
    tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN

    I am able to hit port 8080 locally and remotely:

    Starting Nmap 7.40 ( https://nmap.org ) at 2017-08-10 15:41 CST
    Nmap scan report for orocrm.xxxxxx.com (111.222.333.444)
    Host is up (0.066s latency).
    rDNS record for 111.222.333.444: orocrm.xxxxxx.com
    PORT STATE SERVICE
    8080/tcp open http-proxy

    Nmap done: 1 IP address (1 host up) scanned in 0.16 seconds

    In spite of all this, I get an alert in the browser saying “Synchronizer can’t connect to server. Please contact your Administrator.”

    Additionally, though I’m not sure if its related, in app/logs/prod.log, I frequently get the error “app.ERROR: WebSocket write error”.

    Any help would be appreciated. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #27745

    travnewmatic
    Participant

    I do get an error in the Firefox Developer Edition console:

    Firefox can’t establish a connection to the server at wss://orocrm.xxxxxx.com:8080/.

    #27746

    travnewmatic
    Participant

    I’ve discovered that I DO NOT get the browser error when I view the Orocrm dashboard via http (as opposed to https).

    Additionally I can see with netstat that I have established a connection via the Websocket:

    root@localhost:~# netstat -an | grep :8080
    tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN
    tcp 0 0 x.x.x.x:8080 y.y.y.y:25834 ESTABLISHED

    DO still get the “app.ERROR: WebSocket write error” in the app/logs/prod.log.

    #27747

    travnewmatic
    Participant

    Do I have to use some sort of a reverse proxy to get both https and the websocket connection to work?

    #27748

    adriwan_kenoby
    Participant

    I have the same problem on latest orocommerce install :

    Firefox can’t establish a connection to the server at wss://orocrm.xxxxxx.com:8080/

    Hos to configure apache to avoid this error ?

    #27749

    Dmitriy Pasechnik
    Participant

    Hi

    Unfortunately, direct backend WebSocket SSL/WSS connections are not supported. You have to use reverse proxy to achieve this

    See
    https://github.com/oroinc/platform/tree/master/src/Oro/Bundle/SyncBundle#configuration-of-secure-sslwss-connection
    for details

Viewing 5 replies - 1 through 5 (of 5 total)

The forum ‘OroCRM – Installation/Technical Issues or Problems’ is closed to new topics and replies.

Back to top