Author

Topic: running bitcoin-core in testnet (Read 644 times)

legendary
Activity: 3584
Merit: 5243
https://merel.mobi => buy facemasks with BTC/LTC
May 31, 2017, 06:57:28 AM
#8
I just shut down the processes running on the port 18332 and them restart the server.Now its working.
Really thanks for your keen interest.  Wink Wink

That would have been the next step... I figured there must have been a mistake in your bitcoin.conf, so you were running bitcoind on the mainnet, but using the testnet ports... This way, you wouldn't be able to start the daemon on the testnet, since the ports were already bound...

It's perfectly find to have 2 conf-files: one for the main net, one for the testnet... If you do this, you can avoid having to start bitcoind -testnet, but if you do this, you'll have to add a parameter passing on which config file to use Smiley
newbie
Activity: 20
Merit: 0
May 31, 2017, 06:40:08 AM
#7
I just shut down the processes running on the port 18332 and them restart the server.Now its working.
Really thanks for your keen interest.  Wink Wink
legendary
Activity: 3584
Merit: 5243
https://merel.mobi => buy facemasks with BTC/LTC
May 31, 2017, 06:02:04 AM
#6

COMMAND    PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
bitcoind 28675 amaano    9u  IPv6 314783      0t0  TCP ip6-localhost:18332 (LISTEN)
bitcoind 28675 amaano   10u  IPv4 314785      0t0  TCP localhost:18332 (LISTEN)



(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 127.0.0.1:18332         0.0.0.0:*               LISTEN      28675/bitcoind  
tcp6       0      0 ::1:18332               :::*                    LISTEN      28675/bitcoind  


amaano   28675  7998  0 04:19 ?        00:00:00 bitcoind
amaano   29122  7998  0 05:05 ?        00:00:03 gedit /home/amaano/.bitcoin/bitcoin.conf
amaano   29555 29402 25 05:47 pts/0    00:04:45 bitcoind
amaano   29680 29573  0 06:06 pts/25   00:00:00 grep --color=auto -i bitcoin

Ok, this output simply tells me the following things:
1) port 18332, which is the default port for the testnet daemon, is already in use by bitcoind (first two outputs)
2) you're editing bitcoin.conf, and the only bitcoind process running *might* not be running on the testnet (thirth output)

could you post the content of your bitcoin.conf? EDIT OUT THE RPCPASSWORD (if you set one)
newbie
Activity: 20
Merit: 0
May 31, 2017, 05:10:48 AM
#5

COMMAND    PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
bitcoind 28675 amaano    9u  IPv6 314783      0t0  TCP ip6-localhost:18332 (LISTEN)
bitcoind 28675 amaano   10u  IPv4 314785      0t0  TCP localhost:18332 (LISTEN)



(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 127.0.0.1:18332         0.0.0.0:*               LISTEN      28675/bitcoind 
tcp6       0      0 ::1:18332               :::*                    LISTEN      28675/bitcoind 


amaano   28675  7998  0 04:19 ?        00:00:00 bitcoind
amaano   29122  7998  0 05:05 ?        00:00:03 gedit /home/amaano/.bitcoin/bitcoin.conf
amaano   29555 29402 25 05:47 pts/0    00:04:45 bitcoind
amaano   29680 29573  0 06:06 pts/25   00:00:00 grep --color=auto -i bitcoin
legendary
Activity: 3584
Merit: 5243
https://merel.mobi => buy facemasks with BTC/LTC
May 31, 2017, 05:04:37 AM
#4
debug.log file

2017-05-31 09:44:41 Using 32 MiB out of 32 requested for signature cache, able to store 1048576 elements
2017-05-31 09:44:41 Using 4 threads for script verification
2017-05-31 09:44:41 scheduler thread start
2017-05-31 09:44:41 Binding RPC on address ::1 port 18332 failed.
2017-05-31 09:44:41 Binding RPC on address 127.0.0.1 port 18332 failed.
2017-05-31 09:44:41 Unable to bind any endpoint for RPC server
2017-05-31 09:44:41 Error: Unable to start HTTP server. See debug log for details.
2017-05-31 09:44:41 Shutdown: In progress...
2017-05-31 09:44:41 scheduler thread interrupt
2017-05-31 09:44:41 Shutdown: done


could you run following commands, and post the outcome?:
Code:
lsof -i :18332
netstat -tulpn | grep 18332
netstat -tulpn | grep -i bitcoin
ps -ef | grep -i bitcoin

*going for my lunchbreak now, i'll continue helping you in about ~1hr
newbie
Activity: 20
Merit: 0
May 31, 2017, 05:02:53 AM
#3
debug.log file

2017-05-31 09:44:41 Using 32 MiB out of 32 requested for signature cache, able to store 1048576 elements
2017-05-31 09:44:41 Using 4 threads for script verification
2017-05-31 09:44:41 scheduler thread start
2017-05-31 09:44:41 Binding RPC on address ::1 port 18332 failed.
2017-05-31 09:44:41 Binding RPC on address 127.0.0.1 port 18332 failed.
2017-05-31 09:44:41 Unable to bind any endpoint for RPC server
2017-05-31 09:44:41 Error: Unable to start HTTP server. See debug log for details.
2017-05-31 09:44:41 Shutdown: In progress...
2017-05-31 09:44:41 scheduler thread interrupt
2017-05-31 09:44:41 Shutdown: done
legendary
Activity: 3584
Merit: 5243
https://merel.mobi => buy facemasks with BTC/LTC
May 31, 2017, 04:57:23 AM
#2
Hey guys
I am trying to run bitcoin-core server in testnet but after running any command it gives me the following error
      error code: -28
      error message:
      Loading wallet...


It's probably still loading it's wallet Wink
What does the debug.log say?

On linux, you'll have to switch to the user running bitcoin and do something like (untested, since i don't have a daemon running on the testnet, hence i have no way of verifying the complete path)
Code:
tail -f ~/.bitcoin/testnet3/debug.log
newbie
Activity: 20
Merit: 0
May 31, 2017, 04:55:17 AM
#1
Hey guys
I am trying to run bitcoin-core server in testnet but after running any command it gives me the following error
      error code: -28
      error message:
      Loading wallet...
Jump to: