May 23, 20242 yr 18 minutes ago, PeteAsking said: It seems this is a common issue with the Unifi controller. Here is an example here: https://community.ui.com/questions/Logins-not-working-after-restoring-backup-to-new-machine/023647bc-2953-421f-ac05-4a19072d702c under legacy interface can you go to settings and then ‘admins’ and review the list of admins there and possible create a new one. Under the modern interface the sso option that links your unifi account on their website to your local deployment is under system - advanced and allows you to remote manage it at https://unifi.ui.com you can try enabling this also and seeing what happens after a restore. let me know after doing some troubleshooting like this. I don't see a settings -> admins in the legacy interface. You sure it still exists in Network 8.1.127? I am running this on a Dream-Machine that has a built-in controller as well. Also not seeing that sso option setting in system -> advanced in the new interface. I already tried creating a separate admin account as you can see as well. Unless my Mongo query is wrong, doesn't look like there a user there at all. I am restoring from 8.1.127 -> 8.1.127 so this is pretty much a non-starter. This is the command I was running mongo --port 27117 ace --eval "db.admin.find().forEach(printjson);" https://community.ui.com/questions/How-to-recover-access-to-a-unifi-controller-when-the-admin-password-has-been-lost-/bea32e54-c8cd-4d08-ba98-b836acebfeb4 All that outputs is like my email and name which shouldn't be the username? Edited May 23, 20242 yr by Dynamiteboy
May 23, 20242 yr Author 6 hours ago, Dynamiteboy said: I don't see a settings -> admins in the legacy interface. You sure it still exists in Network 8.1.127? I am running this on a Dream-Machine that has a built-in controller as well. Also not seeing that sso option setting in system -> advanced in the new interface. I already tried creating a separate admin account as you can see as well. Unless my Mongo query is wrong, doesn't look like there a user there at all. I am restoring from 8.1.127 -> 8.1.127 so this is pretty much a non-starter. This is the command I was running mongo --port 27117 ace --eval "db.admin.find().forEach(printjson);" https://community.ui.com/questions/How-to-recover-access-to-a-unifi-controller-when-the-admin-password-has-been-lost-/bea32e54-c8cd-4d08-ba98-b836acebfeb4 All that outputs is like my email and name which shouldn't be the username? This seems to be a know issue on the unifi forums. Can you try the site export and site import method? https://help.cloudunifi.com/unifi/migrating-sites-with-site-export-wizard/
May 23, 20242 yr 5 hours ago, PeteAsking said: This seems to be a know issue on the unifi forums. Can you try the site export and site import method? https://help.cloudunifi.com/unifi/migrating-sites-with-site-export-wizard/ Sure, what do I need to delete from the docker folders in order to restart the setup process from the beginning?
May 23, 20242 yr Author 16 minutes ago, Dynamiteboy said: Sure, what do I need to delete from the docker folders in order to restart the setup process from the beginning? Just remove the docker and ssh into the server and under app data remove any reminants of the docker if there is anything. Then install again and it will be blank.
June 5, 20242 yr On 5/23/2024 at 10:20 AM, PeteAsking said: Just remove the docker and ssh into the server and under app data remove any reminants of the docker if there is anything. Then install again and it will be blank. I don't think they have a site export anymore. That's a old feature. This entire docker won't work with a restore currently, so it makes it useless for most users. Edited June 5, 20242 yr by Dynamiteboy
June 5, 20242 yr Author 15 hours ago, Dynamiteboy said: I don't think they have a site export anymore. That's a old feature. This entire docker won't work with a restore currently, so it makes it useless for most users. I just checked and site export exists in the latest version. I want to reiterate, this is not a unifi support forum for how to use the unifi controller. There is already a unifi forum maintained by unifi for this. If you dont know how to site export and import, then its up to you to go and ask on their forums. The support here is specific to the docker - getting it up and running and so on. The docker functions, the backup and restore process works (unfortunately) how unifi create it. The site import export works how unifi create it. I cannot actually change the way the unifi controller works as its maintained by unifi. Many users of their software have issue backing up and restoring, and their own support suggests using the site import/export. But I want to be clear, its not anything I have control over. If x feature does not work in their software, only unifi can fix it. Site export is under system-general-site management - here is a screenshot. Good luck. If the unifi software is "useless" because you cannot backup and restore, you should complain to unifi about it and tell them the software they create is useless. I dont code or create it. Telling me it is useless is not something that bothers me all that much. I know its useless. I already have to use it. Edited June 5, 20242 yr by PeteAsking
June 6, 20242 yr 9 hours ago, PeteAsking said: I just checked and site export exists in the latest version. I want to reiterate, this is not a unifi support forum for how to use the unifi controller. There is already a unifi forum maintained by unifi for this. If you dont know how to site export and import, then its up to you to go and ask on their forums. The support here is specific to the docker - getting it up and running and so on. The docker functions, the backup and restore process works (unfortunately) how unifi create it. The site import export works how unifi create it. I cannot actually change the way the unifi controller works as its maintained by unifi. Many users of their software have issue backing up and restoring, and their own support suggests using the site import/export. But I want to be clear, its not anything I have control over. If x feature does not work in their software, only unifi can fix it. Site export is under system-general-site management - here is a screenshot. Good luck. If the unifi software is "useless" because you cannot backup and restore, you should complain to unifi about it and tell them the software they create is useless. I dont code or create it. Telling me it is useless is not something that bothers me all that much. I know its useless. I already have to use it. Are you sure its not the docker container? None of my Dream Machine's have Site import/export.
June 6, 20242 yr 5 hours ago, Dynamiteboy said: Are you sure its not the docker container? None of my Dream Machine's have Site import/export. Export Site is only enabled if there are multiple sites defined in your install.
June 6, 20242 yr Author 7 hours ago, Dynamiteboy said: Are you sure its not the docker container? None of my Dream Machine's have Site import/export. You didnt actually answer my troubleshooting step regarding "Sync Local Admins with SSO". Did you do this and then try a restore and ensure that you can login with your unifi email and password? eg login to https://unifi.ui.com/ with your email and this should also work logging into the local device with that option. This would ensure a login synced to unifi can access the controller then restoring it should still work. The username is then synced from unifis servers - no need for local admins to work. You have to do all the troubleshooting steps not just pick a couple here and there. Edited June 6, 20242 yr by PeteAsking
June 7, 20242 yr On 6/6/2024 at 4:35 AM, JonathanM said: Export Site is only enabled if there are multiple sites defined in your install. What does that mean? I have multiple sites each with their own Dream Machine with their own built-in "Cloud Key" On 6/6/2024 at 6:17 AM, PeteAsking said: You didnt actually answer my troubleshooting step regarding "Sync Local Admins with SSO". Did you do this and then try a restore and ensure that you can login with your unifi email and password? eg login to https://unifi.ui.com/ with your email and this should also work logging into the local device with that option. This would ensure a login synced to unifi can access the controller then restoring it should still work. The username is then synced from unifis servers - no need for local admins to work. You have to do all the troubleshooting steps not just pick a couple here and there. Yes I did, I can login locally with both the local credentials and the SSO credentials. Neither work post site-restore. Any chance you can help me with some Mongo Queries to identify what is happening?
June 7, 20242 yr Author 15 minutes ago, Dynamiteboy said: What does that mean? I have multiple sites each with their own Dream Machine with their own built-in "Cloud Key" Yes I did, I can login locally with both the local credentials and the SSO credentials. Neither work post site-restore. Any chance you can help me with some Mongo Queries to identify what is happening? I don’t know how to fix this issue or how to manipulate unifi’s database. Please can you open a thread on unifi’s support forum and ask them what you are supposed to do if the restore procedure from a UDM to a docker container does not allow you to login post restore. You can link the opened thread here in case they say something but nobody else has the issue so it’s something specific to your setup that’s caused some corruption or issue. Im not sure at this stage if the UDM failed if you even have a valid backup at this time. Edited June 7, 20242 yr by PeteAsking
June 7, 20242 yr 3 hours ago, PeteAsking said: I don’t know how to fix this issue or how to manipulate unifi’s database. Please can you open a thread on unifi’s support forum and ask them what you are supposed to do if the restore procedure from a UDM to a docker container does not allow you to login post restore. You can link the opened thread here in case they say something but nobody else has the issue so it’s something specific to your setup that’s caused some corruption or issue. Im not sure at this stage if the UDM failed if you even have a valid backup at this time. I will do that, but are you able to replicate on your end? Are you sure restores work fine for you too? Or have you never attempted?
June 7, 20242 yr Author I think everyone or near 100% of people on this thread had to do a restore from the Linuxserver container to this one but they were all probably docker backup to docker restore. Unsure if anyone has done a udm to docker conversion. Most of us use a firewall like opnsense so don’t have a udm (hence the need for a docker container to begin with).
June 7, 20242 yr 8 minutes ago, PeteAsking said: I think everyone or near 100% of people on this thread had to do a restore from the Linuxserver container to this one but they were all probably docker backup to docker restore. Unsure if anyone has done a udm to docker conversion. Most of us use a firewall like opnsense so don’t have a udm (hence the need for a docker container to begin with). Got it, okay makes sense. I opened a ticket with Unifi.
June 8, 20242 yr Author 2 hours ago, Dynamiteboy said: Got it, okay makes sense. I opened a ticket with Unifi. If possible post the link so we can see what they say
June 8, 20242 yr 1 hour ago, PeteAsking said: If possible post the link so we can see what they say I opened and actual support ticket since I own the hardware under warranty to hopefully get better support. Its not public but I will report back if I can get it resolved.
June 8, 20242 yr 12 hours ago, Dynamiteboy said: I opened and actual support ticket since I own the hardware under warranty to hopefully get better support. Its not public but I will report back if I can get it resolved. When moving from physical hardware, you have to choose the backup option file with last 30 days to generate and rebuild the database. Your recovery file may be corrupted and restoring form a bad or mismatched version (hardware running newer to older) will not restore. Since Unif moved to mongo for its DB. Mongo needs to recreate the db file. When moving from physical hardware to docker the database created are named differently. In Docker you would need to delete the database folder after a restore tomaybe regain and have unifi recreate. Doing that would delete all adopted devices and some configuration along with any stats. Or go to a factory reset install of unifi and restore at the setup part. as setup would create the database pathing needed. see unifi support: https://help.ui.com/hc/en-us/articles/360006634094-UniFi-Repairing-Database-Issues-on-the-UniFi-Network-Application In your case i would recommend the LXC version to then use and install other tools to go in and edit if needed.
June 8, 20242 yr Author 26 minutes ago, bmartino1 said: When moving from physical hardware, you have to choose the backup option file with last 30 days to generate and rebuild the database. Your recovery file may be corrupted and restoring form a bad or mismatched version (hardware running newer to older) will not restore. Since Unif moved to mongo for its DB. Mongo needs to recreate the db file. When moving from physical hardware to docker the database created are named differently. In Docker you would need to delete the database folder after a restore tomaybe regain and have unifi recreate. Doing that would delete all adopted devices and some configuration along with any stats. Or go to a factory reset install of unifi and restore at the setup part. as setup would create the database pathing needed. see unifi support: https://help.ui.com/hc/en-us/articles/360006634094-UniFi-Repairing-Database-Issues-on-the-UniFi-Network-Application In your case i would recommend the LXC version to then use and install other tools to go in and edit if needed. @bmartino1 I’m not clear on your suggestion for him. It sounds like you are saying he might have to setup from scratch. So is a backup file from a UDM incompatible with a docker setup?
June 8, 20242 yr 32 minutes ago, PeteAsking said: @bmartino1 I’m not clear on your suggestion for him. It sounds like you are saying he might have to setup from scratch. So is a backup file from a UDM incompatible with a docker setup? That's correct, the udm is running a arm version 1 level higher. there are some small difference in execution and config in the restore file. due to x86 vs arm code. it is possible to transfer. but very hard. Its designed to be able to move from docker to there hardware. Using unfi backup and other stuff it is possible to go back the other way: https://github.com/aessing/unifi-udm-backup I only know how to run the restore from this backup form arm to docker. Which is why I recommend the LXC. Edited June 8, 20242 yr by bmartino1 data / speling
June 8, 20242 yr 39 minutes ago, PeteAsking said: @bmartino1 I’m not clear on your suggestion for him. It sounds like you are saying he might have to setup from scratch. So is a backup file from a UDM incompatible with a docker setup? to be clear as it has been done and documented. there restore file is garbage and needs to be recreated. Backup info form unifi: https://help.ui.com/hc/en-us/articles/360008976393-UniFi-Backups-and-Migration They would need to really need to watch the unifi version and code. and be running the lattest network application to maintain versions
June 8, 20242 yr Author 2 minutes ago, bmartino1 said: to be clear as it has been done and documented. there restore file is garbage and needs to be recreated. Backup info form unifi: https://help.ui.com/hc/en-us/articles/360008976393-UniFi-Backups-and-Migration They would need to really need to watch the unifi version and code. and be running the lattest network application to maintain versions That Reddit link seems to suggest he can do a site export/import but he said he does not have a site export option so why would that be? udms are always surprising me how shit they are. So glad I never used or bought one.
June 8, 20242 yr My friend own one and its only great feature that we used it for is telport(quick vpn). They are a pain to configure and setup due to nat issues. but otherwise great firewalls and systems for the security cameras and ap setup. not sure his configuration and why they woulnd't have a site export option. May have been a legacy feature: https://community.ui.com/questions/CloudKey-Plus-Gen2-Unifi-Controller-missing-top-right-menu-with-site-options/f0730e5f-53c0-4e97-8893-c6b8bb88ecc6?page=2
June 8, 20242 yr Author 1 minute ago, bmartino1 said: My friend own one and its only great feature that we used it for is telport(quick vpn). They are a pain to configure and setup due to nat issues. but otherwise great firewalls and systems for the security cameras and ap setup. not sure his configuration and why they woulnd't have a site export option. May have been a legacy feature: https://community.ui.com/questions/CloudKey-Plus-Gen2-Unifi-Controller-missing-top-right-menu-with-site-options/f0730e5f-53c0-4e97-8893-c6b8bb88ecc6?page=2 @bmartino1 ok you are a genius. We should just do whatever you say. @Dynamiteboy the dude on reddit above found site export somehow. Can’t you look for it like he did?
June 8, 20242 yr I appreciate your candor. My no means am I a genius, I have my moments from my own curiosity and experiences. With all things on the internet, things should be taken with a grain of salt. More guidelines than what to do. Recently my friend with the udm also grabbed a usg and wanted to run this docker unfi with the usg by importing the udm config. This is where my experience in this matter happened.
June 8, 20242 yr I saw a Reddit post a few days ago showing that site backup was only available in Legacy Mode. I don’t have a UDM so can’t check this.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.