All done! Webinterface available at http://192.168.124.104/tar1090
--------------
--------------
-- Logs begin at Thu 2019-02-14 21:11:58 AEDT, end at Sun 2022-09-11 13:06:36 AEST. --
Aug 11 09:55:18 raspi4-2 systemd[1]: Started readsb ADS-B receiver.
Aug 11 09:55:18 raspi4-2 readsb[503]: Thu Aug 11 09:55:18 2022 AEST readsb starting up.
Aug 11 09:55:18 raspi4-2 readsb[503]: readsb version: wiedehopf git: b1f77e7 (committed: Sun Jul 3 06:46:11 2022 0200)
Aug 11 09:55:18 raspi4-2 readsb[503]: Using lat: -38.29xx, lon: 144.39xx
Aug 11 09:55:18 raspi4-2 readsb[503]: 30002: Raw TCP output port 30005: Beast TCP output port
Aug 11 09:55:18 raspi4-2 readsb[503]: 30003: SBS TCP output ALL port 30004: Beast TCP input port
Aug 11 09:55:18 raspi4-2 readsb[503]: 30104: Beast TCP input port
Aug 12 06:40:55 raspi4-2 readsb[503]: Beast TCP output: Couldn't flush data for 1.00s (Insufficient bandwidth?): disconnecting: 192.168.124.197 port 33738 (fd 24, SendQ 3812)
Sep 11 13:06:26 raspi4-2 readsb[503]: Sun Sep 11 13:06:26 2022 AEST Caught SIGTERM, shutting down...
Sep 11 13:06:26 raspi4-2 systemd[1]: Stopping readsb ADS-B receiver...
Sep 11 13:06:26 raspi4-2 readsb[503]: Sun Sep 11 13:06:26 2022 AEST Normal exit.
Sep 11 13:06:26 raspi4-2 systemd[1]: readsb.service: Succeeded.
Sep 11 13:06:26 raspi4-2 systemd[1]: Stopped readsb ADS-B receiver.
Sep 11 13:06:26 raspi4-2 systemd[1]: Started readsb ADS-B receiver.
Sep 11 13:06:26 raspi4-2 readsb[11399]: Sun Sep 11 13:06:26 2022 AEST readsb starting up.
Sep 11 13:06:26 raspi4-2 readsb[11399]: readsb version: wiedehopf git: d809bd8 (committed: Wed Sep 7 13:47:41 2022 0200)
Sep 11 13:06:26 raspi4-2 readsb[11399]: Using lat: -38.29xx, lon: 144.39xx
Sep 11 13:06:26 raspi4-2 readsb[11399]: 30002: Raw TCP output port
Sep 11 13:06:26 raspi4-2 readsb[11399]: 30005: Beast TCP output port
Sep 11 13:06:26 raspi4-2 readsb[11399]: 30003: SBS TCP output ALL port
Sep 11 13:06:26 raspi4-2 readsb[11399]: 30004: Beast TCP input port
Sep 11 13:06:26 raspi4-2 readsb[11399]: 30104: Beast TCP input port
Sep 11 13:06:26 raspi4-2 systemd[1]: readsb.service: Main process exited, code=killed, status=7/BUS
Sep 11 13:06:26 raspi4-2 systemd[1]: readsb.service: Failed with result 'signal'.
--------------
--------------
ERROR: readsb service didn't start.
common issues: SDR not plugged in.
the webinterface will show an error until readsb is running!
If you can't fix the issue:
Open a github issue or contact wiedehopf on the adsbexchange discord and post the above 30 lines of log!
This was on a 4GB Raspi4B running a fully updated version of RasPi OS Buster (32 bit applications on a 64 bit kernel) and the latest airspy_adsb fed from an Airspy Mini.
Rebooting, running the readsb update script again and power cycling the RasPi all failed to clear the problem.
I resolved the problem by swapping the SD card with one that had the latest 64 bit version of Bullseye installed plus readsb, tar1090 and nginx. (I had been meaning to do this for a while, but the RasPi is mounted on the aerial pole so changing the card involves ladders and screwdrivers to remove it from its weatherproof enclosure.)
I donāt need a fix now, but am posting this in case it isnāt something that was unique to my setup, and anyone else runs into the same problem.
The 4GB Raspi 4B with the new Bullseye SD card is back up on the sand dune attached to the antenna pole, so I canāt easily test the setup that had the error.
I ran the commands on that RasPi anyway. They worked without error.
I have the old SD card running Buster, etc. in a spare 1GB Raspi 4B (I still need to transfer the graphs1090 history across), so I ran the same command on it as well:
All done! Webinterface available at http://192.168.124.197/tar1090
--------------
--------------
Sep 12 06:59:19 raspi4-2 readsb[5553]: Using lat: -38.2962, lon: 144.3911
Sep 12 06:59:19 raspi4-2 readsb[5553]: 30002: Raw TCP output port
Sep 12 06:59:19 raspi4-2 readsb[5553]: 30005: Beast TCP output port
Sep 12 06:59:19 raspi4-2 readsb[5553]: 30003: SBS TCP output ALL port
Sep 12 06:59:19 raspi4-2 readsb[5553]: 30004: Beast TCP input port
Sep 12 06:59:19 raspi4-2 readsb[5553]: 30104: Beast TCP input port
Sep 12 06:59:19 raspi4-2 systemd[1]: readsb.service: Main process exited, code=killed, status=7/BUS
Sep 12 06:59:19 raspi4-2 systemd[1]: readsb.service: Failed with result 'signal'.
Sep 12 06:59:23 raspi4-2 systemd[1]: Stopped readsb ADS-B receiver.
Sep 12 06:59:23 raspi4-2 systemd[1]: Started readsb ADS-B receiver.
Sep 12 06:59:23 raspi4-2 readsb[5626]: Mon Sep 12 06:59:23 2022 AEST readsb starting up.
Sep 12 06:59:23 raspi4-2 readsb[5626]: readsb version: wiedehopf git: d809bd8 (committed: Wed Sep 7 13:47:41 2022 0200)
Sep 12 06:59:23 raspi4-2 readsb[5626]: Using lat: -38.2962, lon: 144.3911
Sep 12 06:59:23 raspi4-2 readsb[5626]: 30002: Raw TCP output port
Sep 12 06:59:23 raspi4-2 readsb[5626]: 30005: Beast TCP output port
Sep 12 06:59:23 raspi4-2 readsb[5626]: 30003: SBS TCP output ALL port
Sep 12 06:59:23 raspi4-2 readsb[5626]: 30004: Beast TCP input port
Sep 12 06:59:23 raspi4-2 readsb[5626]: 30104: Beast TCP input port
Sep 12 06:59:23 raspi4-2 readsb[5626]: AddressSanitizer:DEADLYSIGNAL
Sep 12 06:59:23 raspi4-2 readsb[5626]: =================================================================
Sep 12 06:59:23 raspi4-2 readsb[5626]: ==5626==ERROR: AddressSanitizer: BUS on unknown address 0xf4b0dd01 (pc 0xf76fc30c bp 0x00000001 sp 0xf12fd5c0 T5)
Sep 12 06:59:24 raspi4-2 readsb[5626]: #0 0xf76fc30b (/usr/lib/arm-linux-gnueabihf/libzstd.so.1+0x1d30b)
Sep 12 06:59:24 raspi4-2 readsb[5626]: AddressSanitizer can not provide additional info.
Sep 12 06:59:24 raspi4-2 readsb[5626]: SUMMARY: AddressSanitizer: BUS (/usr/lib/arm-linux-gnueabihf/libzstd.so.1+0x1d30b)
Sep 12 06:59:24 raspi4-2 readsb[5626]: Thread T5 created by T0 here:
Sep 12 06:59:24 raspi4-2 readsb[5626]: #0 0x4a127 in __interceptor_pthread_create (/usr/bin/readsb+0x4a127)
Sep 12 06:59:24 raspi4-2 readsb[5626]: #1 0x1b7cdb in threadCreate /usr/local/share/adsb-wiki/readsb-install/git/util.c:262
Sep 12 06:59:24 raspi4-2 readsb[5626]: ==5626==ABORTING
Sep 12 06:59:24 raspi4-2 systemd[1]: readsb.service: Main process exited, code=exited, status=1/FAILURE
Sep 12 06:59:24 raspi4-2 systemd[1]: readsb.service: Failed with result 'exit-code'.
--------------
--------------
ERROR: readsb service didn't start.
common issues: SDR not plugged in.
the webinterface will show an error until readsb is running!
If you can't fix the issue:
Open a github issue or contact wiedehopf on the adsbexchange discord and post the above 30 lines of log!
The issue is that the error is with a library and itās pretty unspecific.
Not sure how to debug that ā¦ i believe it normally works fine on jessie / buster.
I suppose you could try reinstalling libzstd1
@abcd567 my OS with the problem is ānon standardā it runs the buster 64 bit kernel, but all the packages are 32 bit:
jrg@raspi4-2:~ $ uname -a
Linux raspi4-2 5.10.103-v8+ #1529 SMP PREEMPT Tue Mar 8 12:26:46 GMT 2022 aarch64 GNU/Linux
To enable this you need to run rbi-update. You can then swap from 32 bit to 64 bit by editing the /boot/config.txt line and rebooting:
change arm_64bit=0 to arm_64bit=1 (or vice versa)
In theory running the 64 bit kernel gave slightly better performanceā¦
Anyway, it is not an issue now as I have moved to 64 bit bullseye, which as you point out should run 32 bit (armhf) packages as a foreign architecture by default.
However, I discovered that installing feeders on 64bit bullseye isnāt as simple as that:
Can I add my thank to all the others who benefit from your contributions to this and other forums.
Plane Finder will not install - I got the error. armhf depends on libc6 (>= 2.13-28)
I managed to fix this by running apt --fix-broken install
ADSB Exchange feeder installation had no problems - the only issue was that I needed to do bit of digging to work out how to transfer my feeder ID to the new install.
Postscript - The above helped me identify the readsb update error. See post to @wiedehopf below.
Iād try and fix the issue, but itās not with readsb itself but rather a library.
And i gotta admit iām not too familiar with the library stuff, it gets pretty complicated quickly.
This reads very very much the same.
Ok ā¦ now in case itās an issue of the memory passed to the library iāve made a small change.
Can you try again?
No need to run the debug thing ā¦ itās not telling much.
My problem with pfclient was that one of the armhf libraries was missing from my bullseye installation:
2022-09-12 12:55:40 (1.31 MB/s) - āpfclient_5.0.161_armhf.debā saved [1566910/1566910]
jrg@raspi4-3:~ $ sudo dpkg -i pfclient_5.0.161_armhf.deb
Selecting previously unselected package pfclient:armhf.
(Reading database ... 41210 files and directories currently installed.)
Preparing to unpack pfclient_5.0.161_armhf.deb ...
Unpacking pfclient:armhf (5.0.161) ...
dpkg: dependency problems prevent configuration of pfclient:armhf:
pfclient:armhf depends on libc6 (>= 2.13-28).
dpkg: error processing package pfclient:armhf (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
pfclient:armhf
sudo apt --fix-broken install was needed to complete the install and configuration of pfclient
jrg@raspi4-3:~ $ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
gcc-10-base:armhf krb5-locales libc6:armhf libcom-err2:armhf libcrypt1:armhf libgcc-s1:armhf libgssapi-krb5-2:armhf libidn2-0:armhf libk5crypto3:armhf libkeyutils1:armhf libkrb5-3:armhf
libkrb5support0:armhf libnsl2:armhf libnss-nis:armhf libnss-nisplus:armhf libssl1.1:armhf libtirpc3:armhf libunistring2:armhf
Suggested packages:
glibc-doc:armhf locales:armhf krb5-doc:armhf krb5-user:armhf
The following NEW packages will be installed:
gcc-10-base:armhf krb5-locales libc6:armhf libcom-err2:armhf libcrypt1:armhf libgcc-s1:armhf libgssapi-krb5-2:armhf libidn2-0:armhf libk5crypto3:armhf libkeyutils1:armhf libkrb5-3:armhf
libkrb5support0:armhf libnsl2:armhf libnss-nis:armhf libnss-nisplus:armhf libssl1.1:armhf libtirpc3:armhf libunistring2:armhf
0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 5,350 kB of archives.
After this operation, 17.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
I couldnāt find any references to this problem in relation to pfclient, but ran across the apt --fix-broken install command while searching for a solution and gave it a try on spec.
Anyhow iāll probably file this under ālibrary compiled for unaligned access but 64 bit kernel wonāt allow thatā.
Besides not using the library, not much i can do.
Thanks for checking all the stuff.
But yeah i didnāt think it would help, issue is inside the library i have no influence on it.
That library just wonāt run with a 64bit kernel. The way itās been compiled is incompatible.
(From digging through related comments in github:)
The point here is that the default gcc-8 compiler pretends that the system can handle unaligned accesses (which the 64bit kernel cannot)
womp womp. that seems kinda terrible.
Then again:
This is a minor hotfix for v1.4.7, where an internal buffer unalignment bug was detected by @bmwiedemann .
The issue is of no consequence for x64 and arm64 targets, but could become a problem for cpus relying on strict alignment, such as mips or older arm designs.