Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: chegmarco on April 30, 2017, 11:59:33 AM



Title: Why "bitcoind" does not start when I run it ???
Post by: chegmarco on April 30, 2017, 11:59:33 AM
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".


Title: Re: Why "bitcoind" does not start when I run it ???
Post by: cr1776 on April 30, 2017, 01:30:07 PM
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



Title: Re: Why "bitcoind" does not start when I run it ???
Post by: achow101 on April 30, 2017, 03:23:52 PM
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.


Title: Re: Why "bitcoind" does not start when I run it ???
Post by: chegmarco on April 30, 2017, 05:18:52 PM
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".


Title: Re: Why "bitcoind" does not start when I run it ???
Post by: achow101 on April 30, 2017, 05:54:19 PM
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.


Title: Re: Why "bitcoind" does not start when I run it ???
Post by: chegmarco on May 01, 2017, 11:52:54 AM
Ok Great Thank for all