-
Notifications
You must be signed in to change notification settings - Fork 335
Infinite scuttling with repeated IP addresses on different interfaces #1222
Comments
Precision: 3.15.0 does show the two errors below in its terminal, but it continues to work as expected:
Note that there is no "async hook stack has become corrupted" error. |
Sorry to hear you're bumping into this. I think I was the last person to touch the related networking code so I hope I can help! Could you post JSON config that Patchwork outputs? Specifically the I think ssbc/multiserver#49 is the correct fix for that, it's just pending review. Maybe we can come up with a workaround in the meantime. |
Reproduced! I'll take care of this, no JSON config required. Thanks for the awesome repro code. |
Assuming you're building from source, could can try the fix with: npm install ssb-config@github:ssbc/ssb-config#filter-incoming This should replace the default ssb-config with the patched version, I'd be curious to hear if it resolves the problem. Thanks again! |
Thanks @christianbundy for taking care of this! Unfortunately I'm using the AppImage, not building from source. But if there is some way that I could work around that to test it, or use some dev build I can try it. |
FYI, this is still happening in 3.18.0. |
Patchwork 3.17.1 remains stuck in the initial screen with the big "Loading..." spinner at the center and the small "Scuttling..." spinner at the top. I waited for several minutes, with Patchwork barely using CPU. The terminal output shows the following error:
Before starting Patchwork no process was listening on port 8008.
192.168.23.1 happens to be an address that I have in two different interfaces with different network masks, as part of a VPN setup where one interface is used to reach my local part of the VPN and another the rest of the VPN.
This is quite easy to reproduce in GNU/Linux by creating some dummy interfaces and setting the address there. As root:
Then run Patchwork to see the problem. To cleanup the network configuration, as root:
It seems that Patchwork iterates over IP addresses to listen on each of them (why not just listen on all interfaces?), but doesn't keep track of addresses it already started listening on (wrongly assuming that they will only appear once in interfaces).
Please note that this error did not show in 3.15.0 (the last version I used).
Thanks and keep the good work!
The text was updated successfully, but these errors were encountered: