km4ack / pi-build

https://youtube.com/km4ack
338 stars 71 forks source link

gridtracker bug/issues #467

Open SpudGunMan opened 2 years ago

SpudGunMan commented 2 years ago

reported by Steve Johnson K0OIL groups.io message follows>>>

The BAP script goes through multiple efforts to download this mysterious "nwjs-v0.60.0-linux-arm64.tar.gz" file. It seems like with each new BAP package (Gridtracker, Ardop, Vara, etc.) the script tries again to download and install it. It downloads successfully each time but then fails with these errors (shown below also):

mv: cannot stat './usr/docker/dist/nwjs-chromium-ffmpeg-branding/nwjs-v0.60.0-linux-arm64.tar.gz': No such file or directory

dpkg: error processing package nwjs-downloader (--configure):

installed nwjs-downloader package post-installation script subprocess returned error exit status 1

dpkg: dependency problems prevent configuration of gridtracker:

gridtracker depends on nwjs; however:

Package nwjs is not installed.

Package nwjs-downloader which provides nwjs is not configured yet.

SpudGunMan commented 2 years ago

new aarm64 build latest dev3.3.1 can not replicate steps taken

new Pi load up bap load flrig and hamlib load up pat stuff, vara load up grid tracker grid tracker shows installed not is_latest_version. ::issue to resolve as well:: load up airdrop and gun

did not notice any halting or warning errors ... didnt look close didnt notice any info errors either cant replicate on new build

aarm64

SpudGunMan commented 2 years ago

some detection code working as of Nov2-2022

    arm32=$(curl -s https://gridtracker.org/release.html | sed "s/<a href/\\n<a href/g" |sed 's/\"/\"><\/a>\n/2' |grep href |sort |uniq | grep linux-arm32 | sed 's/<a href="//' | sed 's/\"><\/a>//')
    arm64=$(curl -s https://gridtracker.org/release.html | sed "s/<a href/\\n<a href/g" |sed 's/\"/\"><\/a>\n/2' |grep href |sort |uniq | grep linux-arm64 | sed 's/<a href="//' | sed 's/\"><\/a>//')
    nwjs=$(curl -s https://gridtracker.org/release.html | sed "s/<a href/\\n<a href/g" |sed 's/\"/\"><\/a>\n/2' |grep href |sort |uniq | grep all.deb | grep nwjs | sed 's/<a href="//' | sed 's/\"><\/a>//')
    deb=$(curl -s https://gridtracker.org/release.html | sed "s/<a href/\\n<a href/g" |sed 's/\"/\"><\/a>\n/2' |grep href |sort |uniq | grep all.deb | grep gridtracker_  | sed 's/<a href="//' | sed 's/\"><\/a>//')
SpudGunMan commented 2 years ago
NEWVER=$(curl -s https://gridtracker.org/release.html | sed "s/<a href/\\n<a href/g" |sed 's/\"/\"><\/a>\n/2' |grep href |sort |uniq | grep all.deb | grep gridtracker_  | sed 's/<a href="//' | sed 's/\"><\/a>//' | grep -o 'v.*' | cut -f1 -d"-" | sed 's/v//')
SpudGunMan commented 2 years ago

nwjs is a large download to tax on over and over handy block?

    #install nwjs
    nwjs_status=$(dpkg -s nwjs-downloader | grep 'install ok installed')

    if [[ "$nwjs_status" == *"install ok"* ]]; then
        echo -e "INFORMATIONAL: node-webkit Node.js found installed"
    else
        echo -e "INFORMATIONAL: node-webkit Node.js instaling 1.3GB download"
        wget --tries 2 --connect-timeout=60 $nwjs
        sudo dpkg -i nwjs-downloader*
    fi