[Bug 270171] net-mgmt/unifi7: wrong path in UPDATING?

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 13 Mar 2023 09:17:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270171

            Bug ID: 270171
           Summary: net-mgmt/unifi7: wrong path in UPDATING?
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: otis@FreeBSD.org
          Reporter: jan@glaubitz.org
             Flags: maintainer-feedback?(otis@FreeBSD.org)
          Assignee: otis@FreeBSD.org

I wanted to update the unifi / mongodb version and followed the instructions
from UPDATING. I think the path is not correct:

> 20230310:
>  AFFECTS: users of net-mgmt/unifi7
>  AUTHOR: otis@FreeBSD.org
>
>  The mongodb dependency has been changed from 36 to 44, as MongoDB 3.6
>  is long out out support and end of life.
>
>  The upgrade path should be as following:
>
>  1. Take a backup from within the unifi7 application PRIOR to
>     updating!
>
>  2. Stop the unifi7 service (if running)
>
>  3. Copy the "backup" directory from LOCALBASE/share/java/unifi/data/db
>     to a safe location.
>
>  4. Remove all files and directories under
>     LOCALBASE/share/java/unifi/data/db
>
>  5. Upgrade the package and start the service
>
>  6. Restore the configuration from backup

Step 3: The "backup" directory is under LOCALBASE/share/java/unifi/data/, not
LOCALBASE/share/java/unifi/data/db.

Step 4: if you just delete the content of the "db" folder you will end up with
a controller you cant login to and you dont have the option to restore the
backup from step 1. I *think* it should be LOCALBASE/share/java/unifi/data. I
ended up deleting LOCALBASE/share/java/unifi/ and just reinstall everythig and
it worked for me.

-- 
You are receiving this mail because:
You are the assignee for the bug.