[Bug 611721] Re: postinst fails if group exists
** Tags added: testcase -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/611721 Title: postinst fails if group exists To manage notifications about this bug go to: https://bugs.launchpad.net/server-papercuts/+bug/611721/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
Worked great, thanks! :) -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
This bug was fixed in the package tomcat6 - 6.0.24-2ubuntu1.4 --- tomcat6 (6.0.24-2ubuntu1.4) lucid-proposed; urgency=low * Check for group existence to avoid postinst failure (LP: #611721) -- Thierry Carrez (ttx)Thu, 07 Oct 2010 14:06:00 +0100 ** Changed in: tomcat6 (Ubuntu Lucid) Status: Fix Committed => Fix Released -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
Verified fixed in -proposed. ** Tags added: verification-done ** Tags removed: verification-needed -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
** Branch linked: lp:ubuntu/lucid-proposed/tomcat6 -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
Accepted tomcat6 into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance! ** Changed in: tomcat6 (Ubuntu Lucid) Status: Triaged => Fix Committed ** Tags added: verification-needed -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
SRU fix uploaded to lucid-proposed, ready for review -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
** Description changed: Binary package hint: tomcat6 In cases where the tomcat6 group already exists (eg ldap), the postinst fails due to running addgroup blindly. Commenting out the addgroup works fine, although that isn't a generic fix. - > addgroup --system "$TOMCAT6_GROUP" --quiet + > addgroup --system "$TOMCAT6_GROUP" --quiet > if ! id $TOMCAT6_USER > /dev/null 2>&1 ; then (I had a better bug report with more detail, but the "no referrer" error ate it. Lovely..) + + == SRU Report == + Impact: + If the tomcat6 group already exists, tomcat6 will fail to install correctly. + + Development branch fix: + Fix is in maverick as of 6.0.28-2ubuntu1 + + Minimal patch: + - addgroup --system "$TOMCAT6_GROUP" --quiet + + if ! getent group "$TOMCAT6_GROUP" > /dev/null 2>&1 ; then + + addgroup --system "$TOMCAT6_GROUP" --quiet + + fi + + TEST CASE: + $ sudo addgroup tomcat6 + $ sudo apt-get install tomcat6 + Affected version: + Tomcat fails to install (subprocess installed post-installation script returned error exit status 1) + Fixed version: + Tomcat installs successfully. + + Regression potential: + Given the nature of the patch, it is minimal. ** Changed in: tomcat6 (Ubuntu Lucid) Assignee: (unassigned) => Thierry Carrez (ttx) -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
** Also affects: tomcat6 (Ubuntu Lucid) Importance: Undecided Status: New ** Changed in: tomcat6 (Ubuntu Lucid) Status: New => Triaged ** Changed in: tomcat6 (Ubuntu Lucid) Importance: Undecided => Medium -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
This bug was fixed in the package tomcat6 - 6.0.28-2ubuntu1 --- tomcat6 (6.0.28-2ubuntu1) maverick; urgency=low * Check for group existence to avoid postinst failure (LP: #611721) -- Thierry Carrez (ttx)Wed, 25 Aug 2010 09:07:03 +0200 ** Changed in: tomcat6 (Ubuntu) Status: In Progress => Fix Released -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
** Changed in: server-papercuts Status: In Progress => Fix Released -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
** Changed in: tomcat6 (Ubuntu) Status: Triaged => In Progress -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
In fact if the group exists but is not a system group (100-999), addgroup returns 1. I'll add a getent group tomcat6 check to check for group existence before running addgroup. ** Changed in: tomcat6 (Ubuntu) Status: Incomplete => Triaged ** Changed in: server-papercuts Status: Incomplete => In Progress -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
Lucid, up to date with security patches (and sun-java, not that it matters for this.) I suspect the difference is ldap authentication vs local groups. (In fact, I just tested against a group that it is in both /etc/group and in ldap and it returned 0.) That may make this an adduser bug.. -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
Hm, here is what I get if tomcat6 is already created: $ sudo addgroup --system tomcat6 --quiet ; echo $? 0 Something else makes it fail, what does "sudo addgroup --system tomcat6 ; echo $?" return for you ? Also , what version is this ? Lucid ? Maverick ? -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
Also: f...@bar:~$ sudo addgroup --system tomcat6 --quiet ; echo $? 1 -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
r...@foo:~# aptitude -vvv install tomcat6 .. The following partially installed packages will be configured: tomcat6 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Setting up tomcat6 (6.0.24-2ubuntu1.2) ... dpkg: error processing tomcat6 (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: tomcat6 E: Sub-process /usr/bin/dpkg returned an error code (1) .. r...@foo:~# dpkg --configure -a -D2 Setting up tomcat6 (6.0.24-2ubuntu1.2) ... D02: fork/exec /var/lib/dpkg/info/tomcat6.postinst ( configure ) dpkg: error processing tomcat6 (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: tomcat6 r...@foo:~# sed -i -e s_addg_#addg_ /var/lib/dpkg/info/tomcat6.postinst (verified that the only affected line is addgroup) r...@foo:~# dpkg --configure -a Setting up tomcat6 (6.0.24-2ubuntu1.2) ... * Starting Tomcat servlet engine tomcat6 Using CATALINA_BASE: /var/lib/tomcat6 Using CATALINA_HOME: /usr/share/tomcat6 Using CATALINA_TMPDIR: /tmp/tomcat6-tmp Using JRE_HOME:/usr/lib/jvm/java-6-sun Using CLASSPATH: /usr/share/tomcat6/bin/bootstrap.jar ...done. -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
I can't reproduce that. If the group already exists, "addgroup --system tomcat6 --quiet" returns 0 and the script proceeds. Could you confirm what the issue is ? ** Changed in: tomcat6 (Ubuntu) Status: In Progress => Incomplete ** Changed in: server-papercuts Status: In Progress => Incomplete -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
** Changed in: tomcat6 (Ubuntu) Status: Confirmed => In Progress ** Changed in: tomcat6 (Ubuntu) Assignee: (unassigned) => Thierry Carrez (ttx) ** Changed in: server-papercuts Status: Confirmed => In Progress -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
** Changed in: server-papercuts Assignee: (unassigned) => Thierry Carrez (ttx) -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
** Changed in: server-papercuts Milestone: None => maverick-beta -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
** Changed in: server-papercuts Importance: Undecided => Medium ** Changed in: server-papercuts Status: New => Confirmed -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
** Changed in: tomcat6 (Ubuntu) Importance: Undecided => Medium ** Changed in: tomcat6 (Ubuntu) Status: New => Confirmed -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 611721] Re: postinst fails if group exists
** Also affects: server-papercuts Importance: Undecided Status: New -- postinst fails if group exists https://bugs.launchpad.net/bugs/611721 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs