bitcoind service (systemd) not starting SOLVED

4 replies 280 views
stack_2019Full Member
Posts: 107 · Reputation: 674
#1Jul 19, 2020, 09:54 AM
So I've got an opensuse leap 15.5 setup with KDE and bitcoin core 26.0 installed at /usr/local/bin/bitcoind (permissions are -rwxr-xr-x owned by root). My bitcoin data directory is /home/bitcoin/.bitcoin which is a symlink pointing to an external drive at /run/media/ibm/BB/BTCbc/ (permissions are drwxrwx owned by bitcoin). I log in as user ibm, who is in the bitcoin group, and I can run bitcoind and bitcoin-qt without any issues. Now, I'm trying to get this node to run as a service at boot. Here’s what my service unit file looks like at /etc/systemd/system/bitcoind.service (permissions are -rwxr r owned by root): [Unit] Description=Bitcoin daemon Documentation=https://github.com/bitcoin/bitcoin/blob/master/doc/init.md ExecStart=/usr/local/bin/bitcoind -daemon \ -pid=/home/bitcoin/.bitcoin/bitcoind.pid \ -conf=/home/bitcoin/.bitcoin/bitcoin.conf \ -datadir=/home/bitcoin/.bitcoin \ -startupnotify='systemd-notify ready' \ -shutdownnotify='systemd-notify stopping' ExecStop=/usr/local/bin/bitcoin-cli -datadir=/home/bitcoin/.bitcoin stop PermissionsStartOnly=true ExecStartPre=/bin/chgrp bitcoin /home/bitcoin/.bitcoin Type=notify NotifyAccess=all PIDFile=/home/bitcoin/.bitcoin/bitcoind.pid Restart=on-failure TimeoutStartSec=infinity TimeoutStopSec=600 User=
4 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#2Jul 20, 2020, 03:22 AM
Is the external disk mounted yet at this point?
1 Reply Quote Share
coin_sigmaLegendary
Posts: 1275 · Reputation: 5553
#3Jul 20, 2020, 07:46 AM
I found a similar issue on Google and it seems that you need to edit the bitcoind.service because it is configured as user: bitcoin and group: bitcoin by default you need to replace it with root if you were currently running it on root user. And also I'm pointing out this setting below and you set it to true which is why the error denied access popup while currently running it on the root user change it to false and try to run it again. "# Deny access to /home, /root and /run/user ProtectHome=true" Here's the source below that I found and hope you can get some idea how to set up bitcoind.service properly. - https://bitcoin.stackexchange.com/questions/118725/bitcoind-service-cant-start-on-mounted-drive
2 Reply Quote Share
hash_bossLegendary
Posts: 1166 · Reputation: 5261
#4Jul 20, 2020, 10:01 AM
Have you checked whether your external disk always mounted on exactly same path? If that external disk always mounted when you turn on your PC, consider editing fstab file to make sure your external disk always mounted on same path.
2 Reply Quote Share
stack_2019Full Member
Posts: 107 · Reputation: 674
#5Jul 20, 2020, 03:31 PM
Thank you BitMaxz, the problem was the line ProtectHome=true
2 Reply Quote Share

Related topics