Cannot update the bedrock executable

Quick Information

  • Operating System: Linux
  • Install Type: Docker (via CasaOs)
  • Version: 4.4.3

What Happened?

Using the GUI I attempted to update the executable for my bedrock server. I updated it the same way I have before (Config -> Update Executable) but after the backup completes the update stalls out. There is no error shown in the UI and the spinner/loader in the button spins with no change for over 10 minutes. I then looked at the logs of the docker container and saw the following output:

Exception in thread exe_update_Derpwood:
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/crafty/app/classes/shared/server.py", line 1494, in threaded_jar_update
    if downloaded:
UnboundLocalError: local variable 'downloaded' referenced before assignment

Appears that the logical branching used to set this variable is not exhaustive.

Expected result

Update should complete successfully

Steps to reproduce

  1. Choose a server and click into the details page.
  2. Navigate to the Config section.
  3. Click on Update executable button.

Screenshots

Priority/Severity

  • High (anything that impacts the normal user flow or blocks app usage)
  • Medium (anything that negatively affects the user experience)
  • Low (anything else e.g., typos, missing icons/translations, layout/formatting issues, etc.)
Edited by Andrew