Closed BTCBellyButton closed 1 year ago
inside the log there is any BROKEN
line?
None. That above is all I got in the log.
lightnind.service file:
[Unit]
Description=Core Lightning daemon
Requires=bitcoind.service
After=bitcoind.service
Wants=network-online.target
After=network-online.target
[Service]
#ExecStart=/usr/bin/lightningd --daemon --conf /etc/lightningd/lightningd.conf --pid-file=/run/lightningd/lightningd.pid
ExecStart=/usr/bin/lightningd --lightning-dir=/mnt/md0/C-Lightning/ --daemon --log-file=/mnt/md0/C-Lightning/log --pid-file=/run/lightningd/lightningd.pid
RuntimeDirectory=lightningd
User=go
Group=go
Type=forking
PIDFile=/run/lightningd/lightningd.pid
Restart=on-failure
RestartSec=60s
StartLimitInterval=10
# Hardening measures
####################
# Provide a private /tmp and /var/tmp.
PrivateTmp=true
# Mount /usr, /boot/ and /etc read-only for the process.
ProtectSystem=full
# Disallow the process and all of its children to gain
# new privileges through execve().
NoNewPrivileges=true
# Use a new /dev namespace only populated with API pseudo devices
# such as /dev/null, /dev/zero and /dev/random.
PrivateDevices=true
# Deny the creation of writable and executable memory mappings.
#MemoryDenyWriteExecute=true
[Install]
WantedBy=multi-user.target
I you ran the following command by removing the log file from the etc/lightningd/lightningd.conf
what is the output in your terminal?
lightningd -lightning-dir=/mnt/md0/C-Lightning/
Ok. I got this:
Refusing to irreversibly upgrade db from version 199 to 212 in non-final version 22.11.1 (use --database-upgrade=true to override)
this is a bug fixed in the next release, you should add as a parameter also --database-upgrade=true
, this give permission to core lightning to upgrade the database!
Question. Why "non-final version 22.11.1"? What is considered "final"?
Just a bug fixed in https://github.com/ElementsProject/lightning/pull/5880
this is a bug fixed in the next release, you should add as a parameter also
--database-upgrade=true
Just a bug fixed in #5880
Cool. Thanks! DB updated. All seems good now.
Maybe in the meantime it'd help putting a note on the release page?
Maybe in the meantime it'd help putting a note on the release page?
Unfortunately, we no longer need this note because in the next couple of weeks, we had a new release v23.02 and this bug is considered just a bad dream!
Not bad at all. I learned something new about you doc management process. :)
Issue and Steps to Reproduce
Updated from v0.12.1 to v22.11.1 using clightning-v22.11.1-Ubuntu-20.04.tar.xz when starting up via the very same systemd service file I got this:
I then added
But CLN does not start.
LOG FILE:
Had to go back to v0.12.1
getinfo
output