I’m obtaining the following error when initializing bitcoind service:
0× bitcoind.service - Bitcoin daemon
1 Loaded: loaded (/etc/systemd/system/bitcoind.service; enabled; vendor preset: enabled)
2 Active: failed (Result: exit-code) since Sat 2022-12-17 17:48:09 -03; 5min ago
3 Process: 1141 ExecStart=/home/satoshi/snap/bitcoin-core/126/bin/bitcoind -daemon -pid=/run/bitcoind/bitcoind.pid -conf=/home/satoshi/sna>
4 CPU: 24ms
5
6dez 17 17:48:09 nakamoto systemd[1]: bitcoind.service: Scheduled restart job, restart counter is at 5.
7dez 17 17:48:09 nakamoto systemd[1]: Stopped Bitcoin daemon.
8dez 17 17:48:09 nakamoto systemd[1]: bitcoind.service: Start request repeated too quickly.
9dez 17 17:48:09 nakamoto systemd[1]: bitcoind.service: Failed with result 'exit-code'.
10dez 17 17:48:09 nakamoto systemd[1]: Failed to start Bitcoin daemon.
bitcoind.service file:
0# It is not recommended to modify this file in-place, because it will
1# be overwritten during package upgrades. If you want to add further
2# options or overwrite existing ones then use
3# $ systemctl edit bitcoind.service
4# See "man systemd.service" for details.
5
6# Note that almost all daemon options could be specified in
7# /etc/bitcoin/bitcoin.conf, but keep in mind those explicitly
8# specified as arguments in ExecStart= will override those in the
9# config file.
10
11[Unit]
12Description=Bitcoin daemon
13After=network.target
14
15[Service]
16ExecStart=/home/satoshi/snap/bitcoin-core/126/bin/bitcoind -daemon \
17 -pid=/run/bitcoind/bitcoind.pid \
18 -conf=/home/satoshi/snap/bitcoin-core/common/.bitcoin/bitcoin.conf \
19 -datadir=/home/satoshi/snap/bitcoin-core/common/.bitcoin
20
21# Make sure the config directory is readable by the service user
22PermissionsStartOnly=true
23#ExecStartPre=/bin/chgrp bitcoin /etc/bitcoin
24
25# Process management
26####################
27
28Type=forking
29PIDFile=/run/bitcoind/bitcoind.pid
30Restart=on-failure
31TimeoutStopSec=600
32
33# Directory creation and permissions
34####################################
35
36# Run as bitcoin:bitcoin
37User=satoshi
38Group=satoshi
39
40# /run/bitcoind
41RuntimeDirectory=bitcoind
42RuntimeDirectoryMode=0710
43
44# /etc/bitcoin
45ConfigurationDirectory=bitcoin
46ConfigurationDirectoryMode=0710
47
48# /var/lib/bitcoind
49StateDirectory=bitcoind
50StateDirectoryMode=0710
51
52# Hardening measures
53####################
54
55# Provide a private /tmp and /var/tmp.
56PrivateTmp=true
57
58# Mount /usr, /boot/ and /etc read-only for the process.
59ProtectSystem=full
60
61# Deny access to /home, /root and /run/user
62#ProtectHome=true
63
64# Disallow the process and all of its children to gain
65# new privileges through execve().
66NoNewPrivileges=true
67
68# Use a new /dev namespace only populated with API pseudo devices
69# such as /dev/null, /dev/zero and /dev/random.
70PrivateDevices=true
71
72# Deny the creation of writable and executable memory mappings.
73MemoryDenyWriteExecute=true
74
75[Install]
76WantedBy=multi-user.target
I’ve installed bitcoin-core via snap.
Bitcoin Core RPC client version v24.0.1 OS: Ubuntu 22.04.1 LTS x86_64