Bug 270171 - net-mgmt/unifi7: wrong path in UPDATING?
Summary: net-mgmt/unifi7: wrong path in UPDATING?
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Juraj Lutter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-13 09:17 UTC by jan
Modified: 2023-03-13 22:03 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (otis)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jan 2023-03-13 09:17:08 UTC
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.
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-03-13 22:03:19 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6ca9b1e6c0e9f5f2b7430c1126e1f22cd3b35e2b

commit 6ca9b1e6c0e9f5f2b7430c1126e1f22cd3b35e2b
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2023-03-13 21:57:22 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2023-03-13 22:02:37 +0000

    net-mgmt/unifi7: Fix upgrade steps

    As suggested, make the upgrade steps in pkg-message and UPDATING
    more accurate.

    PR:             270171

 UPDATING                             | 21 +++++++++++++------
 net-mgmt/unifi7/Makefile             |  2 +-
 net-mgmt/unifi7/files/pkg-message.in | 39 ++++++++++++++++++++----------------
 3 files changed, 38 insertions(+), 24 deletions(-)
Comment 2 Juraj Lutter freebsd_committer freebsd_triage 2023-03-13 22:03:52 UTC
Thanks for the input. The upgrade steps have been corrected.