n0-computer / iroh

peer-2-peer that just works
https://iroh.computer
Apache License 2.0
2.6k stars 164 forks source link

unexpected `rpc-port` behaviour when iroh daemon goes away and comes back #1837

Open divagant-martian opened 12 months ago

divagant-martian commented 12 months ago

Running on 1dfb7acfd94ee829c066babe6a5409dd6c468c95

Reproduction steps:

  1. start an iroh node (this will use the default port)
  2. start a second iroh node pointing to a different iroh data dir (this will use a random port and create a file with it)
  3. start a console pointing to the custom data dir of the second iroh node
  4. kill the second node
  5. run the second node again (providing the same data dir as before) this will use the default port and the console will not be able to talk to it
divagant-martian commented 8 months ago

for the sake of keeping this alive, just tested on current main (a42c1b2) and still can reproduce

divagant-martian commented 1 month ago

still happening on current main (2d04306a518f060bdaa7adfb42630ae01e04e093)