On Mon, 06 Jul 2020 21:15:58 +0200, Ronald Klop <ronald-li...@klop.ws> wrote:

Yes, I'm testing stuff.

Unifi5 runs with mongodb40 for some time now in my house setup.
But I had issues upgrading to mongodb42. Which I'm looking into. It seems to work in my current setup. I got a little bit swamped by all the different versions of unifi5, mongodb and a jail which was connecting to the server of the host which did not help. :-)

In the meantime there were updates to mongodb ports which I test-compiled on my RPI3 which takes a loooooong time to build.

Interesting setups:
unifi5 mongodb36 clean install  (Works)
unifi5 mongodb40 clean install
unifi5 mongodb42 clean install

unifi5 mongodb40 upgrade from mongodb36  (Works)
unifi5 mongodb42 upgrade from mongodb40
unifi5 mongodb42 upgrade from mongodb36

What I find interesting is that Unifi does "setting mongodb features compatibility version to 3.6". This should not be possible on 4.2 because Mongodb only supports 1 version back. I saw errors/crashes about this, but can't reproduce it. Which might have to do with my jail-problems mentioned above.

If somebody beats me to test the different combinations of the software and creates PRs, please do. I hope to find some time this or next week.

Regards,

Ronald.


Hi,

I did some tests on unifi5-5.13.29.

First install:
 36. Works (gives a WebGUI)
 40. Works (gives a WebGUI)
 42. Works (gives a WebGUI, but already found an error, see below)

Upgrade
 36 > 40 Works
 40 > 42 Works partly and needs manual action [1]

[1] MongoDB has a "featureCompatiblityVersion" on the database. Unifi actively sets this to "3.6" on startup. MongoDB-4.2 will not start if featureCompatiblityVersion=3.6. So you need to set featureCompatiblityVersion=4.0 before starting mongodb42.
Steps:
 1. start unifi with mongodb40
2. run "mongo --port 27117" > db.adminCommand( { setFeatureCompatibilityVersion: "4.0" } )
 3. stop unifi
 4. remove mongodb40; install mongodb42
 5. start unifi


!!! BUT: !!!
The WebGUI runs and clicking around seems to work. As a first test I clicked "Compact Database" in Settings > Maintenance. This gives an error because $eval is not supported anymore.
https://docs.mongodb.com/manual/release-notes/4.2-compatibility/#remove-support-for-the-eval-command

I don't know if there are more of these things yet, but it will mean we already know some things do not work with mongodb42.

I will install mongodb42 in my home setup and run it for a couple of days. Mongodb40 runs without problems here for some weeks now.

Ronald.



 Van: Doug Sampson <do...@dawnsign.com>
Datum: maandag, 6 juli 2020 20:17
Aan: Dave Cottlehuber <d...@skunkwerks.at>, Kurt Jaeger <p...@freebsd.org>, Ronald Klop <ronald-li...@klop.ws>
CC: freebsd-ports <freebsd-ports@freebsd.org>
Onderwerp: Re: Fwd: unifi5, mongodb and python2
Is there any movement on this issue? I don't see a PR? I have an installation facing this issue.
 ~Doug
________________________________________
From: owner-freebsd-po...@freebsd.org <owner-freebsd-po...@freebsd.org> on behalf of Dave Cottlehuber <d...@skunkwerks.at>
Sent: Wednesday, June 17, 2020 9:34 AM
To: Kurt Jaeger; Ronald Klop
Cc: freebsd-ports
Subject: Re: Fwd: unifi5, mongodb and python2
 On Wed, 17 Jun 2020, at 09:04, Kurt Jaeger wrote:
> Hi!
>
> > Looking for some feedback on this. Or should I just go ahead and create PRs?
>
 Sounds good to me.
I have recently done a few mongo Mongo mongo upgrades would I can prep some notes on that, perhaps in the wiki? We could reference it in the pkg-message perhaps?
 Dave
_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to