trusted-point / Node-manuals

90 stars 58 forks source link

Have issue with start aleo-node.service #8

Open myralitv opened 8 months ago

myralitv commented 8 months ago

Hi team! Can you explain me what I do wrong, please?

systemctl status aleo-node.service


● aleo-node.service - Archway Node
     Loaded: bad-setting (Reason: Unit aleo-node.service has a bad unit file setting.)
     Active: inactive (dead)

Feb 04 23:32:31 vmi1637872.contaboserver.net systemd[1]: /etc/systemd/system/aleo-node.service:11: Executable "start" not found in path "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Feb 04 23:32:31 vmi1637872.contaboserver.net systemd[1]: aleo-node.service: Unit configuration has fatal error, unit will not be started.
Feb 04 23:32:52 vmi1637872.contaboserver.net systemd[1]: /etc/systemd/system/aleo-node.service:11: Executable "start" not found in path "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Feb 04 23:32:52 vmi1637872.contaboserver.net systemd[1]: aleo-node.service: Unit configuration has fatal error, unit will not be started.
Feb 05 00:12:08 vmi1637872.contaboserver.net systemd[1]: /etc/systemd/system/aleo-node.service:11: Executable "start" not found in path "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Feb 05 00:12:08 vmi1637872.contaboserver.net systemd[1]: aleo-node.service: Unit configuration has fatal error, unit will not be started.
Feb 05 00:18:11 vmi1637872.contaboserver.net systemd[1]: /etc/systemd/system/aleo-node.service:11: Executable "start" not found in path "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Feb 05 00:18:11 vmi1637872.contaboserver.net systemd[1]: aleo-node.service: Unit configuration has fatal error, unit will not be started.
Feb 05 00:18:25 vmi1637872.contaboserver.net systemd[1]: /etc/systemd/system/aleo-node.service:11: Executable "start" not found in path "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Feb 05 00:18:25 vmi1637872.contaboserver.net systemd[1]: aleo-node.service: Unit configuration has fatal error, unit will not be started.
root@vmi1637872:/usr/local/sbin# 
myralitv commented 8 months ago

/etc/systemd/system/aleo-node.service file


Description=Archway Node
After=network.target
Wants=network-online.target
StartLimitIntervalSec=500
StartLimitBurst=5

[Service]
User=snarkosadm
Type=simple
ExecStart=start --nodisplay --logfile /dev/null --verbosity 4 --client
Restart=on-failure
LimitNOFILE=65535
WorkingDirectory=/home/snarkosadm
ExecStop=/bin/kill -s INT
RestartSec=5s
Restart=always

[Install]
WantedBy=multi-user.target
Hacker-web-Vi commented 7 months ago

/etc/systemd/system/aleo-node.service file

Description=Archway Node
After=network.target
Wants=network-online.target
StartLimitIntervalSec=500
StartLimitBurst=5

[Service]
User=snarkosadm
Type=simple
ExecStart=start --nodisplay --logfile /dev/null --verbosity 4 --client
Restart=on-failure
LimitNOFILE=65535
WorkingDirectory=/home/snarkosadm
ExecStop=/bin/kill -s INT
RestartSec=5s
Restart=always

[Install]
WantedBy=multi-user.target
sudo tee /etc/systemd/system/aleo-node.service > /dev/null <<EOF
[Unit]
Description=Archway Node
After=network.target
Wants=network-online.target
StartLimitIntervalSec=500
StartLimitBurst=5

[Service]
User=$USER
Type=simple
ExecStart=/usr/local/bin/snarkos start --nodisplay --logfile /dev/null --verbosity 4 --client
Restart=on-failure
LimitNOFILE=65535
WorkingDirectory=/home/snarkosadm
ExecStop=/bin/kill -s INT ${MAINPID}
RestartSec=5s
Restart=always

[Install]
WantedBy=multi-user.target
EOF
sudo systemctl restart aleo-node
sudo journalctl -feu aleo-node -o cat
Hacker-web-Vi commented 7 months ago

/etc/systemd/system/aleo-node.service file

Description=Archway Node
After=network.target
Wants=network-online.target
StartLimitIntervalSec=500
StartLimitBurst=5

[Service]
User=snarkosadm
Type=simple
ExecStart=start --nodisplay --logfile /dev/null --verbosity 4 --client
Restart=on-failure
LimitNOFILE=65535
WorkingDirectory=/home/snarkosadm
ExecStop=/bin/kill -s INT
RestartSec=5s
Restart=always

[Install]
WantedBy=multi-user.target
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile

The problem was here. Updated the guide. Thank you !