question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v1.8.0rc2] updating a 1.8.0rc1 testnet node with CLN - default password - An error occured: undefined

See original GitHub issue

ssh works, and here is the error:

₿ sudo journalctl -fu blitzapi -n 100
-- Journal begins at Mon 2022-04-04 15:52:30 BST. --
Jun 18 21:19:08 raspberrypi systemd[1]: Started BlitzBackendAPI.
Jun 18 21:19:08 raspberrypi python[19999]: /usr/bin/python: No module named uvicorn
Jun 18 21:19:08 raspberrypi systemd[1]: blitzapi.service: Main process exited, code=exited, status=1/FAILURE
Jun 18 21:19:08 raspberrypi systemd[1]: blitzapi.service: Failed with result 'exit-code'.
Jun 18 21:20:08 raspberrypi systemd[1]: blitzapi.service: Scheduled restart job, restart counter is at 3.
Jun 18 21:20:08 raspberrypi systemd[1]: Stopped BlitzBackendAPI.
Jun 18 21:20:08 raspberrypi systemd[1]: Starting BlitzBackendAPI...
Jun 18 21:20:08 raspberrypi blitz.web.api.sh[29441]: # Update Web API CONFIG (Sat 18 Jun 21:20:08 BST 2022)
Jun 18 21:20:08 raspberrypi blitz.web.api.sh[29550]: df: /dev/sda1: No such file or directory
Jun 18 21:20:08 raspberrypi blitz.web.api.sh[29452]: /home/admin/config.scripts/blitz.datadrive.sh: line 438: * 1024: syntax error: operand expected (error token is "* 1024")
Jun 18 21:20:08 raspberrypi blitz.web.api.sh[29441]: # CONFIG Web API Lightning --> CL
Jun 18 21:20:08 raspberrypi blitz.web.api.sh[29582]: xxd: /home/bitcoin/.lightning/bitcoin/client.pem: No such file or directory
Jun 18 21:20:08 raspberrypi blitz.web.api.sh[29583]: xxd: /home/bitcoin/.lightning/bitcoin/client-key.pem: No such file or directory
Jun 18 21:20:08 raspberrypi blitz.web.api.sh[29584]: xxd: /home/bitcoin/.lightning/bitcoin/ca.pem: No such file or directory
Jun 18 21:20:08 raspberrypi blitz.web.api.sh[29441]: # FAIL /home/bitcoin/.lightning/bitcoin/*.pem files maybe missing
Jun 18 21:20:08 raspberrypi blitz.web.api.sh[29441]: # '.env' config updates - blitzapi maybe needs to be restarted
Jun 18 21:20:08 raspberrypi systemd[1]: Started BlitzBackendAPI.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
openomscommented, Jun 19, 2022

Recovered successfully, but blitzapi still failing as the cl-grpc was not installed:

Jun 19 08:29:14 raspberrypi systemd[1]: Started BlitzBackendAPI.
Jun 19 08:29:18 raspberrypi python[179977]: INFO:     Started server process [179977]
Jun 19 08:29:18 raspberrypi python[179977]: INFO:uvicorn.error:Started server process [179977]
Jun 19 08:29:18 raspberrypi python[179977]: INFO:     Waiting for application startup.
Jun 19 08:29:18 raspberrypi python[179977]: INFO:uvicorn.error:Waiting for application startup.
Jun 19 08:29:19 raspberrypi python[179977]: E0619 08:29:19.004978356  179977 ssl_credentials.cc:92]      assertion failed: pem_key_cert_pair->private_key != nullptr
Jun 19 08:29:19 raspberrypi systemd[1]: blitzapi.service: Main process exited, code=killed, status=6/ABRT

needs to be part of the recovery and the blitz api install as well.

After running:

config.scripts/cl-plugin.cln-grpc.sh on mainnet
sudo systemctl restart lightningd

manually the blitzapi and weUI is up.

1reaction
openomscommented, Jun 18, 2022

@rootzoll @fusion44 the blitz_api installation errors are fixed by #3171 and https://github.com/fusion44/blitz_api/pull/119, but will need a new build after they are merged.

(Before the recovery is started the blitzapi.service should not be dependent on the /home/bitcoin/.lightning/bitcoin/ca.pem for two reasons:

  • the symlink to the SDcard is not created yet
  • the cln-grpc plugin is not installed in previous versions)

Good news: the recovery was able to start after a the blitzapi installation was fixed (manually) !

I feel we should word this a bit better: image

Like:

Would you like to start the update and recovery process?

(opened PR https://github.com/cstenglein/raspiblitz-web/pull/357)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Default Swaps and Credit Linked Notes - SEC.gov
A CLN is a fully collateralized credit default swap, in the form of a note issuance by a bankruptcy-remote issuer. Why Collateralize? Eliminates...
Read more >
What Is a Credit-Linked Note (CLN), and How Does It Work?
A credit-linked note is a security with an embedded credit default swap that allows the issuer to transfer specific credit risks to credit...
Read more >
raspiblitz - bytemeta
[v1.8.0rc2] updating a 1.8.0rc1 testnet node with CLN - default password - An error occured: undefined. stn021. stn021 CLOSED · Updated 4 months...
Read more >
Unable to reverse engineer an Sql Server Compact 4.0 database ...
[v1.8.0rc2] updating a 1.8.0rc1 testnet node with CLN - default password - An error occured: undefined, 7, 2022-06-18, 2022-08-24.
Read more >
npm update check failed - node.js - Stack Overflow
run in the terminal "npm install packageName"; if you still get the error, go to the same folder /usr/local/lib/node_modules/ and within the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found