ZetaWatch icon indicating copy to clipboard operation
ZetaWatch copied to clipboard

Error keeps popping up on Ventura

Open SmartDucksWorks opened this issue 1 year ago • 9 comments

Error Internal NV list. Check on several machines. Something about 'error - reading pool configuration'. Systems seem to be working fine, not seeing adverse effects but I am checking daily just in case. Screenshot 2023-06-03 at 9 18 31 AM

SmartDucksWorks avatar Jun 03 '23 13:06 SmartDucksWorks

This means that your ZetaWatch version does not match your ZFS version. This is very easily possible since I've not recompiled / updated it in ages. If possible, compile a ZetaWatch for your ZFS version (which version do you use?)

cbreak-black avatar Jun 03 '23 17:06 cbreak-black

zfs-macOS-2.1.6-1 zfs-kmod-2.1.0-1 ZetaWatch-r50-0-g82304d-arm64.zip

SmartDucksWorks avatar Jun 03 '23 19:06 SmartDucksWorks

Hmm... your kmod and userland lib version don't match... that's possibly problematic. But that version of ZetaWatch was compiled for 2.1.6, so it is supposed to work I think.

cbreak-black avatar Jun 03 '23 21:06 cbreak-black

Yeah, you are correct. Seems the installer from OpenZFSonOSX may be the culprit. Will uninstall manually and reinstall to see if that is indeed the actual issue. Should have caught that.

SmartDucksWorks avatar Jun 03 '23 21:06 SmartDucksWorks

Tried compiling your code, that has more fun errors. ;) I

SmartDucksWorks avatar Jun 03 '23 21:06 SmartDucksWorks

Will have to reboot for you to be able to replace the kernel extension, in my experience, unloading it at runtime doesn't work reliably.

The code should compile... but I've only ever compiled it on my own mac, which is old and running an old MacOS and Xcode.

cbreak-black avatar Jun 03 '23 21:06 cbreak-black

OK did a manual clean, reinstalled OpenZFSonOSX, and latest ZetaWatch binary for M! on 3 systems to test. zfs version zfs-macOS-2.1.6-1 zfs-kmod-2.1.6-1

However the ZetaWatch is still providing the same error as before.

SmartDucksWorks avatar Jun 03 '23 21:06 SmartDucksWorks

Very weird :(

This error is detected here: https://github.com/cbreak-black/ZFSWrapper/blob/b0ef0ebe812597676cf88d08a42bcc2be14e65b6/src/ZFSUtils.cpp#L1380-L1382

This code tries to read ZPOOL_CONFIG_VDEV_STATS and reinterpret it as vdev_stat_t, which I think is the expected way to do this. The test checks if the size of the structure is still correct.

cbreak-black avatar Jun 03 '23 21:06 cbreak-black

So far I'm not seeing any actual issue, except for the error constantly popping up. Will keep evaluating as things progress.

SmartDucksWorks avatar Jun 03 '23 22:06 SmartDucksWorks