Bug 24610 - univention-shares cronjob bleibt bestehen obwohl Paket entfernt wird
univention-shares cronjob bleibt bestehen obwohl Paket entfernt wird
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: General
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.0-2
Assigned To: Felix Botner
Philipp Hahn
: interim-2
: 26097 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-14 21:30 CET by Tobias Scherer
Modified: 2012-07-20 15:24 CEST (History)
4 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Scherer univentionstaff 2011-11-14 21:30:42 CET
Nach dem Update intern auf mehreren Systemen aufgefallen, siehe Ticket#2011111321002385 

Das Problem ist, das der Cronjob weiterhin existiert und ein nicht vorhandenes Skript aufzurufen versucht, auch wenn das Paket deinstalliert wurde.

root@sniglar:~# dpkg -l univention-shares 
Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
         Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht)
||/ Name                                       Version                                    Beschreibung
+++-==========================================-==========================================-====================================================================================================
un  univention-shares                          <keine>                                    (keine Beschreibung vorhanden)
root@sniglar:~# dpkg -S /etc/cron.d/univention-shares 
dpkg: /etc/cron.d/univention-shares nicht gefunden.
root@sniglar:~# ls -l /etc/cron.d/univention-shares
-rw-r--r-- 1 root root 578 14. Nov 21:16 /etc/cron.d/univention-shares
Comment 1 Felix Botner univentionstaff 2011-12-23 14:14:30 CET
Das ist schon etwas unangenehm, da man dann alle 15min eine solche Mail erhält

From root@master.up1.eins  Fri Dec 23 14:05:07 2011
Return-Path: <root@master.up1.eins>
X-Original-To: root@master.up1.eins
Delivered-To: root@master.up1.eins
Received: from localhost (localhost [127.0.0.1])
        by master.up1.eins (Postfix) with ESMTP id 59F9E9FE46
        for <root@master.up1.eins>; Fri, 23 Dec 2011 14:05:07 +0100 (CET)
X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at up1.eins
Received: from master.up1.eins ([127.0.0.1])
        by localhost (master.up1.eins [127.0.0.1]) (amavisd-new, port 10024)
        with ESMTP id 3AG5SGO80+Wa for <root@master.up1.eins>;
        Fri, 23 Dec 2011 14:05:07 +0100 (CET)
Received: by master.up1.eins (Postfix, from userid 0)
        id 363C7A0095; Fri, 23 Dec 2011 14:05:06 +0100 (CET)
From: root@master.up1.eins (Cron Daemon)
To: root@master.up1.eins
Subject: Cron <root@master> /usr/sbin/univention-share-replication (failed)
Content-Type: text/plain; charset=ANSI_X3.4-1968
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <LOGNAME=root>
Message-Id: <20111223130507.363C7A0095@master.up1.eins>
Date: Fri, 23 Dec 2011 14:05:06 +0100 (CET)

/bin/sh: /usr/sbin/univention-share-replication: No such file or directory
Comment 2 Janis Meybohm univentionstaff 2011-12-28 08:51:58 CET
Auf zwei weiteren internen Systemen aufgefallen, diese wurden mit den offiziellen Paketen auf 3.0 aktualisiert.
Comment 3 Murat Odabas univentionstaff 2012-02-22 13:17:50 CET
Beim Kunden aufgetreten.

Ticket: 2012022221001017
Comment 4 Janis Meybohm univentionstaff 2012-05-11 15:21:04 CEST
Erneut beim Kunden beobachtet: 2012051121003736

Das stört schon sehr, tritt vermutlich bei allen Updates auf und sollte beim Update leicht zu beheben sein -> Errata
Comment 5 Stefan Gohmann univentionstaff 2012-05-15 08:10:25 CEST
Problematisch ist, dass das Pakete nicht mehr installiert ist und somit auch nicht aktualisiert werden kann. Wir müssten das in einem anderen Paket implementieren, welches auf jedem UCS System installiert ist.

Eine Möglichkeit wäre univention-base-files zu nehmen, alternativ univention-updater. Ich würde univention-updater bevorzugen, da univention-updater schon zu 3.0-1-erata ausgeliefert wurde. univention-base-files noch nicht und wir müssten prüfen, ob es Probleme mit dem Update gibt, wenn das errata-Update auf einem 3.0-0 System installiert wird.
Comment 6 Stefan Gohmann univentionstaff 2012-05-16 12:08:45 CEST
Wie besprochen, wir schieben das auf 3.0-2 und purgen das Paket im 3.0-2 postup. Sollte es akut sein, dann müsste ein SDB Artikel helfen.
Comment 7 Felix Botner univentionstaff 2012-06-07 09:25:11 CEST
univention-shares wurde bereits zu 3.0 gepurged, die Cron Konfig hat das jedoch überlebt.

Im post up wird nun nochmal dpkg -P univention-shares aufgerufen. Zusätzlich wird /etc/cron.d/univention-shares gelöscht, falls es noch existiert.
Comment 8 Moritz Muehlenhoff univentionstaff 2012-06-20 08:56:49 CEST
*** Bug 26097 has been marked as a duplicate of this bug. ***
Comment 9 Philipp Hahn univentionstaff 2012-07-04 15:41:37 CEST
Es wurde ein 2.4-3 Master installiert und auf 3.0-0 aktualisiert: Das Paket univention-shares war deinstalliert (uninstalled), aber /etc/cron.d/univention-shares war noch vorhanden.
Anschließend wurde auf 3.0-2wip aktualisiert: Danach war /etc/cron.d/univention-shares gelöscht.
OK: univention-updater_7.0.170-1.1048-20120703131, svn33458

FAIL: ChangeLog svn13360
configuration → job
\ucsURL → \ucsFile
in the → by the
<del>during this update</del>

-\item The obsolete cron configuration \ucsURL{/etc/cron.d/univention-shares} will be removed in the postup script during this update (\ucsBug{24610}).
\item The postup script will remove the obsolete cron job \ucsFile{/etc/cron.d/univention-shares} (\ucsBug{24610}).

OK: ChangeLog svn13766
Comment 10 Stefan Gohmann univentionstaff 2012-07-20 15:24:18 CEST
UCS 3.0-2 has been released: 
  http://forum.univention.de/viewtopic.php?f=54&t=1905

If this error occurs again, please use "Clone This Bug".