Bug 14174 - IOError Traceback von samba.local.config.py
IOError Traceback von samba.local.config.py
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba
UCS 2.2
All All
: P5 normal (vote)
: UCS 2.3
Assigned To: Daniel Hofmann
Arvid Requate
:
Depends on:
Blocks: 14432
  Show dependency treegraph
 
Reported: 2009-04-14 14:02 CEST by Janis Meybohm
Modified: 2009-12-21 08:47 CET (History)
3 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
smaba.local.config.py traceback (2.99 KB, image/png)
2009-05-12 15:10 CEST, Janek Walkenhorst
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Janis Meybohm univentionstaff 2009-04-14 14:02:20 CEST
Beim  Update von 2.1-2 auf 2.2 ist in meiner updater.log der folgende Traceback aufgefallen:
--
Richte univention-samba-local-config ein (3.0.11-2.173.200903101333) ...
Traceback (most recent call last):
  File "/etc/univention/templates/scripts/samba.local.config.py", line 274, in ?
    get_printers()
  File "/etc/univention/templates/scripts/samba.local.config.py", line 145, in get_printers
    etc = open("/etc/cups/printers.conf")
IOError: [Errno 2] No such file or directory: '/etc/cups/printers.conf'
Script: /etc/univention/templates/scripts/samba.local.config.py
Multifile: /etc/samba/smb.conf
--

Cups habe ich nicht installiert (hatte ich allerdings mal - daher evtl. auch mein Fehler ;)). Der Traceback sollte aber evtl. Abgefangen und eine Fehlermeldung ausgegeben werden.
Comment 1 Janek Walkenhorst univentionstaff 2009-05-12 15:10:10 CEST
Created attachment 1673 [details]
smaba.local.config.py traceback

Ist auch bei der Installation eines UCS 2.2-0 Masters aufgetreten
Comment 2 Daniel Hofmann univentionstaff 2009-08-06 10:36:06 CEST
Einfach reproduzierbar bspw. mittels:
umbenennen der /etc/cups/printers.conf
ucr set samba/global/options=foo

Gefixt + Changelogeintrag.
Existenz der Datei wird jetzt überprüft.
Im Nicht-existenzfall wurde bisher vermutlich auch der Rest des Skriptes nicht mehr ausgeführt.
Comment 3 Arvid Requate univentionstaff 2009-11-12 11:28:03 CET
verified: Die Anpassung an /etc/univention/templates/scripts/samba.local.config.py funktioniert und Changelog Eintrag ist vorhanden.
Comment 4 Stefan Gohmann univentionstaff 2009-12-21 08:47:02 CET
UCS 2.3 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer neueren Version von UCS erneut auftreten, so sollte der Bug dupliziert werden: "Clone This Bug".