Uploaded image for project: 'Bedrock Dedicated Server'
  1. Bedrock Dedicated Server
  2. BDS-17453

Server crashes if script-watchdog is enabled and default permissions.json is missing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • 1.19.20
    • None
    • Manjaro Linux
    • Confirmed
    • 868891

      The new script watchdog seems to cause a server crash if the config/default/permissions.json file is missing.

      [2022-08-11 11:41:45:142 INFO] Package: com.mojang.minecraft.dedicatedserver
      Version: 1.19.20.02
      OS: Linux
      Server start: 2022-08-11 11:41:44 CEST
      Dmp timestamp: 2022-08-11 11:41:45 CEST
      Upload Date: 2022-08-11 11:41:45 CEST
      Session ID: 219b0aa7-ddfe-48bb-a758-850c74ee1a09
      Commit hash: 1aa76c5813541fe1bbb16c4e3a0af2b29474dc34
      Build id: 10811062
      CrashReporter Key: 6f3662c9-7e23-3de7-a0c5-d7af39a21f73Crash
      [2022-08-11 11:41:45:142 INFO]     at __clone (UnknownFile:?)

      Steps to reproduce

      • Download and unpack the 1.19.20 server files
      • Add a world with the Gametest experiment enabled to the server
      • Make sure script-watchdog-enable is enabled (which it should be by default)
      • Remove the config/default/permissions.json file (or just the entire config folder)

      Expected behavior

      When running scripts, a missing permissions.json file will simply be interpreted as an empty list of permissions. This behavior would also make sense here.

      Alternatively, the server could log a proper error message and shut down (and tbh, BDS could use some proper error messages in many other places as well).

       

            Unassigned Unassigned
            KurtThiemann Kurt Thiemann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: