RNS Logo

rns.recipes

◈ 9ce92808be498e9e05590ff27cbfdfe4

RNS 1.6.1 Released

Pinned

Started by Mark bc7291552be7a58f... ·

dude.eth deadbeef000b000b...
edited #21

FYI, rsRNS 1.5.0 had one bug that could keep the offline node's announce around, but it was fixed in 1.5.1. And I don't believe it was unique to rsRNS, as Python could have similar effects in RNS that were fixed in 1.6.1.

 

The reason you see us as a culprit is probably because there's a decent amount of users on it, and we announce the implementation being used. But no odd rebroadcasting logic exists.

 

Any instances of <rsRNS 1.5.1 (and <RNS 1.6.1) will fade out over time.

Mark 8dd57a7382268096...
#22

a node with discovery on and transport off uses ephemeral identity and so on maps the rnodes duplicates many times based on how many reboots you do to rnsd

 

Thanks @Mitch, well spotted. It is indeed a regression introduced when I changed the ordering of some of the early initiallization code in 1.6.1. It is fixed now in commit 606a1691. From now on, it will be required to explicitly set static_transport_id to true, if you want to make non-transport interfaces discoverable. The old solution was actually silly, looking at it now. Ephemeral transport ID shouldn't be automatically turned off for something like this, so instead, the situation is now logged as a warning, and the config will have to be changed to enable this functionality.

Mark 8dd57a7382268096...
#23

@K8, @Mitch, @dude.eth: Regarding the ever-increasing-hop-count announces going round, I have been chasing this one for quite a while, but have not yet determined the actual full mechanism of what is going on. It's an annoyance, and creates completely unneeded announce traffic, but it's not really a catastrophe or "poisoning path tables" or anything actually severe. It is really annoying, though.

 

From what I know so far, my best bet at the moment is that there are some nodes that do weird stuff with PATH_RESPONSE announces. These should never be rebroadcast, and are only meant to ever travel back through a single chain to the path requestor. But from what it looks like, some nodes are rebroadcasting these. I am not certain this is the entirity of the problem, but it is definitely contributing to it.

 

I have not seen any indication that rsRNS is doing this. But now that proper implementations are starting to actively signal their implementation ID and version number (and rsRNS was one of the first to actually do this), it will be much easier to figure out what in the world is going on. It has been near impossible to diagnose and trace problems like this for the last 6 months, due to some applications using half-baked or very broken implementations. You can imagine the amount of hair-pulling this has incurred :P

wiretapped ae815190037b8ed9...
#24

Hi, I'm not sure if this is the best place to post this but... I don't know a
better place, so here it is :)

 

I have three tracebacks to report, one each in rnsd, rngit, and nomadnet.

 

The first two I first observed after upgrading to 1.6.1 (from 1.5.something, i
missed 1.6.0).

 

The nomadnet problem I experienced earlier, and patched my nomadnet to work
around it, and then experienced again after installing the latest release
reverted my patch.

 

The rnsd exception is:

 

[2026-11-21 07:25:26] [Error] Exception occurred while transmitting via LocalInterface[rns/default], tearing down interface
[2026-11-21 07:25:26] [Error] The contained exception was: [Errno 2] No such file or directory
[2026-11-21 07:25:26] [Error] An unhandled <class 'FileNotFoundError'> exception occurred: [Errno 2] No such file or directory
[2026-11-21 07:25:26] [Error] Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/RNS/Interfaces/LocalInterface.py", line 223, in process_outgoing
else: BackboneInterface.tx_ready(self)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/usr/local/lib/python3.14/site-packages/RNS/Interfaces/BackboneInterface.py", line 351, in tx_ready
raise e
File "/usr/local/lib/python3.14/site-packages/RNS/Interfaces/BackboneInterface.py", line 346, in tx_ready
BackboneInterface.epoll.modify(fileno, events)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory

 

[2026-11-21 07:25:26] [Error] The interface LocalInterface[rns/default] experienced an unrecoverable error and is being torn down. Restart Reticulum to attempt to open this interface again.

 

Contrary to what the last line says, this rnsd instance continues running and
the local interface continues to work. (I am pretty sure that it is this rnsd
process which my rngit server and nomadnet are connected to, because when i run
rnstatus I see all interfaces connected and with iproute2's "ss" command I see
the my outbound connections are coming from the rnsd process rather than rngit
or nomadnet).

 

The rngit exception is:
Exception in thread Thread-1403 (job):
Traceback (most recent call last):
File "/usr/local/lib/python3.14/threading.py", line 1082, in _bootstrap_inner
self._context.run(self.run)
~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.14/threading.py", line 1024, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/RNS/Link.py", line 1093, in job
def job(): self.handle_request(request_id, unpacked_request)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/RNS/Link.py", line 934, in handle_request
response_resource = RNS.Resource(file_handle, self, metadata=metadata, request_id = request_id, is_response = True, auto_compress=auto_compress)
File "/usr/local/lib/python3.14/site-packages/RNS/Resource.py", line 405, in init
self.uncompressed_size = len(self.uncompressed_data)
~~~^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: object of type '_io.BufferedRandom' has no len()

 

This is on either the stderr or stdout of "rngit -s"; this exception has
occurred 8 times in the current process and it is still running and serving
requests.

 

The nomadnet exception (which, again, is an older problem) is actually fatal;
without patching to work around this my nomadnet never shows the TUI and exits
after about 15 seconds.

 

This is the exception:

 

[2026-11-25 18:15:19] [Error] An unhandled exception occurred, the details of which will be dumped below
[2026-11-25 18:15:19] [Error] Type : <class 'TypeError'>
[2026-11-25 18:15:19] [Error] Value : '<' not supported between instances of 'int' and 'NoneType'
[2026-11-25 18:15:19] [Error] Trace :
File "/usr/local/bin/nomadnet", line 6, in <module>
sys.exit(main())
~~~~^^
File "/usr/local/lib/python3.14/site-packages/nomadnet/nomadnet.py", line 51, in main
program_setup(configarg, rnsconfigarg, daemon, console)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/nomadnet/nomadnet.py", line 11, in program_setup
app = nomadnet.NomadNetworkApp(
configdir = configdir,
...<2 lines>...
force_console = console,
)
File "/usr/local/lib/python3.14/site-packages/nomadnet/NomadNetworkApp.py", line 481, in init
nomadnet.ui.spawn(self.uimode)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/nomadnet/ui/init.py", line 33, in spawn
return TextUI()
File "/usr/local/lib/python3.14/site-packages/nomadnet/ui/TextUI.py", line 257, in init
self.main_display = Main.MainDisplay(self, self.app)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/nomadnet/ui/textui/Main.py", line 117, in init
self.sub_displays = SubDisplays(self.app)
~~~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/nomadnet/ui/textui/Main.py", line 20, in init
self.network_display = NetworkDisplay(self.app)
~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/nomadnet/ui/textui/Network.py", line 1723, in init
self.lxmf_peers_display = LXMFPeers(self.app)
~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/nomadnet/ui/textui/Network.py", line 1858, in init
self.widget_list = self.make_peer_widgets()
~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/nomadnet/ui/textui/Network.py", line 1963, in make_peer_widgets
sorted_peers = sorted(self.peer_list, key=lambda pid: (self.app.directory.pn_trust_level(pid), self.peer_list[pid].sync_transfer_rate), reverse=True)

 

 

After this error, it appears to do a clean shutdown:

 

[2026-11-25 18:15:20] [Notice] Tearing down delivery destinations...
[2026-11-25 18:15:20] [Notice] Tearing down propagation node destination...
[2026-11-25 18:15:20] [Notice] Persisting LXMF state data to storage...
[2026-11-25 18:15:20] [Notice] Saving 20 peer synchronisation states to storage...
[2026-11-25 18:15:21] [Notice] Saved 20 peers to storage in 1s, 272ms and 243.02µs

 

My workaround to be able to launch nomadnet again is to add "or 0" in the last
line shown in that traceback, like this:

 

sorted_peers = sorted(self.peer_list, key=lambda pid: (self.app.directory.pn_trust_level(pid) or 0, self.peer_list[pid].sync_transfer_rate), reverse=True)

 

This is obviously not the correct fix but it works. I haven't investigated
enough to figure out what the correct fix is, but I did get as far as
noticing that Directory.pn_trust_level will always return None (triggering this
exception) when its call to RNS.Identity.recall returns None. In my case the
source_hash it is failing to recall an identity for is
5f0ab43d8e6bd6b9b7b7cd9926ea0ce7 (which I don't know what is and cannot find a
path to currently).

 

Let me know if there is anything I can do to help investigate any of these
issues.

wiretapped ae815190037b8ed9...
#25

Update: i just realized where that destination which is triggering my nomadnet bug came from: it is/was my own old standalone propagation node, which I probably had marked as trusted long ago before I stopped running it. (I verified that that is its destination using "rnid -pi ~/.lxmd/identity -H lxmf.propagation".)

Post a Reply

Supports Markdown: **bold**, *italic*, `code`, ```code blocks```, [links](url)

Log in to upload images

Quote
Copied to clipboard