Univention Bugzilla – Bug 17269
Kaputter crontab-Eintrag bei [Paketpflege] Richtlinie
Last modified: 2022-06-30 14:39:01 CEST
Created attachment 2195 [details] Screenshot vom UDM nach Browser-Back Zum wiederholten Male ist mir aufgefallen, daß beim Erstellen einer [Paketpflege]-Policy ggf. ein fehlerhafter crontab-Eintrag in der /etc/cron.d/univention-maintenance entsteht: # cron job for update 5 0 0 root /usr/sbin/univention-updater local --updateto=2.3-0 | grep -v "System is up to date"; /usr/sbin/univention-actualise --silent; /usr/sbin/univention-security-update local | grep -vF "No Security Update available!" Der Eintrag ist schon vor der Auswertung durch /usr/lib/univention-directory-policy/univention-policy-maintenance falsch: root@m18:/var/lib/univention-repository# univention_policy_result -s `ucr get ldap/hostdn` | grep Cron univentionCron="5 0 0 " univentionCronActive="1" root@m18:~# ldapsearch -xLLL '(univentionCron=*)' univentionCron dn | ldapsearch-decode64 dn: cn=m18_uv3,cn=installation,cn=update,cn=policies,dc=univention,dc=test univentionCron: 5 0 0 Der Fehler tritt nur sporadisch auf und mir ist es bisher nicht gelungen ihn gezielt zu reproduzieren. Angelegt wurde die Richtlinie über das UDM-Web-Interface.
root@m18:/var/lib/univention-repository# univention_policy_result `ucr get ldap/hostdn` | grep Cron -A1 -B1 Policy: cn=m18_uv3,cn=installation,cn=update,cn=policies,dc=univention,dc=test Attribute: univentionCron Value: 5 0 0 -- Policy: cn=m18_uv3,cn=installation,cn=update,cn=policies,dc=univention,dc=test Attribute: univentionCronActive Value: 1 root@m18:/var/lib/univention-repository# udm policies/maintenance list --filter '(cn=m18_uv3)' (cn=m18_uv3) DN: cn=m18_uv3,cn=installation,cn=update,cn=policies,dc=univention,dc=test ARG: None name: m18_uv3 hour: 0 emptyAttributes: None filler: None startup: 1 reboot: None prohibitedObjectClasses: None month: None cron: 1 weekday: None shutdown: 1 _view_referencing_objects: None fixedAttributes: None requiredObjectClasses: None day: 0 minute: 5
Ist mir auch gerade mit aktuellem 3.1 aufgefallen. Bisher konnte ich es nicht reproduzieren.
This issue has been filed against UCS 2.3. UCS 2.3 is out of maintenance and many UCS components have vastly changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug". In this case please provide detailed information on how this issue is affecting you.