From owner-freebsd-ports@freebsd.org Sun Jul 26 15:35:19 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2A0F736341D for ; Sun, 26 Jul 2020 15:35:19 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BF6T15439z3SgM; Sun, 26 Jul 2020 15:35:17 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.110.112]) by smarthost1.greenhost.nl with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1jzigC-00045c-PF; Sun, 26 Jul 2020 17:35:14 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=klop.ws; s=mail; h=In-Reply-To:Message-ID:From:Content-Transfer-Encoding:MIME-Version: Date:References:Subject:Cc:To:Content-Type:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=+yM35lUOxtsgE4gCYC0TcGDWAO+QpcPEkNeLtjNtnIY=; b=FjmvuxvA8zUVpzyQw2aclhuDLh 9Rs+DXj8EpdrShn5L78JFO8sIFTwPbXm5O1e2lr11SkNC0UTcaU1JkoBOWlWNSlNXac04gcGkhtzF tS8+2p0PP5upiD4bpaD3eLZxHvTjd3Xw+NQokDh1mqESReAzFzWd/qV7x3Yh3eY1Rezc=; Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: "Doug Sampson" , "Ronald Klop" Cc: "Dave Cottlehuber" , "Kurt Jaeger" , freebsd-ports Subject: Re: Fwd: unifi5, mongodb and python2 References: <600638455.50.1591952906893@localhost> <1077963586.7.1592341599534@localhost> <20200617070411.GP39563@home.opsec.eu> <3eb134a7-22a3-46af-9744-a5fb8d42415d@www.fastmail.com> <1501158485.1.1594062958975@localhost> Date: Sun, 26 Jul 2020 17:35:09 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: <1501158485.1.1594062958975@localhost> User-Agent: Opera Mail/1.0 (Win32) X-Authenticated-As-Hash: bdb49c4ff80bd276e321aade33e76e02752072e2 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.4 X-Spam-Status: No, score=-0.4 required=5.0 tests=ALL_TRUSTED, BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF autolearn=disabled version=3.4.2 X-Scan-Signature: 049f1f45ba4289533fd3e2bb72fd36da X-Rspamd-Queue-Id: 4BF6T15439z3SgM X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=mail header.b=FjmvuxvA; dmarc=none; spf=pass (mx1.freebsd.org: domain of ronald-lists@klop.ws designates 195.190.28.88 as permitted sender) smtp.mailfrom=ronald-lists@klop.ws X-Spamd-Result: default: False [-2.44 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.03)[-1.031]; R_DKIM_ALLOW(-0.20)[klop.ws:s=mail]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[195.190.28.88:from]; R_SPF_ALLOW(-0.20)[+ip4:195.190.28.64/27]; NEURAL_HAM_LONG(-1.00)[-0.999]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[klop.ws]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[klop.ws:+]; NEURAL_HAM_SHORT(-0.41)[-0.407]; RCVD_IN_DNSWL_NONE(0.00)[195.190.28.88:from]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:47172, ipnet:195.190.28.0/24, country:NL]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jul 2020 15:35:19 -0000 On Mon, 06 Jul 2020 21:15:58 +0200, Ronald Klop 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 > Datum: maandag, 6 juli 2020 20:17 > Aan: Dave Cottlehuber , Kurt Jaeger , > Ronald Klop > CC: freebsd-ports > 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 >> on behalf of Dave Cottlehuber >> 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"