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

    From Chris Costakis@1:103/705 to GitLab issue in main/sbbs on Tuesday, April 27, 2021 18:35:17
    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 Thursday, September 29, 2022 15:26:04
    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 Thursday, February 09, 2023 01:13:00
    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 Keyop Troy@1:103/705 to GitLab note in main/sbbs on Saturday, May 20, 2023 09:19:10
    https://gitlab.synchro.net/main/sbbs/-/issues/255#note_3587

    I'm getting this error too - and my game save json files look like this:-rw-rw----. 1 sbbs sbbs 0 May 7 00:00 ./alderon/game.save.json-rw-rw----. 1 sbbs sbbs 0 May 7 00:00 ./earth/game.save.json-rw-rw----. 1 sbbs sbbs 0 May 7 00:00 ./solomoriah/game.save.json-rw-rw----. 1 sbbs sbbs 0 May 7 00:00 ./spacewar/game.save.json-rw-rw----. 1 sbbs sbbs 0 May 7 00:00 ./tolivar/game.save.json
    --- 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 Saturday, May 20, 2023 12:51:48
    https://gitlab.synchro.net/main/sbbs/-/issues/255#note_3588

    Probably safe to delete 0-byte .json files or restore from a backup?
    --- 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 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)
    ```
    --- 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 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!
    --- 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 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.
    --- 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 Tuesday, April 23, 2024 07:59:21
    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 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!
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)