don't get kolab configured on CentOS-6.2

Richard ml at radoeka.nl
Sat May 12 20:48:30 CEST 2012


Hi,

I was able to install kolab-2.4 on CentOS-6.2, but sofar no luck configuring 
it.  This is I assume due to the locale setting.

Let me include the output of the first run:

[root at cedar ~]# setup-kolab
Traceback (most recent call last):
  File "/usr/sbin/setup-kolab", line 29, in <module>
    import pykolab
  File "/usr/lib/python2.6/site-packages/pykolab/__init__.py", line 43, in 
<module>
    from pykolab.conf import Conf
  File "/usr/lib/python2.6/site-packages/pykolab/conf/__init__.py", line 31, 
in <module>
    from pykolab.constants import *
  File "/usr/lib/python2.6/site-packages/pykolab/constants.py", line 41, in 
<module>
    "about Kolab or PyKolab, visit http://www.kolabsys.com")
  File "/usr/lib/python2.6/site-packages/pykolab/translate.py", line 29, in 
<lambda>
    _ = lambda x: gettext.ldgettext(domain, x)
  File "/usr/lib64/python2.6/gettext.py", line 540, in ldgettext
    codeset=_localecodesets.get(domain))
  File "/usr/lib64/python2.6/gettext.py", line 480, in translation
    t = _translations.setdefault(key, class_(open(mofile, 'rb')))
  File "/usr/lib64/python2.6/gettext.py", line 180, in __init__
    self._parse(fp)
  File "/usr/lib64/python2.6/gettext.py", line 339, in _parse
    tmsg = unicode(tmsg, self._charset)
LookupError: unknown encoding: CHARSET


[root at cedar ~]# LANG=C

Starten van mysqld:                                        [  OK  ]
MySQL root password [QGbL5FlchagLcbp]:                             
MySQL roundcube password [5YOpsICNZXFPXa_]:                        
Stoppen van httpd:                                         [  OK  ]
Starten van httpd:                                         [  OK  ]
Stoppen van httpd:                                         [  OK  ]
Starten van httpd:                                         [  OK  ]
Stoppen van httpd:                                         [  OK  ]
Starten van httpd:                                         [  OK  ]
Stoppen van cyrus-imapd:                                   [MISLUKT]
Starten van cyrus-imapd:                                   [  OK  ] 
Stoppen van kolab-saslauthd:                               [MISLUKT]
Starten van kolab-saslauthd: Traceback (most recent call last):     
  File "/usr/sbin/kolab-saslauthd", line 28, in <module>            
    from pykolab.translate import _                                 
  File "/usr/lib/python2.6/site-packages/pykolab/__init__.py", line 43, in 
<module>
    from pykolab.conf import Conf                                                  
  File "/usr/lib/python2.6/site-packages/pykolab/conf/__init__.py", line 31, 
in <module>
    from pykolab.constants import *                                                     
  File "/usr/lib/python2.6/site-packages/pykolab/constants.py", line 41, in 
<module>    
    "about Kolab or PyKolab, visit http://www.kolabsys.com")                            
  File "/usr/lib/python2.6/site-packages/pykolab/translate.py", line 29, in 
<lambda>    
    _ = lambda x: gettext.ldgettext(domain, x)                                          
  File "/usr/lib64/python2.6/gettext.py", line 540, in ldgettext                        
    codeset=_localecodesets.get(domain))                                                
  File "/usr/lib64/python2.6/gettext.py", line 480, in translation                      
    t = _translations.setdefault(key, class_(open(mofile, 'rb')))                       
  File "/usr/lib64/python2.6/gettext.py", line 180, in __init__                         
    self._parse(fp)                                                                     
  File "/usr/lib64/python2.6/gettext.py", line 339, in _parse                           
    tmsg = unicode(tmsg, self._charset)                                                 
LookupError: unknown encoding: CHARSET                                                  
                                                           [MISLUKT]                    
Starten van kolabd: Traceback (most recent call last):                                  
  File "/usr/sbin/kolabd", line 26, in <module>                                         
    from pykolab.translate import _                                                     
  File "/usr/lib/python2.6/site-packages/pykolab/__init__.py", line 43, in 
<module>     
    from pykolab.conf import Conf                                                       
  File "/usr/lib/python2.6/site-packages/pykolab/conf/__init__.py", line 31, 
in <module>
    from pykolab.constants import *                                                     
  File "/usr/lib/python2.6/site-packages/pykolab/constants.py", line 41, in 
<module>
    "about Kolab or PyKolab, visit http://www.kolabsys.com")
  File "/usr/lib/python2.6/site-packages/pykolab/translate.py", line 29, in 
<lambda>
    _ = lambda x: gettext.ldgettext(domain, x)
  File "/usr/lib64/python2.6/gettext.py", line 540, in ldgettext
    codeset=_localecodesets.get(domain))
  File "/usr/lib64/python2.6/gettext.py", line 480, in translation
    t = _translations.setdefault(key, class_(open(mofile, 'rb')))
  File "/usr/lib64/python2.6/gettext.py", line 180, in __init__
    self._parse(fp)
  File "/usr/lib64/python2.6/gettext.py", line 339, in _parse
    tmsg = unicode(tmsg, self._charset)
LookupError: unknown encoding: CHARSET
                                                           [MISLUKT]
Starten van kolab-saslauthd: Traceback (most recent call last):
  File "/usr/sbin/kolab-saslauthd", line 28, in <module>
    from pykolab.translate import _
  File "/usr/lib/python2.6/site-packages/pykolab/__init__.py", line 43, in 
<module>
    from pykolab.conf import Conf
  File "/usr/lib/python2.6/site-packages/pykolab/conf/__init__.py", line 31, 
in <module>
    from pykolab.constants import *
  File "/usr/lib/python2.6/site-packages/pykolab/constants.py", line 41, in 
<module>
    "about Kolab or PyKolab, visit http://www.kolabsys.com")
  File "/usr/lib/python2.6/site-packages/pykolab/translate.py", line 29, in 
<lambda>
    _ = lambda x: gettext.ldgettext(domain, x)
  File "/usr/lib64/python2.6/gettext.py", line 540, in ldgettext
    codeset=_localecodesets.get(domain))
  File "/usr/lib64/python2.6/gettext.py", line 480, in translation
    t = _translations.setdefault(key, class_(open(mofile, 'rb')))
  File "/usr/lib64/python2.6/gettext.py", line 180, in __init__
    self._parse(fp)
  File "/usr/lib64/python2.6/gettext.py", line 339, in _parse
    tmsg = unicode(tmsg, self._charset)
LookupError: unknown encoding: CHARSET
                                                           [MISLUKT]

Now let's try again, but this time with LANG exported.....:

[root at cedar ~]# export LANG=C

[root at cedar ~]# setup-kolab
Administrator password [5YzbgwtxGt6vZCf]:
Directory Manager password [X3W3lxD6G4F1vAm]:
User [nobody]:
Group [nobody]:
Shutting down dirsrv:
    cedar...                                               [  OK  ]
Starting dirsrv:
    cedar...                                               [  OK  ]
Cyrus Administrator password [lBYGwNVGYsdbGCP]:
Kolab Service password [hZkD9WGR1HF2D4I]:
Traceback (most recent call last):
  File "/usr/sbin/setup-kolab", line 42, in <module>
    setup.run()
  File "/usr/lib/python2.6/site-packages/pykolab/setup/__init__.py", line 42, 
in run
    components.execute('_'.join(to_execute))
  File "/usr/lib/python2.6/site-packages/pykolab/setup/components.py", line 
143, in execute
    execute(component)
  File "/usr/lib/python2.6/site-packages/pykolab/setup/components.py", line 
188, in execute
    components[component_name]['function'](conf.cli_args, kw)
  File "/usr/lib/python2.6/site-packages/pykolab/setup/setup_ldap.py", line 
241, in execute
    auth._auth.ldap.add_s(dn, ldif)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 195, in 
add_s
    return self.result(msgid,all=1,timeout=self.timeout)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 458, in 
result
    resp_type, resp_data, resp_msgid = self.result2(msgid,all,timeout)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 462, in 
result2
    resp_type, resp_data, resp_msgid, resp_ctrls = 
self.result3(msgid,all,timeout)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 469, in 
result3
    resp_ctrl_classes=resp_ctrl_classes
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 476, in 
result4
    ldap_result = 
self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 99, in 
_ldap_call
    result = func(*args,**kwargs)
ldap.ALREADY_EXISTS: {'desc': 'Already exists'}

Of course LDAP already exist, because of the first run.

I thought to get rid of the LDAP data by removing /var/lib/dirsrv.  But now 
dirsrv does not want to start at all anymore.

I verified the package intrigrity with "rpm -V <all kolab related package>" and 
all is well.  Some files are changed, but those are the config files => thus 
expected.

Removing all 389- related packages and dependencies and reinstalling them does 
not help.

The current config result is:
# setup-kolab
Administrator password [A7bQYdMAObY2Z4o]: 
Directory Manager password [R-Zl8EhRH53hErw]: 
User [nobody]: 
Group [nobody]: 
Shutting down dirsrv: 
    cedar... server already stopped                        [MISLUKT]
  *** Error: 1 instance(s) unsuccessfully stopped          [MISLUKT]
Starting dirsrv: 
    cedar...                                               [MISLUKT]
  *** Warning: 1 instance(s) failed to start
Cyrus Administrator password [oQ8Lra4vZvSFl3L]: 
Kolab Service password [KVg-7jNzByy3wcA]: 
Traceback (most recent call last):
  File "/usr/sbin/setup-kolab", line 42, in <module>
    setup.run()
  File "/usr/lib/python2.6/site-packages/pykolab/setup/__init__.py", line 42, 
in run
    components.execute('_'.join(to_execute))
  File "/usr/lib/python2.6/site-packages/pykolab/setup/components.py", line 
143, in execute
    execute(component)
  File "/usr/lib/python2.6/site-packages/pykolab/setup/components.py", line 
188, in execute
    components[component_name]['function'](conf.cli_args, kw)
  File "/usr/lib/python2.6/site-packages/pykolab/setup/setup_ldap.py", line 
241, in execute
    auth._auth.ldap.add_s(dn, ldif)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 194, in 
add_s
    msgid = self.add(dn,modlist)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 191, in 
add
    return self.add_ext(dn,modlist,None,None)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 176, in 
add_ext
    return 
self._ldap_call(self._l.add_ext,dn,modlist,RequestControlTuples(serverctrls),RequestControlTuples(clientctrls))
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 99, in 
_ldap_call
    result = func(*args,**kwargs)
ldap.SERVER_DOWN: {'desc': "Can't contact LDAP server"}

What are my next steps to get Kolab configured??  What about the LANG setting, 
why does that have an influence?


-- 
Richard




More information about the users mailing list