Internal error during ready callback: Unable to save variable

Basic Information:

Printer Model: Ender 3 V2 Neo
MCU / Printerboard: BTT SKR Pico
Host / SBC: RPi 4B+ 1GB
klippy.log

klippy.log (1.3 MB)

Fill out above information and in all cases attach your klippy.log file (use zip to compress it, if too big). Pasting your printer.cfg is not needed
Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there

Describe your issue:

I just updated to the latest Klipper version, and suddenly started getting this error “Internal error during ready callback: Unable to save variable”. I have looked at Klippy.log, and found this:

Traceback (most recent call last):
  File "/home/AdamDrefs/klipper/klippy/extras/save_variables.py", line 59, in cmd_SAVE_VARIABLE
    self.executor.submit(write_out)
  File "/home/AdamDrefs/klipper/klippy/extras/aio_executor.py", line 55, in submit
    result, exc = completion.wait()
  File "/home/AdamDrefs/klipper/klippy/reactor.py", line 38, in wait
    self.reactor.pause(waketime)
  File "/home/AdamDrefs/klipper/klippy/reactor.py", line 240, in pause
    self.verify_can_pause()
  File "/home/AdamDrefs/klipper/klippy/reactor.py", line 275, in verify_can_pause
    raise ReactorError("Internal error - reactor pause disabled")
reactor.ReactorError: Internal error - reactor pause disabled
Unable to save variable
Unhandled exception during ready callback
Traceback (most recent call last):
  File "/home/AdamDrefs/klipper/klippy/extras/save_variables.py", line 59, in cmd_SAVE_VARIABLE
    self.executor.submit(write_out)
  File "/home/AdamDrefs/klipper/klippy/extras/aio_executor.py", line 55, in submit
    result, exc = completion.wait()
  File "/home/AdamDrefs/klipper/klippy/reactor.py", line 38, in wait
    self.reactor.pause(waketime)
  File "/home/AdamDrefs/klipper/klippy/reactor.py", line 240, in pause
    self.verify_can_pause()
  File "/home/AdamDrefs/klipper/klippy/reactor.py", line 275, in verify_can_pause
    raise ReactorError("Internal error - reactor pause disabled")
reactor.ReactorError: Internal error - reactor pause disabled

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/AdamDrefs/klipper/klippy/klippy.py", line 165, in _connect
    cb()
  File "/home/AdamDrefs/klipper/klippy/extras/mmu/mmu.py", line 949, in handle_ready
    self._load_persisted_state()
  File "/home/AdamDrefs/klipper/klippy/extras/mmu/mmu.py", line 1232, in _load_persisted_state
    self._set_gate_selected(gate_selected)
  File "/home/AdamDrefs/klipper/klippy/extras/mmu/mmu.py", line 6468, in _set_gate_selected
    self.save_variable(self.VARS_MMU_GATE_SELECTED, self.gate_selected, write=True)
  File "/home/AdamDrefs/klipper/klippy/extras/mmu/mmu.py", line 3893, in save_variable
    self.write_variables()
  File "/home/AdamDrefs/klipper/klippy/extras/mmu/mmu.py", line 3903, in write_variables
    self.gcode.run_script_from_command("SAVE_VARIABLE VARIABLE=%s VALUE=%d" % (self.VARS_MMU_REVISION, mmu_vars_revision))
  File "/home/AdamDrefs/klipper/klippy/gcode.py", line 238, in run_script_from_command
    self._process_commands(script.split('\n'), need_ack=False)
  File "/home/AdamDrefs/klipper/klippy/gcode.py", line 223, in _process_commands
    handler(gcmd)
  File "/home/AdamDrefs/klipper/klippy/gcode.py", line 151, in <lambda>
    func = lambda params: origfunc(self._get_extended_params(params))
  File "/home/AdamDrefs/klipper/klippy/extras/save_variables.py", line 63, in cmd_SAVE_VARIABLE
    raise gcmd.error(msg)
gcode.CommandError: Unable to save variable
Transition to shutdown state: Internal error during ready callback: Unable to save variable

I can tell where the error is coming from, but am unsure what to do about it. Any recommendations?

Weba @AdamD !

From what version?

And that is?

Ah, it is HH, so:

-Timofey

Got it! Will try what is recommended in that GitHub posts. Thanks!

Can confirm, rolling klipper back to df1a8cd8 fixed the problem. Thanks for pointing me in the right direction!