From owner-freebsd-ports-bugs@freebsd.org Mon Jul 8 16:39:39 2019 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0904815E2D0C for ; Mon, 8 Jul 2019 16:39:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8AA4476BFD for ; Mon, 8 Jul 2019 16:39:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 4A83F15E2D08; Mon, 8 Jul 2019 16:39:38 +0000 (UTC) Delivered-To: ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 27DF615E2D07 for ; Mon, 8 Jul 2019 16:39:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BABC276BFA for ; Mon, 8 Jul 2019 16:39:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 06480CC8C for ; Mon, 8 Jul 2019 16:39:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x68GdaXA096214 for ; Mon, 8 Jul 2019 16:39:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x68Gdakl096213 for ports-bugs@FreeBSD.org; Mon, 8 Jul 2019 16:39:36 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 238785] sysutils/py-google-compute-engine: Some GCE packages fill the logs with an error message Date: Mon, 08 Jul 2019 16:39:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: mage@mage.gold X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jul 2019 16:39:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238785 --- Comment #8 from Mage --- I did my best. The rest is up to you. Here is what I found: I created two servers, test1 and test2. test1 is a clone or a running serve= r. test2 was a saved image of that server in January 2019. I booted up both servers. test1 put the error message into the log every minute. test2 did not put there anything. I upgraded both servers using pkg upgrade. I compared the package list with diff. They were identical except for the PostgreSQL version (10 vs. 11). It= was the only difference. test1 kept adding the error to the logs. test2 did not do it. (All my running servers behave the same as test1). I ran diff -ur on /usr/local/etc and /etc to compare the both servers. I fo= und almost nothing belpful. They were almost the same, except fot the apache co= nfig in /usr/local/etc. There was in interesting difference though. On test2, my user was in the google-sudoers group. On test1, it was not. google-sudoers:*:1003: vs.=20 google-sudoers:*:1003:mage I don=E2=80=99t like sudo. On my non-google FreeBSD servers, I=E2=80=99ve n= ever had it installed. On GCE, I use it solely for 'sudo su -' It is sure I did not remove myself from that file. I didn=E2=80=99t even kn= ow I was in that group. I don=E2=80=99t even know what that group does because I can 's= udo su -' on any server on which I=E2=80=99m not a member of that group. As the log was not helpful, I went throgh the three files, and I added a li= ne to /usr/local/lib/python2.7/subprocess.py Line 185: print popenargs Then, I killed the daemons (the service google-xxx-daemon stop doesn=E2=80= =99t work by the way), and I ran it from console. root@test1 ~ # /usr/local/bin/google_accounts_daemon-2.7 (['gpasswd', '-a', 'mage', 'google-sudoers'],) (['gpasswd', '-a', 'mage', 'google-sudoers'],) [...] It tries to add me to that group in every minute using gpasswd. There is no gpasswd on the server, and I think it never was. For this reason, test2 also couldn=E2=80=99t have gpasswd. I was surprised = because it did the following: root@test2 ~ # /usr/local/bin/google_accounts_daemon-2.7 (['pw', 'groupmod', 'google-sudoers', '-m', 'mage'],) For some reason, test2 didn=E2=80=99t try to execute gpasswd (Linux) but th= e pw command, as it should on FreeBSD. Another difference is that test2 executed the command only once, right afte= r I started the daemon. It never tried it again. test1 tried to do it in every minute but with a different command. I added myself to that group on test1. pw usermod mage -G google-sudoers It did not help. The daemon was trying to add me, with the wrong command. Now more or less the only difference between the two servers is the FreeBSD version. FreeBSD test1 11.2-RELEASE-p9 FreeBSD 11.2-RELEASE-p9 #0: Tue Feb 5 15:30:= 36 UTC 2019 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERI= C=20 amd64 FreeBSD test2 11.2-RELEASE-p8 FreeBSD 11.2-RELEASE-p8 #0: Tue Jan 8 21:35:= 12 UTC 2019 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERI= C=20 amd64 I=E2=80=99m not sure this causes them to run different commands for adding = me to the group. I will run freebsd-update on both, and see what happens. --=20 You are receiving this mail because: You are the assignee for the bug.=