Title: Logs show listening on port 8333 but I cannot connect Post by: Elwar on January 27, 2020, 05:10:16 PM I'm running the Omni Layer which is essentially running Bitcoin with some extras.
When I start omnicored (same as bitcoind) the logs show: 2020-01-17T14:23:15Z AddLocal(167.71.2.197:8333,1) 2020-01-17T14:23:15Z Bound to [::]:8333 2020-01-17T14:23:15Z Bound to 0.0.0.0:8333 But a netstat and any other check of listening ports does not show port 8333 open. There are no firewalls set up (running on a Linux server) yet so nothing is blocking it, and I'm just trying to connect from the local host. Any ideas? I'm trying to run BTCPay on the same server and it requires connection to 8333. Title: Re: Logs show listening on port 8333 but I cannot connect Post by: Perkjeff on January 28, 2020, 12:06:18 PM May be do you have something like Fail2ban (or equivalent) enabled on your server or the port isn't open on IPTABLES.
Can you post the output of this command? Quote iptables -L -v -n sudo may be required. Title: Re: Logs show listening on port 8333 but I cannot connect Post by: DaveF on January 28, 2020, 12:28:46 PM What errors is the BTCPay sever giving you? Just cannot connect or something else?
What do you have your rpcallowip set to in your conf file? (do you have 127.0.0.1 set?) Did it ever work? And the obligatory question, did you verify with BTCPay that it will work with OmniLayer, no idea why it would not but you never know. A bit more info can help a lot. -Dave Title: Re: Logs show listening on port 8333 but I cannot connect Post by: Deathwing on January 28, 2020, 01:02:46 PM Custom "features" being added on top of default ones might be causing some clashes regarding the ports. Although it is bound, it might not be listening for any connections.
I'd suggest ditching any 3rd-party stuff and setting it up on your own. It's definitely not a firewall issue. Title: Re: Logs show listening on port 8333 but I cannot connect Post by: jackg on January 28, 2020, 01:49:41 PM But a netstat and any other check of listening ports does not show port 8333 open. There are no firewalls set up (running on a Linux server) yet so nothing is blocking it, and I'm just trying to connect from the local host. You checked the router/modem settings? That always catched me out. Title: Re: Logs show listening on port 8333 but I cannot connect Post by: Elwar on January 28, 2020, 03:35:16 PM Iptables had nothing so I added for 8333
Code: Chain INPUT (policy ACCEPT 0 packets, 0 bytes) What errors is the BTCPay sever giving you? Just cannot connect or something else? What do you have your rpcallowip set to in your conf file? (do you have 127.0.0.1 set?) Did it ever work? And the obligatory question, did you verify with BTCPay that it will work with OmniLayer, no idea why it would not but you never know. A bit more info can help a lot. -Dave My rpcallowip was set to the host IP address, changed to 127.0.0.1 to see if that changed anything. BTCPay requires running NBXplorer which connects to port 8333 Code: fail: Configuration: BTC: Unhandled in Waiter loop For netstat it shows no port 8333 open. Code: sudo netstat -tulp | grep LISTEN While there is nowhere that shows that BTCPay and Omni cannot work on the same server, I have seen it suggested that since Omni is essentially running bitcoind you should not need a separate server if you need bitcoind's features. Is there something I am missing as far as "turning on listening for port 8333?" I have seen mentions online that you should turn on 8333 to help the community. Title: Re: Logs show listening on port 8333 but I cannot connect Post by: Deathwing on January 28, 2020, 03:52:05 PM The issue you are having is pretty simple. BTCPayServer cannot connect to Bitcoin Core daemon.
As I have initially suggested, do a manual install of bitcoind rather than using a third-party app. If you are adamant on using this, check BTCPay Server's RPC settings, from what I can see Bitcoin daemon is 8332. Title: Re: Logs show listening on port 8333 but I cannot connect Post by: Elwar on January 28, 2020, 04:07:59 PM The issue you are having is pretty simple. BTCPayServer cannot connect to Bitcoin Core daemon. As I have initially suggested, do a manual install of bitcoind rather than using a third-party app. If you are adamant on using this, check BTCPay Server's RPC settings, from what I can see Bitcoin daemon is 8332. It's not out of stubbornness that I don't also install bitcoind. It requires a whole new server because omni is already running on the same ports and I've already spent the weeks it takes to get the 300G+ of blockchain caught up. I may just go the route of utilizing a third party host for BTCPay until we have enough traffic to justify another server. Just making sure there wasn't some setting I was missing to turn on the port. Title: Re: Logs show listening on port 8333 but I cannot connect Post by: Deathwing on January 28, 2020, 04:12:29 PM The issue you are having is pretty simple. BTCPayServer cannot connect to Bitcoin Core daemon. As I have initially suggested, do a manual install of bitcoind rather than using a third-party app. If you are adamant on using this, check BTCPay Server's RPC settings, from what I can see Bitcoin daemon is 8332. It's not out of stubbornness that I don't also install bitcoind. It requires a whole new server because omni is already running on the same ports and I've already spent the weeks it takes to get the 300G+ of blockchain caught up. I may just go the route of utilizing a third party host for BTCPay until we have enough traffic to justify another server. Just making sure there wasn't some setting I was missing to turn on the port. You can look into BTCPay Provider (http://btcpayprovider.com/) I have been using them for the donation link I have on my website and haven't had a problem yet. (No specific reason, just too lazy to setup my own BTCPay server.) But yeah, because of whatever node setting that omni has might be affecting BTCPay server. Title: Re: Logs show listening on port 8333 but I cannot connect Post by: Elwar on January 28, 2020, 04:18:50 PM You can look into BTCPay Provider (http://btcpayprovider.com/) I have been using them for the donation link I have on my website and haven't had a problem yet. (No specific reason, just too lazy to setup my own BTCPay server.) But yeah, because of whatever node setting that omni has might be affecting BTCPay server. Thanks, I'll give it a shot. Title: Re: Logs show listening on port 8333 but I cannot connect Post by: DaveF on January 28, 2020, 04:56:15 PM ---> System.Net.Sockets.SocketException (111): Connection refused For netstat it shows no port 8333 open. Code: sudo netstat -tulp | grep LISTEN While there is nowhere that shows that BTCPay and Omni cannot work on the same server, I have seen it suggested that since Omni is essentially running bitcoind you should not need a separate server if you need bitcoind's features. Do you have something like this in the omni conf file? Code: rpcuser=Your very secure user According to this: https://github.com/OmniLayer/omnicore/blob/master/src/omnicore/doc/rpc-api.md (https://github.com/OmniLayer/omnicore/blob/master/src/omnicore/doc/rpc-api.md) 8332 is the default port for omnicore so you will have to set it in the conf file to be 8333. It looks like you did not do that. If you *did* then for some reason it's not reading the conf file. So I would start poking around there. Set it to some really odd port and run netstat and see if it shows up there, Other then that I have no idea. -Dave |