Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
YipYup opened this issue Jun 19, 2024 · 1 comment
Closed

Comments

@YipYup
Copy link
Contributor

YipYup commented Jun 19, 2024

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 https://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
Copy link
Collaborator

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

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

wiedehopf added a commit that referenced this issue Jun 19, 2024
this is non-critical as the system should be rebooting anyway

fixes: #230
dirkhh pushed a commit that referenced this issue Jun 20, 2024
this is non-critical as the system should be rebooting anyway

fixes: #230
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants