Tried cloning a vault I had created earlier and uploaded some files to. Got an error.
This is running master version of daemon.
Backtrace:
$ syncrypt clone 57a88109-abc7-4cf8-9399-25e5ed6557fe clone-test
2019-10-15 06:27:00 [I] Retrieving encrypted key for vault 57a88109-abc7-4cf8-9399-25e5ed6557fe (Fingerprint: d2:cd:46:ea:6c:40:8f:2e)
2019-10-15 06:27:00 [I] Creating vault from package in clone-test
2019-10-15 06:27:00 [I] Adding vault <Vault: clone-test>
2019-10-15 06:27:00 [I] Registering vault <Vault: clone-test>
2019-10-15 06:27:01 [I] Pulling <Vault: clone-test>
2019-10-15 06:27:01 [I] Pulling <Vault: clone-test>
2019-10-15 06:27:01 [I] Getting a list of changes for <Vault: clone-test> (earliest to latest)
2019-10-15 06:27:01 [I] Getting a list of changes for <Vault: clone-test> (earliest to latest)
2019-10-15 06:27:01 [E] Exception in connection
Traceback (most recent call last):
File "syncrypt/backends/binary.py", line 1088, in _acquire_connection
yield conn
File "syncrypt/backends/binary.py", line 1132, in changes
yield rev
GeneratorExit
Exception ignored in: <async_generator object BinaryStorageBackend.changes at 0x10fdbabf8>
RuntimeError: async generator ignored GeneratorExit
2019-10-15 06:27:01 [E] Expected parent to be None, but is c035d841-60ed-45ab-8aed-4d85dda0040b
2019-10-15 06:27:01 [E] Exception in connection
Traceback (most recent call last):
File "syncrypt/backends/binary.py", line 1088, in _acquire_connection
yield conn
File "syncrypt/backends/binary.py", line 1132, in changes
yield rev
GeneratorExit
Exception ignored in: <async_generator object BinaryStorageBackend.changes at 0x10fdba378>
RuntimeError: async generator ignored GeneratorExit
2019-10-15 06:27:01 [E] Failure during vault operation
Traceback (most recent call last):
File "syncrypt/app/vault.py", line 156, in loop
await self.app.pull_vault(self.vault)
File "syncrypt/app/syncrypt.py", line 702, in pull_vault
await self.sync_vault(vault, full=full)
File "syncrypt/app/syncrypt.py", line 688, in sync_vault
await self.set_vault_state(vault, VaultState.SYNCING)
File "syncrypt/app/syncrypt.py", line 306, in set_vault_state
await controller.handle_state_transition(new_state, old_state)
AttributeError: 'NoneType' object has no attribute 'handle_state_transition'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "syncrypt/app/vault.py", line 162, in loop
await trio.sleep_forever()
File "lib/python3.7/site-packages/trio/_core/_run.py", line 496, in __aexit__
combined_error_from_nursery = self._scope._close(new_exc)
File "lib/python3.7/site-packages/trio/_core/_run.py", line 374, in _close
self._remove_task(scope_task)
File "lib/python3.7/site-packages/trio/_core/_run.py", line 348, in _remove_task
assert task._cancel_stack[-1] is self
AssertionError
Traceback (most recent call last):
File "lib/python3.7/site-packages/trio/_core/_run.py", line 1430, in run
run_impl(runner, async_fn, args)
File "lib/python3.7/site-packages/trio/_core/_run.py", line 1579, in run_impl
runner.task_exited(task, final_outcome)
File "lib/python3.7/site-packages/trio/_core/_run.py", line 1050, in task_exited
task._cancel_stack[-1]._remove_task(task)
File "lib/python3.7/site-packages/trio/_core/_run.py", line 347, in _remove_task
self._tasks.remove(task)
KeyError: <Task 'syncrypt.app.vault.VaultController.run' at 0x10fd70668>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "bin/syncrypt", line 7, in <module>
exec(compile(f.read(), __file__, 'exec'))
File "scripts/syncrypt", line 475, in <module>
trio_asyncio.run(run_command, c)
File "lib/python3.7/site-packages/trio_asyncio/loop.py", line 393, in run
trio.run(_run_task, proc, args)
File "lib/python3.7/site-packages/trio/_core/_run.py", line 1436, in run
) from exc
trio.TrioInternalError: internal error in trio - please file a bug!
Exception ignored in: <async_generator object BinaryStorageBackend._acquire_connection at 0x10fdba9d8>
Traceback (most recent call last):
File "syncrypt/backends/binary.py", line 1094, in _acquire_connection
await conn.clear_connection()
File "syncrypt/backends/binary.py", line 321, in clear_connection
await self.stream.aclose()
File "lib/python3.7/site-packages/trio/_ssl.py", line 778, in aclose
await aclose_forcefully(self.transport_stream)
File "lib/python3.7/site-packages/trio/_highlevel_generic.py", line 32, in aclose_forcefully
with _core.CancelScope() as cs:
File "lib/python3.7/site-packages/trio/_core/_ki.py", line 165, in wrapper
return fn(*args, **kwargs)
File "lib/python3.7/site-packages/trio/_core/_run.py", line 179, in __enter__
task = _core.current_task()
File "lib/python3.7/site-packages/trio/_core/_run.py", line 1645, in current_task
raise RuntimeError("must be called from async context") from None
RuntimeError: must be called from async context
Exception ignored in: <async_generator object BinaryStorageBackend._acquire_connection at 0x10fdbaae8>
Traceback (most recent call last):
File "syncrypt/backends/binary.py", line 1094, in _acquire_connection
await conn.clear_connection()
File "syncrypt/backends/binary.py", line 321, in clear_connection
await self.stream.aclose()
File "lib/python3.7/site-packages/trio/_ssl.py", line 778, in aclose
await aclose_forcefully(self.transport_stream)
File "lib/python3.7/site-packages/trio/_highlevel_generic.py", line 32, in aclose_forcefully
with _core.CancelScope() as cs:
File "lib/python3.7/site-packages/trio/_core/_ki.py", line 165, in wrapper
return fn(*args, **kwargs)
File "lib/python3.7/site-packages/trio/_core/_run.py", line 179, in __enter__
task = _core.current_task()
File "lib/python3.7/site-packages/trio/_core/_run.py", line 1645, in current_task
raise RuntimeError("must be called from async context") from None
RuntimeError: must be called from async context
Exception ignored in: <function Nursery.__del__ at 0x10e4dfb70>
Traceback (most recent call last):
File "lib/python3.7/site-packages/trio/_core/_run.py", line 638, in __del__
AssertionError:
Exception ignored in: <function Nursery.__del__ at 0x10e4dfb70>
Traceback (most recent call last):
File "lib/python3.7/site-packages/trio/_core/_run.py", line 638, in __del__
AssertionError:
Exception ignored in: <coroutine object run.<locals>._run_task at 0x10fa78a48>
Traceback (most recent call last):
File "lib/python3.7/site-packages/trio_asyncio/loop.py", line 391, in _run_task
File "lib/python3.7/site-packages/async_generator/_util.py", line 53, in __aexit__
File "lib/python3.7/site-packages/async_generator/_impl.py", line 366, in step
File "lib/python3.7/site-packages/async_generator/_impl.py", line 197, in __next__
File "lib/python3.7/site-packages/async_generator/_impl.py", line 209, in _invoke
File "lib/python3.7/site-packages/trio_asyncio/async_.py", line 131, in open_loop
File "lib/python3.7/site-packages/trio/_core/_run.py", line 493, in __aexit__
File "lib/python3.7/site-packages/trio/_core/_run.py", line 583, in _nested_child_finished
File "lib/python3.7/site-packages/trio/_core/_run.py", line 563, in _add_exc
File "lib/python3.7/site-packages/trio/_core/_ki.py", line 165, in wrapper
File "lib/python3.7/site-packages/trio/_core/_run.py", line 340, in cancel
File "lib/python3.7/site-packages/trio/_core/_run.py", line 742, in _attempt_delivery_of_any_pending_cancel
File "lib/python3.7/site-packages/trio/_core/_run.py", line 724, in _attempt_abort
File "lib/python3.7/site-packages/trio/_channel.py", line 239, in abort_fn
KeyError: <Task 'trio_asyncio.base.BaseTrioEventLoop._main_loop' at 0x10fb0df28>
Exception ignored in: <function Nursery.__del__ at 0x10e4dfb70>
Traceback (most recent call last):
File "lib/python3.7/site-packages/trio/_core/_run.py", line 638, in __del__
AssertionError:
Exception ignored in: <coroutine object BaseTrioEventLoop._main_loop at 0x10fb56148>
Traceback (most recent call last):
File "lib/python3.7/site-packages/trio_asyncio/base.py", line 724, in _main_loop
File "lib/python3.7/site-packages/trio_asyncio/base.py", line 747, in _main_loop_one
File "lib/python3.7/site-packages/trio/_core/_ki.py", line 165, in wrapper
File "lib/python3.7/site-packages/trio/_core/_run.py", line 199, in __exit__
File "lib/python3.7/site-packages/trio/_core/_run.py", line 367, in _close
File "lib/python3.7/site-packages/trio/_core/_run.py", line 1645, in current_task
RuntimeError: must be called from async context```
Tried cloning a vault I had created earlier and uploaded some files to. Got an error. This is running
master
version of daemon.Backtrace: