ssossossosso

Forums

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

This topic contains 3 replies, has 1 voice, and was last updated by  travnewmatic 1 month, 1 week ago.

  • Creator
    Topic
  • #35916

    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!

    • This topic was modified 1 month, 1 week ago by  travnewmatic.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #36784

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

    #37100

    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.

    • This reply was modified 1 month, 1 week ago by  travnewmatic.
    • This reply was modified 1 month, 1 week ago by  travnewmatic.
    #37110

    travnewmatic
    Participant

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

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

You must be logged in to reply to this topic.