mojira.dev
BDS-17453

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

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).

 

Comments 3

Hi

Does this issue occur every time? Is Win 10 BDS affected as well? 

This ticket will automatically reopen when you reply. 

The issue occurs on every start if the config/default/permissions.json file is missing, the GameTest experiment is enabled, and the script-watchdog is enabled.

The same issue occurs on the Windows version, except that there is no message about the crash. The server just exits immediately after it starts.

I tested this in a VirtualBox VM running Windows 11.

Resolving this as CR as we can no longer reproduce this bug.

If this is still an issue please remake the bug report and include detailed reproduction steps, as well as a video showcasing the bug.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 BDS Wiki – 📖 FAQs

KurtThiemann

(Unassigned)

Confirmed

Retrieved