Automatische Errata Updates UCS 4.2-4

Hallo liebe Community,

ich habe das Problem, dass bei einem UCS Backup Server 4.2-4 errata 418 nicht automatisch, trotz Richtlinie, upgedatet wird - Aktuell wäre das erratalevel 425.

Hier die updater.log des Backupservers. Ich habe eingestellt das die auto errata Update jeden Dienstag um 04:00 installiert werden sollen.


Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418


Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for local repository:                          none
Checking for package updates:                           found

The following packages will be installed:
 libconfuse-common,libconfuse0,aglfn,gnuplot-tex,gnuplot-data,keyutils,python-blinker,python-itsdangerous
The following packages will be upgraded:
 libwmf0.2-7,univention-base-packages,univention-base-files,bmon,cifs-utils,gnuplot-nox,gnuplot,htop,iperf,libconfig-tiny-perl,libgnomevfs2-common,libtcmalloc-minimal4,python-flask,python-sleekxmpp,python-trml2pdf,univention-appcenter,univention-management-console-module-apps,univention-management-console-module-appcenter,univention-apache,univention-appcenter-docker,python-univention-appcenter,univention-s4-connector,python-univention-connector-s4,tmux,univention-errata-level
Checking for app updates:                              Calling upgrade-search
2018-07-18 15:11:45,448 DEBUG:univention.appcenter.actions.upgrade-search:Calling upgrade-search
0
2018-07-18 15:11:45,476 DEBUG:univention.appcenter.actions.upgrade-search.progress:0
Calling update
2018-07-18 15:11:45,478 DEBUG:univention.appcenter.actions.update:Calling update
0
2018-07-18 15:11:45,478 DEBUG:univention.appcenter.actions.update.progress:0
Downloading "https://appcenter.software-univention.de/meta-inf/categories.ini"...
2018-07-18 15:11:45,491 INFO:univention.appcenter.actions.update:Downloading "https://appcenter.software-univention.de/meta-inf/categories.ini"...
  ... Not Modified
2018-07-18 15:11:45,643 DEBUG:univention.appcenter.actions.update:  ... Not Modified
Downloading "https://appcenter.software-univention.de/meta-inf/rating.ini"...
2018-07-18 15:11:45,646 INFO:univention.appcenter.actions.update:Downloading "https://appcenter.software-univention.de/meta-inf/rating.ini"...
  ... Not Modified
2018-07-18 15:11:45,795 DEBUG:univention.appcenter.actions.update:  ... Not Modified
Downloading "https://appcenter.software-univention.de/meta-inf/license_types.ini"...
2018-07-18 15:11:45,798 INFO:univention.appcenter.actions.update:Downloading "https://appcenter.software-univention.de/meta-inf/license_types.ini"...
  ... Not Modified
2018-07-18 15:11:45,944 DEBUG:univention.appcenter.actions.update:  ... Not Modified
Downloading "https://appcenter.software-univention.de/meta-inf/ucs.ini"...
2018-07-18 15:11:45,946 INFO:univention.appcenter.actions.update:Downloading "https://appcenter.software-univention.de/meta-inf/ucs.ini"...
  ... Not Modified
2018-07-18 15:11:46,092 DEBUG:univention.appcenter.actions.update:  ... Not Modified
Downloading "https://appcenter.software-univention.de/meta-inf/4.2/index.json.gz"...
2018-07-18 15:11:46,113 INFO:univention.appcenter.actions.update:Downloading "https://appcenter.software-univention.de/meta-inf/4.2/index.json.gz"...
Downloading "https://appcenter.software-univention.de/meta-inf/4.2/index.json.gz.gpg"...
2018-07-18 15:11:46,334 INFO:univention.appcenter.actions.update:Downloading "https://appcenter.software-univention.de/meta-inf/4.2/index.json.gz.gpg"...
Downloading "https://appcenter.software-univention.de/meta-inf/4.2/all.tar.gpg"...
2018-07-18 15:11:46,484 INFO:univention.appcenter.actions.update:Downloading "https://appcenter.software-univention.de/meta-inf/4.2/all.tar.gpg"...
Downloading "http://appcenter.software-univention.de/meta-inf/4.2/all.tar.zsync"...
2018-07-18 15:11:46,636 INFO:univention.appcenter.actions.update:Downloading "http://appcenter.software-univention.de/meta-inf/4.2/all.tar.zsync"...
Calling zsync http://appcenter.software-univention.de/meta-inf/4.2/all.tar.zsync -q -o /var/cache/univention-appcenter/appcenter.software-univention.de/4.2/.all.tar
2018-07-18 15:11:46,726 DEBUG:univention.appcenter.actions.update:Calling zsync http://appcenter.software-univention.de/meta-inf/4.2/all.tar.zsync -q -o /var/cache/univention-appcenter/appcenter.software-univention.de/4.2/.all.tar
Extracting archive in /var/cache/univention-appcenter/appcenter.software-univention.de/4.2
2018-07-18 15:11:47,894 DEBUG:univention.appcenter.actions.update:Extracting archive in /var/cache/univention-appcenter/appcenter.software-univention.de/4.2
Removing old files...
2018-07-18 15:11:47,894 DEBUG:univention.appcenter.actions.update:Removing old files...
Unpacking /var/cache/univention-appcenter/appcenter.software-univention.de/4.2/.all.tar...
2018-07-18 15:11:47,951 DEBUG:univention.appcenter.actions.update:Unpacking /var/cache/univention-appcenter/appcenter.software-univention.de/4.2/.all.tar...
Calling tar -C /var/cache/univention-appcenter/appcenter.software-univention.de/4.2 -xf /var/cache/univention-appcenter/appcenter.software-univention.de/4.2/.all.tar
2018-07-18 15:11:48,022 DEBUG:univention.appcenter.actions.update:Calling tar -C /var/cache/univention-appcenter/appcenter.software-univention.de/4.2 -xf /var/cache/univention-appcenter/appcenter.software-univention.de/4.2/.all.tar
Downloading "https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz"...
2018-07-18 15:11:48,240 INFO:univention.appcenter.actions.update:Downloading "https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz"...
Downloading "https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz.gpg"...
2018-07-18 15:11:48,476 INFO:univention.appcenter.actions.update:Downloading "https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz.gpg"...
Downloading "https://appcenter.software-univention.de/meta-inf/4.1/all.tar.gpg"...
2018-07-18 15:11:48,619 INFO:univention.appcenter.actions.update:Downloading "https://appcenter.software-univention.de/meta-inf/4.1/all.tar.gpg"...
Downloading "http://appcenter.software-univention.de/meta-inf/4.1/all.tar.zsync"...
2018-07-18 15:11:48,762 INFO:univention.appcenter.actions.update:Downloading "http://appcenter.software-univention.de/meta-inf/4.1/all.tar.zsync"...
Calling zsync http://appcenter.software-univention.de/meta-inf/4.1/all.tar.zsync -q -o /var/cache/univention-appcenter/appcenter.software-univention.de/4.1/.all.tar
2018-07-18 15:11:48,830 DEBUG:univention.appcenter.actions.update:Calling zsync http://appcenter.software-univention.de/meta-inf/4.1/all.tar.zsync -q -o /var/cache/univention-appcenter/appcenter.software-univention.de/4.1/.all.tar
Extracting archive in /var/cache/univention-appcenter/appcenter.software-univention.de/4.1
2018-07-18 15:11:50,393 DEBUG:univention.appcenter.actions.update:Extracting archive in /var/cache/univention-appcenter/appcenter.software-univention.de/4.1
Removing old files...
2018-07-18 15:11:50,394 DEBUG:univention.appcenter.actions.update:Removing old files...
Unpacking /var/cache/univention-appcenter/appcenter.software-univention.de/4.1/.all.tar...
2018-07-18 15:11:50,460 DEBUG:univention.appcenter.actions.update:Unpacking /var/cache/univention-appcenter/appcenter.software-univention.de/4.1/.all.tar...
Calling tar -C /var/cache/univention-appcenter/appcenter.software-univention.de/4.1 -xf /var/cache/univention-appcenter/appcenter.software-univention.de/4.1/.all.tar
2018-07-18 15:11:50,526 DEBUG:univention.appcenter.actions.update:Calling tar -C /var/cache/univention-appcenter/appcenter.software-univention.de/4.1 -xf /var/cache/univention-appcenter/appcenter.software-univention.de/4.1/.all.tar
Cache outdated. Need to rebuild
2018-07-18 15:11:50,741 DEBUG:univention.appcenter.cache:Cache outdated. Need to rebuild
Unable to get mtime for cache: [Errno 2] No such file or directory: '/var/cache/univention-appcenter/appcenter.software-univention.de/4.2/.apps.en.json'
2018-07-18 15:11:50,741 DEBUG:univention.appcenter.cache:Unable to get mtime for cache: [Errno 2] No such file or directory: '/var/cache/univention-appcenter/appcenter.software-univention.de/4.2/.apps.en.json'
Cannot load cache: mtimes of cache files do not match: None < 1531919508.2213778
2018-07-18 15:11:50,741 DEBUG:univention.appcenter.cache:Cannot load cache: mtimes of cache files do not match: None < 1531919508.2213778
Saved 189 apps into cache
2018-07-18 15:11:51,868 DEBUG:univention.appcenter.cache:Saved 189 apps into cache
Cache outdated. Need to rebuild
2018-07-18 15:11:51,868 DEBUG:univention.appcenter.cache:Cache outdated. Need to rebuild
Unable to get mtime for cache: [Errno 2] No such file or directory: '/var/cache/univention-appcenter/appcenter.software-univention.de/4.1/.apps.en.json'
2018-07-18 15:11:51,868 DEBUG:univention.appcenter.cache:Unable to get mtime for cache: [Errno 2] No such file or directory: '/var/cache/univention-appcenter/appcenter.software-univention.de/4.1/.apps.en.json'
Cannot load cache: mtimes of cache files do not match: None < 1531919510.7254148
2018-07-18 15:11:51,869 DEBUG:univention.appcenter.cache:Cannot load cache: mtimes of cache files do not match: None < 1531919510.7254148
Saved 380 apps into cache
2018-07-18 15:11:53,877 DEBUG:univention.appcenter.cache:Saved 380 apps into cache
Updating app files...
2018-07-18 15:11:54,721 DEBUG:univention.appcenter.actions.update:Updating app files...
File: /usr/share/univention-management-console/modules/apps.xml
2018-07-18 15:11:54,812 INFO:univention.appcenter.actions.update:File: /usr/share/univention-management-console/modules/apps.xml

2018-07-18 15:11:54,812 INFO:univention.appcenter.actions.update:
Multifile: /etc/apache2/sites-available/000-default.conf
2018-07-18 15:11:57,581 INFO:univention.appcenter.actions.update:Multifile: /etc/apache2/sites-available/000-default.conf

2018-07-18 15:11:57,582 INFO:univention.appcenter.actions.update:
Multifile: /etc/apache2/sites-available/default-ssl.conf
2018-07-18 15:12:00,111 INFO:univention.appcenter.actions.update:Multifile: /etc/apache2/sites-available/default-ssl.conf

2018-07-18 15:12:00,112 INFO:univention.appcenter.actions.update:
File: /usr/share/univention-management-console/i18n/de/apps.mo
2018-07-18 15:12:03,008 INFO:univention.appcenter.actions.update:File: /usr/share/univention-management-console/i18n/de/apps.mo

2018-07-18 15:12:03,009 INFO:univention.appcenter.actions.update:
File: /usr/share/univention-portal/apps.json
2018-07-18 15:12:06,580 INFO:univention.appcenter.actions.update:File: /usr/share/univention-portal/apps.json

2018-07-18 15:12:06,580 INFO:univention.appcenter.actions.update:
Updating app icon files in UMC directory...
2018-07-18 15:12:09,127 DEBUG:univention.appcenter.actions.update:Updating app icon files in UMC directory...
100
2018-07-18 15:12:10,092 DEBUG:univention.appcenter.actions.update.progress:100
Checking dhcp-server=11.0.0
2018-07-18 15:12:10,100 DEBUG:univention.appcenter.actions.upgrade-search:Checking dhcp-server=11.0.0
Checking kopano-core=8.4.5.0
2018-07-18 15:12:10,111 DEBUG:univention.appcenter.actions.upgrade-search:Checking kopano-core=8.4.5.0
Checking kopano-webapp=3.3.0.610
2018-07-18 15:12:10,122 DEBUG:univention.appcenter.actions.upgrade-search:Checking kopano-webapp=3.3.0.610
Checking samba4=4.6
2018-07-18 15:12:10,134 DEBUG:univention.appcenter.actions.upgrade-search:Checking samba4=4.6
Checking z-push-kopano=2.3.7
2018-07-18 15:12:10,147 DEBUG:univention.appcenter.actions.upgrade-search:Checking z-push-kopano=2.3.7
100
2018-07-18 15:12:10,158 DEBUG:univention.appcenter.actions.upgrade-search.progress:100
none
Checking for release updates:                           found: UCS 4.3-0

Starting univention-upgrade. Current UCS version is 4.2-4 errata418

Checking for package updates:                           found
Please rerun command without --check argument to install.

Hier Bilder der policies:

image

image

image

Danke für die Hilfe im Voraus!

Huhu,

prüfen Sie erst einmal, ob die Richtlinien auf dem Server auch wirklich aktiv sind. Dafür führen Sie auf dem Server bitte folgenden Befehl als root aus:

univention-policy-result -y /etc/machine.secret -D $(ucr get ldap/hostdn) $(ucr get ldap/hostdn)

Posten Sie die Ausgabe bitte hier.

Gruß
mosu

Hallöchen,

danke für die rasche Rückmeldung - Hier die Ausgabe:

DN: cn=datasrv,cn=dc,cn=computers,dc=wick,dc=local

POLICY cn=datasrv,cn=dc,cn=computers,dc=wick,dc=local

Policy: cn=UCS 3.0,cn=desktop,cn=policies,dc=wick,dc=local
Attribute: univentionDesktopProfile
Value: /usr/share/univention-kde-profiles/kde4-menu
Value: /usr/share/univention-kde-profiles/ucs-3.0

Policy: cn=default-users,cn=admin-settings,cn=users,cn=policies,dc=wick,dc=local
Attribute: univentionAdminListWebModules
Value: modself

Policy: cn=default-users,cn=admin-settings,cn=users,cn=policies,dc=wick,dc=local
Attribute: univentionAdminMayOverrideSettings
Value: 0

Policy: cn=default-users,cn=admin-settings,cn=users,cn=policies,dc=wick,dc=local
Attribute: univentionAdminListWizards
Value: None

Policy: cn=default-settings,cn=pwhistory,cn=users,cn=policies,dc=wick,dc=local
Attribute: univentionPWHistoryLen
Value: 3

Policy: cn=default-settings,cn=pwhistory,cn=users,cn=policies,dc=wick,dc=local
Attribute: univentionPWLength
Value: 8

Policy: cn=default-settings,cn=routing,cn=dhcp,cn=policies,dc=wick,dc=local
Attribute: univentionDhcpRouters
Value: 192.168.0.254

Policy: cn=default-settings,cn=dns,cn=dhcp,cn=policies,dc=wick,dc=local
Attribute: univentionDhcpDomainName
Value: wick.local

Policy: cn=default-settings,cn=dns,cn=dhcp,cn=policies,dc=wick,dc=local
Attribute: univentionDhcpDomainNameServers
Value: 192.168.0.92
Value: 192.168.0.93

Policy: cn=2-BackupUpdate,cn=policies,dc=wick,dc=local
Attribute: univentionCron
Value: * 5 * * 2 

Policy: cn=2-BackupUpdate,cn=policies,dc=wick,dc=local
Attribute: univentionCronActive
Value: 1

Policy: cn=2-BackupUpdate,cn=policies,dc=wick,dc=local
Attribute: univentionInstallationShutdown
Value: 0

Policy: cn=2-BackupUpdate,cn=policies,dc=wick,dc=local
Attribute: univentionInstallationStartup
Value: 0

Policy: cn=0-UpdateDefinition,cn=policies,dc=wick,dc=local
Attribute: univentionUpdateActivate
Value: FALSE

EDIT: Jeden Dienstag um 05:00 - Habe mich im Topic verschrieben.

Huhu,

sieht schon mal gut aus. Nächste Frage: gibt’s den dazugehörigen Cron-Job? Die folgende Datei sollte angelegt worden sein; bitte mal den Inhalt posten:

/etc/cron.d/univention-maintenance

Achtung: der Mechanismus, der diese Datei anlegt, wird nur grob einmal pro Stunde angeworfen. Wenn also gerade erst die Verknüpfung im LDAP vorgenommen wurde, so kann es durchaus eine Weile dauern.

Gruß
mosu

Inhalt:

# cron job for update
PATH=/sbin:/usr/sbin:/usr/bin:/bin
* 4 * * 2 	root	/usr/sbin/jitter 600 true;/usr/share/univention-updater/univention-actualise --dist-upgrade --silent

Huhu,

passt nicht richtig zusammen, oder? Ihre Cron-Datei sagt * 4 * * 2, die Policy sagt * 5 * * 2. Ist das wirklich vom richtigen Server? Haben Sie die Policy gerad erst von der Uhrzeit her geändert?

Gruß
mosu

Hy,

habe die Uhrzeit erst vor etwa 10 Minuten geändert. Passend zu Ihrer These das grob jede Stunde überprüft wird :slight_smile:

Alright, das erklärt’s :+1:

Was sagt denn dann /var/log/syslog von Dienstag um 04:00 Uhr herum? Dort sollte sich CRON verewigt haben und behaupten, er hätte den Job ausgeführt.

Analog: was steht in /var/log/univention/actualise.log vom Dienstag um grob 04:00 Uhr?

m.

BTW, ich hatte mal eine etwas längere Erklärung zur ganzen Funktionsweise des Update-Mechanismus, der Policies, der Logdateien verfasst:

Hallo,

hier die Ausgabe des syslog:

Jul 17 03:55:02 datasrv CRON[24660]: (root) CMD ([ -x /usr/sbin/univention-system-stats ] && /usr/sbin/univention-system-stats >/dev/null)
Jul 17 04:00:02 datasrv CRON[26016]: (root) CMD (  [ -x /usr/lib/univention-pam/ldap-group-to-file.py ] && /usr/lib/univention-pam/ldap-group-to-file.py --check_member)
Jul 17 04:00:02 datasrv CRON[26018]: (root) CMD ([ -x /usr/sbin/univention-system-stats ] && /usr/sbin/univention-system-stats >/dev/null)
Jul 17 04:00:02 datasrv CRON[26022]: (root) CMD (if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ] && [ -d "$(grep '^[[:space:]]*[^#]*[[:space:]]*WorkDir' /etc/mrtg.cfg | awk '{ print $NF }')" ]; then mkdir -p /va
r/log/mrtg ; env LANG=C /usr/bin/mrtg /etc/mrtg.cfg 2>&1 | tee -a /var/log/mrtg/mrtg.log ; fi)
Jul 17 04:00:02 datasrv CRON[26023]: (root) CMD (/usr/share/univention-ssl/ssl-sync >>/var/log/univention/ssl-sync.log 2>&1)
Jul 17 04:00:02 datasrv CRON[26030]: (root) CMD (/usr/sbin/jitter 600 true;/usr/share/univention-updater/univention-actualise --dist-upgrade --silent)
Jul 17 04:00:02 datasrv CRON[26041]: (root) CMD (/usr/sbin/univention-mrtg)
Jul 17 04:00:02 datasrv CRON[26042]: (root) CMD (  if [ -x /usr/sbin/univention-umount-homedirs ]; then /usr/sbin/univention-umount-homedirs; fi)
Jul 17 04:00:03 datasrv CRON[26052]: (root) CMD (/usr/sbin/jitter 60 /usr/share/univention-samba4/scripts/sysvol-sync.sh >>/var/log/univention/sysvol-sync.log 2>&1)
Jul 17 04:01:02 datasrv CRON[26893]: (root) CMD (/usr/sbin/jitter 600 true;/usr/share/univention-updater/univention-actualise --dist-upgrade --silent)
Jul 17 04:02:02 datasrv CRON[26972]: (root) CMD (/usr/sbin/jitter 600 true;/usr/share/univention-updater/univention-actualise --dist-upgrade --silent)
Jul 17 04:03:02 datasrv CRON[27171]: (root) CMD (/usr/sbin/jitter 600 true;/usr/share/univention-updater/univention-actualise --dist-upgrade --silent)
Jul 17 04:04:02 datasrv CRON[27991]: (root) CMD (/usr/share/univention-samba4/scripts/sysvol-cleanup.py --move /var/lib/samba/sysvol_backup  >>/var/log/univention/sysvol-sync.log 2>&1)
Jul 17 04:04:02 datasrv CRON[27992]: (root) CMD (/usr/sbin/jitter 600 true;/usr/share/univention-updater/univention-actualise --dist-upgrade --silent)
Jul 17 04:05:01 datasrv CRON[28101]: (root) CMD (  [ -x /usr/share/univention-updater/univention-updater-check ] && /usr/sbin/jitter 600 /usr/share/univention-updater/univention-updater-check 2> /dev/null > /dev
/null)
Jul 17 04:05:02 datasrv CRON[28103]: (root) CMD (/usr/sbin/jitter 600 true;/usr/share/univention-updater/univention-actualise --dist-upgrade --silent)
Jul 17 04:05:02 datasrv CRON[28107]: (root) CMD (/usr/sbin/jitter 60 /usr/share/univention-samba4/scripts/sysvol-sync.sh >>/var/log/univention/sysvol-sync.log 2>&1)
Jul 17 04:05:02 datasrv CRON[28110]: (root) CMD (  /usr/share/univention-directory-policy/univention-directory-policy-cron)
Jul 17 04:05:02 datasrv CRON[28114]: (root) CMD (if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ] && [ -d "$(grep '^[[:space:]]*[^#]*[[:space:]]*WorkDir' /etc/mrtg.cfg | awk '{ print $NF }')" ]; then mkdir -p /va
r/log/mrtg ; env LANG=C /usr/bin/mrtg /etc/mrtg.cfg 2>&1 | tee -a /var/log/mrtg/mrtg.log ; fi)
Jul 17 04:05:02 datasrv CRON[28121]: (root) CMD ([ -x /usr/sbin/univention-system-stats ] && /usr/sbin/univention-system-stats >/dev/null)
Jul 17 04:06:02 datasrv CRON[28511]: (root) CMD (/usr/sbin/jitter 600 true;/usr/share/univention-updater/univention-actualise --dist-upgrade --silent)
Jul 17 04:07:02 datasrv CRON[29218]: (root) CMD (/usr/sbin/jitter 600 true;/usr/share/univention-updater/univention-actualise --dist-upgrade --silent)
Jul 17 04:08:02 datasrv CRON[29300]: (root) CMD (/usr/sbin/jitter 600 true;/usr/share/univention-updater/univention-actualise --dist-upgrade --silent)
Jul 17 04:08:28 datasrv dhcpd: LDAP server was down, trying to reconnect...
Jul 17 04:08:28 datasrv dhcpd: DHCPINFORM from 192.168.0.224 via eth0
Jul 17 04:08:28 datasrv dhcpd: DHCPACK to 192.168.0.224 (d4:ae:52:c1:d4:8d) via eth0
Jul 17 04:09:02 datasrv CRON[29607]: (root) CMD (  [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean)
Jul 17 04:09:02 datasrv CRON[29616]: (root) CMD (/usr/sbin/jitter 600 true;/usr/share/univention-updater/univention-actualise --dist-upgrade --silent)
Jul 17 04:10:01 datasrv cron[675]: (*system*univention-maintenance) RELOAD (/etc/cron.d/univention-maintenance)
Jul 17 04:10:02 datasrv CRON[30393]: (root) CMD (  if [ -x /usr/sbin/univention-umount-homedirs ]; then /usr/sbin/univention-umount-homedirs; fi)
Jul 17 04:10:02 datasrv CRON[30395]: (root) CMD ([ -x /usr/sbin/univention-system-stats ] && /usr/sbin/univention-system-stats >/dev/null)
Jul 17 04:10:02 datasrv CRON[30407]: (root) CMD (if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ] && [ -d "$(grep '^[[:space:]]*[^#]*[[:space:]]*WorkDir' /etc/mrtg.cfg | awk '{ print $NF }')" ]; then mkdir -p /va
r/log/mrtg ; env LANG=C /usr/bin/mrtg /etc/mrtg.cfg 2>&1 | tee -a /var/log/mrtg/mrtg.log ; fi)
Jul 17 04:10:02 datasrv CRON[30417]: (root) CMD (/usr/sbin/jitter 600 true;/usr/share/univention-updater/univention-actualise --dist-upgrade --silent)
Jul 17 04:10:02 datasrv CRON[30419]: (root) CMD (/usr/sbin/jitter 60 /usr/share/univention-samba4/scripts/sysvol-sync.sh >>/var/log/univention/sysvol-sync.log 2>&1)
Jul 17 04:11:01 datasrv CRON[30756]: (root) CMD (/usr/sbin/jitter 600 true;/usr/share/univention-updater/univention-actualise --dist-upgrade --silent)
Jul 17 04:12:01 datasrv CRON[31169]: (root) CMD (/usr/sbin/jitter 600 true;/usr/share/univention-updater/univention-actualise --dist-upgrade --silent)
Jul 17 04:13:01 datasrv CRON[31896]: (root) CMD (/usr/sbin/jitter 600 true;/usr/share/univention-updater/univention-actualise --dist-upgrade --silent)
Jul 17 04:14:01 datasrv CRON[31982]: (root) CMD (/usr/sbin/jitter 600 true;/usr/share/univention-updater/univention-actualise --dist-upgrade --silent)
Jul 17 04:15:02 datasrv CRON[32319]: (root) CMD (/usr/sbin/univention-mrtg)
Jul 17 04:15:02 datasrv CRON[32323]: (root) CMD (if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ] && [ -d "$(grep '^[[:space:]]*[^#]*[[:space:]]*WorkDir' /etc/mrtg.cfg | awk '{ print $NF }')" ]; then mkdir -p /var/log/mrtg ; env LANG=C /usr/bin/mrtg /etc/mrtg.cfg 2>&1 | tee -a /var/log/mrtg/mrtg.log ; fi)
Jul 17 04:15:02 datasrv CRON[32338]: (root) CMD (/usr/sbin/jitter 60 /usr/share/univention-samba4/scripts/sysvol-sync.sh >>/var/log/univention/sysvol-sync.log 2>&1)
Jul 17 04:15:02 datasrv CRON[32352]: (root) CMD (/usr/sbin/jitter 600 true;/usr/share/univention-updater/univention-actualise --dist-upgrade --silent)
Jul 17 04:15:02 datasrv CRON[32354]: (root) CMD ([ -x /usr/sbin/univention-system-stats ] && /usr/sbin/univention-system-stats >/dev/null)
Jul 17 04:15:02 datasrv CRON[32357]: (root) CMD (  [ -x /usr/lib/univention-pam/ldap-group-to-file.py ] && /usr/lib/univention-pam/ldap-group-to-file.py --check_member)
Jul 17 04:16:01 datasrv CRON[773]: (root) CMD (/usr/sbin/jitter 600 true;/usr/share/univention-updater/univention-actualise --dist-upgrade --silent)
Jul 17 04:17:01 datasrv CRON[867]: (root) CMD (/usr/sbin/jitter 600 true;/usr/share/univention-updater/univention-actualise --dist-upgrade --silent)
Jul 17 04:17:01 datasrv CRON[870]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)

In der actualise.log steht überhaupt nichts.

Huhu,

ach ja, * 4 * * 2 bedeutet: “jede Minute zwischen 04:00 und 04:59 Uhr”, und das syslog bestätigt das. Sinnvoller ist natürlich 0 4 * * 2 (oder welche Stunde auch immer).

m.

Die Logdatei wird durch logrotate potenziell rotiert. Schon mal in allen anderen /var/log/actualise.log* nachgesehen?

Und was passiert, wenn Sie das manuell ausführen (bewusst ohne --silent)?

/usr/share/univention-updater/univention-actualise --dist-upgrade

m.

Hallo,

ich denke wir sind dem Fehler dicht auf den Fersen:

root@datasrv:/var/log/univention# /usr/share/univention-updater/univention-actualise --dist-upgrade
**Running apt-get update**
**E: failed to update**

Inhalt der aktuellen actualise.log:

...
Hit https://updates.software-univention.de 4.0-5-errata/amd64/ Packages
Hit https://updates.software-univention.de 4.0-5-errata/all/ Packages
Hit https://updates.software-univention.de 4.0-5-errata/amd64/ Packages
Hit https://updates.software-univention.de transition/all/ Packages
Hit https://updates.software-univention.de transition/amd64/ Packages
Hit https://updates.software-univention.de 4.2-4-errata/all/ Packages
Hit https://updates.software-univention.de 4.1-5-errata/all/ Packages
Hit https://updates.software-univention.de 4.1-5-errata/amd64/ Packages
Hit https://updates.software-univention.de 4.1-5-errata/amd64/ Packages
**W: Failed to fetch https://appcenter.software-univention.de/univention-repository/4.2/maintained/component/klms_20171106151607/all/Packages  HttpError404**

**W: Failed to fetch https://appcenter.software-univention.de/univention-repository/4.2/maintained/component/klms_20171106151607/amd64/Packages  HttpError404**

E: Some index files failed to download. They have been ignored, or old ones used instead.
***** Starting univention-actualise at Wed Jul 18 16:07:23 2018

Wir hatten auf dem Server mal KLMS über das App Center installiert.

Wenn’s nicht mehr benötigt wird: entfernen, vor allem die Komponentendefinition aus den UCR-Variablen rausnehmen. Anschließend erneut testen.

Edit: und genau so etwas sollte in den actualise.log stehen.

1 Like

Hallo,

die source Liste des KLMS Pakets war noch unter /etc/apt/sources.d/ gelistet.

Danke für die schnelle Hilfe - Passt nun alles!

Mastodon