ketilmo / balena-ads-b

ADS-B Flight Tracker running on balena with support for FlightAware, Flightradar24, PlaneFinder, OpenSky Network, RadarBox, ADSB Exchange, Wingbits, and UAT.
MIT License
150 stars 40 forks source link

ADS-B service containers will not start #84

Closed peteoheat closed 3 months ago

drhanke commented 1 year ago

The most common when services keep looping and not start is when the device variables for LAT, LON, ALT, TZ and all services specifics are not in valid format or not present.

Have you done all steps as per the documentation on each service? Or as you already have been a sharer you probably already have keys for each service. You just need to add them, you can simply copy them out of you old installation.

Please don´t try to fix everything at once, start to check if your device variables are present. Start with LAT, LON, ALT and TZ. Then make sure dump1090-fa starts.

For each service you need the following device variables for it to start up: dump1090-fa LAT, LON, ALT, TZ

The following services requires LAT, LON, ALT, TZ (global values can be reused no need to add per service) and their own keys as specified: adsb-exchange, ADSB_EXCHANGE_SITENAME and ADSB_EXCHANGE_UUID fre24feed, FR24KEY planefinder, PLANEFINDER_SHARECODE opensky, OPENSKY_USERNAME flightaware, FLIGHTAWARE_FEEDER_ID radarbox, RADARBOX_KEY

peteoheat commented 1 year ago

So I've tried again with this. I created a new fleet, and added a new device to it by flashing an SD card. Then from the CLI I recloned the github repository and did a balena push to my new fleet and everything installed ok.

I previous had not set TZ in the device variables, this this time I set LAT, LON, ALT and TZ and rebooted. I got to the stage where I have services in the following states:

Running services: dump1090-fa (seeing gain messages etc in the logs) dump978-fa (Even though it says it's disabled in the logs) frontend-proxy kiosk (but no screen is attached) wifi connect.

Everything else is 'Installed'

I added the device variable FLIGHTAWARE_FEEDER_IF using my ID for my established feeder (which is now switched off). I see a log message saying 'starting service piaware...' but then nothing further in the logs.

peteoheat commented 1 year ago

Trying some more self diagnosis here

With only LAT, LON, ALT and TZ variables defined. then dump109-fa service starts ok. `[Logs] [2023-06-06T15:10:03.052Z] [dump1090-fa] Verifying settings... [Logs] [2023-06-06T15:10:03.053Z] [dump1090-fa] [Logs] [2023-06-06T15:10:03.052Z] [dump1090-fa] Verifying settings... [Logs] [2023-06-06T15:10:03.053Z] [dump1090-fa] [Logs] [2023-06-06T15:10:05.087Z] [dump1090-fa] Receiver latitude is set: 51.[HIDDEN] [Logs] [2023-06-06T15:10:05.088Z] [dump1090-fa] Receiver longitude is set: 0.[HIDDEN] [Logs] [2023-06-06T15:10:05.089Z] [dump1090-fa] [Logs] [2023-06-06T15:10:05.089Z] [dump1090-fa] Settings verified, proceeding with startup. [Logs] [2023-06-06T15:10:05.090Z] [dump1090-fa] [Logs] [2023-06-06T15:10:05.090Z] [dump1090-fa] Gain is not specified. Will enable Adaptive Dynamic Range. [Logs] [2023-06-06T15:10:05.091Z] [dump1090-fa] Enabling Adaptive Dynamic Range. [Logs] [2023-06-06T15:10:05.846Z] Installing service 'kiosk sha256:70efe4485b2d0bb6c6656e927092dda2c86b79980b47b8dd180648a02e564e65' [Logs] [2023-06-06T15:10:05.438Z] [dump1090-fa] Tue Jun 6 15:10:05 2023 GMT dump1090-fa 8.2 starting up. [Logs] [2023-06-06T15:10:05.588Z] [dump1090-fa] rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000) [Logs] [2023-06-06T15:10:05.856Z] [dump1090-fa] Detached kernel driver [Logs] [2023-06-06T15:10:05.925Z] Installing service 'piaware sha256:d9bc6d87bd39d17459824cf19037032f265164f407401b75f327feceb27062fd' [Logs] [2023-06-06T15:10:06.003Z] Installing service 'fr24feed sha256:75344ab6fee8cb04424c963e1999c241595724a9bc08fd5e4203e9ccf1d135e5' [Logs] [2023-06-06T15:10:06.054Z] Installing service 'planefinder sha256:25902deb14f9f99e23a63871b72ef6b8ee10795541c36ca3a6dc090f16115f0c' [Logs] [2023-06-06T15:10:06.129Z] Installing service 'opensky-network sha256:126347575a874b73d5b30587c740b692b022d23e13e6ba951240f1a9028915ed' [Logs] [2023-06-06T15:10:06.116Z] [dump1090-fa] Found Rafael Micro R820T tuner [Logs] [2023-06-06T15:10:06.293Z] Installing service 'radarbox sha256:712b6ad10c220f8346b87d44fae4afe147dc20a71cb8eb375cada52987785c85' [Logs] [2023-06-06T15:10:06.421Z] Installing service 'frontend-proxy sha256:f119c4cb6deee5cded6bb6b872ab47417f53500a228defe6bdc40fe20167cfd5' [Logs] [2023-06-06T15:10:06.338Z] [dump1090-fa] rtlsdr: tuner gain set to 49.6 dB (gain step 28) [Logs] [2023-06-06T15:10:06.513Z] Installing service 'adsb-exchange sha256:78c5122f57dcbd56e790e0c0dd611a82d4df7525f1e7fd674e6d16145137c77f' [Logs] [2023-06-06T15:10:06.560Z] Installing service 'dump978-fa sha256:eff01a2050501f671681fc2b6d2fd46f589991524a7b054bc38e4fa1872ac8d9' [Logs] [2023-06-06T15:10:06.609Z] Installing service 'wifi-connect sha256:e94cd084778c64ce5ef46255792ce046945d0cb5acf9f810f9a6f0d570f0d3ab' [Logs] [2023-06-06T15:10:06.673Z] [dump1090-fa] adaptive: using 50% duty cycle [Logs] [2023-06-06T15:10:06.685Z] [dump1090-fa] adaptive: enabled adaptive gain control with gain limits 0.0dB (step 0) .. 58.6dB (step 29) [Logs] [2023-06-06T15:10:07.291Z] [dump1090-fa] adaptive: enabled dynamic range control, target dynamic range 30.0dB [Logs] [2023-06-06T15:10:07.315Z] [dump1090-fa] Allocating 4 zero-copy buffers [Logs] [2023-06-06T15:10:08.595Z] Installed service 'fr24feed sha256:75344ab6fee8cb04424c963e1999c241595724a9bc08fd5e4203e9ccf1d135e5' [Logs] [2023-06-06T15:10:08.599Z] Starting service 'fr24feed sha256:75344ab6fee8cb04424c963e1999c241595724a9bc08fd5e4203e9ccf1d135e5' [Logs] [2023-06-06T15:10:08.619Z] Installed service 'piaware sha256:d9bc6d87bd39d17459824cf19037032f265164f407401b75f327feceb27062fd' [Logs] [2023-06-06T15:10:08.671Z] Starting service 'piaware sha256:d9bc6d87bd39d17459824cf19037032f265164f407401b75f327feceb27062fd' [Logs] [2023-06-06T15:10:08.686Z] Installed service 'planefinder sha256:25902deb14f9f99e23a63871b72ef6b8ee10795541c36ca3a6dc090f16115f0c' [Logs] [2023-06-06T15:10:08.691Z] Starting service 'planefinder sha256:25902deb14f9f99e23a63871b72ef6b8ee10795541c36ca3a6dc090f16115f0c' [Logs] [2023-06-06T15:10:09.433Z] Installed service 'dump978-fa sha256:eff01a2050501f671681fc2b6d2fd46f589991524a7b054bc38e4fa1872ac8d9' [Logs] [2023-06-06T15:10:09.436Z] Starting service 'dump978-fa sha256:eff01a2050501f671681fc2b6d2fd46f589991524a7b054bc38e4fa1872ac8d9' [Logs] [2023-06-06T15:10:09.491Z] Installed service 'frontend-proxy sha256:f119c4cb6deee5cded6bb6b872ab47417f53500a228defe6bdc40fe20167cfd5' [Logs] [2023-06-06T15:10:09.494Z] Starting service 'frontend-proxy sha256:f119c4cb6deee5cded6bb6b872ab47417f53500a228defe6bdc40fe20167cfd5' [Logs] [2023-06-06T15:10:09.538Z] Installed service 'wifi-connect sha256:e94cd084778c64ce5ef46255792ce046945d0cb5acf9f810f9a6f0d570f0d3ab' [Logs] [2023-06-06T15:10:09.563Z] Starting service 'wifi-connect sha256:e94cd084778c64ce5ef46255792ce046945d0cb5acf9f810f9a6f0d570f0d3ab' [Logs] [2023-06-06T15:10:09.585Z] Installed service 'opensky-network sha256:126347575a874b73d5b30587c740b692b022d23e13e6ba951240f1a9028915ed' [Logs] [2023-06-06T15:10:09.588Z] Starting service 'opensky-network sha256:126347575a874b73d5b30587c740b692b022d23e13e6ba951240f1a9028915ed' [Logs] [2023-06-06T15:10:09.656Z] Installed service 'radarbox sha256:712b6ad10c220f8346b87d44fae4afe147dc20a71cb8eb375cada52987785c85' [Logs] [2023-06-06T15:10:09.665Z] Starting service 'radarbox sha256:712b6ad10c220f8346b87d44fae4afe147dc20a71cb8eb375cada52987785c85' [Logs] [2023-06-06T15:10:09.738Z] Installed service 'kiosk sha256:70efe4485b2d0bb6c6656e927092dda2c86b79980b47b8dd180648a02e564e65' [Logs] [2023-06-06T15:10:09.741Z] Starting service 'kiosk sha256:70efe4485b2d0bb6c6656e927092dda2c86b79980b47b8dd180648a02e564e65' [Logs] [2023-06-06T15:10:10.081Z] Installed service 'adsb-exchange sha256:78c5122f57dcbd56e790e0c0dd611a82d4df7525f1e7fd674e6d16145137c77f' [Logs] [2023-06-06T15:10:10.084Z] Starting service 'adsb-exchange sha256:78c5122f57dcbd56e790e0c0dd611a82d4df7525f1e7fd674e6d16145137c77f'``

When I add in any variable to feed to any ADS-B service. I then get these kiosk errors and dump1090-fa fails to start.

`[Logs] [2023-06-06T15:20:30.840Z] [wifi-connect] Your device is already connected to the internet. [Logs] [2023-06-06T15:20:30.848Z] [wifi-connect] Skipping setting up Wifi-Connect Access Point. Will check again in 120 seconds [Logs] [2023-06-06T15:20:32.059Z] Started service 'kiosk sha256:70efe4485b2d0bb6c6656e927092dda2c86b79980b47b8dd180648a02e564e65' [Logs] [2023-06-06T15:20:33.339Z] Started service 'dump978-fa sha256:eff01a2050501f671681fc2b6d2fd46f589991524a7b054bc38e4fa1872ac8d9' [Logs] [2023-06-06T15:20:33.355Z] [dump978-fa] dump978-fa is not enabled. [Logs] [2023-06-06T15:20:33.355Z] [dump978-fa] dump978-fa is not enabled. [Logs] [2023-06-06T15:20:34.809Z] [kiosk] user.max_user_namespaces = 10000 [Logs] [2023-06-06T15:20:35.657Z] [kiosk] umount: /dev: target is busy. [Logs] [2023-06-06T15:20:35.739Z] [kiosk] mount: /sys/kernel/debug: nodev already mounted on /sys/kernel/debug. [Logs] [2023-06-06T15:20:37.951Z] Installing service 'dump1090-fa sha256:e1d12a46689cd776bc59f66cf60d2a2248189eb734b60dc604baf5d3756464a1' [Logs] [2023-06-06T15:20:38.682Z] [kiosk] Running balena base image entrypoint... [Logs] [2023-06-06T15:20:39.671Z] Installed service 'dump1090-fa sha256:e1d12a46689cd776bc59f66cf60d2a2248189eb734b60dc604baf5d3756464a1' [Logs] [2023-06-06T15:20:39.676Z] Starting service 'dump1090-fa sha256:e1d12a46689cd776bc59f66cf60d2a2248189eb734b60dc604baf5d3756464a1' [Logs] [2023-06-06T15:20:44.708Z] [frontend-proxy] INFO[0012] Configuration loaded from flags. [Logs] [2023-06-06T15:20:45.866Z] [kiosk] setting xserver-xorg-legacy/xwrapper/allowed_users from configuration file [Logs] [2023-06-06T15:20:46.429Z] [kiosk] balenaBlocks browser version: 2.4.5 [Logs] [2023-06-06T15:20:46.430Z] [kiosk] Setting CPU Scaling Governor to 'performance' [Logs] [2023-06-06T15:20:46.509Z] [kiosk] Disabling cursor [Logs] [2023-06-06T15:20:46.570Z] [kiosk] Checking GPU memory [Logs] [2023-06-06T15:20:47.283Z] [kiosk] xauth: file /home/chromium/.Xauthority does not exist [Logs] [2023-06-06T15:20:47.325Z] [kiosk] [Logs] [2023-06-06T15:20:47.670Z] [kiosk] [Logs] [2023-06-06T15:20:47.671Z] [kiosk] X.Org X Server 1.20.4 [Logs] [2023-06-06T15:20:47.671Z] [kiosk] X Protocol Version 11, Revision 0 [Logs] [2023-06-06T15:20:47.672Z] [kiosk] Build Operating System: Linux 5.4.0-72-generic armv8l Raspbian [Logs] [2023-06-06T15:20:47.672Z] [kiosk] Current Operating System: Linux 601492c9c90e 5.15.34-v7 #1 SMP Tue Apr 19 19:21:26 UTC 2022 armv7l [Logs] [2023-06-06T15:20:47.672Z] [kiosk] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi =1 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000 dwc_otg.lpm_enable=0 rootfstyp e=ext4 rootwait dwc_otg.lpm_enable=0 rootwait vt.global_cursor_default=0 console=null cgroup_enable=memory root=UUID=ba1eadef-2e78-4535-acfd-930bfdc0c318 r ootwait [Logs] [2023-06-06T15:20:47.673Z] [kiosk] Build Date: 04 January 2022 10:05:34AM [Logs] [2023-06-06T15:20:47.673Z] [kiosk] xorg-server 2:1.20.4-1+rpt4+deb10u4 (https://www.debian.org/support) [Logs] [2023-06-06T15:20:47.673Z] [kiosk] Current version of pixman: 0.36.0 [Logs] [2023-06-06T15:20:47.674Z] [kiosk] Before reporting problems, check http://wiki.x.org [Logs] [2023-06-06T15:20:47.675Z] [kiosk] to make sure that you have the latest version. [Logs] [2023-06-06T15:20:47.676Z] [kiosk] Markers: (--) probed, (*) from config file, (==) default setting, [Logs] [2023-06-06T15:20:47.682Z] [kiosk] (++) from command line, (!!) notice, (II) informational, [Logs] [2023-06-06T15:20:47.683Z] [kiosk] (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [Logs] [2023-06-06T15:20:47.688Z] [kiosk] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Jun 6 15:20:47 2023 [Logs] [2023-06-06T15:20:47.722Z] [kiosk] (==) Using system config directory "/usr/share/X11/xorg.conf.d" [Logs] [2023-06-06T15:20:50.228Z] [kiosk] --- List Input Devices --- [Logs] [2023-06-06T15:20:50.294Z] [kiosk] ⎡ Virtual core pointer id=2 [master pointer (3)] [Logs] [2023-06-06T15:20:50.295Z] [kiosk] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] [Logs] [2023-06-06T15:20:50.295Z] [kiosk] ⎣ Virtual core keyboard id=3 [master keyboard (2)] [Logs] [2023-06-06T15:20:50.296Z] [kiosk] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] [Logs] [2023-06-06T15:20:50.296Z] [kiosk] ----- End of List -------- [Logs] [2023-06-06T15:20:50.296Z] [kiosk] Detecting window size from framebuffer [Logs] [2023-06-06T15:20:50.359Z] [kiosk] Window size detected as 656,416 [Logs] [2023-06-06T15:21:02.762Z] [kiosk] Installed browser version: Chromium 89.0.4389.114 built on Debian 10.9, running on Debian 10.11 [Logs] [2023-06-06T15:21:34.313Z] [kiosk] Browser API running on port: 5011 [Logs] [2023-06-06T15:21:34.923Z] [kiosk] LAUNCH_URL environment variable not set. [Logs] [2023-06-06T15:21:35.119Z] [kiosk] Looking for local HTTP/S services. [Logs] [2023-06-06T15:21:39.230Z] [kiosk] No service found on port 80 [Logs] [2023-06-06T15:21:39.728Z] [kiosk] No service found on port 443 [Logs] [2023-06-06T15:21:39.741Z] [kiosk] No service found on port 8080 [Logs] [2023-06-06T15:21:39.744Z] [kiosk] Displaying default HTML page [Logs] [2023-06-06T15:21:39.747Z] [kiosk] Disabling GPU [Logs] [2023-06-06T15:21:39.748Z] [kiosk] Disabling KIOSK mode [Logs] [2023-06-06T15:21:39.749Z] [kiosk] Starting Chromium with flags: --disable-features=TranslateUI,--disable-component-extensions-with-background-pa ges,--disable-background-networking,--disable-sync,--metrics-recording-only,--disable-default-apps,--no-default-browser-check,--no-first-run,--disable-back grounding-occluded-windows,--disable-renderer-backgrounding,--disable-background-timer-throttling,--force-fieldtrials=BackgroundTracing/default/,--window- size=656,416,--window-position=0,0,--autoplay-policy=no-user-gesture-required,--noerrdialogs,--disable-session-crashed-bubble,--check-for-update-interval=3 1536000,--disable-dev-shm-usage,--disable-gpu [Logs] [2023-06-06T15:21:39.771Z] [kiosk] Displaying URL: file:///home/chromium/index.html [Logs] [2023-06-06T15:21:41.803Z] Starting service 'dump1090-fa sha256:e1d12a46689cd776bc59f66cf60d2a2248189eb734b60dc604baf5d3756464a1' [Logs] [2023-06-06T15:22:10.063Z] [kiosk] Main error: Error: connect ECONNREFUSED 127.0.0.1:35173 [Logs] [2023-06-06T15:22:11.053Z] [kiosk] at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16) { [Logs] [2023-06-06T15:22:11.054Z] [kiosk] errno: 'ECONNREFUSED', [Logs] [2023-06-06T15:22:11.054Z] [kiosk] code: 'ECONNREFUSED', [Logs] [2023-06-06T15:22:11.055Z] [kiosk] syscall: 'connect', [Logs] [2023-06-06T15:22:11.055Z] [kiosk] address: '127.0.0.1', [Logs] [2023-06-06T15:22:11.055Z] [kiosk] port: 35173 [Logs] [2023-06-06T15:22:11.056Z] [kiosk] } [Logs] [2023-06-06T15:22:13.798Z] [kiosk] xinit: connection to X server lost [Logs] [2023-06-06T15:22:15.341Z] [kiosk] [Logs] [2023-06-06T15:22:16.868Z] [kiosk] waiting for X server to shut down ...(II) Server terminated successfully (0). Closing log file. [Logs] [2023-06-06T15:22:20.716Z] [kiosk] ... [Logs] [2023-06-06T15:22:24.140Z] [kiosk] Idling... [Logs] [2023-06-06T15:22:28.443Z] Starting service 'dump1090-fa sha256:e1d12a46689cd776bc59f66cf60d2a2248189eb734b60dc604baf5d3756464a1'``

If I then create a variable DISABLED_SERVICES = kiosk leaving in place the PLANEFINDER_SHARECODE variable. Dump1090-fa then starts again, but planefinder service still not running

`Logs] [2023-06-06T15:30:32.007Z] [dump1090-fa] adaptive: available dynamic range (31.6dB) >= required dynamic range (30.0dB), continuing upward scan [Logs] [2023-06-06T15:30:32.735Z] [dump1090-fa] adaptive: changing gain from 49.6dB (step 28) to 58.6dB (step 29) because: probing dynamic range gain up per bound [Logs] [2023-06-06T15:30:32.736Z] [dump1090-fa] rtlsdr: tuner gain set to about 58.6 dB (gain step 29) (tuner AGC enabled) [Logs] [2023-06-06T15:30:19.684Z] [dump1090-fa] Enabling Adaptive Dynamic Range. [Logs] [2023-06-06T15:30:20.013Z] [dump1090-fa] Tue Jun 6 15:30:20 2023 GMT dump1090-fa 8.2 starting up. [Logs] [2023-06-06T15:30:20.147Z] [dump1090-fa] rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000) [Logs] [2023-06-06T15:30:20.408Z] [dump1090-fa] Detached kernel driver [Logs] [2023-06-06T15:30:20.643Z] [dump1090-fa] Found Rafael Micro R820T tuner [Logs] [2023-06-06T15:30:20.877Z] [dump1090-fa] rtlsdr: tuner gain set to 49.6 dB (gain step 28) [Logs] [2023-06-06T15:30:21.044Z] [dump1090-fa] adaptive: using 50% duty cycle [Logs] [2023-06-06T15:30:21.045Z] [dump1090-fa] adaptive: enabled adaptive gain control with gain limits 0.0dB (step 0) .. 58.6dB (step 29) [Logs] [2023-06-06T15:37:12.900Z] Supervisor starting [Logs] [2023-06-06T15:30:17.667Z] [dump1090-fa] Verifying settings... [Logs] [2023-06-06T15:30:17.668Z] [dump1090-fa] [Logs] [2023-06-06T15:30:19.682Z] [dump1090-fa] Receiver latitude is set: 51.85948514019697 [Logs] [2023-06-06T15:30:19.683Z] [dump1090-fa] Receiver longitude is set: 0.13827780789759453 [Logs] [2023-06-06T15:30:19.683Z] [dump1090-fa] [Logs] [2023-06-06T15:30:19.683Z] [dump1090-fa] Settings verified, proceeding with startup. [Logs] [2023-06-06T15:30:19.684Z] [dump1090-fa] [Logs] [2023-06-06T15:30:19.684Z] [dump1090-fa] Gain is not specified. Will enable Adaptive Dynamic Range. [Logs] [2023-06-06T15:30:19.684Z] [dump1090-fa] Enabling Adaptive Dynamic Range. [Logs] [2023-06-06T15:30:20.013Z] [dump1090-fa] Tue Jun 6 15:30:20 2023 GMT dump1090-fa 8.2 starting up. [Logs] [2023-06-06T15:30:20.147Z] [dump1090-fa] rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000) [Logs] [2023-06-06T15:30:20.408Z] [dump1090-fa] Detached kernel driver [Logs] [2023-06-06T15:30:20.643Z] [dump1090-fa] Found Rafael Micro R820T tuner [Logs] [2023-06-06T15:30:20.877Z] [dump1090-fa] rtlsdr: tuner gain set to 49.6 dB (gain step 28) [Logs] [2023-06-06T15:30:21.044Z] [dump1090-fa] adaptive: using 50% duty cycle [Logs] [2023-06-06T15:30:21.045Z] [dump1090-fa] adaptive: enabled adaptive gain control with gain limits 0.0dB (step 0) .. 58.6dB (step 29) [Logs] [2023-06-06T15:30:21.046Z] [dump1090-fa] adaptive: enabled dynamic range control, target dynamic range 30.0dB [Logs] [2023-06-06T15:30:21.059Z] [dump1090-fa] Allocating 4 zero-copy buffers [Logs] [2023-06-06T15:30:32.007Z] [dump1090-fa] adaptive: available dynamic range (31.6dB) >= required dynamic range (30.0dB), continuing upward scan [Logs] [2023-06-06T15:30:32.735Z] [dump1090-fa] adaptive: changing gain from 49.6dB (step 28) to 58.6dB (step 29) because: probing dynamic range gain up per bound [Logs] [2023-06-06T15:30:32.736Z] [dump1090-fa] rtlsdr: tuner gain set to about 58.6 dB (gain step 29) (tuner AGC enabled) [Logs] [2023-06-06T15:30:43.733Z] [dump1090-fa] adaptive: available dynamic range (21.4dB) < required dynamic range (30.0dB), switching to downward scan [Logs] [2023-06-06T15:30:44.711Z] [dump1090-fa] adaptive: changing gain from 58.6dB (step 29) to 49.6dB (step 28) because: probing dynamic range gain lo wer bound [Logs] [2023-06-06T15:30:44.712Z] [dump1090-fa] rtlsdr: tuner gain set to 49.6 dB (gain step 28) [Logs] [2023-06-06T15:30:54.340Z] [dump1090-fa] adaptive: available dynamic range (31.7dB) >= required dynamic range (30.0dB), stopping downwards scan h ere [Logs] [2023-06-06T15:33:29.858Z] [dump1090-fa] Verifying settings... [Logs] [2023-06-06T15:33:29.859Z] [dump1090-fa] [Logs] [2023-06-06T15:33:31.880Z] [dump1090-fa] Receiver latitude is set: 51.85948514019697 [Logs] [2023-06-06T15:33:31.882Z] [dump1090-fa] Receiver longitude is set: 0.13827780789759453 [Logs] [2023-06-06T15:33:31.882Z] [dump1090-fa] [Logs] [2023-06-06T15:33:31.883Z] [dump1090-fa] Settings verified, proceeding with startup. [Logs] [2023-06-06T15:33:31.883Z] [dump1090-fa] [Logs] [2023-06-06T15:33:31.883Z] [dump1090-fa] Gain is not specified. Will enable Adaptive Dynamic Range. [Logs] [2023-06-06T15:33:31.883Z] [dump1090-fa] Enabling Adaptive Dynamic Range. [Logs] [2023-06-06T15:33:32.187Z] [dump1090-fa] Tue Jun 6 15:33:32 2023 GMT dump1090-fa 8.2 starting up. [Logs] [2023-06-06T15:33:32.538Z] [dump1090-fa] rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000) [Logs] [2023-06-06T15:33:32.798Z] [dump1090-fa] Detached kernel driver [Logs] [2023-06-06T15:33:33.066Z] [dump1090-fa] Found Rafael Micro R820T tuner [Logs] [2023-06-06T15:33:33.333Z] [dump1090-fa] rtlsdr: tuner gain set to 49.6 dB (gain step 28) [Logs] [2023-06-06T15:33:33.517Z] [dump1090-fa] adaptive: using 50% duty cycle [Logs] [2023-06-06T15:33:33.517Z] [dump1090-fa] adaptive: enabled adaptive gain control with gain limits 0.0dB (step 0) .. 58.6dB (step 29) [Logs] [2023-06-06T15:33:33.518Z] [dump1090-fa] adaptive: enabled dynamic range control, target dynamic range 30.0dB [Logs] [2023-06-06T15:33:33.545Z] [dump1090-fa] Allocating 4 zero-copy buffers [Logs] [2023-06-06T15:33:43.764Z] [dump1090-fa] adaptive: available dynamic range (31.7dB) >= required dynamic range (30.0dB), continuing upward scan [Logs] [2023-06-06T15:33:43.784Z] [dump1090-fa] adaptive: changing gain from 49.6dB (step 28) to 58.6dB (step 29) because: probing dynamic range gain up per bound [Logs] [2023-06-06T15:33:43.785Z] [dump1090-fa] rtlsdr: tuner gain set to about 58.6 dB (gain step 29) (tuner AGC enabled) [Logs] [2023-06-06T15:33:53.723Z] [dump1090-fa] adaptive: available dynamic range (21.6dB) < required dynamic range (30.0dB), switching to downward scan [Logs] [2023-06-06T15:33:53.725Z] [dump1090-fa] adaptive: changing gain from 58.6dB (step 29) to 49.6dB (step 28) because: probing dynamic range gain lo wer bound [Logs] [2023-06-06T15:33:53.782Z] [dump1090-fa] rtlsdr: tuner gain set to 49.6 dB (gain step 28) [Logs] [2023-06-06T15:34:03.735Z] [dump1090-fa] adaptive: available dynamic range (32.1dB) >= required dynamic range (30.0dB), stopping downwards scan h ere [Logs] [2023-06-06T15:36:50.416Z] [dump1090-fa] Verifying settings... [Logs] [2023-06-06T15:36:50.416Z] [dump1090-fa] [Logs] [2023-06-06T15:36:52.387Z] [dump1090-fa] Receiver latitude is set: 51.[HIDDEN] [Logs] [2023-06-06T15:36:52.388Z] [dump1090-fa] Receiver longitude is set: 0.[HIDDEN] [Logs] [2023-06-06T15:36:52.389Z] [dump1090-fa] [Logs] [2023-06-06T15:36:52.389Z] [dump1090-fa] Settings verified, proceeding with startup. [Logs] [2023-06-06T15:36:52.389Z] [dump1090-fa] [Logs] [2023-06-06T15:36:52.390Z] [dump1090-fa] Gain is not specified. Will enable Adaptive Dynamic Range. [Logs] [2023-06-06T15:36:52.390Z] [dump1090-fa] Enabling Adaptive Dynamic Range. [Logs] [2023-06-06T15:36:52.692Z] [dump1090-fa] Tue Jun 6 15:36:52 2023 GMT dump1090-fa 8.2 starting up. [Logs] [2023-06-06T15:36:52.811Z] [dump1090-fa] rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000) [Logs] [2023-06-06T15:36:52.979Z] [dump1090-fa] Detached kernel driver [Logs] [2023-06-06T15:36:53.278Z] [dump1090-fa] Found Rafael Micro R820T tuner [Logs] [2023-06-06T15:36:53.505Z] [dump1090-fa] rtlsdr: tuner gain set to 49.6 dB (gain step 28) [Logs] [2023-06-06T15:36:53.699Z] [dump1090-fa] adaptive: using 50% duty cycle [Logs] [2023-06-06T15:36:53.699Z] [dump1090-fa] adaptive: enabled adaptive gain control with gain limits 0.0dB (step 0) .. 58.6dB (step 29) [Logs] [2023-06-06T15:36:53.700Z] [dump1090-fa] adaptive: enabled dynamic range control, target dynamic range 30.0dB [Logs] [2023-06-06T15:36:53.724Z] [dump1090-fa] Allocating 4 zero-copy buffers [Logs] [2023-06-06T15:37:03.987Z] [dump1090-fa] adaptive: available dynamic range (32.4dB) >= required dynamic range (30.0dB), continuing upward scan [Logs] [2023-06-06T15:37:03.991Z] [dump1090-fa] adaptive: changing gain from 49.6dB (step 28) to 58.6dB (step 29) because: probing dynamic range gain up per bound [Logs] [2023-06-06T15:37:03.991Z] [dump1090-fa] rtlsdr: tuner gain set to about 58.6 dB (gain step 29) (tuner AGC enabled) [Logs] [2023-06-06T15:37:13.924Z] [dump1090-fa] adaptive: available dynamic range (21.9dB) < required dynamic range (30.0dB), switching to downward scan [Logs] [2023-06-06T15:37:13.924Z] [dump1090-fa] adaptive: changing gain from 58.6dB (step 29) to 49.6dB (step 28) because: probing dynamic range gain lo wer bound [Logs] [2023-06-06T15:37:14.005Z] [dump1090-fa] rtlsdr: tuner gain set to 49.6 dB (gain step 28) [Logs] [2023-06-06T15:37:18.733Z] Starting service 'kiosk sha256:70efe4485b2d0bb6c6656e927092dda2c86b79980b47b8dd180648a02e564e65' [Logs] [2023-06-06T15:37:18.830Z] Starting service 'dump978-fa sha256:eff01a2050501f671681fc2b6d2fd46f589991524a7b054bc38e4fa1872ac8d9' [Logs] [2023-06-06T15:37:18.843Z] Starting service 'wifi-connect sha256:e94cd084778c64ce5ef46255792ce046945d0cb5acf9f810f9a6f0d570f0d3ab' [Logs] [2023-06-06T15:37:18.913Z] Starting service 'piaware sha256:d9bc6d87bd39d17459824cf19037032f265164f407401b75f327feceb27062fd' [Logs] [2023-06-06T15:37:18.923Z] Starting service 'fr24feed sha256:75344ab6fee8cb04424c963e1999c241595724a9bc08fd5e4203e9ccf1d135e5' [Logs] [2023-06-06T15:37:19.009Z] Starting service 'planefinder sha256:25902deb14f9f99e23a63871b72ef6b8ee10795541c36ca3a6dc090f16115f0c' [Logs] [2023-06-06T15:37:19.017Z] Starting service 'opensky-network sha256:126347575a874b73d5b30587c740b692b022d23e13e6ba951240f1a9028915ed' [Logs] [2023-06-06T15:37:19.026Z] Starting service 'radarbox sha256:712b6ad10c220f8346b87d44fae4afe147dc20a71cb8eb375cada52987785c85' [Logs] [2023-06-06T15:37:19.042Z] Starting service 'adsb-exchange sha256:78c5122f57dcbd56e790e0c0dd611a82d4df7525f1e7fd674e6d16145137c77f' [Logs] [2023-06-06T15:37:19.063Z] Starting service 'frontend-proxy sha256:f119c4cb6deee5cded6bb6b872ab47417f53500a228defe6bdc40fe20167cfd5' [Logs] [2023-06-06T15:37:23.985Z] [dump1090-fa] adaptive: available dynamic range (32.4dB) >= required dynamic range (30.0dB), stopping downwards scan h ere``

drhanke commented 1 year ago

Kiosk is a local browser, if you for example run on a laptop you can display the local skyaware page by adding the following: LAUNCH_URL and then a url for exemple "http://dump1090-fa:8080". That service should not behave bad because of device variables... ?

The way Balena works is every time you add or change a device variable and save them, all docker containers restart. Normal behavior.

In balena admin you can see your "Local IP address", can you access your local host and see that planes appears on the map (from another computer in same network) ?

It might be a problem to get the map if no services is started but since dump1090-fa is at least running you should be able to access Skyaware map at http://YOUR-LOCAL-IP:8080

All other adsb sharing containers at depending on dump1090-fa and will not start until dump1090 is running. What hardware are you running on ? It might be that dump1090 is slow starting to be healthy before the other services can start. Maybe some patience are in need :)

In the docker file it´s specified by: piaware: depends_on:

"FLIGHTAWARE_FEEDER_IF" should be an D not F "FLIGHTAWARE_FEEDER_ID"

peteoheat commented 1 year ago

"FLIGHTAWARE_FEEDER_IF" should be an D not F "FLIGHTAWARE_FEEDER_ID" thanks. That was a typo in my write up here, but not in the device variables I actually set.

I did of course try connecting to local IP address port 8080 but nothing there.

I'm now zooming in on the fact that my ADSB feeder hardware is a Pi 3A+ with 500mb of memory. The README.md for balena dash under which kiosk and wificonnect run, states that it needs 3B+ and doesn't work on <1Gb of RAM.

The 3A+ has been working fine with dump1090-fa, MLAT, FR24, Flightaware, Radarbox, Planefinder, ADSB-Exchange all displaying using lighthttp. But perhaps this project is a bit too much for it.

Unfortunately, my Pi 3B+ seems to have stopped reading any SD cards (no idea why) and my Pi 4's are both tied up in other projects. Lot's a Pi Zero's and Zero 2's lying around but they are of no use here. If only I could actually buy another Pi anywhere at the moment!!

Appreciate your help though.

drhanke commented 1 year ago

Oh don´t give up, lets tweak things :)

Had to test on my machine to active kiosk, wow that thing is memory hungry... 1.7Gb ram = not OK

I read that you have made a clone, let´s edit main compose file and turn things off to tweak this, yes you can disable services but in my world things not needed should not be there it takes hd space and can disturb things.

Go to clone folder and edit "docker-compose.yml"

Comment out kiosk and wifi-connect and other share service not used

This should make a more "slim image" less memory hungry, push to balena and test :)

peteoheat commented 1 year ago

Thanks I'll give that a go over the weekend

ketilmo commented 7 months ago

Hi @peteoheat,

Could you let me know if you were able to get this working?

ketilmo commented 3 months ago

Closing for now. Feel free to reopen the ticket if you are still experiencing this issue.