ElementsProject / lightning

Core Lightning — Lightning Network implementation focusing on spec compliance and performance
Other
2.85k stars 901 forks source link

My lightningd cannot run as systemd service #6863

Closed Impa10r closed 11 months ago

Impa10r commented 11 months ago

Issue and Steps to Reproduce

Ubuntu 22, testnet

My lightningd runs fine from the command line, but fails to start as a systemd service. It has something to do with not finding this module when run headless:

plugin-clnrest.py: Killing plugin: disabled itself: No module named 'gunicorn'

vlad@vlad-VirtualBox:~$ sudo service lightningd start
vlad@vlad-VirtualBox:~$ sudo service lightningd status
● lightningd.service - c-lightning Daemon
     Loaded: loaded (/etc/systemd/system/lightningd.service; disabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Mon 2023-11-13 20:29:45 CET; 42s ago
    Process: 4722 ExecStart=/usr/local/bin/lightningd (code=exited, status=1/FAILURE)
   Main PID: 4722 (code=exited, status=1/FAILURE)
      Tasks: 0 (limit: 9429)
     Memory: 20.0K
        CPU: 339ms
     CGroup: /system.slice/lightningd.service

vlad@vlad-VirtualBox:~$ which lightningd
/usr/local/bin/lightningd

vlad@vlad-VirtualBox:~$ journalctl -u lightningd
nov 07 00:44:00 vlad-VirtualBox systemd[1]: Started CLN Lightning Daemon.
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.146Z DEBUG   plugin-manager: started(20185) /usr/local/libexec/c-lightning/plugins/autoclean
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.147Z DEBUG   plugin-manager: started(20186) /usr/local/libexec/c-lightning/plugins/chanbackup
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.149Z DEBUG   plugin-manager: started(20187) /usr/local/libexec/c-lightning/plugins/bcli
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.150Z DEBUG   plugin-manager: started(20188) /usr/local/libexec/c-lightning/plugins/commando
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.152Z DEBUG   plugin-manager: started(20189) /usr/local/libexec/c-lightning/plugins/fetchinvoice
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.154Z DEBUG   plugin-manager: started(20190) /usr/local/libexec/c-lightning/plugins/funder
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.155Z DEBUG   plugin-manager: started(20191) /usr/local/libexec/c-lightning/plugins/topology
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.157Z DEBUG   plugin-manager: started(20192) /usr/local/libexec/c-lightning/plugins/keysend
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.158Z DEBUG   plugin-manager: started(20193) /usr/local/libexec/c-lightning/plugins/offers
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.160Z DEBUG   plugin-manager: started(20194) /usr/local/libexec/c-lightning/plugins/pay
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.162Z DEBUG   plugin-manager: started(20195) /usr/local/libexec/c-lightning/plugins/txprepare
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.163Z DEBUG   plugin-manager: started(20196) /usr/local/libexec/c-lightning/plugins/cln-renepay
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.165Z DEBUG   plugin-manager: started(20197) /usr/local/libexec/c-lightning/plugins/spenderp
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.166Z DEBUG   plugin-manager: started(20198) /usr/local/libexec/c-lightning/plugins/sql
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.168Z DEBUG   plugin-manager: started(20199) /usr/local/libexec/c-lightning/plugins/cln-grpc
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.169Z DEBUG   plugin-manager: started(20200) /usr/local/libexec/c-lightning/plugins/bookkeeper
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.171Z DEBUG   plugin-manager: started(20202) /usr/local/libexec/c-lightning/plugins/clnrest/clnrest.py
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.185Z INFO    plugin-clnrest.py: Killing plugin: disabled itself: No module named 'gunicorn'
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.185Z DEBUG   lightningd: io_break: check_plugins_manifests
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.185Z DEBUG   lightningd: io_loop_with_timers: plugins_init
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.188Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_channeld
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.189Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_closingd
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.191Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_connectd
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.192Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_gossipd
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.194Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_hsmd
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.196Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_onchaind
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.197Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_openingd
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.198Z DEBUG   hsmd: pid 20210, msgfd 47
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.200Z DEBUG   hsmd: capability +WIRE_HSMD_CHECK_PUBKEY
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.200Z DEBUG   hsmd: capability +WIRE_HSMD_SIGN_ANY_DELAYED_PAYMENT_TO_US
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.200Z DEBUG   hsmd: capability +WIRE_HSMD_SIGN_ANCHORSPEND
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.200Z DEBUG   hsmd: capability +WIRE_HSMD_SIGN_HTLC_TX_MINGLE
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.200Z DEBUG   hsmd: capability +WIRE_HSMD_SIGN_SPLICE_TX
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.208Z DEBUG   connectd: pid 20211, msgfd 51
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.208Z DEBUG   hsmd: Client: Received message 27 from client
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.208Z DEBUG   hsmd: Client: Received message 27 from client
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.208Z DEBUG   hsmd: new_client: 0
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.191Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_connectd
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.192Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_gossipd
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.194Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_hsmd
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.196Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_onchaind
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.197Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_openingd
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.198Z DEBUG   hsmd: pid 20210, msgfd 47
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.200Z DEBUG   hsmd: capability +WIRE_HSMD_CHECK_PUBKEY
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.200Z DEBUG   hsmd: capability +WIRE_HSMD_SIGN_ANY_DELAYED_PAYMENT_TO_US
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.200Z DEBUG   hsmd: capability +WIRE_HSMD_SIGN_ANCHORSPEND
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.200Z DEBUG   hsmd: capability +WIRE_HSMD_SIGN_HTLC_TX_MINGLE
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.200Z DEBUG   hsmd: capability +WIRE_HSMD_SIGN_SPLICE_TX
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.208Z DEBUG   connectd: pid 20211, msgfd 51
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.208Z DEBUG   hsmd: Client: Received message 27 from client
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.208Z DEBUG   hsmd: Client: Received message 27 from client
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.208Z DEBUG   hsmd: new_client: 0
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.215Z DEBUG   connectd: Created listener on [::]:19735
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.215Z DEBUG   connectd: Failed to connect 10 socket: Network is unreachable
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.215Z DEBUG   connectd: Created listener on 0.0.0.0:19735
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.215Z DEBUG   connectd: REPLY WIRE_CONNECTD_INIT_REPLY with 0 fds
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.215Z DEBUG   lightningd: io_break: connect_init_done
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.215Z DEBUG   lightningd: io_loop: connectd_init
nov 07 00:44:00 vlad-VirtualBox lightningd[20187]: bitcoin-cli exec failed: Bad file descriptor
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.218Z **BROKEN** plugin-bcli: bitcoin-cli exec failed: Bad file descriptor
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: 2023-11-06T23:44:00.218Z INFO    plugin-bcli: Killing plugin: exited before we sent init
nov 07 00:44:00 vlad-VirtualBox lightningd[20184]: The Bitcoin backend died.
nov 07 00:44:00 vlad-VirtualBox systemd[1]: lightningd.service: Main process exited, code=exited, status=1/FAILURE
nov 07 00:44:00 vlad-VirtualBox systemd[1]: lightningd.service: Failed with result 'exit-code'.
nov 07 00:44:00 vlad-VirtualBox systemd[1]: lightningd.service: Unit process 20199 (cln-grpc) remains running after unit stopped.
nov 07 00:45:00 vlad-VirtualBox systemd[1]: lightningd.service: Scheduled restart job, restart counter is at 1.
nov 07 00:45:00 vlad-VirtualBox systemd[1]: Stopped CLN Lightning Daemon.

Attempted solution:

vlad@vlad-VirtualBox:~$ pip install gunicorn
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: gunicorn in /usr/lib/python3/dist-packages (20.1.0)

Work around:

vlad@vlad-VirtualBox:~$ lightningd
2023-11-13T19:51:23.676Z DEBUG   plugin-manager: started(5987) /usr/local/libexec/c-lightning/plugins/autoclean
2023-11-13T19:51:23.677Z DEBUG   plugin-manager: started(5988) /usr/local/libexec/c-lightning/plugins/chanbackup
2023-11-13T19:51:23.678Z DEBUG   plugin-manager: started(5989) /usr/local/libexec/c-lightning/plugins/bcli
2023-11-13T19:51:23.680Z DEBUG   plugin-manager: started(5990) /usr/local/libexec/c-lightning/plugins/commando
2023-11-13T19:51:23.681Z DEBUG   plugin-manager: started(5991) /usr/local/libexec/c-lightning/plugins/fetchinvoice
2023-11-13T19:51:23.682Z DEBUG   plugin-manager: started(5992) /usr/local/libexec/c-lightning/plugins/funder
2023-11-13T19:51:23.684Z DEBUG   plugin-manager: started(5993) /usr/local/libexec/c-lightning/plugins/topology
2023-11-13T19:51:23.686Z DEBUG   plugin-manager: started(5994) /usr/local/libexec/c-lightning/plugins/keysend
2023-11-13T19:51:23.688Z DEBUG   plugin-manager: started(5995) /usr/local/libexec/c-lightning/plugins/offers
2023-11-13T19:51:23.690Z DEBUG   plugin-manager: started(5996) /usr/local/libexec/c-lightning/plugins/pay
2023-11-13T19:51:23.692Z DEBUG   plugin-manager: started(5997) /usr/local/libexec/c-lightning/plugins/txprepare
2023-11-13T19:51:23.693Z DEBUG   plugin-manager: started(5998) /usr/local/libexec/c-lightning/plugins/cln-renepay
2023-11-13T19:51:23.695Z DEBUG   plugin-manager: started(5999) /usr/local/libexec/c-lightning/plugins/spenderp
2023-11-13T19:51:23.696Z DEBUG   plugin-manager: started(6000) /usr/local/libexec/c-lightning/plugins/sql
2023-11-13T19:51:23.697Z DEBUG   plugin-manager: started(6001) /usr/local/libexec/c-lightning/plugins/cln-grpc
2023-11-13T19:51:23.698Z DEBUG   plugin-manager: started(6002) /usr/local/libexec/c-lightning/plugins/bookkeeper
2023-11-13T19:51:23.700Z DEBUG   plugin-manager: started(6004) /usr/local/libexec/c-lightning/plugins/clnrest/clnrest.py
2023-11-13T19:51:23.907Z DEBUG   lightningd: io_break: check_plugins_manifests
2023-11-13T19:51:23.907Z DEBUG   lightningd: io_loop_with_timers: plugins_init
2023-11-13T19:51:23.908Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_channeld
2023-11-13T19:51:23.909Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_closingd
2023-11-13T19:51:23.911Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_connectd
2023-11-13T19:51:23.912Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_gossipd
2023-11-13T19:51:23.913Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_hsmd
2023-11-13T19:51:23.916Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_onchaind
2023-11-13T19:51:23.917Z DEBUG   lightningd: testing /usr/local/libexec/c-lightning/lightning_openingd
2023-11-13T19:51:23.919Z DEBUG   hsmd: pid 6012, msgfd 49
2023-11-13T19:51:23.920Z DEBUG   hsmd: capability +WIRE_HSMD_CHECK_PUBKEY
2023-11-13T19:51:23.920Z DEBUG   hsmd: capability +WIRE_HSMD_SIGN_ANY_DELAYED_PAYMENT_TO_US
2023-11-13T19:51:23.920Z DEBUG   hsmd: capability +WIRE_HSMD_SIGN_ANCHORSPEND
2023-11-13T19:51:23.920Z DEBUG   hsmd: capability +WIRE_HSMD_SIGN_HTLC_TX_MINGLE
2023-11-13T19:51:23.920Z DEBUG   hsmd: capability +WIRE_HSMD_SIGN_SPLICE_TX
2023-11-13T19:51:23.936Z DEBUG   connectd: pid 6013, msgfd 53
2023-11-13T19:51:23.936Z DEBUG   hsmd: Client: Received message 27 from client
2023-11-13T19:51:23.936Z DEBUG   hsmd: Client: Received message 27 from client
2023-11-13T19:51:23.936Z DEBUG   hsmd: new_client: 0
2023-11-13T19:51:24.168Z DEBUG   connectd: Proxy address: 127.0.0.1:9050
2023-11-13T19:51:24.168Z DEBUG   connectd: Created listener on 127.0.0.1:9735
2023-11-13T19:51:24.168Z INFO    connectd: New autotor service onion address: "g7nleyautx3osgatiwvhknek252xzhsnvd2pdbl6u2oqmw3syhoubxid.onion:9735" bound from extern port:19735
2023-11-13T19:51:24.168Z DEBUG   connectd: REPLY WIRE_CONNECTD_INIT_REPLY with 0 fds
2023-11-13T19:51:24.168Z DEBUG   lightningd: io_break: connect_init_done
2023-11-13T19:51:24.168Z DEBUG   lightningd: io_loop: connectd_init
2023-11-13T19:51:24.180Z DEBUG   lightningd: io_break: plugin_config_cb
2023-11-13T19:51:24.180Z DEBUG   lightningd: io_loop_with_timers: config_plugin
2023-11-13T19:51:24.180Z DEBUG   lightningd: All Bitcoin plugin commands registered
2023-11-13T19:51:24.199Z DEBUG   lightningd: Adding block 2538130: 000000000000001b244678c7aa33951a85f021d6cabd9a9f4cf23f0d44fcf0ac
2023-11-13T19:51:24.199Z DEBUG   lightningd: io_break: maybe_completed_init
2023-11-13T19:51:24.202Z DEBUG   lightningd: io_loop_with_timers: setup_topology
2023-11-13T19:51:24.203Z DEBUG   wallet: Loaded 0 HTLC signatures from DB
2023-11-13T19:51:24.203Z DEBUG   wallet: Loaded 0 HTLC signatures from DB
2023-11-13T19:51:24.203Z DEBUG   wallet: Loaded 2 channels from DB
2023-11-13T19:51:24.203Z DEBUG   wallet: Loading in HTLCs for channel 4
2023-11-13T19:51:24.203Z DEBUG   wallet: Restored 0 incoming HTLCS
2023-11-13T19:51:24.203Z DEBUG   wallet: Loading in HTLCs for channel 5
2023-11-13T19:51:24.203Z DEBUG   wallet: Restored 0 incoming HTLCS
2023-11-13T19:51:24.203Z DEBUG   wallet: Restored 0 outgoing HTLCS
2023-11-13T19:51:24.203Z DEBUG   wallet: Restored 0 outgoing HTLCS
2023-11-13T19:51:24.204Z DEBUG   hsmd: new_client: 0
2023-11-13T19:51:24.241Z DEBUG   020175de0c9392077f380139a339c89f65cb86b07dd7b4135248d5481f3972712b-hsmd: Got WIRE_HSMD_CUPDATE_SIG_REQ
2023-11-13T19:51:24.241Z DEBUG   hsmd: Client: Received message 3 from client
2023-11-13T19:51:24.242Z DEBUG   020175de0c9392077f380139a339c89f65cb86b07dd7b4135248d5481f3972712b-hsmd: Got WIRE_HSMD_CUPDATE_SIG_REQ
2023-11-13T19:51:24.242Z DEBUG   hsmd: Client: Received message 3 from client
2023-11-13T19:51:24.242Z DEBUG   020175de0c9392077f380139a339c89f65cb86b07dd7b4135248d5481f3972712b-hsmd: Got WIRE_HSMD_NODE_ANNOUNCEMENT_SIG_REQ
2023-11-13T19:51:24.242Z DEBUG   hsmd: Client: Received message 6 from client
2023-11-13T19:51:24.245Z DEBUG   lightningd: io_break: gossipd_init_done
2023-11-13T19:51:24.245Z DEBUG   lightningd: io_loop: gossip_init
2023-11-13T19:51:24.247Z DEBUG   plugin-clnrest.py: Killing plugin: disabled itself at init: `rest-port` option is not configured
2023-11-13T19:51:24.248Z DEBUG   plugin-cln-grpc: Killing plugin: disabled itself at init: `grpc-port` option is not configured.
2023-11-13T19:51:24.253Z DEBUG   lightningd: Looking for [autoclean,succeededforwards,num]
2023-11-13T19:51:24.259Z DEBUG   lightningd: Looking for [autoclean,failedforwards,num]
2023-11-13T19:51:24.263Z DEBUG   plugin-chanbackup: Chanbackup Initialised!
2023-11-13T19:51:24.264Z DEBUG   lightningd: Looking for [autoclean,succeededpays,num]
2023-11-13T19:51:24.264Z DEBUG   hsmd: Client: Received message 27 from client
2023-11-13T19:51:24.264Z DEBUG   plugin-fetchinvoice: Killing plugin: disabled itself at init: offers not enabled in config
2023-11-13T19:51:24.267Z DEBUG   lightningd: Looking for [autoclean,failedpays,num]
2023-11-13T19:51:24.268Z DEBUG   lightningd: Looking for [autoclean,paidinvoices,num]
2023-11-13T19:51:24.269Z DEBUG   plugin-topology: gossmap ignored 14 channel updates
2023-11-13T19:51:24.269Z DEBUG   hsmd: Client: Received message 27 from client
2023-11-13T19:51:24.269Z DEBUG   lightningd: Looking for [autoclean,expiredinvoices,num]
2023-11-13T19:51:24.270Z DEBUG   plugin-bookkeeper: Setting up database at sqlite3://accounts.sqlite3
2023-11-13T19:51:24.271Z DEBUG   plugin-cln-renepay: gossmap ignored 14 channel updates
2023-11-13T19:51:24.271Z DEBUG   connectd: REPLY WIRE_CONNECTD_ACTIVATE_REPLY with 0 fds
2023-11-13T19:51:24.271Z DEBUG   lightningd: io_break: connect_activate_done
2023-11-13T19:51:24.271Z DEBUG   lightningd: io_loop: connectd_activate
2023-11-13T19:51:24.272Z INFO    lightningd: --------------------------------------------------
2023-11-13T19:51:24.272Z INFO    lightningd: Server started with public key 020175de0c9392077f380139a339c89f65cb86b07dd7b4135248d5481f3972712b, alias MW CLN (color #020175) and lightningd 23.08.1
2023-11-13T19:51:24.272Z DEBUG   020ed4ea09c56c3e398190ae5ac60504fe4e56d6989d49e2f7845f14608c546854-chan#4: Watching for funding txid: dc1788528618c504ceee6aa0ed9fe36fec591eb000debe12784d45c005f19cc3
....
KEEPS RUNNING FINE

getinfo output

"version": "23.08.1"

/etc/systemd/system/lightningd.service


[Unit]
Description=Core Lightning daemon
Requires=bitcoind.service
After=bitcoind.service
Wants=network-online.target
After=network-online.target

[Service]
ExecStart=/usr/local/bin/lightningd
User=vlad
Group=vlad
Restart=on-failure
Type=simple
KillMode=process
TimeoutSec=180
RestartSec=60

[Install]
WantedBy=multi-user.target

/home/vlad/.lightning/config

network=testnet
log-level=debug
log-level=broken:gossipd
log-level=broken:plugin-bcli
#log-file=/home/vlad/.lightning/cln.log
alias=MW CLN

proxy=127.0.0.1:9050
bind-addr=127.0.0.1:9735
addr=autotor:127.0.0.1:9051
always-use-proxy=true

experimental-anchors
imaginator commented 11 months ago

It looks like your bitcoin-cli is not found in the $PATH. My guess is bitcoind is installed outside of the standard PATH. Find out where it is installed and add something like the following to your systemd unit file.

[Service]
Environment=PATH=/home/someUser/bin:/usr/local/sbin 
Impa10r commented 11 months ago

Thanks! All works now.