Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitcoind: Can't open PID from file #1901

Closed
jodobear opened this issue Dec 24, 2020 · 25 comments
Closed

Bitcoind: Can't open PID from file #1901

jodobear opened this issue Dec 24, 2020 · 25 comments
Milestone

Comments

@jodobear
Copy link
Contributor

Fresh 1.6.2 install with LND recovered from backup. Bitcoind is active but it isn't syncing, get Failed to parse PID from file and after service restart get Can't open PID from file as shown in the below status output:

● bitcoind.service - Bitcoin daemon
   Loaded: loaded (/etc/systemd/system/bitcoind.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2020-12-23 12:20:38 GMT; 1min 32s ago
  Process: 10999 ExecStartPre=/home/admin/config.scripts/blitz.systemd.sh log blockchain STARTED (code=exited, status=0/
  Process: 11001 ExecStart=/usr/local/bin/bitcoind -daemon -conf=/home/bitcoin/.bitcoin/bitcoin.conf -pid=/home/bitcoin/
 Main PID: 11002 (bitcoind)
    Tasks: 18 (limit: 4915)
   Memory: 199.2M
   CGroup: /system.slice/bitcoind.service
           └─11002 /usr/local/bin/bitcoind -daemon -conf=/home/bitcoin/.bitcoin/bitcoin.conf -pid=/home/bitcoin/.bitcoin

Dec 23 12:20:38 raspberrypi systemd[1]: Starting Bitcoin daemon...
Dec 23 12:20:38 raspberrypi systemd[1]: bitcoind.service: Can't open PID file /home/bitcoin/.bitcoin/bitcoind.pid (yet?)
Dec 23 12:20:38 raspberrypi systemd[1]: Started Bitcoin daemon.
$ ls -l /home/bitcoin/.bitcoin/
total 324
-rw------- 1 bitcoin bitcoin     37 Dec 22 20:22 banlist.dat
-r--r--r-- 1 root    root       854 Dec 22 23:56 bitcoin.conf
-rw------- 1 bitcoin bitcoin      5 Dec 24 08:43 bitcoind.pid
drwx------ 1 bitcoin bitcoin 114010 Dec 21 16:33 blocks
drwx------ 1 bitcoin bitcoin  48572 Dec 24 08:43 chainstate
-rw------- 1 bitcoin bitcoin   6877 Dec 24 08:49 debug.log
-rw------- 1 bitcoin bitcoin 247985 Dec 23 15:30 fee_estimates.dat
-rw------- 1 bitcoin bitcoin     17 Dec 23 15:30 mempool.dat
-rw------- 1 bitcoin bitcoin    820 Dec 24 08:43 onion_private_key
-rw------- 1 bitcoin bitcoin  49552 Dec 23 15:30 peers.dat
@rootzoll
Copy link
Collaborator

PR #1902 merged .. this should delete the blocking file on boot. Will be part of v1.6.3 release - closing issue.

@jodobear
Copy link
Contributor Author

so, can i just safely delete the pid & lock` file and start bitcoind to resolve the issue?

@rootzoll
Copy link
Collaborator

@jodobear delete those files and do restart should be fine.

@jodobear
Copy link
Contributor Author

jodobear commented Dec 24, 2020

THe issue isn't resolved.

@jodobear delete those files and do restart should be fine.

That didn't work.

syslog: Dec 24 22:43:17 raspberrypi systemd[1]: bitcoind.service: Can't open PID file /home/bitcoin/.bitcoin/bitcoind.pid (yet?) after start: No such file or directory

status:

Dec 24 22:43:17 raspberrypi systemd[1]: Starting Bitcoin daemon...
Dec 24 22:43:17 raspberrypi systemd[1]: bitcoind.service: Can't open PID file /home/bitcoin/.bitcoin/bitcoind.pid (yet?)
Dec 24 22:43:17 raspberrypi systemd[1]: Started Bitcoin daemon.

ls -l /home/bitcoin/.bitcoin/: -rw------- 1 bitcoin bitcoin 5 Dec 24 22:43 bitcoind.pid

@rootzoll
Copy link
Collaborator

Maybe try stopping bitcoind first and then restart:

sudo systemctl stop bitcoind
sudo rm -f /home/bitcoin/.bitcoin/bitcoind.pid
restart

@jodobear
Copy link
Contributor Author

jodobear commented Dec 25, 2020

That's exactly what i did, but didn't help. I don't understand, this should be that simple.

@rootzoll rootzoll added the final testing was fixed - needs testing label Dec 25, 2020
@rootzoll
Copy link
Collaborator

Hmm .. if the file is deleted and really gone before restart then it gets created on start again. Bitcoind systemd service is creating that PID file ... so does it gets started twice? can you check with sudo systemctl status bitcoind and htop if there is a bitcoind running already. Also check the process id stored in the PID file and check if that proces sis still running with sudo ps $(sudo cat /home/bitcoin/.bitcoin/bitcoind.pid)

@jodobear
Copy link
Contributor Author

After stopping bitcoin and removing pid file, there is no bitcoin running. On restart the issue persists. On checking processes, there's only 1 bitcoind instance:

20201226-htop-pid3785

@jodobear
Copy link
Contributor Author

I flashed a new 1.6.2 card. The blitz confgured itself, rebooted a couple of times, set my passwords and everything seemed fine but, the issue persists.

There is no syslog for bitcoind on restarting blitz after deleting pid file. But, simply restarting bitcoind syslog gives:

Dec 26 11:24:33 raspberrypi systemd[1]: bitcoind.service: Failed to parse PID from file /home/bitcoin/.bitcoin/bitcoind.pid: Invalid argument

@rootzoll rootzoll reopened this Jan 4, 2021
@jodobear
Copy link
Contributor Author

jodobear commented Jan 5, 2021

Thank you for re-opening the issue. My node is still down. Not sure what to do anymore. Let me know how can i help resolve this.

@NilByte
Copy link
Contributor

NilByte commented Jan 9, 2021

Maybe check if wait for network connection is set in sudo raspi-config ?

S6 Network at Boot Select wait for network connection on boot

It should be by default on the raspiblitz configuration.

@rootzoll
Copy link
Collaborator

Thank you for re-opening the issue. My node is still down. Not sure what to do anymore. Let me know how can i help resolve this.

@jodobear I would give it a try to remove the PID file at all. Go to terminal:
sudo systemctl disable bitcoind and then edit the systemd servcie for example with sudo nano /etc/systemd/system/bitcoind.service remove the -pid=... parameter from ExecStart and save edit (CRTL+o) and exit (CTRL+x). Then sudo systemctl enable bitcoind and restart system.

Let me know if this fixes the problem for you.

@rootzoll
Copy link
Collaborator

rootzoll commented Jan 10, 2021

@openoms do you see any downsides to remove the PID file from the system service? PR #1930 up for discussion

@openoms
Copy link
Collaborator

openoms commented Jan 10, 2021

@jodobear I would want make sure that odd problem is not caused by a failing SDcard.

Could you try flashing the v1.6.2 image on a new SDcard?

@rootzoll rootzoll modified the milestones: 1.6.3 Release, 1.7 Release Jan 12, 2021
@rootzoll
Copy link
Collaborator

We are keeping this issue open because it has a pending PR #1930 .. but moving it to next release because the fix would be to cloase to final realease of v1.6.3 to include.

@NilByte
Copy link
Contributor

NilByte commented Feb 1, 2021

After updating to 1.6.3 i got this error in debug.

Can't open PID file /home/bitcoin/.bitcoin/bitcoind.pid (yet?) after start: No such file or directory

�[H�[2J�[3J
***************************************************************
* RASPIBLITZ DEBUG LOGS 
***************************************************************
blitzversion: 1.6.3
chainnetwork: bitcoin / main
 17:46:32 up 24 min,  2 users,  load average: 2.61, 2.14, 1.87

*** BLOCKCHAIN SYSTEMD STATUS ***
● bitcoind.service - Bitcoin daemon
   Loaded: loaded (/etc/systemd/system/bitcoind.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2021-02-01 17:25:19 GMT; 21min ago
  Process: 3887 ExecStartPre=/home/admin/config.scripts/blitz.systemd.sh log blockchain STARTED (code=exited, status=0/SUCCESS)
  Process: 3892 ExecStart=/usr/local/bin/bitcoind -daemon -conf=/home/bitcoin/.bitcoin/bitcoin.conf -pid=/home/bitcoin/.bitcoin/bitcoind.pid (code=exited, status=0/SUCCESS)
 Main PID: 3959 (bitcoind)
    Tasks: 19 (limit: 4915)
   Memory: 5.0G
   CGroup: /system.slice/bitcoind.service
           └─3959 /usr/local/bin/bitcoind -daemon -conf=/home/bitcoin/.bitcoin/bitcoin.conf -pid=/home/bitcoin/.bitcoin/bitcoind.pid

Feb 01 17:25:19 raspberrypi systemd[1]: bitcoind.service: Can't open PID file /home/bitcoin/.bitcoin/bitcoind.pid (yet?) after start: No such file or directory
Feb 01 17:25:19 raspberrypi systemd[1]: Started Bitcoin daemon.

*** LAST BLOCKCHAIN ERROR LOGS ***
sudo journalctl -u bitcoind -b --no-pager -n8
-- Logs begin at Mon 2021-02-01 17:21:40 GMT, end at Mon 2021-02-01 17:46:32 GMT. --
Feb 01 17:25:19 raspberrypi systemd[1]: Starting Bitcoin daemon...
Feb 01 17:25:19 raspberrypi systemd[1]: bitcoind.service: Can't open PID file /home/bitcoin/.bitcoin/bitcoind.pid (yet?) after start: No such file or directory
Feb 01 17:25:19 raspberrypi systemd[1]: Started Bitcoin daemon.

Set wait for network connection in sudo raspi-config

Rebooted and ran debug again and got rid of the Can't open PID file /home/bitcoin/.bitcoin/bitcoind.pid (yet?) after start: No such file or directory

�[H�[2J�[3J
***************************************************************
* RASPIBLITZ DEBUG LOGS 
***************************************************************
blitzversion: 1.6.3
chainnetwork: bitcoin / main
 19:52:35 up 7 min,  2 users,  load average: 3.65, 2.77, 1.33

*** BLOCKCHAIN SYSTEMD STATUS ***
● bitcoind.service - Bitcoin daemon
   Loaded: loaded (/etc/systemd/system/bitcoind.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2021-02-01 19:47:55 CET; 4min 40s ago
  Process: 6572 ExecStartPre=/home/admin/config.scripts/blitz.systemd.sh log blockchain STARTED (code=exited, status=0/SUCCESS)
  Process: 6579 ExecStart=/usr/local/bin/bitcoind -daemon -conf=/home/bitcoin/.bitcoin/bitcoin.conf -pid=/home/bitcoin/.bitcoin/bitcoind.pid (code=exited, status=0/SUCCESS)
 Main PID: 6728 (bitcoind)
    Tasks: 19 (limit: 4915)
   Memory: 3.8G
   CGroup: /system.slice/bitcoind.service
           └─6728 /usr/local/bin/bitcoind -daemon -conf=/home/bitcoin/.bitcoin/bitcoin.conf -pid=/home/bitcoin/.bitcoin/bitcoind.pid

Feb 01 19:47:54 raspberrypi systemd[1]: Starting Bitcoin daemon...
Feb 01 19:47:55 raspberrypi systemd[1]: Started Bitcoin daemon.

*** LAST BLOCKCHAIN ERROR LOGS ***
sudo journalctl -u bitcoind -b --no-pager -n8
-- Logs begin at Mon 2021-02-01 19:44:29 CET, end at Mon 2021-02-01 19:52:35 CET. --
Feb 01 19:47:54 raspberrypi systemd[1]: Starting Bitcoin daemon...
Feb 01 19:47:55 raspberrypi systemd[1]: Started Bitcoin daemon.

I don't know if setting the wait for network on boot is what fixed it, but it might be worth a try.

Edit. Yet another reboot and the error is back, so wait for network on boot probably not a fix after all.

@rootzoll rootzoll modified the milestones: 1.7 Release, 1.7.1 Release Mar 23, 2021
@rootzoll
Copy link
Collaborator

The #1930 was also not a solution ... pushing this to v1.7.1 for another fresh look.

@rootzoll
Copy link
Collaborator

I had a test machine with that problem again.

Apr 17 19:12:51 raspberrypi systemd[1]: bitcoind.service: Can't open PID file /home/bitcoin/.bitcoin/bitcoind.pid (yet?) after start: No such file or directory

For v1.7 I give it another try with changing the path of the PID file patch from /home/bitcoin/.bitcoin to /mnt/hdd/bitcoin to eliminate that this has something to do with this directory being "linked".

If that problem shows up again, I would recommend to use /home/bitcoin so that its neither a linked directory nor on the HDD.

rootzoll added a commit that referenced this issue Apr 17, 2021
nyxnor added a commit to nyxnor/raspiblitz that referenced this issue May 2, 2021
* BTCPay Server does not work on TESTNET (raspiblitz#1966)

Just a mention referring to the issue so that newbies don't waist time with this and get disappointed.

* Additional little note regarding Channels Autopilot (raspiblitz#1954)

Little note warning that Channels Autopilot triggers a reboot which can be confusing for newbies and frustrating for demos.

* Update of Autopilot section (raspiblitz#1949)

I feel the update makes it clearer, feel free to accept/reject whichever way you think is best.

* Update FAQ.md with spelling & grammar changes, & fresh links (raspiblitz#2005)

* Fixed a typo (raspiblitz#2040)

Changed waist of time to waste of time in line 528

* Remove typo in echo (raspiblitz#2034)

partion -> partition

* Fix "unkown" typo (raspiblitz#2029)

* Fix Typos

* Fix Typos

* Update blitz.copyblockchain.sh

* build_sdcard.sh: prepare for the 64bit RaspberryOS (raspiblitz#1858)

* build_sdcard.sh: prepare for the 64bit RaspberryOS

* build_sdcard: don't ping and trust microsoft

* build_sdcard: make sure the pi user is present

* build_sdcard: add the archive.raspberrypi.org repo

* build: improve recognition of the base image

* build: don't stop at installing dependencies

* build: fix locales on all raspi images

* Refactor parameters on sd crad build script with FATPACK (raspiblitz#2044)

* Remove btrfs-tools as it's a transitional/virtual package. (raspiblitz#1854)

* New 64-bit sd card image with btc/nd update, fatpack & tor by default (raspiblitz#2060)

* raspiblitz#1549 faraday update 0.2.3 (raspiblitz#2061)

* electrs update to v0.8.8 and comment cleanup (raspiblitz#2059)

* miner edits on new electrs update (raspiblitz#2063)

* Check if /dev/fb1 exists and select /dev/fb0 when not (NEW) (raspiblitz#2064)

* create temp file in shared memory (/dev/shm/) (raspiblitz#2058)

* Tested app updates (raspiblitz#2043)

* btcpay: add sqlitefile and network options (raspiblitz#2067)

* Small corrections for upadted Apps raspiblitz#2066 (raspiblitz#2072)

* add the Lightning Terminal 0.4.1-alpha (raspiblitz#1994)

* raspiblitz#2019 updtae RTL to v0.10.1

* fix the lit aliases

As discussed in:
raspiblitz#1993 (comment)

* Pool: Remove stale symlink on cleanup (raspiblitz#1957)

* mempool: drop database if exists (raspiblitz#1960)

* Bump mempool to v2.1.2, use SSD for mempool cache data (raspiblitz#2014)

* Always set maxmempool to 300MB in bitcoin.conf (raspiblitz#2007)

When the mempool fills up to around 500MB, this causes the mempool.space
backend to crash on RPI due to OOM. Additionally, raising this above
300MB on a local RPI node arguably isn't a good idea anyway, because:

* If you have a 512MB mempool and all your peers have 300MB, you'll broadcast transactions that fit in your mempool but are rejected by all of your peers
* If you connect an SPV wallet to your node, your wallet will think the TX is "in the mempool" despite actually being purged from the entire Bitcoin P2P network, and never attempt to rebroadcast the purged TX
* In any case, the RPI has very limited RAM, so no point in wasting RAM
on having such a large sized mempool for bitcoind

* lnd.conf: add tls settings, improve startup time (raspiblitz#1943)

* raspiblitz#1993 Adding Lightning Terminal Menu integration (raspiblitz#2077)

* txindex: only restart bitcoind when running (raspiblitz#1831)

* raspiblitz#2074 adding docker install script (raspiblitz#2079)

* thunderhub: connect to external APIs through Tor (raspiblitz#1819)

modify torsocks to allow torify
update to v0.11.0

* add install script for Channel Tools (raspiblitz#1962)

* Update Specter Desktop info (raspiblitz#2088)

* Fixed a typo (raspiblitz#2086)

Changed "detailes" to "details"

* raspiblitz#2089 Improve & Update Sphinx-Relay (raspiblitz#2091)

* add metric collection via telegraf as new bonus service (improved version) (raspiblitz#1616)

* raspiblitz#1360 CHANGES note

* raspiblitz#1988 changed add nodes to TorV3

* adds service and command to download whitepaper (raspiblitz#2081)

* raspiblitz#2092 whitepaper additions (raspiblitz#2093)

* Tor: use CookieAuthentication (raspiblitz#2095)

* remove passwordB from lnd config (raspiblitz#2094)

* Tor: add CookieAuthFileGroupReadable 1

"If this option is set to 0, don’t allow the filesystem group to read the cookie file. 
If the option is set to 1, make the cookie file readable by the default GID. [Making
 the file readable by other groups is not yet implemented; let us know if you need 
 this for some reason.] (Default: 0)"
from: https://2019.www.torproject.org/docs/tor-manual.html.en

* use "netstat -an" to prevent IP resolution (raspiblitz#2006)

* Update blitz.notify.sh (raspiblitz#2016)

* Update 00infoBlitz.sh (raspiblitz#1828)

* btc-rpc-explorer: update to version 2.2.0 (raspiblitz#1846)

* raspiblitz#2096 update CHANGES

* Validate TCP port (raspiblitz#1848)

* Shellcheck fixes (raspiblitz#1840)

* raspiblitz#1840 changed grep uses

* raspiblitz#2080 Add chantools to commands, menu & services (raspiblitz#2097)

* raspiblitz#2042 change wording (raspiblitz#2098)

* 1973 lndconnect refactor & zeus tor by default (raspiblitz#2100)

* sphinx-relay: remove sudo from status

fixes the fresh install as in:
raspiblitz#2089

* raspiblitz#1654 adding circuitbreaker to SETTINGS menu (raspiblitz#2105)

* raspiblitz#1817 change temp name custom script for installs

* raspiblitz#1646 remove quickfix (raspiblitz#2107)

* raspiblitz#1416 added HS default ports testnet & signet

* raspiblitz#1940 i2c & hdmi_safe to ON

* raspiblitz#1978 changed SCP instructions for Windows

* raspiblitz#2032 deactivate ZAP-iOS

* Organizing ./XXdebugLogs.sh debug logs - Change Wifi to Network and more (raspiblitz#1947)

* raspiblitz#1888 kickstart cache file (raspiblitz#2109)

* 1341 acme over tor by curl default proxy (raspiblitz#2110)

* 2089 check one channel & use wget for local test (raspiblitz#2112)

* fix sphinx chet connection test

* raspiblitz#1341 deactivate .curlrc tor proxy for now

* raspiblitz#2048 deactivate UASP (raspiblitz#2113)

* 2089 onechannel (raspiblitz#2114)

* raspiblitz#2048 fix detect UASP

* update FAQ build info

* fix error check starting menu

* check raspiblitz.conf exists

* raspiblitz#2075 remove hdmi safe default

* release of v1.7RC1 image

* raspiblitz#2048 deactivate auto-reboot

* updated RC1 image

* raspiblitz#2048 deactivate USAP for RC1

* add some reboot delays

* deactivating resize for RC1

* update SHA on release

* bos: comment out link

* joininbox update to v0.3.4

* update joininbox version to v0.3.4

* fix joinmarket installation error

* joinmarket: fix version pinning

* raspiblitz#2126 fix sd card expand & raspiblitz#1888 static fallback list (raspiblitz#2132)

* remove rpcpassword related code for lnd/btc config syncing (raspiblitz#2135)

* raspiblitz#2070 basic migration impl (raspiblitz#2142)

* raspiblitz#1265 Display Refactor (raspiblitz#2149)

* SSH menu refactoring  + CONNECT,  LIGHTNING and SYSTEM menus added (raspiblitz#2119)

* Update stacking-sats-kraken version (raspiblitz#2133)

* doc of upadte to stacking-sats-kraken 0.4.2

* Typo in 05hardwareTest printed output (raspiblitz#2139)

* Add mempool to update menu (raspiblitz#2147)

* raspiblitz#2147 added a git fetch before git checkout

* Thunderhub fix and update (raspiblitz#2141)

* raspiblitz#2118 update specter to 1.3.0 (raspiblitz#2156)

* raspiblitz#2057 Recovery Window Flag `fundRecovery` (raspiblitz#2159)

* rtl: make LiT port 8443 default for Loop in  RTL

* LiT: update RTL on the end of install for Loop

* .bashrc: source fzf before opening the main menu (raspiblitz#2140)

* Run LND with a separate Tor instance to avoid restarts (raspiblitz#2148)

* raspiblitz#2165 BTCPayServer 1.0.7.2

* raspiblitz#2161 fixes on building sd card (display & no-interaction parameter) (raspiblitz#2166)

* Release v1.7RC2

* updating v1.7RC2 info

* btcpay: exit 1 if cd fails

* _commands: clarify lit aliases

* rename recover log

* raspiblitz#2075 fix HDMI switch file & clean up boot logs (raspiblitz#2175)

* raspiblitz#2048 uasp reboot log

* FN: add BITCOINRPCPORT for testnet and signet (raspiblitz#2177)

* v1.7.0 RC2 updates (raspiblitz#2171)

* CONNECT bitcoin RPC: format output and fix removal (raspiblitz#2174)

* raspiblitz#2160 Remove Bitcoind params from lnd.conf on Update & smaller update fixes   (raspiblitz#2179)

* raspiblitz#2150 fix touchscreen and calibration (raspiblitz#2181)

* Tor: look for the correct word when checking torrc

* remove 00mainMenu.sh loop from submenus (raspiblitz#2186)

* raspiblitz#2070 Implement myNode migration (raspiblitz#2187)

* raspiblitz#2185 remove hardware test (raspiblitz#2190)

* raspiblitz#1901 changing path of PID file

* improve the output in the SYSTEM menu

* raspiblitz#2157 offer http for additional apps & small fixes (raspiblitz#2196)

* raspiblitz#2173 Connect Specter fixes (raspiblitz#2197)

* set default port value
* fix port determine

* raspiblitz#2099 small fix on delete macarons

* raspiblitz#2066 small fixes for apps, updates & lcd (raspiblitz#2200)

* updated 64bit sd card image

* run apt update after adding Tor sources (raspiblitz#2203)

* BITCOIN UPDATE option (raspiblitz#2202)

* Bitcoin update RC support (raspiblitz#2205)

* raspiblitz#2167 smaller fixes for v1.7RC3 (raspiblitz#2206)

* adding spacing line

* prepare v1.7RC3

* fix lnbits macaroon write after reset

* add IP2Tor renew info

* fixing info

* remove debug info

* raspiblitz#2157 LNbits needs https for local

* more info

* reboot on macaroon reset

* fix blocking LIT install

* set correct fonts

* set font for lcd

* raspiblitz#2198 add connect Info

* fix syntax

* fix text layout

* layout text

* fix text layout

* more install info

* fix text layout

* text layout

* text layout

* fix restart lnd

* force lnd RPC/REST standard & open on boot

* raspiblitz#2198 fix fully noded connection

* raspiblitz#2198 deactivate Zap-Android from menu

* telegraf updates for v1.7.0RC3 (raspiblitz#2204)

* new path of "vcgencmd" at raspiblitz v1.7.0RC2
* whitespaces + rename raspiblitz_ip_info -> ipinfo
* add mempool info via bitcoincli
Co-authored-by: Patrick Scheich <patrick.scheich@syscovery.de>

* CHANGES: note using the base image from April 2021

* raspiblitz#2221 change hdmi mode (raspiblitz#2224)

* unlock LND after Bitcoin Core install if ready (raspiblitz#2214)

* unlock LND after Bitcoin Core install if ready
* bitcoin.update: improve output and comments

* show nginx systemd logs (raspiblitz#2220)

This is important, normally nginx fails and this is not shown.

* Update stacking-sats-kraken version (raspiblitz#2216)

* small ux thing - bigger dialog box

* raspiblitz#2070 checking version & resetting password c (raspiblitz#2226)

* Table of options on how to have blitz (raspiblitz#2219)

* Create SECURITY.md (raspiblitz#2212)

* merge updates documentation for v1.7

* upload of raspiblitz-v1.7.0-2021-04-24.img.gz

* update version 1.7.0

* upload image raspiblitz-v1.7.0-2021-04-25.img.gz

* correct signature link for v1.7.0

* SECURITY.md typos (raspiblitz#2229)

please correct this before v1.7 @rootzoll

* update README for v1.7.0

* fix typo

* List all compatible displays on Amazon (raspiblitz#2253)

Give some alternatives if the mentioned display is sold out on Amazon

* raspiblitz#2243 formatting info on additional screen vendors

* raspiblitz#2247 add HTTP code as debug info

* change force to yes on installation (raspiblitz#2254)

Co-authored-by: JayDeLux <iffrig@hotmail.com>
Co-authored-by: davterra <davterra44@gmail.com>
Co-authored-by: Nerfzooka <Nerfzooka@users.noreply.github.com>
Co-authored-by: keblek <68111648+keblek@users.noreply.github.com>
Co-authored-by: Jestopher <59354805+Jestopher-BTC@users.noreply.github.com>
Co-authored-by: openoms <43343391+openoms@users.noreply.github.com>
Co-authored-by: /rootzoll <rotzoll@googlemail.com>
Co-authored-by: FreePietje <50077459+FreePietje@users.noreply.github.com>
Co-authored-by: /rootzoll <christian@geektank.de>
Co-authored-by: openoms <oms@tuta.io>
Co-authored-by: d11n <mail@dennisreimann.de>
Co-authored-by: Christoph Stenglein <9399034+cstenglein@users.noreply.github.com>
Co-authored-by: wiz <j@wiz.biz>
Co-authored-by: PatrickScheich <50054697+PatrickScheich@users.noreply.github.com>
Co-authored-by: raulcano <raul.cano.argamasilla@gmail.com>
Co-authored-by: frennkie <mail@rhab.de>
Co-authored-by: Joseph Goulden <joegoulden@protonmail.com>
Co-authored-by: roshii <roshii@riseup.net>
Co-authored-by: adaleben <69700936+Ben10Brasileiro@users.noreply.github.com>
Co-authored-by: Nygel Lyndley <github.com@lyndley.com>
Co-authored-by: Philihp Busby <philihp@gmail.com>
Co-authored-by: Deverick <deverick@me.com>
Co-authored-by: Animalmother9000 <48626097+Animalmother9000@users.noreply.github.com>
Co-authored-by: /rootzoll <christian@fulmo.org>
@netsuke1
Copy link

since yesterday RaspiBlitz ... unfortunately the bitcoind service is not running

https://termbin.com/jl7w

@openoms
Copy link
Collaborator

openoms commented May 12, 2021

since yesterday RaspiBlitz ... unfortunately the bitcoind service is not running

https://termbin.com/jl7w

@netsuke1
Error: Error reading configuration file: parse error on line 1: bitcoind configuration
your /mnt/hdd/bitcoin/bitcoin.conf is corrupted.
edit with:
sudo nano /mnt/hdd/bitcoin/bitcoin.conf

Likely a hardware error.
See you recovery options in the FAQ.

@netsuke1
Copy link

@openoms
Thanks, how should a clean bitcoin.conf look like?
/mnt/hdd/bitcoin/bitcoin.conf and
/home/bitcoin/.bitcoin/bitcoin.conf are identical
I can't find anything in the FAQ

Bildschirmfoto 2021-05-12 um 21 38 59

@openoms
Copy link
Collaborator

openoms commented May 12, 2021

@netsuke1 delete the first line and reboot

@netsuke1
Copy link

@openoms
Thank you, you are great ... Node is syncing... actually I had ordered a pre-synced RaspiBlitz ... but what the heck

Bildschirmfoto 2021-05-12 um 22 20 55

@openoms
Copy link
Collaborator

openoms commented Jun 29, 2021

We are using:
KillMode=process
in the systemd service files which is not recommended and can cause leftover subrocesses likely causing this issue.

https://www.man7.org/linux/man-pages/man5/systemd.kill.5.html

Will remove all the KillMode= entries so it defaults to control-group.

rootzoll added a commit that referenced this issue Aug 3, 2021
* fix copychain returns

* typo in sync loop

* stop services on inconsistent state

* calling correct provisioning

* apply bitcoin and lncli aliases in all scripts

* network.aliases: add CLNETWORK

* make cln default plugin dir: cln-plugins-enabled

similar to the nginx model make 2 directories for plugins:
cln-plugins-enabled - symlinked to ~/.lightning/plugins
plugins from here are loaded automatically on cln start

cln-plugins-available: plugins are downloaded here to
be run until the next cln restart (or stopped with runonce)

note the disk is mounted with noexec so plugins can't
run from there

discuss in: #2295

* move shutdown script

* change all place where shutdown script is used

* change notify & release

* moved shutdown script

* moved shutdown scripts

* add more debug info

* moving github script

* remove chain in sync

* no longer needed chain in sync

* move debug script

* patch patch command

* make sure setup file is sourced

* remove debug output

* make sure lnd is put behind tor

* change indent

* get fresh sync progress

* avoid scrolling in menus

* use new selfsignedcert if no lnd tls.cert present

* sparko: add info and connect menu with own cert

#2295

* cln.rest: add connect option for Zeus

#2295

* cln: add the backup plugin + options

Usage options:
cln-plugin.backup.sh [on] [testnet|mainnet|signet]
cln-plugin.backup.sh [restore] [testnet|mainnet|signet] [force]
cln-plugin.backup.sh [backup-compact] [testnet|mainnet|signet]
https://github.com/lightningd/plugins/tree/master/backup

Discussed in: #2295

* cln: add cln-plugin.standard.python.sh

Install and show the output of the chosen plugin for C-lightning
Usage:
cln-plugin.standard-python.sh on [plugin-name] [testnet|mainnet|signet] [runonce]
tested plugins:
summary | helpme | feeadjuster

find more at:
https://github.com/lightningd/plugins
discussed in:
#2295

* shellcheck: change all `egrep` to `grep -E`

https://github.com/koalaman/shellcheck/wiki/SC2196

* do not resolve aliases, use as variables

* lnd: fix lnd.conf for parallel networks

discussed in: #2290

* lnd: add LND option for parallel networks

* deprecate Testnet in SETTINGS
keysend and autopilot only for mainnet

due to: #2290

* lnd: autopilot and autounlock for testnet

* fix comments

* add the SYSTEM menu for parallel chains

* RTL update to v0.11.0

make chain specific directory for the config: /home/rtl/${netprefix}RTL/
use ${netprefix}lnd.conf in config
override Environmen tvaribales for cln in the systemd service:
/etc/systemd/system/${netprefix}${typeprefix}RTL.service

discussed in: #2384

* lnd.setname.sh for testnet

* display ${CHAIN} in the SYSTEM menu options

* keep _aliases file when live patches are applied

* all lncli_aliases to be used as variables

* default to KIllMode=control-group in services

https://www.man7.org/linux/man-pages/man5/systemd.kill.5.html
discussed in: #1901

* add cln.hsmtool.sh for  hsm_secret handling

encrypt | decrypt | autounlock the hsm_secret for C-lightning
usage:
cln.hsmtool.sh [unlock] [testnet|mainnet|signet]
cln.hsmtool.sh [encrypt|decrypt] [testnet|mainnet|signet]
cln.hsmtool.sh [autounlock-on|autounlock-off] [testnet|mainnet|signet]

discussed in: #2295

* add cln.install-service.sh to set up cln with systemd

script to set up or update the CLN systemd service
checks for hsm_secret encryption, autounlock and the sparko plugin
usage:
/home/admin/config.scripts/cln.install-service.sh $CHAIN

discussed in: #2295

* use symlink to cln-plugins-enabled for all plugins

* keep lnd autopilot and autounlock mainnet only

mainnet only settings:
lnd autopilot
lnd keysend
circuibreaker
lnd autounlock
StaticChannelBackup to DropBox and USB

* cln FUNDING fix parsing address

* cln.hsmtool: add change-password and lock options

* always set password A

* cached peer info

* fix printing cache

* fix check for existing files

* handle bitcoind not running

* result with newline

* test line break

* test new line

* test new line

* two vars on output

* #2388 improve online check (less pinging)

* used cached peer status

* move chache

* cach file permissions

* allow sudo call

* fix cache

* remove double scan info

* add conf info to sync screen

* reorder info

* add space

* add space

* order info

* internet suppress error messages

* order info

* fix offering Blockchain copy

* fix hostname

* final ready state info

* lnd unlock after provision

* remove debug exit

* harmonize ready state

* add status to lnd unlock

* update lnd unlock script

* edit the unlock

* remove debug echo

* add debug

* add debug

* fix if statement

* debug output

* switch position of source setupdata

* #1126 preparing new setup with new c-lightning  (#2396)

* move debug script

* patch patch command

* make sure setup file is sourced

* remove debug output

* make sure lnd is put behind tor

* change indent

* get fresh sync progress

* always set password A

* cached peer info

* fix printing cache

* fix check for existing files

* handle bitcoind not running

* result with newline

* test line break

* test new line

* test new line

* two vars on output

* #2388 improve online check (less pinging)

* used cached peer status

* move chache

* cach file permissions

* allow sudo call

* fix cache

* remove double scan info

* add conf info to sync screen

* reorder info

* add space

* add space

* order info

* internet suppress error messages

* order info

* fix offering Blockchain copy

* fix hostname

* final ready state info

* lnd unlock after provision

* remove debug exit

* harmonize ready state

* add status to lnd unlock

* update lnd unlock script

* edit the unlock

* remove debug echo

* add debug

* add debug

* fix if statement

* debug output

* switch position of source setupdata

* lnd.unlock: fix typo

* netwok.monitor.sh debug

* cln-plugin.summary: fix paths

* rtl: fix permission of config on copy

* CASHOUT: use aliases for lnd

* rtl: install correctly for paralell chains

* use CHAIN in CLN and LND menu

* cln: add  CASHOUT option

* CLOSEALL and  CASHOUT: Improve labels and comments

Explaining CASHOUT in the label as discussed in:
#2358

* cln.install: fix tor config

* cln: installthe  latest master until the next release

* _commands: source _aliases only if exists

* network aliases: fall back to 'main' for 'chain'

* new setup: keep testnet3 blocks and chainstate

* new setup: improve capitalization in menu

* improve help and comments

* cln: install Sparko if configured, but not present

* cln: add new wallet and import seed options

* fix peernum

* make sure that aliases get created on lnd setup

* no error if aliases not yet exist

* debug state

* fix network alias when not set

* fix syntax error

* add debug error info

* mute unlocking echos

* add debug wait

* add debug wait

* make sure info is uptodate

* make alias info as defaults

* rename option

* update sync info for no lightning

* add action string

* update sync info

* move name dialog

* wait for sync progress info

* wait for syncprogress info

* fix syntax

* get fresh data

* make sure to disable lnd

* add c-lightning to debug

* add setup logs to debug output

* fix syntax error

* add new-force wallet

* try fix call hsmtool

* hsm output tool

* fix output

* add seed-force

* refactor blitz.mnemonic.py

* test seed

* debug info

* dump object

* try check

* correct putput

* fix syntax

* check lnd for valid seed

* fix gui

* add Suez install script

discussed in:
#2366

* cln rescue file export

* get correct version

* add cln export gui

* cln.backup.sh cln-import

* correct bytesize

* generate cln wallet with passwordc

* fix syntax

* fix syntax

* mute not needed error msg

* PEERING: correct message on success

* cln.install-service: fix sparko check

* add Suez to menu for CLN and LND

needs to be installed with the bitcoin user to be able to interact with CLN
related: #2366

* debug _provison.setup.sh

stop bitcoind and restart with new config to avoid rpc password error
disable and enable service instead of daemon-reload
CLN: don't use passwordC  as seedPassword

* add cln.setname.sh

make lnd.setname.sh work with parallel wallets

* improve comments

* SYSTEM: add CLNLOG and CLNCONF options

* SYSTEM menu fixes

* cln: add more aliases cln, clnlog, clnconf

* cln: activate the backup plugin on every install

* SERVICES menu: fix chantools/CLN switch

* cln: load plugins from ${netprefix}cln-plugins-enabled

changed the config paths to $lightning-dir/config or /networkname/config

plugins are downloaded to the SDcard:
/home/bitcoin/cln-plugins-available/
symlinked and loaded automatically from:
/home/bitcoin/${netprefix}cln-plugins-enabled

Related: #2295

* sparko: don't show logs after install

* #2425 Adding experimental Blitz WebUI & API (#2426)

* no password C & D when cln

* add debug echos

* set defaults before

* #2228 wider grep to detect nvms (#2427)

* cln.hsmtool: init backup with the new wallet

* cln.install: fix access to raspiblitz.conf

* cln-plugin.backup: fix path to backup-cli

* cln: hide unhelpful warnings during setup

* remove old jinja template rendering

* fix lnd unlock detection

* cln: look for files in .lightning dir with sudo

* cln: correct lightning name in FInalDialog + typo

* cln: make sure .lightning/bitcoin dir exists

* FinalDialog: make the 24 words fit

* cln.install.sh: create cln config if not present

* Simplify localIP detection and improve compatibility (#2432)

* show tail info on provision

* only show lnd options when activated

* fix syntax

* only show main lightning impl options for RC1

* cln: always start the lightnind.service

* cln: clear before showing summary

* start cln on the end of provisioning

* exit 0 on cln menu

* press key after single actions

* remove key press on cln actions

* change to none

* detect cln running

* fix syntax

* fix lightniing info

* add TODO for CLN

* add clnblockheight

* zty with user bitcoin

* check synced to chain for cln

* fix increment

* try scanprogress

* use cln sync detection and progress

* replace LNTYPE

* next line

* fix spaces

* fix spaces

* Update README.md (#2456)

Fix 404

* Fix FAQ links (#2441)

* Fix invalid URL ( (#2440)

* support channels (#2382)

* use #2370 height optimization

* adjust exit codes in menu scripts

* adjust password menu exit codes

* adapt shutdown for cln

* settings adapt to running lightning impl

* fix syntax

* debug info

* add debug

* better height

* add default values

* add config entry if not there yet

* change default value

* Added exit info for cln

* make sure to load config file if available

* add sparko to menu

* add default for sparko

* replace default sparko entry

* show sparko installed or not

* add more description to sparko option

* RTL for clightnign in service menu

* main menu item rtl

* add RTL description

* debug in RTL install

* install sparko on recovery

* update menu with cln

* rework menu options

Co-authored-by: openoms <oms@tuta.io>
Co-authored-by: openoms <43343391+openoms@users.noreply.github.com>
Co-authored-by: rek79 <rek79@users.noreply.github.com>
Co-authored-by: Bitpaint <67663265+bitpaint@users.noreply.github.com>
Co-authored-by: João Thallis <joaothallis@icloud.com>
Co-authored-by: Peter Flock <78184669+peterflock@users.noreply.github.com>
Co-authored-by: nyxnor <nyxnor@protonmail.com>
@rootzoll
Copy link
Collaborator

rootzoll commented Oct 9, 2021

Worked correct during release candidates ... closing for final v1.7.1 release.

@rootzoll rootzoll closed this as completed Oct 9, 2021
@rootzoll rootzoll removed the final testing was fixed - needs testing label Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants