Covering OroCRM topics, including community updates and company announcements.  Subscribe

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 3 weeks, 5 days ago.

  • Creator
  • #56623


    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
    database_driver: pdo_mysql
    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_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* LISTEN

    I am able to hit port 8080 locally and remotely:

    Starting Nmap 7.40 ( ) at 2017-08-10 15:41 CST
    Nmap scan report for (111.222.333.444)
    Host is up (0.066s latency).
    rDNS record for 111.222.333.444:
    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!

    • This topic was modified 7 months, 1 week ago by  travnewmatic.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
  • #56625


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

    Firefox can’t establish a connection to the server at wss://



    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* 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.

    • This reply was modified 7 months, 1 week ago by  travnewmatic.
    • This reply was modified 7 months, 1 week ago by  travnewmatic.


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


    I have the same problem on latest orocommerce install :

    Firefox can’t establish a connection to the server at wss://

    Hos to configure apache to avoid this error ?


    Dmitriy Pasechnik


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

    for details

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

You must be logged in to reply to this topic.