Hi Thomas,
This sounds like your node is cycling restarting intermittently
cardano-cli: Network.Socket.connect: <socket: 11>: error often occurs when the node is down
My guess is you either have some issues with your libsodium configuration or are running parallel instances of the node which are conflicting with each other.
Please check this post for a solution to a potential issue with your libsodium config:
And if that doesn’t work, try running killall cardano-node and then restart your node to see if the problem persists
Your friend, FROG