BitShares Forum

Main => Technical Support => Topic started by: tmbp on September 25, 2014, 05:24:56 pm

Title: Setting up a node
Post by: tmbp on September 25, 2014, 05:24:56 pm
Hello there!

I have compiled and setup a node to behave like a daemon on my remote server, I have compiled bitshares-ptsd and used the following configs:

Code: [Select]
server=1
rpcuser=user1
rpcpassword=pass4
rpcport=6003
port=5003
rpcssl=0

When I issue a simple command I get an error:

Code: [Select]
./bitshares-ptsd getblockcount
error: incorrect rpcuser or rpcpassword (authorization failed)
Title: Re: Setting up a node
Post by: testz on September 25, 2014, 05:32:06 pm

Try:
Code: [Select]
./bitshares-ptsd -rpcuser=user1 -rpcpassword=pass4 -rpcport=6003 getblockcount
Title: Re: Setting up a node
Post by: xeroc on September 25, 2014, 05:33:56 pm
you need to kill and restart the pts daemon if you changed the config file AFTER executing the deamon!
Title: Re: Setting up a node
Post by: tmbp on September 25, 2014, 05:36:28 pm

Try:
Code: [Select]
./bitshares-ptsd -rpcuser=user1 -rpcpassword=pass4 -rpcport=6003 getblockcount

Nope, still the same

you need to kill and restart the pts daemon if you changed the config file AFTER executing the deamon!

Already tried restarting multiple times
Title: Re: Setting up a node
Post by: xeroc on September 25, 2014, 05:45:26 pm
you are surely using the right config file? please check if there is another one? .. strange though
Title: Re: Setting up a node
Post by: tmbp on September 25, 2014, 06:46:47 pm
you are surely using the right config file? please check if there is another one? .. strange though

Code: [Select]
nano ~/.bitshares-pts/bitshares-pts.conf

server=1
rpcuser=user1
rpcpassword=pass4
rpcport=6003
port=5003
rpcssl=0

What am I missing?
Title: Re: Setting up a node
Post by: testz on September 25, 2014, 07:06:39 pm
you are surely using the right config file? please check if there is another one? .. strange though

Code: [Select]
nano ~/.bitshares-pts/bitshares-pts.conf

server=1
rpcuser=user1
rpcpassword=pass4
rpcport=6003
port=5003
rpcssl=0

What am I missing?

Try to add in conf file:
Code: [Select]
rpcallowip=127.0.0.1
Title: Re: Setting up a node
Post by: xeroc on September 25, 2014, 07:23:31 pm
you are surely using the right config file? please check if there is another one? .. strange though

Code: [Select]
nano ~/.bitshares-pts/bitshares-pts.conf

server=1
rpcuser=user1
rpcpassword=pass4
rpcport=6003
port=5003
rpcssl=0

What am I missing?

looks about right .. could you try with only these three lines:

Code: [Select]
server=1
rpcuser=user1
rpcpassword=pass4
Title: Re: Setting up a node
Post by: tmbp on September 25, 2014, 07:46:01 pm
It seems that I had another daemon listening on the same port despite having specified a different port and rpcport in the file for that daemon.

tl:dr I goofed up
Title: Re: Setting up a node
Post by: xeroc on September 25, 2014, 08:15:05 pm
tl:dr I goofed up
I know what you mean .. happens to me all the time .. as long as it does burn money its worth learning from the errors :)