hassio-addons / addon-unifi

UniFi Network Application - Home Assistant Community Add-ons
https://addons.community
MIT License
278 stars 138 forks source link

Restore from backup fails #500

Closed rcmaehl closed 6 months ago

rcmaehl commented 8 months ago

Problem/Motivation

Attempting to migrate from an old controller to the HA controller fails.

Expected behavior

Site export file restores and able to sign in

Actual behavior

Invalid username and/or password error

Steps to reproduce

Sign into existing controller Go to settings -> Export Site Install addon-unifi Restore from backup Attempt to sign in

Proposed changes

(If you have a proposed change, workaround or fix, describe the rationale behind it)

rcmaehl commented 8 months ago

Choosing "Forgot Password" fails with This email address is not registered to receive password reset requests from your UniFi Network Server.

github-actions[bot] commented 7 months ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

rcmaehl commented 7 months ago

Commenting so this doesn't get closed. Considering no new releases for addon-unifi have occurred, it should still occur

sinclairpaul commented 7 months ago

It likely fails due to the history import, try restoring only config.

dankfred commented 6 months ago

I'm having the exact same issue, tried restoring a backup with and without history, same result. A work-around I've seen people discuss on forums is to restore a backup that was scheduled, rather than a manually triggered one, but that doesn't seem to work for me.

rcmaehl commented 6 months ago

I was eventually able to work around this by setting up the HA Unifi Add-on and then restoring from backup within the settings but I had to manually re-adopt all my APs over SSH plus some additional workarounds for auto-adopt failing from the unifi forums.

dankfred commented 6 months ago

Yeah I tried doing that with no luck. However, I did install the pc version, restored the backup there, inspected the database just to see that because my backup was from a UDR, the backup did not include a password, since the password is handled by the console backup instead. Manually editing the password and then backing up again, to restore on this addon did the trick! Once I pointed all devices to the new controller IP from my old UDR, I did not need to re-adopt anything, just worked