homebridge-config-ui-x: [Homebridge UI] Restore backup failed: zlib: unexpected end of file when trying to restore a backup on new HB instance on new machine.
Current Situation
Trying to move my homebridge instance from one Mac to a new one and I am getting this error. [11/26/2023, 10:46:17 AM] [Homebridge UI] Restore backup failed: zlib: unexpected end of file
The homebridge I am trying to back up is a Mac Mini 2018 (so intel CPU) running latest MacOS Sonoma. homebridge is 1.7.0 plugins and Node version are up to date (node version 20.10.0)… I can make and download my backup file fine. I stop my hb instance via hb service command,.
The new mac I am trying to restore to is an M2 Max Mac Studio, running 1.7 homebridge and same 20.10.0 node version. No plugins yet… I believe the restore will install them.
The backup file itself is 1.7 MBs and unzips with no errors and I can see the config files… so it doesn’t seem to be a corrupt backup.
Logs
Even with debug logging on this is the only error I get in the logs:
[11/26/2023, 10:46:17 AM] [Homebridge UI] Restore backup failed: zlib: unexpected end of file
Config
No response
Homebridge UI Version
4.53.0
Homebridge Version
1.7.0
Node.js Version
20.10.0
Operating System
macOS
Environment Info
- Using Docker?
- Using Hyper-V?
- Using hb-service?
Raspberry Pi Model
None
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Comments: 24 (14 by maintainers)
Commits related to this issue
- Fix for backups including npm's cache, and therefore being too large to upload and restore. closes #1856 — committed to sapireli/homebridge-config-ui-x by sapireli 6 months ago
- Fix for backup service including npm's cache, and therefore being too large to upload generating a zlib error #1948 Fix for backups including npm's cache, and therefore being too large to upload and ... — committed to sapireli/homebridge-config-ui-x by sapireli 6 months ago
@bwp91 Updated to Beta.79 and it worked without any problems. Thank you so much!
sorry @sapireli didnt mean to overrule you there but there indeed was a an issue with the UI, so any backups should be restore-able now