Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: lettergram on February 12, 2011, 07:14:47 AM



Title: Cannot seem to toggle bit coins server switch. Help!
Post by: lettergram on February 12, 2011, 07:14:47 AM
I am running the current version of bitboin (bitcoin-0.3.19) on windows 7 and am attempting to make it run in server mode using the command 'bitcoin.exe -server' on the windows command line. I have everything set up properly using this guide

http://www.newslobster.com/random/how-to-get-started-using-your-gpu-to-mine-for-bitcoins-on-windows (http://www.newslobster.com/random/how-to-get-started-using-your-gpu-to-mine-for-bitcoins-on-windows)

The error I keep receiving is:

"Warning: to use the '-server' option, you must set rpcpassword = <password> in the configuration file 'C:/Users/[Username]/AppData/Roaming/Bitcoin/bitcoin.conf. If the file does not exist, create it with owner-readable-only file permissions"

I have tried everything from reinstalling to making all the files visible. I have spent at least a couple of hours on this, any suggestions or solutions?


Title: Re: Cannot seem to toggle bit coins server switch. Help!
Post by: mail2345 on February 12, 2011, 07:32:33 AM
Have you tried starting the command prompt as administrator?
I think Win7's UAC does some weird stuff with file paths.


Title: Re: Cannot seem to toggle bit coins server switch. Help!
Post by: lettergram on February 12, 2011, 09:18:41 AM
Yeah I did try that (just retried it to make sure). Still come up with the same warning and then my bitcoin closes.


Title: Re: Cannot seem to toggle bit coins server switch. Help!
Post by: Hal on February 12, 2011, 09:21:22 PM
Did you create the bitcoin.conf file? Should be in the same directory as wallet.dat. Also make sure you spell rpcpassword correctly.


Title: Re: Cannot seem to toggle bit coins server switch. Help!
Post by: BitLex on February 12, 2011, 09:58:29 PM
Quote
...'C:/Users/[Username]/AppData/Roaming/Bitcoin/bitcoin.conf. If the file does not exist, create it with owner-readable-only file permissions..

create that file, open it with notepad (or any other txt-editor) and put these 3 lines in:
Code:
# JSON-RPC 
server=1
rpcuser=sillyname
rpcpassword=sillypass

then just start bitcoin.exe (without -server, it's no longer needed if you put server=1 in the bitcoin.conf).


here's a bitcoin.conf sample (http://www.bitcoin.org/wiki/doku.php?id=running_bitcoin#sample_bitcoinconf) with all (or most) possible options.