Sjors / armbian-bitcoin-core

Generates an Armbian image for minicomputers with Bitcoin Core including GUI
MIT License
11 stars 8 forks source link

Installation keeps failing #3

Open LouDnl opened 3 years ago

LouDnl commented 3 years ago

Have been trying to compile this for my OrangePi PC using your guide on medium.com. Unfortunatly the creation of the image keeps failing (I think near the end) on the VirtualBox installation. Have tried several things but no success. Is this repo still working? My command line: ./armbian-bitcoin-core/prepare-build.sh -g j4 -b 32 v0.20.1

I have tried with the '-l c' option but then it fails too. latest error messages are: [ error ] ERROR in function customize_image [ image_helpers.sh:119 ] [ error ] customize-image.sh exited with error (rc:139) [ error ] ERROR in function unmount_on_exit [ image-helpers.sh:66 ] [ error ] debootstrap-ng was interrupted

I know for sure there are errors above that but I cannot seem to scroll up in the virtualbox installation.

LouDnl commented 3 years ago

I logged in through SSH and restarted everything and this is the point it crashes: `[ o.k. ] Calling image customization script [ customize-image.sh ] qemu: uncaught target signal 11 (Segmentation fault) - core dumped /tmp/customize-image.sh: line 26: 31990 Segmentation fault (core dumped) sudo -s <<'EOF'

User with sudo rights and initial password:

useradd bitcoin -m -s /bin/bash --groups sudo echo "bitcoin:bitcoin" | chpasswd echo "bitcoin ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/bitcoin EOF

qemu: uncaught target signal 11 (Segmentation fault) - core dumped /tmp/customize-image.sh: line 38: 31994 Segmentation fault (core dumped) sudo -s <<'EOF' git clone https://github.com/bitcoin/bitcoin.git /usr/local/src/bitcoin cd /usr/local/src/bitcoin git checkout v0.17.0

TODO: check signature commit hash

git clone https://github.com/bitcoin-core/packaging.git /usr/local/src/packaging EOF

qemu: uncaught target signal 11 (Segmentation fault) - core dumped /tmp/customize-image.sh: line 40: 31998 Segmentation fault (core dumped) sudo cp /tmp/overlay/bin/bitcoin* /usr/local/bin qemu: uncaught target signal 11 (Segmentation fault) - core dumped /tmp/customize-image.sh: line 43: 32002 Segmentation fault (core dumped) sudo cp /tmp/overlay/bin/bitcoin-qt /usr/local/bin qemu: uncaught target signal 11 (Segmentation fault) - core dumped /tmp/customize-image.sh: line 63: 32006 Segmentation fault (core dumped) sudo -s <<'EOF' mkdir /home/bitcoin/.bitcoin mkdir /home/bitcoin/.bitcoin/wallets cp /tmp/overlay/bitcoin/bitcoin.conf /home/bitcoin/.bitcoin

TODO: offer choice between mainnet and testnet

echo "testnet=1" >> /home/bitcoin/.bitcoin/bitcoin.conf

mkdir /home/bitcoin/.bitcoin/testnet3

Copy block index and chain state from host:

cp -r /tmp/overlay/bitcoin/chainstate /home/bitcoin/.bitcoin cp -r /tmp/overlay/bitcoin/blocks /home/bitcoin/.bitcoin

cp -r /tmp/overlay/bitcoin/testnet3/chainstate /home/bitcoin/.bitcoin/testnet3

cp -r /tmp/overlay/bitcoin/testnet3/blocks /home/bitcoin/.bitcoin/testnet3

chown -R bitcoin:bitcoin /home/bitcoin/.bitcoin EOF

qemu: uncaught target signal 11 (Segmentation fault) - core dumped /tmp/customize-image.sh: line 86: 32010 Segmentation fault (core dumped) sudo -s <<'EOF' if ! su - bitcoin -c "gpg --keyserver pgp.surfnet.nl --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89" ; then if ! su - bitcoin -c "gpg --keyserver pgp.mit.edu --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89" ; then exit 1 fi fi su - bitcoin -c "gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89" | apt-key add - cat <> /etc/apt/sources.list deb https://deb.torproject.org/torproject.org bionic main deb-src https://deb.torproject.org/torproject.org bionic main EOT apt-get update apt-get install -y tor deb.torproject.org-keyring mkdir -p /usr/share/tor cat <> /usr/share/tor/tor-service-defaults-torrc ControlPort 9051 CookieAuthentication 1 CookieAuthFileGroupReadable 1 EOT usermod -a -G debian-tor bitcoin EOF

Created symlink /etc/systemd/system/multi-user.target.wants/first_boot.service → /etc/systemd/system/first_boot.service. qemu: uncaught target signal 11 (Segmentation fault) - core dumped /tmp/customize-image.sh: line 114: 32020 Segmentation fault (core dumped) sudo -s <<'EOF' apt remove -y nodm apt-get install -y lightdm lightdm-gtk-greeter xfce4 onboard

cp /tmp/overlay/rocket.jpg /usr/share/backgrounds/xfce/rocket.jpg
mkdir -p /home/bitcoin/.config/xfce4/xfconf/xfce-perchannel-xml
cp /tmp/overlay/xfce4-desktop.xml /home/bitcoin/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml
cp /tmp/overlay/lightdm-gtk-greeter.conf /etc/lightdm/lightdm-gtk-greeter.conf
mkdir -p /home/bitcoin/Desktop
mkdir -p /home/bitcoin/.config/autostart
cp /usr/local/src/packaging/debian/bitcoin-qt.desktop /home/bitcoin/Desktop
chmod +x /home/bitcoin/Desktop/bitcoin-qt.desktop
cp /tmp/overlay/keyboard.desktop /home/bitcoin/.config/autostart
chown -R bitcoin:bitcoin /home/bitcoin/Desktop
chown -R bitcoin:bitcoin /home/bitcoin/.config
cp /usr/local/src/bitcoin/share/pixmaps/bitcoin128.png /usr/share/pixmaps
cp /usr/local/src/bitcoin/share/pixmaps/bitcoin256.png /usr/share/pixmaps
cp /tmp/overlay/scripts/first_boot_desktop.service /etc/systemd/system
systemctl enable first_boot_desktop.service
systemctl set-default graphical.target

EOF

[ error ] ERROR in function customize_image [ image-helpers.sh:119 ] [ error ] customize-image.sh exited with error (rc: 139) [ o.k. ] Process terminated [ o.k. ] Unmounting [ /home/armbrian/build/.tmp/rootfs-current-orangepipc-bionic-yes-no/ ] [ error ] ERROR in function unmount_on_exit [ image-helpers.sh:66 ] [ error ] debootstrap-ng was interrupted [ o.k. ] Process terminated `

felipepaes commented 8 months ago

Hi @LouDnl sorry for pinging you 3 years later, but I would like to know if you figured it out.

Orange pi is much easier to access where I live, compared to raspberry, that's why I'm interested in this setup.

LouDnl commented 8 months ago

Oh wow, I cant even remember trying to build this 3 years ago. I gave away my OrangePi in favor of RPi.