stratux
stratux copied to clipboard
Stratux runs out of memory
-
Stratux version: Stratux v1.6r1-eu027 / Linux version 5.10.63-v8+ / Raspberry Pi 3 Model B Plus Rev 1.3
-
Stratux config:
SDR
- [ ] single
- [ x] dual (NESDR Nano 2)
GPS
- [ x] yes
- [ ] no type: USB u-blox 8 GNSS receiver
AHRS
- [x ] yes, but non-functional (!)
- [ ] no
power source: 230V/5V power supply - test setup at home usb cable: A standard cable to supply power
-
EFB app and version: EasyVFR EFB platform: 15.3.1 EFB hardware: iPad Mini (5th generation)
-
Description of your issue:
Due to a problem with the AHRS/air pressure sensor board and/or the i2c bus on the Raspberry Pi, many thousands of lines of error messages are being logged, e.g. in syslog:
Feb 19 02:04:15 stratux gen_gdl90[474]: 2022/02/19 02:04:15 BMP280 Warning: error reading sensor data: BMP280 Error reading from F7: %!s(
and in kern.log also many lines such as these:
Feb 19 02:04:59 stratux kernel: [ 119.007494] i2c-bcm2835 3f804000.i2c: i2c transfer timed out Feb 19 02:05:28 stratux kernel: [ 148.351601] i2c-bcm2835 3f804000.i2c: i2c transfer timed out Feb 19 02:05:52 stratux kernel: [ 172.383441] i2c-bcm2835 3f804000.i2c: i2c transfer timed out
After a couple hours, the Stratux runs out of space (Free Storage: 0.0 MiB):
- System uptime 26306 seconds. Daemon was restarted.
- AHRS Error: Couldn't read pressure from sensor: Pressure is 0
- Disk bytes used = 259 MB (98.9 %), Disk bytes free = 3.0 MB (1.1 %)
- Write error on '/var/lib/misc/', your EFB may have issues receiving weather and traffic.
- Barometric altitude 9942' out of expected range. Ignoring. Pressure sensor potentially broken.
Uhm.. disable the sensors then? They are obviously broken..?
Uhm... yes, I know there is something wrong with the sensors.
However, with the read only FS and writing the logs to RAM (?), I feel that running out of space whether after 2 hours or several days shouldn't be a thing, even if it is, with fully with functional hardware, a somewhat unlikely scenario.
root@stratux:/etc# df -h Filesystem Size Used Avail Use% Mounted on /dev/root 30G 1.4G 27G 5% /overlay/pivot devtmpfs 422M 0 422M 0% /dev none 455M 0 455M 0% /overlay/pivot/overlay none 250M 201M 50M 81% /overlay/rwdata overlay 250M 201M 50M 81% / tmpfs 455M 0 455M 0% /dev/shm tmpfs 182M 5.3M 177M 3% /run tmpfs 5.0M 4.0K 5.0M 1% /run/lock /dev/mmcblk0p1 253M 31M 222M 12% /boot tmpfs 91M 0 91M 0% /run/user/1000
I am not able to perform an apt update because there is not enough free space.
I am not able to expand the FS
root@stratux:/etc# df -h Filesystem Size Used Avail Use% Mounted on /dev/root 30G 1.4G 27G 5% /overlay/pivot devtmpfs 422M 0 422M 0% /dev none 455M 0 455M 0% /overlay/pivot/overlay none 250M 201M 50M 81% /overlay/rwdata overlay 250M 201M 50M 81% / tmpfs 455M 0 455M 0% /dev/shm tmpfs 182M 5.3M 177M 3% /run tmpfs 5.0M 4.0K 5.0M 1% /run/lock /dev/mmcblk0p1 253M 31M 222M 12% /boot tmpfs 91M 0 91M 0% /run/user/1000
I am not able to perform an apt update because there is not enough free space.
I am not able to expand the FS
That is more or less unrelated. See https://github.com/b3nn0/stratux/wiki/Read-only-filesystem