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

Getting an error in log using raspberry pi 5 #163

Open
BlueDawnxx opened this issue Nov 21, 2023 · 8 comments
Open

Getting an error in log using raspberry pi 5 #163

BlueDawnxx opened this issue Nov 21, 2023 · 8 comments

Comments

@BlueDawnxx
Copy link

BlueDawnxx commented Nov 21, 2023

Describe the bug
After installing and running the adapter the log shows the following message
"Cannot evaluate: Filesystem 1K-blocks Used Available Use% Mounted on/dev/mmcblk0p2 14732664 4953084 9144656 36% //1024"

To Reproduce
Steps to reproduce the behavior:
Just installing the adapter and running it on rp5

Versions:

  • Adapter version: 1.3.2
  • JS-Controller version: 5.0.16
  • Node version: 18.18.2
  • Operating system: rasbian
@Philipp92
Copy link

I have the same issue. Is there already a solution to fix it?

@ntfrnd
Copy link

ntfrnd commented Dec 2, 2023

I have the same error log with a rp4! What does the error message mean? Is there a solution?

@Apollon77
Copy link
Member

In fact this adapter i sexecuting linux commands ... defined in https://github.com/iobroker-community-adapters/ioBroker.rpi2/blob/master/io-package.json#L235-L366 ... so maybe check which command it is and try to find the correct one for rpi4 and we know what to change. Any help appreciated ....

@wg321
Copy link

wg321 commented Dec 18, 2023

Also having error message "Cannot evaluate: Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 961127540 8600660 903699396 1% / /1024"

Running iobroker on Raspberry Bookworm 64bit. Disk is an USB-attached NVME-SSD.
Output of the two mentioned df commands are as follows:

root@iobroker:~# df /
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sda2      961127540 8600796 903699260   1% /
root@iobroker:~# df /boot
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sda2      961127540 8601948 903698108   1% /

I guess that the regex for "df /boot" struggles ...

Complete output of df -k:

root@iobroker:~# df -k
Filesystem     1K-blocks    Used Available Use% Mounted on
udev             3726196       0   3726196   0% /dev
tmpfs             799764    1268    798496   1% /run
/dev/sda2      961127540 8597552 903702504   1% /
tmpfs            3998812     148   3998664   1% /dev/shm
tmpfs               5120      16      5104   1% /run/lock
/dev/sda1         522232   74038    448194  15% /boot/firmware
tmpfs             799760      40    799720   1% /run/user/1000

Notice, that there is no longer a filesystem mounted directly on /boot but /boot/firmware.

@MSal-RPI4
Copy link

Same issue here: Cannot evaluate: Filesystem 1K-blocks Used Available Use% Mounted on /dev/mmcblk0p2 30083620 7933976 20601348 28% / /1024

Running iobroker on RPI 4B, 4GB, Bookworm 64bit, 32GB SD

@sigmashig
Copy link

sigmashig commented Jan 13, 2024

In fact this adapter i sexecuting linux commands ... defined in https://github.com/iobroker-community-adapters/ioBroker.rpi2/blob/master/io-package.json#L235-L366 ... so maybe check which command it is and try to find the correct one for rpi4 and we know what to change. Any help appreciated ....

I have found a root cause of this problem. As said there, there are no /boot on Raspi5. So, if we run command "df /boot", we have got
pi@croco:~ $ df /boot
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 122548192 3665572 112641100 4% /

and it doesn't match a pattern "regexp": "\S+\s+(\d+).*\/boot$",

I suggest to remove information for /boot from the list.

@marian-t-web-de
Copy link

marian-t-web-de commented Jan 18, 2024

I've also this Message running iobroker on RPI 4B, 4GB, Bookworm 64bit, 32GB SD in Docker-Container (buanet/iobroker)
`

rpi2.0 | 2024-01-18 11:35:29.629 | error | Cannot evaluate: Filesystem 1K-blocks Used Available Use% Mounted on overlay 29262060 24512588 3245036 89% / /1024 -- | -- | -- | -- `

On RPi4B is /boot available; the only one problem seems vcgencmd: not found (inside iob container):

- pi@raspberrypi:~ $ docker exec -it iobroker-host /bin/sh
- # df /boot
- Filesystem     1K-blocks     Used Available Use% Mounted on
- overlay         29262060 24502100   3255524  89% /
- # df /
- Filesystem     1K-blocks     Used Available Use% Mounted on
- overlay         29262060 24502496   3255128  89% /
- # cat /proc/meminfo
- MemTotal:        3928436 kB
- MemFree:         1278696 kB
- MemAvailable:    1877320 kB
- ...
- # vcgencmd get_mem arm
- /bin/sh: 4: vcgencmd: not found
- # vcgencmd get_mem gp
- /bin/sh: 5: vcgencmd: not found
- # cat /proc/loadavg
- 0.18 0.33 0.41 1/1032 28848
- # test -r /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq && cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq || test -r /sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq && cat /sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq || echo -1000
- 700000
- 700000
- # cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
- ondemand
- # vcgencmd measure_volts core
- /bin/sh: 9: vcgencmd: not found
- # cat /sys/class/net/eth0/statistics/rx_bytes
- 1254876634
- # cat /sys/class/net/eth0/statistics/tx_bytes
- 1408942333
- # cat /sys/devices/virtual/thermal/thermal_zone0/temp
- 61348
- # cat /proc/uptime
- 589531.32 2087417.69
- # cat /sys/class/net/wlan0/statistics/rx_bytes
- 431113524
- # cat /sys/class/net/wlan0/statistics/tx_bytes
- 2211117
- 

On Host is vcgencmd working:
pi@raspberrypi:~ $ vcgencmd get_mem arm arm=948M
df gets also no error on Host

The error-log contains properly df output, why ist is an error at all? Because /boot is not listet?

'# df /boot
Filesystem 1K-blocks Used Available Use% Mounted on
overlay 29262060 24502100 3255524 89% /
Error-log
Cannot evaluate: Filesystem 1K-blocks Used Available Use% Mounted on overlay 29262060 24512588 3245036 89% / /1024

On Host (RPi4)
pi@raspberrypi:~ $ df /boot
Dateisystem 1K-Blöcke Benutzt Verfügbar Verw% Eingehängt auf
/dev/mmcblk0p2 29262060 24507388 3250236 89% /

@raspberrypi:~ $ docker exec -it iobroker-host /bin/sh
'# df
Filesystem 1K-blocks Used Available Use% Mounted on
overlay 29262060 24506848 3250776 89% /
tmpfs 65536 0 65536 0% /dev
shm 65536 0 65536 0% /dev/shm
/dev/mmcblk0p2 29262060 24506848 3250776 89% /opt/iobroker
tmpfs 1964216 0 1964216 0% /proc/asound
tmpfs 1964216 0 1964216 0% /sys/firmware
'# exit
pi@raspberrypi:~ $ df
Dateisystem 1K-Blöcke Benutzt Verfügbar Verw% Eingehängt auf
udev 1695828 0 1695828 0% /dev
tmpfs 392844 1424 391420 1% /run
/dev/mmcblk0p2 29262060 24506948 3250676 89% /
tmpfs 1964216 0 1964216 0% /dev/shm
tmpfs 5120 16 5104 1% /run/lock
/dev/mmcblk0p1 522232 94106 428126 19% /boot/firmware
tmpfs 392840 0 392840 0% /run/user/1000

Comparing df in container and on Host, in container is /boot/firmware not listed, do we need it at all??
Maybe checking /boot could be done separately choosed in rpi2 Adapter settings?

@Grothesk242
Copy link

Fixed in upcoming release 2.0. Code needs to be tested though.

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

9 participants