Title: Help with testnet node Post by: DireWolfM14 on December 12, 2021, 07:19:21 PM I'm trying to set up a test-net node that closely resembles my main-net node, but I'm having trouble getting it started with systemctl. I assume my configuration files are the root cause. Journalctl isn't giving me much information: bitcoind.service: Failed with result 'exit-code'. The service is supposed to be run by service user "bitcoin," and I made sure the configuration and data directoreis, and the files within are owned by that user.
My bitcoind.service file: Code: [Unit] My bitcoin.config file: Code: coin=testnet EDIT: I figured it out by trying to run bitcoind from the command line using the same settings as systemctl's bitcoind.service file: Code: sudo -H -u bitcoin bash -c 'bitcoind -testnet -pid=/run/bitcoind/bitcoind.pid -conf=/etc/bitcoin/bitcoin.conf -datadir=/var/lib/bitcoind' And that resulted in this error: Error: Config setting for -rpcbind only applied on test network when in [test] section. I fixed it by adding rpcbind=127.0.0.1 to the [test] section. Title: Re: Help with testnet node Post by: OddyseyGames on December 12, 2021, 11:10:51 PM Quote And that resulted in this error: Error: Config setting for -rpcbind only applied on test network when in [test] section. I fixed it by adding rpcbind=127.0.0.1 to the [test] section. Try with this config. I just moved the RPC parameters to the test section. Code: coin=testnet Title: Re: Help with testnet node Post by: NotATether on December 15, 2021, 10:47:44 AM Quote Code: # Make sure the config directory is readable by the service user I think this is what's causing the problem assuming that information about bitcoind's abrupt exit is not inside the debug.log file in /var/lib/bitcoin. You are most likely starting the service under a root shell, but maybe systems is dropping privileges first and then trying to run the chgrp command, which fails due to a permissions error. Why don't you change the group name of the folder manually? |