Closed slishak closed 1 year ago
OK, you maybe don't have one of your mounts active?
The output shows: /mnt/sabrent: No such device or address
I'm adding a filter for "No such device" so we don't get an error in this case any longer. A warning will be issued from the script if this is actually seen.
This fix has been committed and will appear in versions v1.6.2 and later.
Hi getting a similar error:
Traceback (most recent call last):
File "/opt/RPi-Reporter-MQTT2HA-Daemon/ISP-RPi-mqtt-daemon.py", line 1212, in <module>
getFileSystemDrives()
File "/opt/RPi-Reporter-MQTT2HA-Daemon/ISP-RPi-mqtt-daemon.py", line 913, in getFileSystemDrives
next_power_of_2(lineParts[total_size_idx]))
File "/opt/RPi-Reporter-MQTT2HA-Daemon/ISP-RPi-mqtt-daemon.py", line 932, in next_power_of_2
size_as_nbr = int(size) - 1
ValueError: invalid literal for int() with base 10: 'Drive'
Attaching the BugInfo file here as well:
Checklist:
Release with the issue: 1.6.0
Last working release (if known): N/A
Hardware, Operating System, Python version:
Raspberry Pi 4 Model B Rev 1.5, 2GB RAM Buster 5.10.103-v7l+
Description of problem:
The script fails due to the following error:
Probably due to the drive in
/mnt/sabrent
not being mounted correctly.Run our report script 'genBugInfo' on your failing device and include the output here:
Python errors shown in the logs (if applicable):
Additional information: