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.

Install on Ubuntu/Debian-Laptop/Desktop (x86 install)

See original GitHub issue

_Originally posted by @mrsieb in https://github.com/rootzoll/raspiblitz/issues/2104#issuecomment-946433588_

Summarize installing Raspiblitz on a Notebook (Asus UX303LNB) *12 GB RAM *120GB M2 Flash (/dev/sdb) *2TB SSD (/dev/sda)

Procedure like discriped here : https://github.com/rootzoll/raspiblitz/issues/2104#issuecomment-917444238

Well it almost work perfect a couple of small issues i run into are:

Dedecting the correct Disk for the blockchain. The disk must have a partion , unformated disk get not regnognized a install dialog to choose the disk would be helpfull.

On my Notebook after the disk ( in my case sda) is correct dedected a HDD Lost is dedected by bootstrap.sh during the formating phase and a reboot is executed and end in a error loop. Increase the sleep time in the loop helps to get over this. https://github.com/rootzoll/raspiblitz/blob/4cf02caa43f6780139c4c924a9783d087559c47f/home.admin/_bootstrap.sh#L533

Sometimes the build_sd.sh stops because of a timeout during download bitcoin core, just restarting the script and run again works.

Tor is activatet but not running after a fresh install, modifing the internet.tor.sh file solve this issue if this is a permanent solution i am not sure. https://github.com/rootzoll/raspiblitz/issues/2531#issuecomment-917686278 https://github.com/rootzoll/raspiblitz/blob/4cf02caa43f6780139c4c924a9783d087559c47f/home.admin/config.scripts/internet.tor.sh#L227-L230

Modify to:
[Service]
ReadWriteDirectories=-/mnt/hdd/tor
AppArmorProfile=

Fresh install of c-lightning works fine, a fresh install of LND stops the provisioning.sh durring creation of a new wallet. https://github.com/rootzoll/raspiblitz/blob/v1.7/home.admin/config.scripts/lnd.initwallet.py

get an error, because the grpcio is not generated i did it manually like in the readme here: https://github.com/rootzoll/raspiblitz/tree/v1.7/home.admin/config.scripts/lndlibs

sudo python3 -m pip install grpcio grpcio-tools googleapis-common-protos pathlib2

After this a wallet can be generated.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:12

github_iconTop GitHub Comments

3reactions
mrsiebcommented, Oct 26, 2021
Okt 26 16:27:46 duck-UX303LNB _background.sh[858]: CHECK FOR END OF IBD --> reduce RAM, check TOR and restart bitcoind
Okt 26 16:27:46 duck-UX303LNB sudo[73581]:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/rm /home/admin/selfsync.flag
Okt 26 16:27:46 duck-UX303LNB sudo[73581]: pam_unix(sudo:session): session opened for user root by (uid=0)
Okt 26 16:27:46 duck-UX303LNB _background.sh[73582]: rm: cannot remove '/home/admin/selfsync.flag': No such file or directory
Okt 26 16:27:46 duck-UX303LNB sudo[73581]: pam_unix(sudo:session): session closed for user root
Okt 26 16:27:46 duck-UX303LNB sudo[73583]:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/systemctl stop bitcoind

So what i found now is watching the background process the stop and restart seems to be triggered by _background.sh this is definitiv related to a fresh sync an flag checking, there is also mentioned the 50syncHDD.sh script which is not existing anymore in 1.7.1

 ####################################################
  # CHECK FOR END OF IBD (self validation)
  ####################################################

  # check every 60secs
  recheckIBD=$((($counter % 60)+1))
  if [ ${recheckIBD} -eq 1 ]; then
    # check if flag exists (got created on 50syncHDD.sh)
    flagExists=$(ls /mnt/hdd/${network}/blocks/selfsync.flag 2>/dev/null | grep -c "selfsync.flag")
    if [ ${flagExists} -eq 1 ]; then
      source <(/home/admin/config.scripts/network.aliases.sh getvars)
      finishedIBD=$($bitcoincli_alias getblockchaininfo | grep "initialblockdownload" | grep -c "false")
      if [ ${finishedIBD} -eq 1 ]; then

        echo "CHECK FOR END OF IBD --> reduce RAM, check TOR and restart ${network}d"

        # remove flag
        sudo rm /home/admin/selfsync.flag

        # stop bitcoind
        sudo systemctl stop ${network}d

        # set dbcache back to normal (to give room for other apps)
        kbSizeRAM=$(sudo cat /proc/meminfo | grep "MemTotal" | sed 's/[^0-9]*//g')
        if [ ${kbSizeRAM} -gt 1500000 ]; then
          echo "Detected RAM >1GB --> optimizing ${network}.conf"
          sudo sed -i "s/^dbcache=.*/dbcache=512/g" /mnt/hdd/${network}/${network}.conf
        else
          echo "Detected RAM 1GB --> optimizing ${network}.conf"
          sudo sed -i "s/^dbcache=.*/dbcache=128/g" /mnt/hdd/${network}/${network}.conf
        fi

        # if TOR was activated during setup make sure bitcoin runs behind TOR latest from now on
        if [ "${runBehindTor}" = "on" ]; then
          echo "TOR is ON -> make sure bitcoin is running behind TOR after IBD"
          sudo /home/admin/config.scripts/internet.tor.sh btcconf-on
        else
           echo "TOR is OFF after IBD"
        fi

        # restart bitcoind
        sudo systemctl start ${network}d

      fi
    fi
  fi

  ###############################
  # Prepare next loop
  ###############################
1reaction
mrsiebcommented, Nov 10, 2021

@mrsieb is this solved by running patch to update to the latest commit in v1.7?

yeah it is!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Download Ubuntu Desktop
Follow this tutorial to install Ubuntu Desktop on your laptop or PC. ... Set up a mini-cloud on your Linux, Windows, or macOS...
Read more >
InstallingDebianOn - Debian Wiki
Official Documentation. Installation Guide, take 5 minutes to: Read the table of contents. Read Installation ...
Read more >
How to Download and Install Linux (Ubuntu) on Windows PC
1. Download the .iso or the OS files on your computer from this link. 2. Download free software like ‘Universal USB installer to...
Read more >
How to Easily Install Debian on Your Computer - MakeUseOf
The first step to installing Debian is to download the installation image for your machine. By default, clicking the download link will download ......
Read more >
how can I install Ubuntu on my old computer [duplicate]
There is a workaround – before Linux kernel is loaded (purple screen) you have to press ESC, select Install Ubuntu, press F6, ESC...
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