Skip to content

Blomstra Realtime issues on ubuntu server

Solved Linux
26 2 10.8k 1
  • @phenomlab yeah but i need to develop around this so i need it for now.

    php flarum realtime:serve -vvv --debug
    Starting websocket server, which listens on 0.0.0.0:6001.
    App key expected is #############################
    App secret expected is #############################
    Max connections 1000
    
    wrote on last edited by
    #17

    @justoverclock I removed your app and key and secret. Don’t post anything sensitive 🙂

  • @phenomlab yes but i get console error about websocket

    pusher.js:4026 WebSocket connection to ‘wss://forum.justoverclock.it:6001/app/1ddbcd118d43678d3943c6a3f3541ff2?protocol=7&client=js&version=7.0.3&flash=false’ failed:

    wrote on last edited by phenomlab
    #18

    @justoverclock

    i think this is not valid for my server?

    [program:realtime]
    command=/usr/bin/php /var/www/flarum/flarum realtime:serve
    numprocs=1
    autostart=true
    autorestart=true
    user=www-data
    
  • @justoverclock I removed your app and key and secret. Don’t post anything sensitive 🙂

    wrote on last edited by
    #19

    @phenomlab 😮 u mean that u are working on this?

  • @justoverclock

    i think this is not valid for my server?

    [program:realtime]
    command=/usr/bin/php /var/www/flarum/flarum realtime:serve
    numprocs=1
    autostart=true
    autorestart=true
    user=www-data
    
    wrote on last edited by
    #20

    @justoverclock Correct. That path should be

    /home/justoverclock/domains/forum.justoverclock.it/homes/flarum/public

  • @phenomlab 😮 u mean that u are working on this?

    wrote on last edited by
    #21

    @justoverclock No, I meant that you have posted sensitive information concerning your flarum installation on another public forum, which could expose your site to attack.

  • @justoverclock No, I meant that you have posted sensitive information concerning your flarum installation on another public forum, which could expose your site to attack.

    wrote on last edited by
    #22

    @phenomlab my file is now

    [program:realtime]
    command=/usr/bin/php /home/justoverclock/domains/forum.justoverclock.it/homes/flarum/public realtime:serve
    numprocs=1
    autostart=true
    autorestart=true
    user=www-data
    

    but same error

  • @phenomlab my file is now

    [program:realtime]
    command=/usr/bin/php /home/justoverclock/domains/forum.justoverclock.it/homes/flarum/public realtime:serve
    numprocs=1
    autostart=true
    autorestart=true
    user=www-data
    

    but same error

    wrote on last edited by
    #23

    @justoverclock Yes, I don’t expect the error to be any different to be honest. You’re running from the CLI anyway, and this path is for the supervisor service.

  • @justoverclock Yes, I don’t expect the error to be any different to be honest. You’re running from the CLI anyway, and this path is for the supervisor service.

    wrote on last edited by
    #24

    @phenomlab well…now i can’t post enymore…error 500

  • @phenomlab well…now i can’t post enymore…error 500

    wrote on last edited by
    #25

    @justoverclock Seeing as this is a premium Flarum extension, and you’ve paid for support, you should ask there I think. From what I see in the logs, plus the way I know websockets work, I think you need additional config in nginx.conf.

    Compare this with the guide from kyrne on discuss (which is completely free by the way and works 100%) - https://extiverse.com/extension/kyrne/websocket

    For the record, I purchased Realtime before I departed the Flarum ecosystem, and it didn’t work - period, so I got a refund.

  • justoverclock justoverclock has marked this topic as solved on
  • wrote on last edited by
    #26

    Just checked this thread on Discuss. It’s effectively not stable yet. My suggestion would be to use kyrne/websocket


Did this solution help you?
Did you find the suggested solution useful? Support 💗 Sudonix with a coffee ☕
If your organisation needs deeper expertise around infrastructure, security, or technology leadership, learn more about Phenomlab Ltd. Many of the deeper technical guides behind Sudonix are published there.

Related Topics