Skip to content

Blomstra Realtime issues on ubuntu server

Solved Linux
26 2 10.8k 1
  • @phenomlab i’ve added some config to config.php and seems to work…how can i be sure?

    wrote on last edited by phenomlab
    #12

    @justoverclock php flarum realtime:serve -vvv --debug

    I’m guessing you missed this part

    Set Up
    Method a) use the defaults

    No action needed. Your websocket will re-use the configuration of your existing forum.

    Method b) the config.php

    Create a key websocket and override any of the configuration items as defined in Blomstra\Realtime\Websocket\Settings::rules().

  • @phenomlab i’ve added some config to config.php and seems to work…how can i be sure?

    wrote on last edited by
    #13

    @justoverclock If you were using NodeBB, then websocket support is free and part of core… 🙂

  • @justoverclock If you were using NodeBB, then websocket support is free and part of core… 🙂

    wrote on last edited by phenomlab
    #14

    @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
    
  • @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
    #15

    @justoverclock and I see this in the log

    [2021-10-11 15:10:01] flarum.DEBUG: trigger POST: {post_value} {"post_value":"{\"name\":\"Flarum\\\\Post\\\\Event\\\\Posted\",\"data\":\"{\\\"data\\\":{\\\"type\\\":\\\"discussions\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"title\\\":\\\"test\\\",\\\"slug\\\":\\\"1-test\\\",\\\"commentCount\\\":8,\\\"participantCount\\\":1,\\\"createdAt\\\":\\\"2021-10-11T14:37:36+00:00\\\",\\\"lastPostedAt\\\":\\\"2021-10-11T15:10:00+00:00\\\",\\\"lastPostNumber\\\":8,\\\"canReply\\\":false,\\\"canRename\\\":false,\\\"canDelete\\\":false,\\\"canHide\\\":false,\\\"isApproved\\\":true,\\\"canViewWhoTypes\\\":false,\\\"canTag\\\":false,\\\"subscription\\\":null,\\\"isSticky\\\":false,\\\"canSticky\\\":false,\\\"isLocked\\\":false,\\\"canLock\\\":false},\\\"relationships\\\":{\\\"tags\\\":{\\\"data\\\":[{\\\"type\\\":\\\"tags\\\",\\\"id\\\":\\\"1\\\"}]},\\\"user\\\":{\\\"data\\\":{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\"}},\\\"lastPostedUser\\\":{\\\"data\\\":{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\"}},\\\"lastPost\\\":{\\\"data\\\":{\\\"type\\\":\\\"posts\\\",\\\"id\\\":\\\"8\\\"}}}},\\\"included\\\":[{\\\"type\\\":\\\"tags\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"name\\\":\\\"General\\\",\\\"description\\\":null,\\\"slug\\\":\\\"general\\\",\\\"color\\\":\\\"#888\\\",\\\"backgroundUrl\\\":null,\\\"backgroundMode\\\":null,\\\"icon\\\":null,\\\"discussionCount\\\":0,\\\"position\\\":0,\\\"defaultSort\\\":null,\\\"isChild\\\":false,\\\"isHidden\\\":false,\\\"lastPostedAt\\\":\\\"2021-10-11T14:45:03+00:00\\\",\\\"canStartDiscussion\\\":false,\\\"canAddToDiscussion\\\":false}},{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"username\\\":\\\"Marko\\\",\\\"displayName\\\":\\\"Marko\\\",\\\"avatarUrl\\\":null,\\\"slug\\\":\\\"Marko\\\"}},{\\\"type\\\":\\\"posts\\\",\\\"id\\\":\\\"8\\\",\\\"attributes\\\":{\\\"number\\\":8,\\\"createdAt\\\":\\\"2021-10-11T15:10:00+00:00\\\",\\\"contentType\\\":\\\"comment\\\",\\\"contentHtml\\\":\\\"<p>dfg<\\\\\\/p>\\\"}}]}\",\"channels\":[\"guest\"]}"} 
    [2021-10-11 15:10:05] flarum.DEBUG: trigger POST: {post_value} {"post_value":"{\"name\":\"Flarum\\\\Post\\\\Event\\\\Posted\",\"data\":\"{\\\"data\\\":{\\\"type\\\":\\\"discussions\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"title\\\":\\\"test\\\",\\\"slug\\\":\\\"1-test\\\",\\\"commentCount\\\":9,\\\"participantCount\\\":1,\\\"createdAt\\\":\\\"2021-10-11T14:37:36+00:00\\\",\\\"lastPostedAt\\\":\\\"2021-10-11T15:10:05+00:00\\\",\\\"lastPostNumber\\\":9,\\\"canReply\\\":false,\\\"canRename\\\":false,\\\"canDelete\\\":false,\\\"canHide\\\":false,\\\"isApproved\\\":true,\\\"canViewWhoTypes\\\":false,\\\"canTag\\\":false,\\\"subscription\\\":null,\\\"isSticky\\\":false,\\\"canSticky\\\":false,\\\"isLocked\\\":false,\\\"canLock\\\":false},\\\"relationships\\\":{\\\"tags\\\":{\\\"data\\\":[{\\\"type\\\":\\\"tags\\\",\\\"id\\\":\\\"1\\\"}]},\\\"user\\\":{\\\"data\\\":{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\"}},\\\"lastPostedUser\\\":{\\\"data\\\":{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\"}},\\\"lastPost\\\":{\\\"data\\\":{\\\"type\\\":\\\"posts\\\",\\\"id\\\":\\\"9\\\"}}}},\\\"included\\\":[{\\\"type\\\":\\\"tags\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"name\\\":\\\"General\\\",\\\"description\\\":null,\\\"slug\\\":\\\"general\\\",\\\"color\\\":\\\"#888\\\",\\\"backgroundUrl\\\":null,\\\"backgroundMode\\\":null,\\\"icon\\\":null,\\\"discussionCount\\\":0,\\\"position\\\":0,\\\"defaultSort\\\":null,\\\"isChild\\\":false,\\\"isHidden\\\":false,\\\"lastPostedAt\\\":\\\"2021-10-11T15:10:00+00:00\\\",\\\"canStartDiscussion\\\":false,\\\"canAddToDiscussion\\\":false}},{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"username\\\":\\\"Marko\\\",\\\"displayName\\\":\\\"Marko\\\",\\\"avatarUrl\\\":null,\\\"slug\\\":\\\"Marko\\\"}},{\\\"type\\\":\\\"posts\\\",\\\"id\\\":\\\"9\\\",\\\"attributes\\\":{\\\"number\\\":9,\\\"createdAt\\\":\\\"2021-10-11T15:10:05+00:00\\\",\\\"contentType\\\":\\\"comment\\\",\\\"contentHtml\\\":\\\"<p>dfgdfgdfg<\\\\\\/p>\\\"}}]}\",\"channels\":[\"guest\"]}"} 
    [2021-10-11 15:10:10] flarum.DEBUG: trigger POST: {post_value} {"post_value":"{\"name\":\"Flarum\\\\Post\\\\Event\\\\Posted\",\"data\":\"{\\\"data\\\":{\\\"type\\\":\\\"discussions\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"title\\\":\\\"test\\\",\\\"slug\\\":\\\"1-test\\\",\\\"commentCount\\\":10,\\\"participantCount\\\":1,\\\"createdAt\\\":\\\"2021-10-11T14:37:36+00:00\\\",\\\"lastPostedAt\\\":\\\"2021-10-11T15:10:10+00:00\\\",\\\"lastPostNumber\\\":10,\\\"canReply\\\":false,\\\"canRename\\\":false,\\\"canDelete\\\":false,\\\"canHide\\\":false,\\\"isApproved\\\":true,\\\"canViewWhoTypes\\\":false,\\\"canTag\\\":false,\\\"subscription\\\":null,\\\"isSticky\\\":false,\\\"canSticky\\\":false,\\\"isLocked\\\":false,\\\"canLock\\\":false},\\\"relationships\\\":{\\\"tags\\\":{\\\"data\\\":[{\\\"type\\\":\\\"tags\\\",\\\"id\\\":\\\"1\\\"}]},\\\"user\\\":{\\\"data\\\":{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\"}},\\\"lastPostedUser\\\":{\\\"data\\\":{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\"}},\\\"lastPost\\\":{\\\"data\\\":{\\\"type\\\":\\\"posts\\\",\\\"id\\\":\\\"10\\\"}}}},\\\"included\\\":[{\\\"type\\\":\\\"tags\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"name\\\":\\\"General\\\",\\\"description\\\":null,\\\"slug\\\":\\\"general\\\",\\\"color\\\":\\\"#888\\\",\\\"backgroundUrl\\\":null,\\\"backgroundMode\\\":null,\\\"icon\\\":null,\\\"discussionCount\\\":0,\\\"position\\\":0,\\\"defaultSort\\\":null,\\\"isChild\\\":false,\\\"isHidden\\\":false,\\\"lastPostedAt\\\":\\\"2021-10-11T15:10:05+00:00\\\",\\\"canStartDiscussion\\\":false,\\\"canAddToDiscussion\\\":false}},{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"username\\\":\\\"Marko\\\",\\\"displayName\\\":\\\"Marko\\\",\\\"avatarUrl\\\":null,\\\"slug\\\":\\\"Marko\\\"}},{\\\"type\\\":\\\"posts\\\",\\\"id\\\":\\\"10\\\",\\\"attributes\\\":{\\\"number\\\":10,\\\"createdAt\\\":\\\"2021-10-11T15:10:10+00:00\\\",\\\"contentType\\\":\\\"comment\\\",\\\"contentHtml\\\":\\\"<p>ciaociaociao<\\\\\\/p>\\\"}}]}\",\"channels\":[\"guest\"]}"} 
    [2021-10-11 15:10:43] flarum.DEBUG: trigger POST: {post_value} {"post_value":"{\"name\":\"Flarum\\\\Post\\\\Event\\\\Posted\",\"data\":\"{\\\"data\\\":{\\\"type\\\":\\\"discussions\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"title\\\":\\\"test\\\",\\\"slug\\\":\\\"1-test\\\",\\\"commentCount\\\":11,\\\"participantCount\\\":1,\\\"createdAt\\\":\\\"2021-10-11T14:37:36+00:00\\\",\\\"lastPostedAt\\\":\\\"2021-10-11T15:10:43+00:00\\\",\\\"lastPostNumber\\\":11,\\\"canReply\\\":false,\\\"canRename\\\":false,\\\"canDelete\\\":false,\\\"canHide\\\":false,\\\"isApproved\\\":true,\\\"canViewWhoTypes\\\":false,\\\"canTag\\\":false,\\\"subscription\\\":null,\\\"isSticky\\\":false,\\\"canSticky\\\":false,\\\"isLocked\\\":false,\\\"canLock\\\":false},\\\"relationships\\\":{\\\"tags\\\":{\\\"data\\\":[{\\\"type\\\":\\\"tags\\\",\\\"id\\\":\\\"1\\\"}]},\\\"user\\\":{\\\"data\\\":{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\"}},\\\"lastPostedUser\\\":{\\\"data\\\":{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\"}},\\\"lastPost\\\":{\\\"data\\\":{\\\"type\\\":\\\"posts\\\",\\\"id\\\":\\\"11\\\"}}}},\\\"included\\\":[{\\\"type\\\":\\\"tags\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"name\\\":\\\"General\\\",\\\"description\\\":null,\\\"slug\\\":\\\"general\\\",\\\"color\\\":\\\"#888\\\",\\\"backgroundUrl\\\":null,\\\"backgroundMode\\\":null,\\\"icon\\\":null,\\\"discussionCount\\\":0,\\\"position\\\":0,\\\"defaultSort\\\":null,\\\"isChild\\\":false,\\\"isHidden\\\":false,\\\"lastPostedAt\\\":\\\"2021-10-11T15:10:10+00:00\\\",\\\"canStartDiscussion\\\":false,\\\"canAddToDiscussion\\\":false}},{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"username\\\":\\\"Marko\\\",\\\"displayName\\\":\\\"Marko\\\",\\\"avatarUrl\\\":null,\\\"slug\\\":\\\"Marko\\\"}},{\\\"type\\\":\\\"posts\\\",\\\"id\\\":\\\"11\\\",\\\"attributes\\\":{\\\"number\\\":11,\\\"createdAt\\\":\\\"2021-10-11T15:10:43+00:00\\\",\\\"contentType\\\":\\\"comment\\\",\\\"contentHtml\\\":\\\"<p>sdgsfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdf<\\\\\\/p>\\\"}}]}\",\"channels\":[\"guest\"]}"} 
    

    Are you able to post now ?

  • @justoverclock and I see this in the log

    [2021-10-11 15:10:01] flarum.DEBUG: trigger POST: {post_value} {"post_value":"{\"name\":\"Flarum\\\\Post\\\\Event\\\\Posted\",\"data\":\"{\\\"data\\\":{\\\"type\\\":\\\"discussions\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"title\\\":\\\"test\\\",\\\"slug\\\":\\\"1-test\\\",\\\"commentCount\\\":8,\\\"participantCount\\\":1,\\\"createdAt\\\":\\\"2021-10-11T14:37:36+00:00\\\",\\\"lastPostedAt\\\":\\\"2021-10-11T15:10:00+00:00\\\",\\\"lastPostNumber\\\":8,\\\"canReply\\\":false,\\\"canRename\\\":false,\\\"canDelete\\\":false,\\\"canHide\\\":false,\\\"isApproved\\\":true,\\\"canViewWhoTypes\\\":false,\\\"canTag\\\":false,\\\"subscription\\\":null,\\\"isSticky\\\":false,\\\"canSticky\\\":false,\\\"isLocked\\\":false,\\\"canLock\\\":false},\\\"relationships\\\":{\\\"tags\\\":{\\\"data\\\":[{\\\"type\\\":\\\"tags\\\",\\\"id\\\":\\\"1\\\"}]},\\\"user\\\":{\\\"data\\\":{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\"}},\\\"lastPostedUser\\\":{\\\"data\\\":{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\"}},\\\"lastPost\\\":{\\\"data\\\":{\\\"type\\\":\\\"posts\\\",\\\"id\\\":\\\"8\\\"}}}},\\\"included\\\":[{\\\"type\\\":\\\"tags\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"name\\\":\\\"General\\\",\\\"description\\\":null,\\\"slug\\\":\\\"general\\\",\\\"color\\\":\\\"#888\\\",\\\"backgroundUrl\\\":null,\\\"backgroundMode\\\":null,\\\"icon\\\":null,\\\"discussionCount\\\":0,\\\"position\\\":0,\\\"defaultSort\\\":null,\\\"isChild\\\":false,\\\"isHidden\\\":false,\\\"lastPostedAt\\\":\\\"2021-10-11T14:45:03+00:00\\\",\\\"canStartDiscussion\\\":false,\\\"canAddToDiscussion\\\":false}},{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"username\\\":\\\"Marko\\\",\\\"displayName\\\":\\\"Marko\\\",\\\"avatarUrl\\\":null,\\\"slug\\\":\\\"Marko\\\"}},{\\\"type\\\":\\\"posts\\\",\\\"id\\\":\\\"8\\\",\\\"attributes\\\":{\\\"number\\\":8,\\\"createdAt\\\":\\\"2021-10-11T15:10:00+00:00\\\",\\\"contentType\\\":\\\"comment\\\",\\\"contentHtml\\\":\\\"<p>dfg<\\\\\\/p>\\\"}}]}\",\"channels\":[\"guest\"]}"} 
    [2021-10-11 15:10:05] flarum.DEBUG: trigger POST: {post_value} {"post_value":"{\"name\":\"Flarum\\\\Post\\\\Event\\\\Posted\",\"data\":\"{\\\"data\\\":{\\\"type\\\":\\\"discussions\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"title\\\":\\\"test\\\",\\\"slug\\\":\\\"1-test\\\",\\\"commentCount\\\":9,\\\"participantCount\\\":1,\\\"createdAt\\\":\\\"2021-10-11T14:37:36+00:00\\\",\\\"lastPostedAt\\\":\\\"2021-10-11T15:10:05+00:00\\\",\\\"lastPostNumber\\\":9,\\\"canReply\\\":false,\\\"canRename\\\":false,\\\"canDelete\\\":false,\\\"canHide\\\":false,\\\"isApproved\\\":true,\\\"canViewWhoTypes\\\":false,\\\"canTag\\\":false,\\\"subscription\\\":null,\\\"isSticky\\\":false,\\\"canSticky\\\":false,\\\"isLocked\\\":false,\\\"canLock\\\":false},\\\"relationships\\\":{\\\"tags\\\":{\\\"data\\\":[{\\\"type\\\":\\\"tags\\\",\\\"id\\\":\\\"1\\\"}]},\\\"user\\\":{\\\"data\\\":{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\"}},\\\"lastPostedUser\\\":{\\\"data\\\":{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\"}},\\\"lastPost\\\":{\\\"data\\\":{\\\"type\\\":\\\"posts\\\",\\\"id\\\":\\\"9\\\"}}}},\\\"included\\\":[{\\\"type\\\":\\\"tags\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"name\\\":\\\"General\\\",\\\"description\\\":null,\\\"slug\\\":\\\"general\\\",\\\"color\\\":\\\"#888\\\",\\\"backgroundUrl\\\":null,\\\"backgroundMode\\\":null,\\\"icon\\\":null,\\\"discussionCount\\\":0,\\\"position\\\":0,\\\"defaultSort\\\":null,\\\"isChild\\\":false,\\\"isHidden\\\":false,\\\"lastPostedAt\\\":\\\"2021-10-11T15:10:00+00:00\\\",\\\"canStartDiscussion\\\":false,\\\"canAddToDiscussion\\\":false}},{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"username\\\":\\\"Marko\\\",\\\"displayName\\\":\\\"Marko\\\",\\\"avatarUrl\\\":null,\\\"slug\\\":\\\"Marko\\\"}},{\\\"type\\\":\\\"posts\\\",\\\"id\\\":\\\"9\\\",\\\"attributes\\\":{\\\"number\\\":9,\\\"createdAt\\\":\\\"2021-10-11T15:10:05+00:00\\\",\\\"contentType\\\":\\\"comment\\\",\\\"contentHtml\\\":\\\"<p>dfgdfgdfg<\\\\\\/p>\\\"}}]}\",\"channels\":[\"guest\"]}"} 
    [2021-10-11 15:10:10] flarum.DEBUG: trigger POST: {post_value} {"post_value":"{\"name\":\"Flarum\\\\Post\\\\Event\\\\Posted\",\"data\":\"{\\\"data\\\":{\\\"type\\\":\\\"discussions\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"title\\\":\\\"test\\\",\\\"slug\\\":\\\"1-test\\\",\\\"commentCount\\\":10,\\\"participantCount\\\":1,\\\"createdAt\\\":\\\"2021-10-11T14:37:36+00:00\\\",\\\"lastPostedAt\\\":\\\"2021-10-11T15:10:10+00:00\\\",\\\"lastPostNumber\\\":10,\\\"canReply\\\":false,\\\"canRename\\\":false,\\\"canDelete\\\":false,\\\"canHide\\\":false,\\\"isApproved\\\":true,\\\"canViewWhoTypes\\\":false,\\\"canTag\\\":false,\\\"subscription\\\":null,\\\"isSticky\\\":false,\\\"canSticky\\\":false,\\\"isLocked\\\":false,\\\"canLock\\\":false},\\\"relationships\\\":{\\\"tags\\\":{\\\"data\\\":[{\\\"type\\\":\\\"tags\\\",\\\"id\\\":\\\"1\\\"}]},\\\"user\\\":{\\\"data\\\":{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\"}},\\\"lastPostedUser\\\":{\\\"data\\\":{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\"}},\\\"lastPost\\\":{\\\"data\\\":{\\\"type\\\":\\\"posts\\\",\\\"id\\\":\\\"10\\\"}}}},\\\"included\\\":[{\\\"type\\\":\\\"tags\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"name\\\":\\\"General\\\",\\\"description\\\":null,\\\"slug\\\":\\\"general\\\",\\\"color\\\":\\\"#888\\\",\\\"backgroundUrl\\\":null,\\\"backgroundMode\\\":null,\\\"icon\\\":null,\\\"discussionCount\\\":0,\\\"position\\\":0,\\\"defaultSort\\\":null,\\\"isChild\\\":false,\\\"isHidden\\\":false,\\\"lastPostedAt\\\":\\\"2021-10-11T15:10:05+00:00\\\",\\\"canStartDiscussion\\\":false,\\\"canAddToDiscussion\\\":false}},{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"username\\\":\\\"Marko\\\",\\\"displayName\\\":\\\"Marko\\\",\\\"avatarUrl\\\":null,\\\"slug\\\":\\\"Marko\\\"}},{\\\"type\\\":\\\"posts\\\",\\\"id\\\":\\\"10\\\",\\\"attributes\\\":{\\\"number\\\":10,\\\"createdAt\\\":\\\"2021-10-11T15:10:10+00:00\\\",\\\"contentType\\\":\\\"comment\\\",\\\"contentHtml\\\":\\\"<p>ciaociaociao<\\\\\\/p>\\\"}}]}\",\"channels\":[\"guest\"]}"} 
    [2021-10-11 15:10:43] flarum.DEBUG: trigger POST: {post_value} {"post_value":"{\"name\":\"Flarum\\\\Post\\\\Event\\\\Posted\",\"data\":\"{\\\"data\\\":{\\\"type\\\":\\\"discussions\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"title\\\":\\\"test\\\",\\\"slug\\\":\\\"1-test\\\",\\\"commentCount\\\":11,\\\"participantCount\\\":1,\\\"createdAt\\\":\\\"2021-10-11T14:37:36+00:00\\\",\\\"lastPostedAt\\\":\\\"2021-10-11T15:10:43+00:00\\\",\\\"lastPostNumber\\\":11,\\\"canReply\\\":false,\\\"canRename\\\":false,\\\"canDelete\\\":false,\\\"canHide\\\":false,\\\"isApproved\\\":true,\\\"canViewWhoTypes\\\":false,\\\"canTag\\\":false,\\\"subscription\\\":null,\\\"isSticky\\\":false,\\\"canSticky\\\":false,\\\"isLocked\\\":false,\\\"canLock\\\":false},\\\"relationships\\\":{\\\"tags\\\":{\\\"data\\\":[{\\\"type\\\":\\\"tags\\\",\\\"id\\\":\\\"1\\\"}]},\\\"user\\\":{\\\"data\\\":{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\"}},\\\"lastPostedUser\\\":{\\\"data\\\":{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\"}},\\\"lastPost\\\":{\\\"data\\\":{\\\"type\\\":\\\"posts\\\",\\\"id\\\":\\\"11\\\"}}}},\\\"included\\\":[{\\\"type\\\":\\\"tags\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"name\\\":\\\"General\\\",\\\"description\\\":null,\\\"slug\\\":\\\"general\\\",\\\"color\\\":\\\"#888\\\",\\\"backgroundUrl\\\":null,\\\"backgroundMode\\\":null,\\\"icon\\\":null,\\\"discussionCount\\\":0,\\\"position\\\":0,\\\"defaultSort\\\":null,\\\"isChild\\\":false,\\\"isHidden\\\":false,\\\"lastPostedAt\\\":\\\"2021-10-11T15:10:10+00:00\\\",\\\"canStartDiscussion\\\":false,\\\"canAddToDiscussion\\\":false}},{\\\"type\\\":\\\"users\\\",\\\"id\\\":\\\"1\\\",\\\"attributes\\\":{\\\"username\\\":\\\"Marko\\\",\\\"displayName\\\":\\\"Marko\\\",\\\"avatarUrl\\\":null,\\\"slug\\\":\\\"Marko\\\"}},{\\\"type\\\":\\\"posts\\\",\\\"id\\\":\\\"11\\\",\\\"attributes\\\":{\\\"number\\\":11,\\\"createdAt\\\":\\\"2021-10-11T15:10:43+00:00\\\",\\\"contentType\\\":\\\"comment\\\",\\\"contentHtml\\\":\\\"<p>sdgsfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdf<\\\\\\/p>\\\"}}]}\",\"channels\":[\"guest\"]}"} 
    

    Are you able to post now ?

    wrote on last edited by
    #16

    @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:

  • @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
  • To the Window to the Linux . . .

    Pinned Linux arch linux windows endoflife
    22
    19 Votes
    22 Posts
    8k Views
    Madchatthew
    @phenomlab said: @Madchatthew ouch. Sounds nasty. Did you get to the bottom of why it happened? I believe it is due to not everything getting upgraded because i wasn’t checking on the different packages I had installed from the AUR. Then when I ran yay it was like, hey would you like to update all of these things that you haven’t updated in months, perhaps years or ever for that matter and I was like yes please If you don’t have yay there are no notifications that you need more updates than what you realize. Chrome was staying updated because it would give me a notification, but there was the nvidia package that needed to be upgraded as well and I had never upgraded it. I didn’t realize it and should have. Then some of those packages use cmake and that needed to be updated as well. So using yay is beneficial to make sure you get all the updates you need.
  • Ubuntu 22.04 to Ubuntu 24.04 Unable to ping

    Locked Unsolved Linux ubuntu
    37
    3 Votes
    37 Posts
    13k Views
    abcabc123
    Okay, you have time, let me know
  • Linux on a Stick

    Linux linux usb arch
    29
    16 Votes
    29 Posts
    12k Views
    Madchatthew
    @DownPW I haven’t tried either of those, I am sure they run fast as well. Linux is so versatile it is awesome!
  • Avoid network traffic jam with BBR

    Linux ftp speed
    2
    1 Votes
    2 Posts
    1k Views
    phenomlab
    @DownPW interesting. Does this have any effect on data transfers over SCP
  • Ubuntu Upgrade All Packages

    Solved Linux mangodb sudonix
    3
    3 Votes
    3 Posts
    2k Views
    cagatay
    @phenomlab Upgraded, everything works
  • IRC Server/Client - Chat App with NodeBB

    Linux nodebb irc server client
    6
    1 Votes
    6 Posts
    3k Views
    phenomlab
    @Hari not sure from the consumer perspective, but Skype has been all but completely consumed by Microsoft Teams when it comes to business usage.
  • Digitalocean Ubuntu configuration

    Solved Linux
    33
    12 Votes
    33 Posts
    14k Views
    justoverclock
    @phenomlab thank you! not me
  • Advantages and disadvantages of changing to Ubuntu?

    Linux linux windows discussion
    28
    2 Votes
    28 Posts
    12k Views
    JAC
    @phenomlab said in Advantages and disadvantages of changing to Ubuntu?: @jac Yeah, I wouldn’t just leap into it unless you have a valid reason (such as the laptop no longer working and needing to be reinstalled). Probably better the devil you know currently. Absolutely mate, and generally as discussed that is the only time I have changed over to Ubuntu once the laptop has got slower. For now I will carry on with Windows, purchase the VPN & BitDefender in later October / early November and then see how all that runs for a few more months .