• Errors in node error log each time WARPOLL event runs (hourly)

    From Fernando Toledo@VERT to GitLab note in main/sbbs on Friday, January 05, 2024 17:33:24
    https://gitlab.synchro.net/main/sbbs/-/issues/255#note_4660


    Hello! I have a similar problem but I can't detect which file it refers to.


    ```
    # grep JSON /var/log/sbbs.log

    Dec 31 20:07:44 scarlet synchronet: srvc 0000 JSON server initialized (v1.39) Dec 31 20:07:44 scarlet synchronet: srvc 0000 JSON database initialized (v1.40): /sbbs/data/chat.json
    Dec 31 20:07:44 scarlet synchronet: srvc 0000 JSON database initialized (v1.40): /sbbs/xtrn/synchronetris/synchronetris.json
    Dec 31 20:07:44 scarlet synchronet: srvc 0000 JSON database initialized (v1.40): /sbbs/xtrn/tw2/tw2.json
    Dec 31 20:07:44 scarlet synchronet: srvc 0000 JSON JSON client initialized (v1.29)
    Dec 31 20:07:44 scarlet synchronet: srvc 0000 JSON database initialized (v1.40): /sbbs/xtrn/Doubles/doubles.json
    Dec 31 20:07:44 scarlet synchronet: srvc 0000 JSON database initialized (v1.40): /sbbs/xtrn/synkroban/synkroban.json
    Dec 31 20:07:44 scarlet synchronet: srvc 0000 JSON database initialized (v1.40): /sbbs/xtrn/druglord/druglord.json
    Dec 31 20:07:44 scarlet synchronet: srvc 0000 JSON database initialized (v1.40): /sbbs/xtrn/oneliners/oneliners.json
    Dec 31 20:07:44 scarlet synchronet: srvc 0000 JSON <--94: 127.0.0.1 connected Dec 31 20:07:44 scarlet synchronet: srvc 0000 JSON Synchronetris background service initialized
    Dec 31 20:07:45 scarlet synchronet: srvc 0000 JSON JSON client initialized (v1.29)
    Dec 31 20:07:46 scarlet synchronet: srvc 0000 JSON SyntaxError: JSON.parse
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Dec 31 20:11:55 scarlet synchronet: term Node 2 <Ragnarok> JSON client initialized (v1.29)
    Dec 31 20:11:55 scarlet synchronet: srvc 0000 JSON <--90: 127.0.0.1 connected Dec 31 20:11:55 scarlet synchronet: srvc 0000 JSON <--90: 127.0.0.1 disconnected
    Dec 31 20:11:55 scarlet synchronet: term Node 2 <Ragnarok> JSON client initialized (v1.29)
    ```

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Fernando Toledo@VERT to GitLab note in main/sbbs on Sunday, April 21, 2024 21:33:56
    https://gitlab.synchro.net/main/sbbs/-/issues/255#note_5280

    hi @rswindell ! can you add more debug message to this log?, like filename or line/column of corrupted file?
    i try to find what file trigger me this error.
    Thanks!

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Monday, April 22, 2024 23:44:50
    https://gitlab.synchro.net/main/sbbs/-/issues/255#note_5288

    I don't think so. The script filename and line are already logged, as was reported:
    warcommon.js line 135

    And the JS engine doesn't throw the line/column of the JSON it can't parse. As Deuce stated, the corrupt file appears to be "`game.save.json` file in the game directory" - have you looked at this file? Just pasting that file into any online JSON parser should show what the issues are.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Chris Costakis@VERT to GitLab issue in main/sbbs on Tuesday, April 23, 2024 07:59:21
    close https://gitlab.synchro.net/main/sbbs/-/issues/255

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Chris Costakis@VERT to GitLab note in main/sbbs on Tuesday, April 23, 2024 07:59:21
    https://gitlab.synchro.net/main/sbbs/-/issues/255#note_5289

    @rswindell Rob, I didn't really realize this was still open. The original issue this was opened for has long since been remediated by resolving the game.save.json issue. That said, I've updated the repo from scratch several times since opening the original ticket. Not sure where the corruption originated from, but not seeing it now. I'll close this as it looks like additional comments are similar json issues but unrelated to the WARPOLL event. Thanks!

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net