Closed rienafairefr closed 1 month ago
hello, I will run a test and see if i encounter same issue
Seems to me I've raised the issue before looking deep enough https://mariushosting.com/synology-hyper-backup-vs-hyper-backup-vault/ There is a difference between these two, and I was not using hyper backup vault. So of course, I shouldn't expect to be able to scrape a metric for it. Once I install the hyperbackupvault package on the NAS, the API becomes available and the code doesn't crash anymore. There is no bug in synology-api, my apologies :-D
Describe the bug I was trying to access HyperBackup info through the DSM API, more specifically the prometheus exporter raph2i/synology_backup_exporter, and getting a KeyError exception
I've attached the gen_list from my NAS as received from the API: gen_list.json
I've tested with all the users, a non-admin, user in admin groups, full-admin, with the same result.
The user I'm using doesn't seem to have a problem with accessing the hyperbackup targets or config or whatever in the web-UI.
The hyperbackup has already run before, it's not a first run. Can SYNO.Backup.Service.VersionBackup.Target be a target I'm not using, like to a remote NAS or C2 ? I only have a push to a remote webdav and that's it.
It might be a compatibility problem with the latest update in DSM7 (I haven't tested with the versions before that one, and it's apparently impossible to downgrade)
Running DS220+, with DSM 7.2.1-69057 Update 5