You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.
The daemon when deployed on a pi x64 environment, it always fails while fetching disk partition information.
It fails with error: FileNotFoundError: [Errno 2] No such file or directory: '/dev/root'
To Reproduce
Steps to reproduce the behavior:
Deploy the daemon on a PiOS x64 environment
Start the daemon using celebid -s
Wait 30s
Open the daemon log
See error
Or
Deploy the daemon on a PiOS x64 environment
Run the tests via python3 -m unittest -v
See that the following tests fail:
testFetchingPartition
testAddingDiskUsageInfo
Expected behavior
The tests pass and the daemon is capable of fetching the partition information.
Device (please complete the following information):
type: Raspberry Pi
model: Raspberry Pi 3 Model B Plus Rev 1.3
OS: Debian GNU/Linux 11 (bullseye)
version: 11
Additional context
Error as it appears in the failed tests:
======================================================================
ERROR: testAddingDiskUsageInfo (test.test_report_module.TestSystemReportClass)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pi/ttg-healthcheck/daemon/test/test_report_module.py", line 99, in testAddingDiskUsageInfo
self.test_report.add_disk_usage_info()
File "../daemon/src/system_report.py", line 148, in add_disk_usage_info
disk_usage['partitions'] = SysScrubber.fetch_disk_partition_status()
File "../daemon/src/system_report.py", line 476, in fetch_disk_partition_status
disk_buffer = psutil.disk_usage(partition_path.device)
File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 1995, in disk_usage
return _psplatform.disk_usage(path)
File "/usr/lib/python3/dist-packages/psutil/_psposix.py", line 169, in disk_usage
st = os.statvfs(path)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/root'
======================================================================
ERROR: testAddingDiskUsageInfo (test.test_report_module.TestSystemReportClass)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pi/ttg-healthcheck/daemon/test/test_report_module.py", line 99, in testAddingDiskUsageInfo
self.test_report.add_disk_usage_info()
File "../daemon/src/system_report.py", line 148, in add_disk_usage_info
disk_usage['partitions'] = SysScrubber.fetch_disk_partition_status()
File "../daemon/src/system_report.py", line 476, in fetch_disk_partition_status
disk_buffer = psutil.disk_usage(partition_path.device)
File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 1995, in disk_usage
return _psplatform.disk_usage(path)
File "/usr/lib/python3/dist-packages/psutil/_psposix.py", line 169, in disk_usage
st = os.statvfs(path)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/root'
The text was updated successfully, but these errors were encountered:
Describe the bug
The daemon when deployed on a pi x64 environment, it always fails while fetching disk partition information.
It fails with error:
FileNotFoundError: [Errno 2] No such file or directory: '/dev/root'
To Reproduce
Steps to reproduce the behavior:
celebid -s
Or
python3 -m unittest -v
Expected behavior
The tests pass and the daemon is capable of fetching the partition information.
Device (please complete the following information):
Additional context
Error as it appears in the failed tests:
The text was updated successfully, but these errors were encountered: