Author

Topic: bitcoin-cli not working (Read 941 times)

newbie
Activity: 9
Merit: 0
January 08, 2017, 03:53:28 AM
#12
i created a new virtual machine on Ubuntu and started from the beginig while following your steps and it worked !
thank you so much for you help Cheesy
i used gedit bitcoin.conf and gedit bitcoin and i was able to open the file but both .bitcoin and bitcoin.conf are empty ! there is nothing in both of them so i don't know why the command bitcoin-qt gives an 'payxfee' error ?
-snip-

.bitcoin is a folder not a file. Are you sure you are in the correct folder? What does ls -al return?
copper member
Activity: 1498
Merit: 1528
No I dont escrow anymore.
January 06, 2017, 02:53:57 PM
#11
i used gedit bitcoin.conf and gedit bitcoin and i was able to open the file but both .bitcoin and bitcoin.conf are empty ! there is nothing in both of them so i don't know why the command bitcoin-qt gives an 'payxfee' error ?
-snip-

.bitcoin is a folder not a file. Are you sure you are in the correct folder? What does ls -al return?
newbie
Activity: 9
Merit: 0
January 06, 2017, 12:38:32 PM
#10
i used gedit bitcoin.conf and gedit bitcoin and i was able to open the file but both .bitcoin and bitcoin.conf are empty ! there is nothing in both of them so i don't know why the command bitcoin-qt gives an 'payxfee' error ?
-snip-
Exactly what command are you using to start Bitcoin Core? Go to ~/.bitcoin and double check that there is no bitcoin.conf file there. If there is, please post the contents of that file.

There will a bitcoin.conf with something along the lines of

Code:
...
paytxfee=0.00
...

@chu_11 from what you said you might not be able to see the .bitcoin folder. Its in your "home" (cd ~ in terminal) and its hidden (the . at the beginning). You might have to change how your folder browser shows folders. If you are in your home folder in the terminal you can just change into the hidden folder with cd .bitcoin even when you cant see it. You try opening the file with one of the following commands from terminal:

  • gedit bitcoin.conf
  • leafpad bitcoin.conf
  • nano bitcoin.conf
copper member
Activity: 1498
Merit: 1528
No I dont escrow anymore.
January 06, 2017, 10:34:21 AM
#9
-snip-
Exactly what command are you using to start Bitcoin Core? Go to ~/.bitcoin and double check that there is no bitcoin.conf file there. If there is, please post the contents of that file.

There will a bitcoin.conf with something along the lines of

Code:
...
paytxfee=0.00
...

@chu_11 from what you said you might not be able to see the .bitcoin folder. Its in your "home" (cd ~ in terminal) and its hidden (the . at the beginning). You might have to change how your folder browser shows folders. If you are in your home folder in the terminal you can just change into the hidden folder with cd .bitcoin even when you cant see it. You try opening the file with one of the following commands from terminal:

  • gedit bitcoin.conf
  • leafpad bitcoin.conf
  • nano bitcoin.conf
staff
Activity: 3458
Merit: 6793
Just writing some code
January 06, 2017, 10:26:26 AM
#8
when running bitcoin.qt i get an error window "Invalid amount for -paytxfee=: '0.00' (must be at least 0.00001000 BTC/kB)" and the welcome sceen of bitcoin disapears Sad

why did i get this window? can you help please?
Exactly what command are you using to start Bitcoin Core? Go to ~/.bitcoin and double check that there is no bitcoin.conf file there. If there is, please post the contents of that file.
newbie
Activity: 9
Merit: 0
January 06, 2017, 07:54:34 AM
#7
when running bitcoin.qt i get an error window "Invalid amount for -paytxfee=: '0.00' (must be at least 0.00001000 BTC/kB)" and the welcome sceen of bitcoin disapears Sad

why did i get this window? can you help please?
but i can't find the .bitcoin folder i only have bitcoind document.

sorry i'am a true begginer --'
First you need to run bitcoind or bitcoin-qt. If you have a desktop interface that you can use, then I suggest that you run bitcoin-qt. Only after you have done that will the ~/.bitcoin folder exist. You will then need to wait a long time for Bitcoin Core (the name of the actual software) to sync.
staff
Activity: 3458
Merit: 6793
Just writing some code
January 05, 2017, 03:35:39 PM
#6
but i can't find the .bitcoin folder i only have bitcoind document.

sorry i'am a true begginer --'
First you need to run bitcoind or bitcoin-qt. If you have a desktop interface that you can use, then I suggest that you run bitcoin-qt. Only after you have done that will the ~/.bitcoin folder exist. You will then need to wait a long time for Bitcoin Core (the name of the actual software) to sync.
newbie
Activity: 9
Merit: 0
January 05, 2017, 02:32:41 PM
#5
but i can't find the .bitcoin folder i only have bitcoind document.

sorry i'am a true begginer --'
oops x) i didn't i actually thought that the bitcoin-conf is created automatically by bitcoin core.
the bitcoin-conf should be placed in which folder please?
-snip-

Same as your wallet.dat, for linux thats usually in ~/.bitcoin
copper member
Activity: 1498
Merit: 1528
No I dont escrow anymore.
January 04, 2017, 02:06:57 PM
#4
oops x) i didn't i actually thought that the bitcoin-conf is created automatically by bitcoin core.
the bitcoin-conf should be placed in which folder please?
-snip-

Same as your wallet.dat, for linux thats usually in ~/.bitcoin
newbie
Activity: 9
Merit: 0
January 04, 2017, 12:23:25 PM
#3
oops x) i didn't i actually thought that the bitcoin-conf is created automatically by bitcoin core.
the bitcoin-conf should be placed in which folder please?

thank you!
Did you create the bitcoin.conf file?

Hello!

i'am currently using regtest but the following command: bitcoin-cli -regtest setgenerate true 101
doesn't work and i keep getting the error: /usr/local/lib/node_modules/bitcoin-cli/index.js:27
    throw new Error('Coudn\'t found bitcoin.conf file, use --rpcuser=USER and --rpcpassword=PASS');
    ^

Error: Coudn't found bitcoin.conf file, use --rpcuser=USER and --rpcpassword=PASS
    at Object. (/usr/local/lib/node_modules/bitcoin-cli/index.js:27:11)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object. (/usr/local/lib/node_modules/bitcoin-cli/bin/bitcoin-cli:5:1)
    at Module._compile (module.js:571:32)

could anyone help me ? thank you Cheesy
legendary
Activity: 4228
Merit: 1313
January 04, 2017, 06:56:10 AM
#2
Did you create the bitcoin.conf file?

Hello!

i'am currently using regtest but the following command: bitcoin-cli -regtest setgenerate true 101
doesn't work and i keep getting the error: /usr/local/lib/node_modules/bitcoin-cli/index.js:27
    throw new Error('Coudn\'t found bitcoin.conf file, use --rpcuser=USER and --rpcpassword=PASS');
    ^

Error: Coudn't found bitcoin.conf file, use --rpcuser=USER and --rpcpassword=PASS
    at Object. (/usr/local/lib/node_modules/bitcoin-cli/index.js:27:11)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object. (/usr/local/lib/node_modules/bitcoin-cli/bin/bitcoin-cli:5:1)
    at Module._compile (module.js:571:32)

could anyone help me ? thank you Cheesy
newbie
Activity: 9
Merit: 0
January 04, 2017, 06:44:57 AM
#1
Hello!

i'am currently using regtest but the following command: bitcoin-cli -regtest setgenerate true 101
doesn't work and i keep getting the error: /usr/local/lib/node_modules/bitcoin-cli/index.js:27
    throw new Error('Coudn\'t found bitcoin.conf file, use --rpcuser=USER and --rpcpassword=PASS');
    ^

Error: Coudn't found bitcoin.conf file, use --rpcuser=USER and --rpcpassword=PASS
    at Object. (/usr/local/lib/node_modules/bitcoin-cli/index.js:27:11)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object. (/usr/local/lib/node_modules/bitcoin-cli/bin/bitcoin-cli:5:1)
    at Module._compile (module.js:571:32)

could anyone help me ? thank you Cheesy
Jump to: