Fehler bei univention-check-templates

Hallo,

wir haben auf einem UCS DC Backup 3.2-2 das Problem das seit dem Update der Befehl univention-check-templates in einen Fehler läuft.

# univention-check-templates Traceback (most recent call last): File "/usr/sbin/univention-check-templates", line 168, in <module> sys.exit(main()) File "/usr/sbin/univention-check-templates", line 52, in main modified |= check_md5(opt.verbose) File "/usr/sbin/univention-check-templates", line 102, in check_md5 for filepath, expected in iter_templates(): File "/usr/sbin/univention-check-templates", line 134, in iter_templates filepath, fmd5 = fields ValueError: too many values to unpack

Was können wir tun?

Hallo,

das habe ich so noch nicht gesehen und kann das auch nicht reproduzieren.
An der Stelle werden die “Conffiles” aus “/var/lib/dpkg/status” ausgewertet. Normalerweise bestehen diese immer aus dem Pfad und einer Prüfsumme was auf Ihrem System aber anscheinend für mind. eine “Conffile” nicht der Fall ist.

Um zu ermitteln welche Conffile betroffen ist, fügen Sie vor die Zeile 134 eine print Statement ein, z.B.:print '%r' % fields

Mit freundlichen Grüßen
Janis Meybohm

Die Ausgabe ist wie Folgt:

[u'/etc/univention/registry.info/variables/univention-system-setup.cfg', u'c1a36b0de263c3d54deee085c133dc94']                                                                       
[u'/etc/univention/templates/info/univention-system-setup.info', u'8447c029d4f10c0076c504a02a2a9b39']                                                                               
[u'/etc/univention/templates/scripts/update_sytem_setup_help.sh', u'5e695c3f3fe719f1245c1acea4aaa37d']                                                                              
[u'/etc/univention/templates/files/etc/logrotate.d/univention-system-setup', u'4a0df69dcd3c604e25eb36ab6e4fc4f5']                                                                   
[u'/etc/univention/registry.info/variables/univention-spamassassin.cfg', u'0520c92694ea466fad700157f907b2e9']
[u'/etc/univention/templates/info/univention-spamassassin.info', u'cb9c75504b9b73b90745441d97554243']
[u'/etc/univention/templates/files/usr/share/spamassassin/10_misc.cf', u'abf06d7ce7566c115b395d1a456325e7']
[u'/etc/univention/templates/files/usr/sbin/univention-sa-learn', u'54e91e89d66633376dbd0697d1e9c5ba']
[u'/etc/univention/templates/files/etc/default/spamassassin', u'23c38bcaa7528e0cc2d5b533cc2caa4a']
[u'/etc/univention/templates/files/etc/cron.daily/univention-spamassassin', u'9d14c363203277dc18fa9ace4225296b']
[u'/etc/univention/templates/files/etc/logrotate.d/univention-spamassassin', u'20aad35e35c50a6310886d2e25dee6a8']
[u'/etc/univention/service.info/services/univention-spamassassin.cfg', u'09178bb124ae9dfe1baf9787d1de68bb']
[u'/etc/runit/univention-bind/down', u'd41d8cd98f00b204e9800998ecf8427e']
[u'/etc/runit/univention-bind-proxy/down', u'd41d8cd98f00b204e9800998ecf8427e']
[u'/etc/runit/univention-bind-samba4/down', u'd41d8cd98f00b204e9800998ecf8427e']
[u'/etc/bind/db.root.fake', u'464d51bb40f9c9bc6f8e0b2d2e25696c']
[u'/etc/univention/registry.info/variables/univention-bind.cfg', u'f556729019a4bb794b6ad0885f07be23']
[u'/etc/univention/registry.info/categories/univention-bind.cfg', u'4fef4c055e77f5adbf097fcaa3f3aff2']
[u'/etc/univention/templates/info/univention-bind.info', u'97108499d59e6affc22d674ffcaaf2e9']
[u'/etc/univention/templates/files/etc/runit/univention-bind/run', u'6704731510f986cc6dda0c422d5ab608']
[u'/etc/univention/templates/files/etc/runit/univention-bind-proxy/run', u'9b41aa81eecf3b12be5651fa0ba34bd4']
[u'/etc/univention/templates/files/etc/runit/univention-bind-samba4/run', u'488de5b98c1440f79d0c5bee9b5c74c4']
[u'/etc/univention/templates/files/etc/bind/named.conf', u'56984036c941e0e6d57378dd617c101e']
[u'/etc/univention/templates/files/etc/bind/named.conf.samba4', u'3d0b92cdb60065e3fffe09765e552563']
[u'/etc/univention/templates/files/etc/bind/named.conf.proxy', u'd7e1ed3e48ee2e9a3b2dac76c92f2e76']
[u'/etc/univention/templates/files/etc/init.d/bind9', u'edbd28d9e989abaea91e0bc9081a9082']
[u'/etc/univention/service.info/services/univention-bind.cfg', u'08e3aa18cb3853dff6e1046246230013']
[u'/etc/univention/registry.info/variables/univention-heimdal-common.cfg', u'd722fe501b0b7711390239130fd1b5b9']
[u'/etc/univention/registry.info/categories/univention-heimdal-common.cfg', u'a677bed38110b166d487c36103cbf304']
[u'/etc/univention/templates/info/univention-heimdal-common.info', u'2311914b97642296a2807e57816409c1']
[u'/etc/univention/templates/files/etc/krb5.conf', u'82febbf1989299bc1245cb0fd26e9e92']
[u'/etc/apt/apt.conf.d/70debconf', u'7e9d09d5801a42b4926b736b8eeabb73']
[u'/etc/debconf.conf', u'8c0619be413824f1fc7698cee0f23811']
[u'/etc/bash_completion.d/debconf', u'8fa1862734fbe54d7178aaaa419f5a11']
[u'/etc/grub.d/20_memtest86+', u'0380b94112cd76fe18d43d538c32e32a']
[u'/etc/cron.d/univention-ssl', u'c5bb0a57ca4590791def879a279b81a5']
[u'/etc/univention/registry.info/variables/univention-ssl.cfg', u'642f21784909053eeb89e246bb649626']
[u'/etc/univention/registry.info/categories/univention-ssl.cfg', u'735d6772fc24f69c241f7dbcdd71e966']
[u'/etc/univention/templates/info/univention-ssl.info', u'83d968317c3310f84668a8e9d8a670cf']
[u'/etc/univention/templates/files/etc/cron.daily/univention-ssl-validity', u'18d0f7387f95ea3b2615e46f53474720']
[u'/etc/univention/templates/files/etc/logrotate.d/univention-ssl', u'04eacc1c8fb64355a4d7898631ed557e']
[u'/etc/texmf/updmap.d/10texlive-lang-mongolian.cfg', u'fd3a866354dbce036947287f0c2301be']
[u'/etc/texmf/language.d/10texlive-lang-mongolian.cnf', u'65e7f2ab941132a33329c5fd0a5a6ce6']
[u'/etc/network/if-post-down.d/vlan', u'af8ff6431490f05395844386b1c71210']
[u'/etc/network/if-pre-up.d/vlan', u'8a9b4274f9caeb06efa2f2f2622ad5db']
[u'/etc/network/if-up.d/ip', u'02c0f01378c645ea17ad5057612b9e7c']
[u'/etc/univention/templates/info/univention-home-mounter.info', u'726bfdc3be22f446e80afb9272c6ce62']
[u'/etc/univention/templates/files/etc/cron.d/univention-home-mounter', u'76ff1189a9da1ea7a43803868dc0b9ae']
[u'/etc/texmf/language.d/10texlive-lang-finnish.cnf', u'a200b1ca4c89a148280ac408be8af2c8']
[u'/opt/open-xchange/etc/crawlers/gmx.de.yml', u'51f08e5b558708dd69511f40baf2e0cf']
[u'/opt/open-xchange/etc/crawlers/GoogleCalendar.yml', u'68f9752acdbdbab6db4262bb89feaf03']
[u'/opt/open-xchange/etc/crawlers/GoogleMail.yml', u'98c39fa14cf2efcc504ce5c52d197a17']
[u'/opt/open-xchange/etc/crawlers/Sun', u'Calendar.yml', u'584968e94faad9f2bbeba80c3c417534']
Traceback (most recent call last):
  File "/usr/sbin/univention-check-templates", line 169, in <module>
    sys.exit(main())
  File "/usr/sbin/univention-check-templates", line 52, in main
    modified |= check_md5(opt.verbose)
  File "/usr/sbin/univention-check-templates", line 102, in check_md5
    for filepath, expected in iter_templates():
  File "/usr/sbin/univention-check-templates", line 135, in iter_templates
    filepath, fmd5 = fields
ValueError: too many values to unpac

Hallo,

vielen Dank für die Rückmeldung. Das Problem tritt augenscheinlich bei “Conffiles” auf die einen Space im Namen haben, dies aber aufgrund eines anderen Code-Pfades nur wenn auf dem System das Paket “python-debian” installiert ist.

Im Anhang finden Sie einen kurzen Patch der das Problem beheben sollte.

Mit freundlichen Grüßen
Janis Meybohm
univention-check-templates_rsplit.patch (859 Bytes)

Danke,

jetzt habe ich wieder eine normale Ausgabe.

Allerdings tauchen jetzt Configfiles auf, zu denen es aber keine neue Config gibt. Das kenne ich auch von anderen Systemen, woran kann das liegen?

z.B.:

univention-check-templates 
WARNING: The following UCR templates are modified locally.
Updated versions will be named FILENAME.dpkg-*.
The files should be checked for differences.

/etc/univention/templates/files/etc/aliases
ls -l /etc/univention/templates/files/etc/aliases*
-rw-r--r-- 1 root root 160 Aug 31  2011 /etc/univention/templates/files/etc/aliases

Hallo,

das bedeutet die Datei ist different zu der die im Paket ausgeliefert wurde, d.h. sie wurde lokal Verändert. Eine neue FILENAME.dpkg-* existiert nur wenn seit der Veränderung an der Datei ein neues Paket mit einer aktualisierten Datei ausgeliefert bzw. installiert wurde.

Wenn Sie das original einsehen wollen, ist es vermutlich am einfachsten direkt in das SVN zu schauen: branches/ucs-3.2/ucs-3.2-2/mail/univention-mail-postfix/conffiles/etc/aliases

Mit freundlichen Grüßen
Janis Meybohm

Mastodon