Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jul 2020 17:35:09 +0200
From:      "Ronald Klop" <ronald-lists@klop.ws>
To:        "Doug Sampson" <dougs@dawnsign.com>, "Ronald Klop" <ronald-lists@klop.ws>
Cc:        "Dave Cottlehuber" <dch@skunkwerks.at>, "Kurt Jaeger" <pi@freebsd.org>, freebsd-ports <freebsd-ports@freebsd.org>
Subject:   Re: Fwd: unifi5, mongodb and python2
Message-ID:  <op.0odb8vp7kndu52@joepie>
In-Reply-To: <1501158485.1.1594062958975@localhost>
References:  <600638455.50.1591952906893@localhost> <1077963586.7.1592341599534@localhost> <20200617070411.GP39563@home.opsec.eu> <3eb134a7-22a3-46af-9744-a5fb8d42415d@www.fastmail.com> <f761b0cfe8b94bf89fd402b7c671504b@dawnsign.com> <1501158485.1.1594062958975@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 06 Jul 2020 21:15:58 +0200, Ronald Klop <ronald-lists@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 <dougs@dawnsign.com>
> Datum: maandag, 6 juli 2020 20:17
> Aan: Dave Cottlehuber <dch@skunkwerks.at>, Kurt Jaeger <pi@freebsd.org>,  
> Ronald Klop <ronald-lists@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-ports@freebsd.org <owner-freebsd-ports@freebsd.org>  
>> on behalf of Dave Cottlehuber <dch@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-unsubscribe@freebsd.org"
>>
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.0odb8vp7kndu52>