Hi,
Looking through the logs, I noticed that there was some exception in Python code:
I noticed tat was happen for the NVMe cache disks, numbered as "1-1" and "1-2", not a single number as the code expects.
I changed Sensors.py, starting from line 721, a try-catch block was added in function addPool(), to handle this:
I had no much time to read the code and I don't know whether a proper sequential numbering in rDict is necessary. I simply placed NVMe as disks numbered 81-82. It is really quick and dirty solution in a hope to get app working.
The code now works OK but the graph is still opened in a separate tab, not a Synology Desktop inline window as for DSM6. I expected that the window will be like that in the picture (1) attached. But AvrLogger opens his own browser tab and displays his charts alone, see picture (2) attached.
Is it normal for DSM7 version or something went wrong?
.
Looking through the logs, I noticed that there was some exception in Python code:
2024.08.11 00:13:26 PKG: AvrLogger was started by CGI ...
Traceback (most recent call last):
File "/var/packages/AvrLogger/target/ui/AvrLogger.py", line 131, in
Init.init( AvrDebug=AvrDebug )
File "/var/packages/AvrLogger/target/ui/lib/Init.py", line 113, in init
Sensors.init()
File "/var/packages/AvrLogger/target/ui/lib/Sensors.py", line 104, in init
Storage() # --- Determine the number of available storagepool's:
File "/var/packages/AvrLogger/target/ui/lib/Sensors.py", line 648, in Storage
if iCache : iRaw, iGUI = _addPool( iDisk, iCache, asset.msg[ 'sysCacheName' ], iRaw, iGUI, iCache=True )
File "/var/packages/AvrLogger/target/ui/lib/Sensors.py", line 723, in _addPool
iNum = int( iDisk[ sDev ][ 'number' ] )
ValueError: invalid literal for int() with base 10: '1-2'
2024.08.11 00:13:34 GUI: AvrLogger quit unexpectedly. Restart initiated ...
I noticed tat was happen for the NVMe cache disks, numbered as "1-1" and "1-2", not a single number as the code expects.
I changed Sensors.py, starting from line 721, a try-catch block was added in function addPool(), to handle this:
Python:
rDict = dict()
for sDev in sID['sdl'] :
iNumStr = iDisk[ sDev ][ 'number' ]
try :
iNum = int( iNumStr )
except :
iCard = int( iNumStr[:1] )
iNum = int( iNumStr[2:] )
iNum = (iCard * 10) + 70 + iNum
rDict[ f'{iNum:02d}' ] = sDev
I had no much time to read the code and I don't know whether a proper sequential numbering in rDict is necessary. I simply placed NVMe as disks numbered 81-82. It is really quick and dirty solution in a hope to get app working.
The code now works OK but the graph is still opened in a separate tab, not a Synology Desktop inline window as for DSM6. I expected that the window will be like that in the picture (1) attached. But AvrLogger opens his own browser tab and displays his charts alone, see picture (2) attached.
Is it normal for DSM7 version or something went wrong?
.
Anhänge
Zuletzt bearbeitet: