Bitcoin Forum
June 14, 2024, 07:03:59 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Why "bitcoind" does not start when I run it ???  (Read 976 times)
chegmarco (OP)
Jr. Member
*
Offline Offline

Activity: 56
Merit: 10


View Profile
April 30, 2017, 11:59:33 AM
 #1

Hello.
   I am able to install a Bitcoin Server on Ubuntu (Xubuntu).
I was able to install the "bitcoind" server successfully by typing: sudo apt-get install bitcoind.

When I type: cd /usr/bin, I see that the server "bitcoind" is installed in the / usr / bin folder. Then I created a new folder by typing: "mkdir bitcoin" and then I type mousepad "bitcoin.conf" to put the connection parameters to the RPC server of the bitcoin.

Now I try to run "bitcoind" in the Linux Terminal but nothing appears, ie the "bitcoind" server does not start. I wait for several hours and it is always negative. The server "bitcoind" still does not start.

But when I try to retype "bitcoind" in another Terminal, I get as Error: "Error: Cannot obtain a lock on data directory /root/.bitcoin. Bitcoin Core is probably already running."

Thank you for explaining to me how to successfully operate normally "bitcoind".
cr1776
Legendary
*
Offline Offline

Activity: 4060
Merit: 1303


View Profile
April 30, 2017, 01:30:07 PM
 #2

Hello.
   I am able to install a Bitcoin Server on Ubuntu (Xubuntu).
I was able to install the "bitcoind" server successfully by typing: sudo apt-get install bitcoind.

When I type: cd /usr/bin, I see that the server "bitcoind" is installed in the / usr / bin folder. Then I created a new folder by typing: "mkdir bitcoin" and then I type mousepad "bitcoin.conf" to put the connection parameters to the RPC server of the bitcoin.

Now I try to run "bitcoind" in the Linux Terminal but nothing appears, ie the "bitcoind" server does not start. I wait for several hours and it is always negative. The server "bitcoind" still does not start.

But when I try to retype "bitcoind" in another Terminal, I get as Error: "Error: Cannot obtain a lock on data directory /root/.bitcoin. Bitcoin Core is probably already running."

Thank you for explaining to me how to successfully operate normally "bitcoind".


It sounds like it is running.

What does this show (this shows running processes that include the word bitcoin):
  ps aux | grep bitcoin


What about:
  bitcoin-cli getinfo

achow101
Moderator
Legendary
*
Offline Offline

Activity: 3430
Merit: 6704


Just writing some code


View Profile WWW
April 30, 2017, 03:23:52 PM
 #3

Now I try to run "bitcoind" in the Linux Terminal but nothing appears
That is what is supposed to happen. Bitcoind is not supposed to output anything to the terminal, if it does, something has gone wrong. Bitcoind has started when you see it "hang". Check in the processes list, you will see it there. In order to interact with it, you need to use bitcoin-cli in a different terminal. Or you can run bitcoind with -daemon so you can use bitcoin-cli in the same terminal.

chegmarco (OP)
Jr. Member
*
Offline Offline

Activity: 56
Merit: 10


View Profile
April 30, 2017, 05:18:52 PM
 #4

Thanks for your reply but I think normally Bitcoind should start no ?
When you notice the Tutorial of the Youtube Video: https://www.youtube.com/watch?v=W54aRszkEOI, we notice that after the installation of Bitcoind and its launch, we see a message of the kind : "Bitcoin server starting".
   So why in my case I do not get the same message (bitcoin server starting) ?

Thank you for replying and if possible give me another directive regarding why I do not get the message "bitcoin server starting".
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3430
Merit: 6704


Just writing some code


View Profile WWW
April 30, 2017, 05:54:19 PM
 #5

Thanks for your reply but I think normally Bitcoind should start no ?
When you notice the Tutorial of the Youtube Video: https://www.youtube.com/watch?v=W54aRszkEOI, we notice that after the installation of Bitcoind and its launch, we see a message of the kind : "Bitcoin server starting".
   So why in my case I do not get the same message (bitcoin server starting) ?

Thank you for replying and if possible give me another directive regarding why I do not get the message "bitcoin server starting".
You do not get that message because you do not have the -daemon option in the command line args or have daemon=1 in your bitcoin.conf. Without those, bitcoind will not be in daemon mode so there will be no messages to the terminal and it will appear to hang. However, it is not hanging, it is in fact starting.

chegmarco (OP)
Jr. Member
*
Offline Offline

Activity: 56
Merit: 10


View Profile
May 01, 2017, 11:52:54 AM
 #6

Ok Great Thank for all
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!