Bug 33799

Summary: create-archivefolder.py traceback
Product: UCS Reporter: Stefan Gohmann <gohmann>
Component: MailAssignee: Daniel Tröder <troeder>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P5 CC: best, schwardt, troeder
Version: UCS 3.2   
Target Milestone: UCS 3.2-x   
Hardware: Other   
OS: Linux   
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): Error handling, External feedback
Max CVSS v3 score:

Description Stefan Gohmann univentionstaff 2013-12-23 07:21:04 CET
The following traceback happens if univention-mail-postfix is installed and univention-mail-cyrus is not installed. Ticket #2013121921001566

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py",
line 204, in execute
    func( request )
  File
"/usr/lib/pymodules/python2.6/univention/management/console/modules/ucr/__init__.py", line
107, in put
    ucr.handler_set( arg )
  File "/usr/lib/pymodules/python2.6/univention/config_registry/frontend.py", line 162, in
handler_set
    None if quiet else 'W: %s is overridden by scope "%s"')
  File "/usr/lib/pymodules/python2.6/univention/config_registry/frontend.py", line 203, in
_run_changed
    handlers(changed.keys(), (ucr, changed))
  File "/usr/lib/pymodules/python2.6/univention/config_registry/handler.py", line 795, in
__call__
    handler(arg)
  File "/usr/lib/pymodules/python2.6/univention/config_registry/handler.py", line 430, in
__call__
    run_module(self.module, 'generate', ucr, changed)
  File "/usr/lib/pymodules/python2.6/univention/config_registry/handler.py", line 162, in
run_module
    arg2meth[arg](module)(ucr, changes)
  File "/etc/univention/templates/modules/create-archivefolder.py", line 42, in handler
    subprocess.call([cmd, folder])
  File "/usr/lib/python2.6/subprocess.py", line 470, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.6/subprocess.py", line 623, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child
    raise child_exception
OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden
Comment 1 Florian Best univentionstaff 2014-06-16 11:11:49 CEST
This traceback occurs when setting the UCR variable mail/archivefolder.

It was reported by the UMC traceback feedback formular.

The script calls /usr/sbin/univention-cyrus-mkdir which doesn't exists.
Comment 2 Florian Best univentionstaff 2014-11-20 13:10:01 CET
Reported also via Traceback feedback 3.2-3 errata234 (Borgfeld)

Traceback:
Die Ausführung des Kommandos ucr/put ist fehlgeschlagen:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py",
line 218, in execute
    func( request )
  File
"/usr/lib/pymodules/python2.6/univention/management/console/modules/ucr/__init__.py", line
107, in put
    ucr.handler_set( arg )
  File "/usr/lib/pymodules/python2.6/univention/config_registry/frontend.py", line 162, in
handler_set
    None if quiet else 'W: %s is overridden by scope "%s"')
  File "/usr/lib/pymodules/python2.6/univention/config_registry/frontend.py", line 203, in
_run_changed
    handlers(changed.keys(), (ucr, changed))
  File "/usr/lib/pymodules/python2.6/univention/config_registry/handler.py", line 835, in
__call__
    handler(arg)
  File "/usr/lib/pymodules/python2.6/univention/config_registry/handler.py", line 467, in
__call__
    run_module(self.module, 'generate', ucr, changed)
  File "/usr/lib/pymodules/python2.6/univention/config_registry/handler.py", line 164, in
run_module
    arg2meth[arg](module)(ucr, changes)
  File "/etc/univention/templates/modules/create-archivefolder.py", line 42, in handler
    subprocess.call([cmd, folder])
  File "/usr/lib/python2.6/subprocess.py", line 470, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.6/subprocess.py", line 623, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child
    raise child_exception
OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden
Comment 3 Daniel Tröder univentionstaff 2015-05-08 10:33:34 CEST
Fix is in revision 60591.
Comment 4 Florian Best univentionstaff 2015-05-08 11:45:27 CEST
(In reply to Daniel Tröder from comment #3)
> Fix is in revision 60591.
Ok, this is in the component/dovecot branch. You are working on Bug #38477, as this bug does not have a target milestone i will mark it as duplicate of the bug you are working on ;)

*** This bug has been marked as a duplicate of bug 38477 ***