Title: bitcoin-cli not working Post by: chu_11 on January 04, 2017, 11:44:57 AM 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.<anonymous> (/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.<anonymous> (/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 :D Title: Re: bitcoin-cli not working Post by: cr1776 on January 04, 2017, 11:56:10 AM 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.<anonymous> (/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.<anonymous> (/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 :D Title: Re: bitcoin-cli not working Post by: chu_11 on January 04, 2017, 05:23:25 PM 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.<anonymous> (/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.<anonymous> (/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 :D Title: Re: bitcoin-cli not working Post by: shorena on January 04, 2017, 07:06:57 PM 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 Title: Re: bitcoin-cli not working Post by: chu_11 on January 05, 2017, 07:32:41 PM 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 Title: Re: bitcoin-cli not working Post by: achow101 on January 05, 2017, 08:35:39 PM but i can't find the .bitcoin folder i only have bitcoind document. 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.sorry i'am a true begginer --' Title: Re: bitcoin-cli not working Post by: chu_11 on January 06, 2017, 12:54:34 PM when running bitcoin.qt i get an error window "Invalid amount for -paytxfee=<amount>: '0.00' (must be at least 0.00001000 BTC/kB)" and the welcome sceen of bitcoin disapears :(
why did i get this window? can you help please? but i can't find the .bitcoin folder i only have bitcoind document. 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.sorry i'am a true begginer --' Title: Re: bitcoin-cli not working Post by: achow101 on January 06, 2017, 03:26:26 PM when running bitcoin.qt i get an error window "Invalid amount for -paytxfee=<amount>: '0.00' (must be at least 0.00001000 BTC/kB)" and the welcome sceen of bitcoin disapears :( 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.why did i get this window? can you help please? Title: Re: bitcoin-cli not working Post by: shorena on January 06, 2017, 03:34:21 PM -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: ... @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:
Title: Re: bitcoin-cli not working Post by: chu_11 on January 06, 2017, 05:38:32 PM 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: ... @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:
Title: Re: bitcoin-cli not working Post by: shorena on January 06, 2017, 07:53:57 PM 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? Title: Re: bitcoin-cli not working Post by: chu_11 on January 08, 2017, 08:53:28 AM 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 :D 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? |