From unknown Sun Mar 08 17:51:44 2026
MIME-Version: 1.0
X-Mailer: MIME-tools 5.502 (Entity 5.502)
X-Loop: owner@bugs.x2go.org
From: owner@bugs.x2go.org (X2Go Bug Tracking System)
Subject: Bug#783 closed by Mihai Moldovan <ionic@ionic.de> (Re: [X2Go-Dev]
 Bug#783: Bug#783: RPM Pre Script fail on Upgrade (Nightly))
Message-ID: <handler.783.b783.142349531311405.notifdone@bugs.x2go.org>
References: <54D8D077.2000009@ionic.de>
X-X2go-PR-Message: they-closed 783
X-X2go-PR-Package: x2goserver
X-X2go-PR-Source: x2goserver
Date: Mon, 09 Feb 2015 15:25:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1423495502-11766-0"

This is a multi-part message in MIME format...

------------=_1423495502-11766-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8

This is an automatic notification regarding your Bug report
which was filed against the x2goserver package:

#783: RPM Pre Script fail on Upgrade (Nightly)

It has been closed by Mihai Moldovan <ionic@ionic.de>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Mihai Moldovan <ionic@=
ionic.de> by
replying to this email.


--=20
783: http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=3D783
X2Go Bug Tracking System
Contact owner@bugs.x2go.org with problems

------------=_1423495502-11766-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 783) by bugs.x2go.org; 9 Feb 2015 15:21:53 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID,
	URIBL_BLOCKED autolearn=ham version=3.3.2
Received: from Root24.de (powered.by.root24.eu [5.135.3.88])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 6BE3A3BE64
	for <783@bugs.x2go.org>; Mon,  9 Feb 2015 16:21:51 +0100 (CET)
Received: from nopileos.local (home.ionic.de [217.92.117.31])
	by mail.ionic.de (Postfix) with ESMTPSA id D95774F06C96;
	Mon,  9 Feb 2015 16:21:50 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ionic.de; s=default;
	t=1423495311; bh=nMvKpRUzz+eQKmuMJ4BdqSwlzygWZHztUuRq/UExup0=;
	h=Date:From:To:Subject:References:In-Reply-To:From;
	b=ToJlDBWY/A5SWD2zo3UNHNMdJdFXSlKYkkT/+3Jl9Qiq08sK2eFFDuzpkbPW4x5og
	 HsvM1fUhetgj9njDtAql1TR1n9VInvhsNJKYBcsKA399cne+1mhBUIuh3jM7kE68Sf
	 jZaNlGJmiJHtzmfoD3opeM1LDbp/gVT7F9ffA0X0=
Message-ID: <54D8D077.2000009@ionic.de>
Date: Mon, 09 Feb 2015 16:21:27 +0100
From: Mihai Moldovan <ionic@ionic.de>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>, 783@bugs.x2go.org, 
 Schlomo Schapiro <schlomo.schapiro@immobilienscout24.de>
Subject: Re: [X2Go-Dev] Bug#783: Bug#783: RPM Pre Script fail on Upgrade (Nightly)
References: <20150209130753.Horde.L19M7fVjVKN39pdqOKW9-w1@mail.das-netzwerkteam.de>
In-Reply-To: <20150209130753.Horde.L19M7fVjVKN39pdqOKW9-w1@mail.das-netzwerkteam.de>
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature";
 boundary="JurCiISLOFfDea7Vwl2fNNMj70GGRbbIj"

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--JurCiISLOFfDea7Vwl2fNNMj70GGRbbIj
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Control: close -1
Thanks


On 09.02.2015 02:07 PM, Mike Gabriel wrote:
> On  Mo 09 Feb 2015 12:49:16 CET, Schlomo Schapiro wrote:
>
>> Package: x2goserver
>> Version: 4.1.0.0-0.0x2go1.0.git20150201.1236.heuler.el6
> Yep, should already have been fixed for several days by [1].
> [1]
> http://code.x2go.org/gitweb?p=3Dx2goserver.git;a=3Dcommitdiff;h=3D0838f=
4686fc0dd15c66840fecd665e38a7ea1bca

Indeed. Note that my fix was pushed on 2015-02-02, while Schlomo
installs the EPEL6 version from 2015-02-01.

For what it's worth, our distribution server packages.x2go.org does only
provide the newest version, which for EPEL6 is
x2goserver-4.1.0.0-0.0x2go1.0.git20150209.1257.

We do not cache old versions. The user is responsible to make sure the
cache and package is up to date.


>> Don't you test upgrades???
>
> Nope, not always.

Nightlies are not guaranteed to work or be bug free. Those packages are
built through continuous integration and may be broken at any given
time, although we try to minimize any state of brokenness.


>
> /me wonders, if your nightly builds are not obtained from
> packages.x2go.org but from a non-up-to-date repo. Possibly we may have
> a problem in the EPEL-6 nightly builds archive.

Our servers do not provide this version anymore. I have checked the
"archive" and everything is fine.



Mihai


--JurCiISLOFfDea7Vwl2fNNMj70GGRbbIj
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCgAGBQJU2NCJAAoJEB/WLtluJTqHrO8P/3+bSIr5X1eTOuVE4lZ5Ew09
HgD21E6BerAcRqxi/8KvQzdPAZ7kKfIwdOhDxQoXq0B8Bh4lGCLBBQB0RJE1QdWk
ayu2L0lZdNczptdCs8onszcwq0mSnw6neqTeYD4X/WkTRnMu8IO9Ls5crTldENF9
r0gRiIblbf59GXjXGL6X/ucZCOHuYbHIBlZ4CyBvj/7KPHsxvJvCWy/PwIuBRJ89
wM6zNGtcs1XYjhgNwBcObei7gZ1i4wmYXJ2yK+sN81CeBvpKdgmHMkvcOPILHt54
Xal/MbDNbxqoGsYUDNCirhADgt03CpqHeciRT4eW6eaWum8mZnEv41SYn5sE3I8R
VdNjUVF4cg6uAmEvlrQ/NhAUXCtycMf+3J3+1n28dogDUoaEXYwvA8mTtSanuXtP
YHT/0oDAHPox9UlEo6OI/2g7hbV8G8Fn1jK+A9xXzbHEj3yV7sGHENM2YwD727n8
XiHLADyO4SuINLjfaqdYMIonttrKh8T2BPoLehLyqxnf8pzzCUmfjLNOu8sCcBOg
w8Q0iMLrMFn4Ta83adFpgnkE3fxaf5dMTx6pZEvaO6NCkZT6Ocfn0wPX7UMVAgrE
aAynXgEy67ZF/8MGixM9QhoR/utf1VPjVwZYasrKv4OV3Is05AMAnT1ShURJPiet
HI+deSC4HJ8BFNLiXDAD
=vmqR
-----END PGP SIGNATURE-----

--JurCiISLOFfDea7Vwl2fNNMj70GGRbbIj--


------------=_1423495502-11766-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by bugs.x2go.org; 9 Feb 2015 11:58:49 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID,
	URIBL_BLOCKED autolearn=ham version=3.3.2
X-Greylist: delayed 571 seconds by postgrey-1.34 at ymir.das-netzwerkteam.de; Mon, 09 Feb 2015 12:58:47 CET
Received: from mxb.immobilienscout24.de (mxb.immobilienscout24.de [217.111.70.216])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 396FE5DBCA
	for <submit@bugs.x2go.org>; Mon,  9 Feb 2015 12:58:47 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple;
  d=immobilienscout24.de; i=@immobilienscout24.de;
  q=dns/txt; s=is24ci; t=1423483127; x=1455019127;
  h=message-id:date:from:mime-version:to:subject:
   content-transfer-encoding;
  bh=aBR7lGBbrLGQWk8rNmSZxVSrrEAbUhMJUCJkDqp8zMg=;
  b=nLxe0ThEteqtlc/6spWl6z1Kjr49uiSd2zy1bBdx+z8XKUfA7BPL942j
   y70wH+zFqxy3y3BcQpzZnuCC7419/G7UO4oCrOyxYL0fZ3ck6VMQtJ1W5
   cj/zkDNgEro4jEqwlf9StpvYSrlE+QPTtoGIFUzh6+ONogm0h7+Z79f80
   UDB9go82HNWKGBIK1AhZHBwSSLcnKIHJg3/TQaASfCiMKby9p9a/KHjl8
   NPQWEmkOVw1xR8KvCXhRmalTPnrVuuO0UZD0JyxqPmnuQUIhlXbu3OULO
   tJL8iy4pWNTzXiSVqbaOzJSqw0h1PArp57AWyOO+EXz8LbMPHZQl5OJ9f
   w==;
X-IronPort-AV: E=Sophos;i="5.09,543,1418079600"; 
   d="scan'208";a="68839026"
X-CSA-Complaints: whitelist-complaints@eco.de
Received: from isdeblnexca1.iscout.local ([10.0.1.121])
  by mxb.iscout.local with ESMTP/TLS/AES256-SHA; 09 Feb 2015 12:49:16 +0100
Received: from [10.100.162.22] (10.0.1.117) by webmail.immobilienscout24.de
 (10.0.1.121) with Microsoft SMTP Server (TLS) id 14.3.210.2; Mon, 9 Feb 2015
 12:49:16 +0100
Message-ID: <54D89EBC.9050602@immobilienscout24.de>
Date: Mon, 9 Feb 2015 12:49:16 +0100
From: Schlomo Schapiro <schlomo.schapiro@immobilienscout24.de>
Organization: Immobilien Scout GmbH
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: <submit@bugs.x2go.org>
Subject: RPM Pre Script fail on Upgrade (Nightly)
OpenPGP: id=AD1C15F9
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Originating-IP: [10.0.1.117]

Package: x2goserver
Version: 4.1.0.0-0.0x2go1.0.git20150201.1236.heuler.el6

RPM Upgrades of existing installations fail because of a broken %pre
script in the x2goserver-common RPM:

Resolving Dependencies
--> Running transaction check
---> Package x2goserver-common.x86_64
0:4.1.0.0-0.0x2go1.0.git20150113.1214.heuler.el6 will be updated
---> Package x2goserver-common.x86_64
0:4.1.0.0-0.0x2go1.0.git20150201.1236.heuler.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 Package                      Arch            =20
Version                                                  =20
Repository                    Size
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Updating:
 x2goserver-common            x86_64          =20
4.1.0.0-0.0x2go1.0.git20150201.1236.heuler.el6           =20
is24-x2go-nightly            7.2 k

Transaction Summary
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Upgrade       1 Package(s)

Total download size: 7.2 k
Is this ok [y/N]: y
Downloading Packages:
x2goserver-common-4.1.0.0-0.0x2go1.0.git20150201.1236.heuler.el6.x86_64.r=
pm                                          =20
| 7.2 kB     00:00   =20
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Error in PREIN scriptlet in rpm package
x2goserver-common-4.1.0.0-0.0x2go1.0.git20150201.1236.heuler.el6.x86_64
groupadd: group 'x2gouser' already exists
useradd: user 'x2gouser' already exists
error:
%pre(x2goserver-common-4.1.0.0-0.0x2go1.0.git20150201.1236.heuler.el6.x86=
_64)
scriptlet failed, exit status 9
error:   install: %pre scriptlet failed (2), skipping
x2goserver-common-4.1.0.0-0.0x2go1.0.git20150201.1236.heuler.el6
Running post transaction command: report-yum-to-graphite.sh
x2goserver-common-4.1.0.0-0.0x2go1.0.git20150113.1214.heuler.el6.x86_64
was supposed to be removed but is not!
  Verifying  :
x2goserver-common-4.1.0.0-0.0x2go1.0.git20150113.1214.heuler.el6.x86_64  =
                                                =20
1/2
  Verifying  :
x2goserver-common-4.1.0.0-0.0x2go1.0.git20150201.1236.heuler.el6.x86_64  =
                                                =20
2/2

Failed:
  x2goserver-common.x86_64
0:4.1.0.0-0.0x2go1.0.git20150113.1214.heuler.el6                         =
                                        =20

  x2goserver-common.x86_64
0:4.1.0.0-0.0x2go1.0.git20150201.1236.heuler.el6                         =
                                        =20


Complete!

The bad script is this:

if getent group x2gouser 1>/dev/null; then
    groupadd -r x2gouser
fi
if getent passwd x2gouser >/dev/null; then
    useradd -r -g x2gouser -d /var/lib/x2go -s /sbin/nologin \
            -c "x2go" x2gouser
fi

It should have a ! in the if clause to only call groupadd / useradd if th=
e group or user DO NOT EXIST!!

Don't you test upgrades???

Regards,
Schlomo


--=20
Schlomo Schapiro
Systemarchitekt
Open Source Evangelist

Immobilien Scout GmbH     =20
Andreasstra=C3=9Fe 10   =20
10243 Berlin =20
Fon +49 30 24 301-1229
Fax +49 30 24 301-1110
Mobile +49 170 753 72 60       =20
schlomo.schapiro@immobilienscout24.de
https://plus.google.com/100684964212588500616/about

----------------------------------------------------------
Immobilien Scout GmbH - Ein Unternehmen der Scout24-Gruppe
Gesch=C3=A4ftsf=C3=BChrer: Gregory Ellis (CEO) und Christian Gisy (CFO)
Handelsregister: Amtsgericht Charlottenburg, HRB 69108
Sitz der Gesellschaft: Berlin
----------------------------------------------------------

http://www.immobilienscout24.de
Der Marktf=C3=BChrer:
Die Nr. 1 rund um Immobilien

------------=_1423495502-11766-0--
