[Help]: OC200 Controller Migrate to New Docker Controller Error #376
-
Controller Versionv5.12.7 Describe Your Issue or QuestionPutting this in its own discussion to separate this issue. When trying to restore a controller backup or using the controller migration steps from an OC200 running v5.12.9 into a new Proxmox/Ubuntu 22.04 VM/docker software controller v5.12.7 instance I get a UI error. "Restore Failed, Unknown error" A site only backup from the OC200 will restore into the docker software controller successfully. A log error is below. Is this a permission problem? I am running the container as a user with id 1000 group id 1000 who is in the docker group. Am I missing the point with the 508 uid and guid from the docs? I can successfully restore the same controller backup to a fresh Ubuntu 20.04 VM which I have installed the omada deb file using the below commands. So the backup file is not the issue. Additionally to rule out Ubuntu 22.04 vs 20.04 I have tried the docker container on another fresh 20.04 ubuntu / docker install. I have tried the docker image using a stack in portainer and via a docker command to rule that out. I can only imagine I am missing something with the Docker Container process? Expected BehaviorMigration / Restore is successful Steps to ReproduceBackup OC200 controller How You're Launching the Container
Container Logs
MongoDB LogsNo response Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
So I'm sorry but it is not clear which all of the scenarios you described fail and which do succeed as I was wanting to understand if there is potentially some issue with some software package missing in the container or something else. Could you list what were the results of each of the scenarios you described on a pass/fail? |
Beta Was this translation helpful? Give feedback.
-
Yes sorry it was a bit of a ramble Pass: Fail: |
Beta Was this translation helpful? Give feedback.
-
Hi I have since got this working on the new controller by restoring the OC200 backup to the ubuntu 20.04 .deb install, taking a backup from there and then restoring that into the container instance. All seems to be working ok. Pass: The OC200 backup I used was: 365 day, retain user info, to local file. I did the same backup on the ...Linux_x64.deb install which was restored onto the container instance. I did not migrate the devices to the ...Linux_x64.deb install. I used it only to perform a restore and then create a new backup file. Once the backup was restored onto the new controller all devices showed as "Disconnected". After turning off the OC200 the devices on the new controller began to adopt, provision and then connect. The known clients are maintained at the controller not site level and the length of data retained in the backup has an impact on this list (clients last seen x days ago). Working Portainer Stack / Docker Compose: version: "3.1" services: Thanks again for assisting with my issue and for creating and maintaining the docker image. |
Beta Was this translation helpful? Give feedback.
Hi
Thanks for looking into this.
I had tried both a migration and a backup/restore. (and tried settings only, with and without user data, and various lengths of data backed up).
The migration does what appears to be just a backup which you then restore onto the new controller.
A site migration seems to be the only way to "backup" a "site" as there is no separate way to do that.
I have since got this working on the new controller by restoring the OC200 backup to the ubuntu 20.04 .deb install, taking a backup from there and then restoring that into the container instance. All seems to be working ok.
Pass:
OC200 Controller backup > Ubuntu 20.04 VM with Omada_SDN_Controller_v5.12.7_Linux_x64.…