I'm getting the error "Backup creation failed: input/output error (os error 5)"

I just upgraded Anki to version ⁨2.1.64 (581f82c5)⁩ [Python 3.9.15 Qt 6.5.0 PyQt 6.5.0].
Every few minutes a screen appears showing the error Backup creation failed: input/output error (os error 5) and the following error appears on the terminal:

Error in sys.excepthook:
TypeError: 'NoneType' object is not callable

Original exception was:
Traceback (most recent call last):
  File "aqt.main", line 1167, in closeEvent
  File "aqt.main", line 535, in unloadProfileAndExit
  File "aqt.main", line 511, in unloadProfile
  File "aqt.main", line 637, in unloadCollection
  File "aqt.main", line 909, in closeAllWindows
  File "aqt", line 144, in closeAll
  File "aqt.main", line 635, in before_sync
  File "aqt.main", line 1046, in maybe_auto_sync_on_open_close
  File "aqt.main", line 1039, in after_sync_and_call_addon_update
  File "aqt.main", line 631, in after_sync
  File "aqt.mediasync", line 124, in show_diag_until_finished
  File "aqt.main", line 628, in after_media_sync
  File "aqt.main", line 508, in callback
  File "aqt.main", line 544, in cleanupAndExit
  File "anki._backend_generated", line 1867, in await_backup_completion
  File "anki._backend", line 156, in _run_command
anki.errors.BackendIOError: Input/output error (os error 5)

The whole process seems to hang, and pressing Ctrl+C on the terminal causes this error to appear:
Ignored progress func as collection unloaded: <function AnkiQt.onUnixSignal.<locals>.quit at 0x7fbeb6fb84c0>

(and sometimes this one as well: Ignored progress func as collection unloaded: <bound method AnkiQt.on_periodic_backup_timer of <aqt.main.AnkiQt object at 0x7fbece141160>>)

I’m on Ubuntu 23.04

Tried running a filesystem check, and Tools>Check Database inside Anki?

1 Like

It worked. Thanks @dae :slightly_smiling_face:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.