Bug#684463: condor fails to install if condor user already exists

2012-08-10 Thread Tiziano Zito
Package: condor
Version: 7.8.1~dfsg.1-1~nd12.04+1
Severity: grave
Justification: renders package unusable

Hi!

when I try to install condor on a machine where the condor user already exists 
(either
because the machine uses LDAP authentication and condor user is in
LDAP or because I am just re-installing or upgrading condor), the
configuration step fails with:

Setting up condor (7.8.1~dfsg.1-1~nd60+1) ...
adduser: The user `condor' already exists. Exiting.
dpkg: error processing condor (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
 condor
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up condor (7.8.1~dfsg.1-1~nd60+1) ...
adduser: The user `condor' already exists. Exiting.
dpkg: error processing condor (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 condor

I am somehow unsure what is happening, because I have this also on a
machine where condor is already installed and working, but:

hamxxx ~ # dpkg-reconfigure condor
/usr/sbin/dpkg-reconfigure: condor is broken or not fully installed
hamxxx ~ # condor_q
-- Submitter: hamxxx : 172.29.xxx.xxx:40590 : hamxxx
 ID  OWNERSUBMITTED RUN_TIME ST PRI SIZE CMD
2586.0   xxx 8/9  15:50   0+05:36:39 R  0   43.9 bash_lc_var_5 2586
2586.1   xxx 8/9  15:50   0+05:36:39 R  0   43.9 bash_lc_var_5 2586
[...]

this happens on squeeze, wheezy and ubuntu precise...

am I doing something wrong?

thank you,
tiziano

-- System Information:
Debian Release: wheezy/sid
  APT prefers precise-updates
  APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 
'precise')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-27-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages condor depends on:
ii  adduser 3.113ubuntu2
ii  debconf [debconf-2.0]   1.5.42ubuntu1
ii  libc6   2.15-0ubuntu10
ii  libclassad3 7.8.1~dfsg.1-1~nd12.04+1
ii  libcomerr2  1.42-1ubuntu2
ii  libcurl37.22.0-3ubuntu4
ii  libdate-manip-perl  6.25-1
ii  libexpat1   2.0.1-7.2ubuntu1
ii  libgcc1 1:4.6.3-1ubuntu5
ii  libglobus-common0   14.5-1
ii  libglobus-ftp-control1  4.2-1
ii  libglobus-gass-transfer27.1-1
ii  libglobus-gram-client3  12.3-2
ii  libglobus-gsi-credential1   5.1-1
ii  libglobus-gsi-proxy-core0   6.1-1
ii  libglobus-gsi-sysconfig15.1-1
ii  libglobus-gss-assist3   8.1-1
ii  libglobus-gssapi-gsi4   10.2-1
ii  libglobus-io3   9.2-1
ii  libglobus-rsl2  9.1-2
ii  libglobus-xio0  3.2-1
ii  libgsoap1   2.8.4-2
ii  libk5crypto31.10+dfsg~beta1-2ubuntu0.3
ii  libkrb5-3   1.10+dfsg~beta1-2ubuntu0.3
ii  libldap-2.4-2   2.4.28-1.1ubuntu4.1
ii  libpcre38.12-4
ii  libssl1.0.0 1.0.1-4ubuntu5.3
ii  libstdc++6  4.6.3-1ubuntu5
ii  libuuid12.20.1-1ubuntu3
ii  libvirt00.9.8-2ubuntu17.3
ii  neurodebian-popularity-contest  0.28~nd12.04+1
ii  perl5.14.2-6ubuntu2
ii  python  2.7.3-0ubuntu2

Versions of packages condor recommends:
ii  dmtcp  1.2.5-1~nd12.04+1

Versions of packages condor suggests:
pn  coop-computing-tools  none

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#684463: condor fails to install if condor user already exists

2012-08-10 Thread Evgeni Golov
Hi,

On Fri, Aug 10, 2012 at 10:30:36AM +0200, Tiziano Zito wrote:
 Package: condor
 Version: 7.8.1~dfsg.1-1~nd12.04+1

Where does this version come from?
Debian has 7.8.1~dfsg.1-2 in Wheezy and Sid.

 when I try to install condor on a machine where the condor user already 
 exists (either
 because the machine uses LDAP authentication and condor user is in
 LDAP or because I am just re-installing or upgrading condor), the
 configuration step fails with:
 
 Setting up condor (7.8.1~dfsg.1-1~nd60+1) ...
 adduser: The user `condor' already exists. Exiting.
 dpkg: error processing condor (--configure):
  subprocess installed post-installation script returned error exit status 1

This does not happen with 7.8.1~dfsg.1-2 on my machine.
The user is created once and then adduser silently ignores the calls 
because of the --system switch.

 this happens on squeeze, wheezy and ubuntu precise...

Squeeze and Precise do not even have a condor package...

I would close the bug as non-existing, but awaiting your reply first.

Regards
Evgeni


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#684463: condor fails to install if condor user already exists

2012-08-10 Thread Evgeni Golov
On Fri, Aug 10, 2012 at 05:41:21PM +0200, Evgeni Golov wrote:
 Hi,
 
 On Fri, Aug 10, 2012 at 10:30:36AM +0200, Tiziano Zito wrote:
  Package: condor
  Version: 7.8.1~dfsg.1-1~nd12.04+1
 
 Where does this version come from?
 Debian has 7.8.1~dfsg.1-2 in Wheezy and Sid.

It seems to come from http://neuro.debian.net and to be a backport of 
7.8.1~dfsg.1-1.
It has the very same postinst script as the Debian version and it should 
really not fail. Unless the user is not a system user.

Is your condor user a regular LDAP user?

-- 
Bruce Schneier can read and understand Perl programs.


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#684463: condor fails to install if condor user already exists

2012-08-10 Thread Tiziano Zito
   Package: condor
   Version: 7.8.1~dfsg.1-1~nd12.04+1
  
  Where does this version come from?
  Debian has 7.8.1~dfsg.1-2 in Wheezy and Sid.
 
 It seems to come from http://neuro.debian.net and to be a backport of 
 7.8.1~dfsg.1-1.

Sorry for not mentioning it, I quickly checked on two different
machines, but both were using the neuro.debian repos... 

 It has the very same postinst script as the Debian version and it should 
 really not fail. Unless the user is not a system user.
 
 Is your condor user a regular LDAP user?

Yes, it has  UID  1000 as suggested by pam_ldap. Why should the
condor user be a system user? for one, it requires a valid email
address if you want email sent by condor not being tagged as SPAM by
overzealous SPAM filters. And if you use LDAP for authentication you
typically use it for email too, so the condor user naturally fits as
a non-system LDAP user. Couldn't this check be lifted altogether, or
at least give the possibility to set UID and GID of the condor user
on installation? 

Thank you for your quick reply!

Tiziano


--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#684463: condor fails to install if condor user already exists

2012-08-10 Thread Evgeni Golov
Hi,

On Fri, Aug 10, 2012 at 08:07:28PM +0200, Tiziano Zito wrote:
Package: condor
Version: 7.8.1~dfsg.1-1~nd12.04+1
   
   Where does this version come from?
   Debian has 7.8.1~dfsg.1-2 in Wheezy and Sid.
  
  It seems to come from http://neuro.debian.net and to be a backport of 
  7.8.1~dfsg.1-1.
 
 Sorry for not mentioning it, I quickly checked on two different
 machines, but both were using the neuro.debian repos... 

About which you theoreticaly should not fill bugs into the Debian BTS, 
as these aren't Debian packages. But given these are rebuilds only, lets 
see what we can do for you :)
[ condor maintainer might disagree here ]

  It has the very same postinst script as the Debian version and it should 
  really not fail. Unless the user is not a system user.
  
  Is your condor user a regular LDAP user?
 
 Yes, it has  UID  1000 as suggested by pam_ldap. Why should the
 condor user be a system user? for one, it requires a valid email
 address if you want email sent by condor not being tagged as SPAM by
 overzealous SPAM filters. And if you use LDAP for authentication you
 typically use it for email too, so the condor user naturally fits as
 a non-system LDAP user. Couldn't this check be lifted altogether, or
 at least give the possibility to set UID and GID of the condor user
 on installation? 

Well, users created for packages should be created as system users.
No idea how the fact of being a system user might play into your spam 
issue.
I have little clue about LDAP and no clue about condor (just stumbled 
over the bug while RC-bughunting), but I would say you should not have a 
condor user in your LDAP and let it be a lonely local user created by 
adduser.
If you want condor@host to work, add an alias or something.

However, these are my two cheap cents, maintainers might disagree here.

-- 
Bruce Schneier can read and understand Perl programs.


--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org