Skip to content

fix: use 127.0.0.1 instead of localhost to match socat bindings#2348

Merged
KoalaSat merged 1 commit intoRoboSats:mainfrom
Wizard079:fix-upstream-connection
Jan 8, 2026
Merged

fix: use 127.0.0.1 instead of localhost to match socat bindings#2348
KoalaSat merged 1 commit intoRoboSats:mainfrom
Wizard079:fix-upstream-connection

Conversation

@Wizard079
Copy link
Contributor

What does this PR do?

This PR fixes an IPv6/IPv4 mismatch between NGINX upstreams and socat listeners used by robosats-client.sh .
For context, see the failing logs

NGINX upstreams were configured to use localhost, which resolves to ::1 (IPv6) inside Docker containers. However, robosats-client.sh binds all socat bridges explicitly to 127.0.0.1 (IPv4). This caused connect() failed (111: Connection refused) errors when NGINX attempted to connect over IPv6

The fix replaces localhost with 127.0.0.1 in all coordinator upstreams.conf files, ensuring NGINX connects to the correct IPv4 sockets exposed by socat.
Final working logs after the fix can be found here

Checklist before merging

  • Install pre-commit and initialize it: pip install pre-commit, then pre-commit install. Pre-commit installs git hooks that automatically check the codebase. If pre-commit fails when you commit your changes, please fix the problems it points out.

@Wizard079 Wizard079 force-pushed the fix-upstream-connection branch from 202e40f to 6df364c Compare January 8, 2026 09:30
Copy link
Member

@KoalaSat KoalaSat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! thank you for taking care of it.

Please accept a small tip for your work. Share here a LN invoice with a long expiration date for 30,000 sats

@KoalaSat KoalaSat merged commit 06c22d0 into RoboSats:main Jan 8, 2026
5 checks passed
@Wizard079
Copy link
Contributor Author

Wizard079 commented Jan 8, 2026

Thanks @KoalaSat for the review

lnbc300u1p5kp69ypp54499dcm2fck8te3fedx8cf4n8lc255a56u6gxtft5gpcm5mrluuqdqqcqzzgxqyz5vqrzjqf0wu22xsefd8gzu0m9n93g2khea86l6yy26en9v46g9e6hk7v9z899eqjrwypun2gqqqqryqqqqthqqpyrzjqfwdd2w9y5ra5z3m4qetfa5ccu6432xfuvk6zrvg9vxwltvukd48d99eqjrwypun2gqqqqryqqqqthqqpysp5fa2dqzrzzde7efyeh9jpda8nfczplutayzc54zqrv3s3e5kcwz7q9qrsgqzs8fagtk4wg8pk7kdp0wt09zekah704lpkudp6r3trwcrfcgsna58lza65vhz26wwd84vm7lz83zwwl7v6d56ank9vwgnghehu5qq0cqjch4k5

@RobosatsDevFund
Copy link

Sorry for taking too long @Wizard079 , the invoice expired

@Wizard079
Copy link
Contributor Author

@RobosatsDevFund

lnbc300u1p5kgw34pp5msvnzx0xsra7rt2w2eqfxsavakmf9ks33czy4hw0sul5qt5k2saqdqqcqzzgxqyz5vqrzjqf0wu22xsefd8gzu0m9n93g2khea86l6yy26en9v46g9e6hk7v9z87vgkdgd7xt5csqqqqryqqqqthqqpyrzjqfwdd2w9y5ra5z3m4qetfa5ccu6432xfuvk6zrvg9vxwltvukd48d7vgkdgd7xt5csqqqqryqqqqthqqpysp5fmwekzklg3tpecmwyte2cd3jwjwjftmntwgaucv8e7qvx3r528vs9qrsgq5j5d6pfrg2e0hd2a225gu08tvvzpfrtjn9rfdxtfl7u0rmns7am93yez5vxd67ge9wk4n7w2w7zp3wwxa80ltk7vwjn3t0rhksxj05gpfyhzuy

@RobosatsDevFund
Copy link

435c720aab433ab1ddd900fcf679fd5d1db0f64c247455e4cdc4e6c5af3d1bc4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants