package boinc-client (not installed) failed to uninstall: post-removal: deluser: "user currently logged in"

Bug #583434 reported by Stefano
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
boinc (Ubuntu)
Medium
Daniel Hahler

Bug Description

When removing boinc-client, the service is being stopped, but the init script does not wait for all processes to finish.

Therefore, when the postrm script tries to remove the system user "boinc", it might fail with "user currently logged in".

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: boinc-client (not installed)
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
AptOrdering:
 boinc: Purge
 boinc-client: Purge
 boinc-manager: Purge
Architecture: i386
Date: Thu May 20 19:00:12 2010
ErrorMessage: il sottoprocesso vecchio script di post-removal ha restituito lo stato di errore 1
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
SourcePackage: boinc
Title: package boinc-client (not installed) failed to install/upgrade: il sottoprocesso vecchio script di post-removal ha restituito lo stato di errore 1

Revision history for this message
Stefano (stefano-brusati) wrote :
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Hi Stefano, could you try to do an
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get install boinc ???

thanks

Revision history for this message
Stefano (stefano-brusati) wrote :

Hi LocutusOfBorg, i reported this issue because i wasn't installing boinc, but removing it while
i read this message...

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

so what about
sudo apt-get purge boinc ?

Revision history for this message
Stefano (stefano-brusati) wrote :

It works... but don't you think it's weird to have this message in this case?

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Maybe was a bad update on your machine...

So, If you agree and if your bug is fixed (and doesn't happen anymore) I close this bug as "invalid".

Please feel free to reopen if you don't agree with me

Changed in boinc (Ubuntu):
status: New → Invalid
Revision history for this message
Daniel Hahler (blueyed) wrote :

@LocutusOfBorg: this is clearly a bug and needs proper fixing, not invalidating:

@Stefano: Please translate "/usr/sbin/deluser: «/usr/sbin/userdel boinc» ha restituito l'errore con codice 8. Uscita.", from the error below:
  Rimozione di boinc-client...
   * Stopping BOINC core client: boinc
     ...done.
  Eliminazione dei file di configurazione di boinc-client...
  Rimozione dell'utente «boinc» ...
  Attenzione: il gruppo «boinc» non ha alcun membro.
  userdel: l'utente boinc è attualmente collegato
  /usr/sbin/deluser: «/usr/sbin/userdel boinc» ha restituito l'errore con codice 8. Uscita.
  dpkg: errore nell'elaborare boinc-client (--purge):
   il sottoprocesso vecchio script di post-removal ha restituito lo stato di errore 1

I guess it says something along "User does not exist anymore".

In this case, it's clearly no error and the post-removal script should just carry on.

Changed in boinc (Ubuntu):
status: Invalid → Triaged
importance: Undecided → Low
summary: package boinc-client (not installed) failed to install/upgrade: il
sottoprocesso vecchio script di post-removal ha restituito lo stato di
- errore 1
+ errore 1 (deluser related)
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote : Re: package boinc-client (not installed) failed to install/upgrade: il sottoprocesso vecchio script di post-removal ha restituito lo stato di errore 1 (deluser related)

"/usr/sbin/deluser: «/usr/sbin/userdel boinc» ha restituito l'errore con codice 8. Uscita."

means

the command userdel boinc gave the error 8, exiting

(sorry about closing this bug, I didn't read the bug carefully)

Revision history for this message
Daniel Hahler (blueyed) wrote :

Thanks for your reply.

According to userdel(8) error code 8 means "user currently logged in".

This seems odd, given that "Attenzione: il gruppo «boinc» non ha alcun membro." probably means "the group boinc has no user".

@Stefano:
1. Please provide the output of "grep boinc /etc/passwd" here.
2. Do you have manually created the local user account "boinc" on your system?
3. Has there been somebody logged in during removal of the boinc package?

I'm not sure about a fix yet, but it still looks like this error should get ignored: the user has not been created via the boinc package after all apparently.
Additionally, it appears to be wrong to delete the user anyhow (if the package has not created it itself).

summary: package boinc-client (not installed) failed to install/upgrade: il
sottoprocesso vecchio script di post-removal ha restituito lo stato di
- errore 1 (deluser related)
+ errore 1 (deluser: "user currently logged in")
Revision history for this message
Daniel Hahler (blueyed) wrote :

Just for clarification, this probably happened during removal of the package - see the duplicate bug 641172.

summary: - package boinc-client (not installed) failed to install/upgrade: il
- sottoprocesso vecchio script di post-removal ha restituito lo stato di
- errore 1 (deluser: "user currently logged in")
+ package boinc-client (not installed) failed to uninstall: post-removal:
+ deluser: "user currently logged in"
Changed in boinc (Ubuntu):
importance: Low → Medium
Daniel Hahler (blueyed)
Changed in boinc (Ubuntu):
status: Triaged → Incomplete
description: updated
Changed in boinc (Ubuntu):
status: Incomplete → Triaged
Daniel Hahler (blueyed)
Changed in boinc (Ubuntu):
assignee: nobody → Daniel Hahler (blueyed)
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package boinc - 6.10.58+dfsg-3

---------------
boinc (6.10.58+dfsg-3) unstable; urgency=low

  [ Steffen Moeller ]
  * Bumped policy to 3.9.1.0
  * Added the first graphical libraries as suggested
    dependencies of the boinc-manager package.

  [ Daniel Hahler ]
  * debian/boinc-client.init: wait until BOINC has ended for "stop"
    action. This fixes the post-removal script to be run too early,
    when the system user might be still logged in and cannot be
    deleted (LP: #583434). It also fixes the "restart" action.
  * debian/boinc-client.init: schedule: do not fail if chrt fails
    (LP: #629649).
 -- Daniel Hahler <email address hidden> Sun, 26 Sep 2010 13:56:51 +0000

Changed in boinc (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers