Hello,
This sounds like a connectivity issue.
First, please have a look at the adapter status under “adapters”. There might be some useful info there.
You could also enabled logging and check your debug.log. Instructions for enabling debugging in WordPress can be found here https://codex.ww.wp.xz.cn/Debugging_in_WordPress
Also, try your connectivity via a shell using nc or telnet to make sure the port is accessible between machines. Just because you are not running a firewall does not mean that a firewall does not exist between your VPSs.
Let me know what you find.
best regards
Alex
Hello,
Thank you for your quick response.
I ran telnet and checked Adapter status and I found this:
Telnet: http://prntscr.com/h4ogzi
Adapter status: http://prntscr.com/h4ohmw
Best Regards,
John
Hey,
I just updated and properly configured the iptables on the bitcoind server allowing for all incoming HTTP, HTTPS and port 8332 connections. And opened port 8332 on the WP server. Still the same error 403 is persisting.
The ufw is disabled on both servers. The bitcoind conf file is set up well, according to the youtube guide. No clue what to do now… This is very frustrating!
OK,
since you are receiving a 403 error from your wallet, you can stop looking at connectivity issues. The plugin is connecting to your wallet fine, and is returning an authorization error.
The video is somewhat dated and I’m planning an update. Here’s what you can do now:
First, check to make sure that you have entered the same username and password in your adapter settings and .conf file. Once you enter a password in the adapter settings, the instructions for what to add to the conf file will reflect the change in the rpcauth= line, which contains a salted version of your password. That is, make sure that you have copied and pasted the config settings *after* you have first saved the password in the plugin.
Second, if that does not work for whatever reason, you can try to enter your password as cleartext in the config. Remove the rpcauth= line and add the two rpcuser= and rpcpass= lines. The documentation for conf files is here in case you want to have a look: https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File
Check these two things and let me know how it goes.
Hey,
I just resetted my rpc credentials in WP and updated them in bitcoin.conf. Tried both things you suggested, no luck – still error 403.
I went through this thread as well. Seems like you pointed out that there would be a different type of error (401) if the login was incorrect. https://ww.wp.xz.cn/support/topic/connection-refused-6/
Could I email you my bitcoin.conf? Let me know if there is any other relevant data you’d like.
Thank you.
Best regards,
John
What version of Bitcoin core are you trying to connect to?
You can send me your conf file in the email, [email protected] so I can have a look. The core client also returns 403 if your rpcallowip is not correct, so check that too. It should be set to the IP of your WordPress VPS.
Also, if your IP is 1.2.3.4, try adding a netmask, such as:
rpcallowip=1.2.3.4/24.
Let me know if it works.
I am using bitcoin 0.15 (I believe: http://prntscr.com/h4r49r )
I got it working! For anyone ever encountering this error in the future pay extra attention to the following details. If you follow the “Bitcoin Node” guide here -> https://bitcoin.org/en/full-node#ubuntu-1610 your bitcoin wallet will be installed in the “.bitcoin” directory. Make sure you are editing the bitcoin.conf file located in the “.bitcoin” subdirectory. Also make sure you are not specifying “rpcpass=X” instead of “rpcpassword=X” in the bitcoin.conf, like I have. All working now, very happy! Alex was awesome, very helpful! Great plugin & great author!
Solved. Solution involved adding the netmask to the rpcallowip argument.
Thanks John it was a pleasure.
I will update the plugin so it will recommend the correct netmask setting in the next version.
Actually it worked without adding the netmasks. Right now I’m not running any netmasks. I had to rename “rpcpass=” to “rpcpassword=.