Bitcoin Forum
May 09, 2024, 10:42:51 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: running bitcoin-core in testnet  (Read 624 times)
xishon (OP)
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
May 31, 2017, 09: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...
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715251371
Hero Member
*
Offline Offline

Posts: 1715251371

View Profile Personal Message (Offline)

Ignore
1715251371
Reply with quote  #2

1715251371
Report to moderator
1715251371
Hero Member
*
Offline Offline

Posts: 1715251371

View Profile Personal Message (Offline)

Ignore
1715251371
Reply with quote  #2

1715251371
Report to moderator
mocacinno
Legendary
*
Offline Offline

Activity: 3388
Merit: 4922


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
May 31, 2017, 09: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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
xishon (OP)
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
May 31, 2017, 10: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
mocacinno
Legendary
*
Offline Offline

Activity: 3388
Merit: 4922


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
May 31, 2017, 10: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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
xishon (OP)
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
May 31, 2017, 10: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
mocacinno
Legendary
*
Offline Offline

Activity: 3388
Merit: 4922


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
May 31, 2017, 11: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)

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
xishon (OP)
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
May 31, 2017, 11: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
mocacinno
Legendary
*
Offline Offline

Activity: 3388
Merit: 4922


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
May 31, 2017, 11: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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!