tahoe-lafs / magic-folder

Tahoe-LAFS-based file synchronization
Other
25 stars 7 forks source link

A conflicted file may prevent a full scan #719

Closed meejah closed 1 year ago

meejah commented 1 year ago

Gridsync reports log-lines like this:

{"exception": "builtins.AttributeError", "message_type": "eliot:traceback", "reason": "'list' object has no attribute 'addBoth'", "task_level": [1], "task_uuid": "5fbdca46-d221-4b1c-bf2d-bfd0951600a3", "timestamp": 1684055335.4225988, "traceback": "Traceback (most recent call last):\n  File \"magic_folder/scanner.py\", line 133, in _loop\n  File \"eliot/_generators.py\", line 121, in wrapper\n  File \"twisted/internet/defer.py\", line 1693, in _inlineCallbacks\n  File \"twisted/python/failure.py\", line 518, in throwExceptionIntoGenerator\n  File \"eliot/_generators.py\", line 111, in wrapper\n  File \"eliot/_generators.py\", line 99, in go\n  File \"magic_folder/scanner.py\", line 182, in _scan\n  File \"eliot/_generators.py\", line 121, in wrapper\n  File \"twisted/internet/task.py\", line 526, in _oneWorkUnit\n  File \"magic_folder/scanner.py\", line 183, in <genexpr>\n  File \"magic_folder/scanner.py\", line 179, in create_update\nAttributeError: 'list' object has no attribute 'addBoth'\n"}

It seems that the scanner code can't handle the empty-list that comes from some state transitions (possibly also preventing a full 'scan' from completing?)