Skip to content

Invalid node bytes encountered in node storage #1623

@KPrasch

Description

@KPrasch
sys.exit(nucypher_cli())   File "/home/ubuntu/.local/lib/python3.6/site-packages/click/core.py", line 764, in __call__     return self.main(*args, **kwargs)   File "/home/ubuntu/.local/lib/python3.6/site-packages/click/core.py", line 717, in main     rv = self.invoke(ctx)   File "/home/ubuntu/.local/lib/python3.6/site-packages/click/core.py", line 1137, in invoke     return _process_result(sub_ctx.command.invoke(sub_ctx))   File "/home/ubuntu/.local/lib/python3.6/site-packages/click/core.py", line 1137, in invoke     return _process_result(sub_ctx.command.invoke(sub_ctx))   File "/home/ubuntu/.local/lib/python3.6/site-packages/click/core.py", line 956, in invoke     return ctx.invoke(self.callback, **ctx.params)   File "/home/ubuntu/.local/lib/python3.6/site-packages/click/core.py", line 555, in invoke     return callback(*args, **kwargs)   File "/home/ubuntu/.local/lib/python3.6/site-packages/nucypher/cli/options.py", line 134, in wrapper     return func(**kwargs)   File "/home/ubuntu/.local/lib/python3.6/site-packages/nucypher/cli/options.py", line 134, in wrapper     return func(**kwargs)   File "/home/ubuntu/.local/lib/python3.6/site-packages/nucypher/cli/options.py", line 134, in wrapper     return func(**kwargs)   File "/home/ubuntu/.local/lib/python3.6/site-packages/nucypher/cli/commands/ursula.py", line 321, in run     json_ipc=general_config.json_ipc)   File "/home/ubuntu/.local/lib/python3.6/site-packages/nucypher/cli/commands/ursula.py", line 225, in create_character     start_learning_now=load_seednodes)   File "/home/ubuntu/.local/lib/python3.6/site-packages/nucypher/cli/actions.py", line 350, in make_cli_character     **config_args)   File "/home/ubuntu/.local/lib/python3.6/site-packages/nucypher/config/node.py", line 225, in __call__     return self.produce(**character_kwargs)   File "/home/ubuntu/.local/lib/python3.6/site-packages/nucypher/config/characters.py", line 104, in produce     ursula = self.CHARACTER_CLASS(**merged_parameters)   File "/home/ubuntu/.local/lib/python3.6/site-packages/nucypher/characters/lawful.py", line 949, in __init__     self.start_learning_loop(now=True)   File "/home/ubuntu/.local/lib/python3.6/site-packages/nucypher/network/nodes.py", line 547, in start_learning_loop     self.load_seednodes()   File "/home/ubuntu/.local/lib/python3.6/site-packages/nucypher/network/nodes.py", line 440, in load_seednodes     self.read_nodes_from_storage()   File "/home/ubuntu/.local/lib/python3.6/site-packages/nucypher/network/nodes.py", line 447, in read_nodes_from_storage     stored_nodes = self.node_storage.all(federated_only=self.federated_only)  # TODO: #466   File "/home/ubuntu/.local/lib/python3.6/site-packages/nucypher/config/storages.py", line 487, in all     node = self.__read_metadata(filepath=metadata_path, federated_only=federated_only)  # TODO: 466   File "/home/ubuntu/.local/lib/python3.6/site-packages/nucypher/config/storages.py", line 457, in __read_metadata     node = Ursula.from_bytes(node_bytes)   File "/home/ubuntu/.local/lib/python3.6/site-packages/nucypher/characters/lawful.py", line 1151, in from_bytes     version, payload = cls.version_splitter(ursula_as_bytes, return_remainder=True)   File "/home/ubuntu/.local/lib/python3.6/site-packages/bytestring_splitter/__init__.py", line 144, in __call__     raise BytestringSplittingError(message.format(self.nice_message_types(), len(self), len(splittable))) bytestring_splitter.BytestringSplittingError: Not enough bytes to constitute message types int:2 - need 2, got 0

Metadata

Metadata

Assignees

Labels

Bug 🐛Broken functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions