Author Topic: Setting up a node  (Read 3768 times)

0 Members and 1 Guest are viewing this topic.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
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 :)

Offline tmbp

  • Newbie
  • *
  • Posts: 4
    • View Profile
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

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
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

Offline testz

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

Offline tmbp

  • Newbie
  • *
  • Posts: 4
    • View Profile
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?

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
you are surely using the right config file? please check if there is another one? .. strange though

Offline tmbp

  • Newbie
  • *
  • Posts: 4
    • View Profile

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

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
you need to kill and restart the pts daemon if you changed the config file AFTER executing the deamon!

Offline testz


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

Offline tmbp

  • Newbie
  • *
  • Posts: 4
    • View Profile
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)
« Last Edit: September 25, 2014, 05:29:19 pm by tmbp »