openoms / joininbox

A terminal based graphical menu for JoinMarket
MIT License
154 stars 21 forks source link

Systemd error: Current command vanished from the unit file, execution of the command list won't be resumed. #5

Closed openoms closed 4 years ago

openoms commented 4 years ago

Systemd fails with:

systemd[1]: yg-privacyenhanced.service: Current command vanished from the unit file, execution of the command list won't be resumed.

when running YG on: Odroid HC1 with Armbian, kernel: 5.4.28-odroidxu4 RPi4 4GB Linux raspberrypi 4.19.118-v7l+ On both nodes: the wallet is specified in joinmarket.cfg and multiwallet is on in bitcoin.conf Bitcoin Core: v0.20.0

RPi4 4GB Linux raspberrypi 4.19.118-v7l+ -> downgraded to Bitcoin Core v0.19.1 - to no effect

Odroid HC1 with Armbian, kernel: 5.4.28-odroidxu4 - deleted wallet value in joinmarket.cfg - testing

No other python process running with pgrep python.

Status

$ sudo systemctl status yg-privacyenhanced.service 
● yg-privacyenhanced.service - yg-privacyenhanced
   Loaded: loaded (/etc/systemd/system/yg-privacyenhanced.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2020-06-17 21:40:59 BST; 11min ago
 Main PID: 11294 (sh)
    Tasks: 4 (limit: 4455)
   Memory: 30.8M
   CGroup: /system.slice/yg-privacyenhanced.service
           ├─11294 /bin/sh -c . /home/joinmarket/joinmarket-clientserver/jmvenv/bin/activate && cat /home/joinmarket/.pw |  python yg-privacyenhanced.py /home/joinmarket/.joinmarket/wallets/jm1.jmdat --wallet-pa
           └─11298 python yg-privacyenhanced.py /home/joinmarket/.joinmarket/wallets/jm1.jmdat --wallet-password-stdin

Systemd setting:

$ cat /etc/systemd/system/yg-privacyenhanced.service

[Unit]
Description=yg-privacyenhanced

[Service]
WorkingDirectory=/home/joinmarket/joinmarket-clientserver/scripts/
ExecStart=/bin/sh -c '. /home/joinmarket/joinmarket-clientserver/jmvenv/bin/activate && cat /home/joinmarket/.pw |  python yg-privacyenhanced.py /home/joinmarket/.joinmarket/wallets/jm1.jmdat --wallet-password-stdin'
User=joinmarket
Group=joinmarket
Type=simple
KillMode=process
TimeoutSec=infinity
Restart=no

[Install]
WantedBy=multi-user.target
openoms commented 4 years ago

This error showing in the journalctl does not seem to affect the running of the background process.

Added more monitoring options to the YG menu.