dirkhh / adsb-feeder-image

Easy to use turn-key SD card image for a number of popular single board computers to run a complete ADS-B feeder
https://adsb.im/home
GNU General Public License v3.0
121 stars 12 forks source link

system.py on reboot: AttributeError: 'System' object has no attribute 'lock' #230

Closed YipYup closed 3 months ago

YipYup commented 3 months ago

Error in utils/system.py on reboot:

AttributeError: 'System' object has no attribute 'lock'

In Context:

2024-06-19T01:51:42.143Z handling input from http://192.168.1.10/systemmgmt and site # 0 /  (allow insecure is True)
2024-06-19T01:51:42.144Z handling reboot -> wait
172.21.71.238 - - [18/Jun/2024 19:51:42] "POST /systemmgmt HTTP/1.1" 200 -
2024-06-19T01:51:42.840Z 2267680: /sbin/init called docker-compose-adsb stop -t 30
2024-06-19T01:51:43.051Z sync
2024-06-19T01:51:43.224Z docker compose -f /opt/adsb/config/docker-compose.yml -f /opt/adsb/config/dozzle.yml -f /opt/adsb/config/uat978.yml -f /opt/adsb/config/fr24.yml -f /opt/adsb/config/pw.yml -f /opt/adsb/config/fa.yml -f /opt/adsb/config/rb.yml -f /opt/adsb/config/pf.yml -f /opt/adsb/config/ah.yml -f /opt/adsb/config/os.yml -f /opt/adsb/config/rv.yml stop -t 30
 Container pfclient  Stopping
 Container adsb-setup-proxy  Stopping
 Container ultrafeeder  Stopping
 Container radarvirtuel  Stopping
 Container dozzle  Stopping
 Container fr24feed  Stopping
 Container piaware  Stopping
 Container rbfeeder  Stopping
 Container opensky  Stopping
 Container planewatch  Stopping
 Container adsbhub  Stopping
 Container dump978  Stopping
 Container adsb-setup-proxy  Stopped
 Container dozzle  Stopped
 Container opensky  Stopped
 Container pfclient  Stopped
 Container adsbhub  Stopped
 Container planewatch  Stopped
 Container radarvirtuel  Stopped
 Container piaware  Stopped
 Container fr24feed  Stopped
192.168.1.99 - - [18/Jun/2024 19:51:47] "GET /restart HTTP/1.1" 200 -
 Container ultrafeeder  Stopped
 Container dump978  Stopped
192.168.1.99 - - [18/Jun/2024 19:51:52] "GET /restart HTTP/1.1" 200 -
192.168.1.99 - - [18/Jun/2024 19:51:52] "GET /waiting HTTP/1.1" 200 -
192.168.1.99 - - [18/Jun/2024 19:51:52] "GET /stream-log HTTP/1.1" 200 -
Exception in thread Thread-71 (do_reboot):
Traceback (most recent call last):
  File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/adsb/adsb-setup/utils/system.py", line 114, in do_reboot
    self.lock.release()
    ^^^^^^^^^
AttributeError: 'System' object has no attribute 'lock'

ENV:

Current:v2.1.2(stable)
Board:Raspberry Pi 4 Model B Rev 1.4
Base:adsb-im-raspberrypi64-v1.1.9.img
Kernel:Linux adsb-feeder 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
Containers:
ghcr.io/sdr-enthusiasts/docker-adsb-ultrafeeder:latest-build-410
ghcr.io/sdr-enthusiasts/docker-flightradar24:latest-build-679
ghcr.io/sdr-enthusiasts/docker-piaware:latest-build-498
ghcr.io/sdr-enthusiasts/docker-radarbox:latest-build-654
ghcr.io/sdr-enthusiasts/docker-planefinder:latest-build-371
ghcr.io/sdr-enthusiasts/docker-adsbhub:latest-build-373
ghcr.io/sdr-enthusiasts/docker-opensky-network:latest-build-678
ghcr.io/sdr-enthusiasts/docker-radarvirtuel:latest-build-574
ghcr.io/plane-watch/docker-plane-watch:latest-build-207
SDR(s):
SDR(type: 'rtlsdr' address: '001:004', serial: '00001090')
SDR(type: 'rtlsdr' address: '001:003', serial: '00000978')
Ultrafeeder args:
Env variables:
Memory:
               total        used        free      shared  buff/cache   available
Mem:           7.6Gi       659Mi       6.1Gi        54Mi       867Mi       6.8Gi
Swap:           99Mi          0B        99Mi
Storage:
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       235G  4.2G  221G   2% /
devtmpfs        3.6G     0  3.6G   0% /dev
tmpfs           3.9G     0  3.9G   0% /dev/shm
tmpfs           1.6G   52M  1.5G   4% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
/dev/mmcblk0p1  255M   32M  224M  13% /boot
wiedehopf commented 3 months ago

This doesn't really matter as it should be rebooting anyhow.

Error will be fixed in next beta whenever that will be.