mynodebtc / mynode

The easiest way to run Bitcoin and Lightning!
Other
638 stars 145 forks source link

403 - Forbidden when installing under debian with the script #870

Open thmsmullee opened 4 weeks ago

thmsmullee commented 4 weeks ago

I have an Odroid HC4 (aarch64) with Debian 11 (10 doesnt work on it)

wget https://raw.githubusercontent.com/mynodebtc/mynode/latest_release/setup/setup_device.sh -O mynode_setup.sh sudo bash ./mynode_setup.sh online

It gets to:

+TARBALL= +wget https://mynodebtc.com/device/upgrade_images/ -0 /tmp/rootfs.tar.gz ....connecting to mynodebtc.com ... .....403 forbidden

Seems there is no image for aarch64 !?

thmsmullee commented 4 weeks ago

I altered the setup_device.sh, so there is no query which type of device one has, just put in:

IS_RASPI=1
IS_RASPI4=1
IS_32_BIT=0
IS_ARM64=1
IS_32_BIT=0
IS_64_BIT=1

Now it installs flawlessly until the bitcoin installation. There the script says: "Unknown Bitcoin version".. So, somewhere the script lost that IS_RASPI=1 If I put IS_RASPI=1 before the bitcoin installation block it works fine

#IS_RASPI=1
ARCH="UNKNOWN"
if [ $IS_RASPI = 1 ]; then
    ARCH="arm-linux-gnueabihf"
    if [ $IS_ARM64 = 1 ]; then
        ARCH="aarch64-linux-gnu"
    fi

elif [ $IS_ROCK64 = 1 ] || [ $IS_ROCKPRO64 = 1 ] || [ $IS_ROCKPI4 = 1 ]; then
    ARCH="aarch64-linux-gnu"
elif [ $IS_X86 = 1 ]; then
    ARCH="x86_64-linux-gnu"
else
    echo "Unknown Bitcoin Version"
    exit 1
fi
thmsmullee commented 4 weeks ago

Next problem was this line:

gpg --verify SHA256SUMS.asc SHA256SUMS |& grep "gpg: Good signature"

The script just ended with "Good signature". After removing this line the script moved on. How to fix this behavior ?

thmsmullee commented 4 weeks ago

The script ended and I can log in through the browser into mynode, but now it says: Looking for Drive Please attach a drive to your MyNode

tehelsper commented 3 weeks ago

You would need to attach a drive. If one is attached, the main mynode log on the status page may help. We don't support the ODROID HC4 officially, but it sounds like you may have gotten it to run as a RPi 4/5. Since there are some raspi specifics, it may be better to make it run as a rockpro64 or rockpi4.

thmsmullee commented 3 weeks ago

You would need to attach a drive. If one is attached, the main mynode log on the status page may help. We don't support the ODROID HC4 officially, but it sounds like you may have gotten it to run as a RPi 4/5. Since there are some raspi specifics, it may be better to make it run as a rockpro64 or rockpi4.

Thanks, I will try that someday. In the meantime I ordered a raspery 4 and I download the blockchain on my computer onto the external hard drive, which I will attach later to the rasperry pi Does this work ? THANKS

tehelsper commented 1 week ago

It could, but you'd have to copy it to a specific location. This guide may help.

https://mynodebtc.github.io/bitcoin/data-from-other-node.html