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

    From Chris Costakis@1:103/705 to GitLab issue in main/sbbs on Tue Apr 27 18:35:17 2021
    open https://gitlab.synchro.net/main/sbbs/-/issues/255

    Getting an error in the node event log each hour when the WARPOLL event runs:evnt WARPOLL !JavaScript /sbbs/xtrn/war//warcommon.js line 135: SyntaxError: JSON.parseMy warcommon.js matches the latest version that is checked in.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to GitLab note in main/sbbs on Thu Sep 29 15:26:04 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/255#note_2753

    It sounds like your `game.save.json` file in the game directory is corrupt.
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Thu Feb 9 01:13:00 2023
    https://gitlab.synchro.net/main/sbbs/-/issues/255#note_3195

    I'm going to close this issue if there aren't any follow-ups.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Fernando Toledo@1:103/705 to GitLab note in main/sbbs on Fri Jan 5 17:33:24 2024
    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)
    ```
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Fernando Toledo@1:103/705 to GitLab note in main/sbbs on Sun Apr 21 21:33:56 2024
    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!
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Mon Apr 22 23:44:50 2024
    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.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Chris Costakis@1:103/705 to GitLab issue in main/sbbs on Tue Apr 23 07:59:21 2024
    close https://gitlab.synchro.net/main/sbbs/-/issues/255
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Chris Costakis@1:103/705 to GitLab note in main/sbbs on Tue Apr 23 07:59:21 2024
    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!
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)