Install Kolab 2.3.4 with 2.2.2 datas ??

kiser Caesar kcaesar at hotmail.com
Wed Feb 22 12:06:59 CET 2012


Hello,


I try to migrate my actual physical server  kolab 2.2.2 server (debian 4.0) to a fresh xen vm debian 6.0 server.
The basic install is ok ( system, partitions, kolab 2.3.4).
 
I have some troubles. 
Please see in follow my steps. I need really a large help... (Y'a t'il des admin parlant français utilisant kolab sur cette liste ?)
 
This is my steps, fix them, if possible :)
 
OLD_SERVER = A
NEW_SERVER = B
 
1 ) Exporting my actual ldap database with this command from server A.
/kolab/sbin/slapcat -l /kolab/SAVE_KOLAB/kolab-ldap.ldif
 
Then I put the file kolab-ldap.ldif on server B.
 
2 ) I uncommented to use berkeley db backend in /kolab/etc/kolab/templates/imapd.conf.template on server B.
annotation_db: berkeley
mboxlist_db: berkeley
 
3 ) The schema rfc2739 is well commented in /kolab/etc/openldap/slapd.conf on server B.
 
4 ) I use awk to find the two letters code to add on server B :

# awk '/^c:/ {print $2}' kolab-ldap.ldif |sort -u
FRANCE
GERMANY
...
 
5 ) I use sed to add them on server B :
 
(umask 077 && sed \
-e 's|^c: FRANCE$|c: FR|' \
-e 's|^c: GERMANY$|c: DE|' \
/home/toto/kolab-ldap.ldif > /home/toto/new-kolab-ldap.ldif)
 
6 ) I use kolab-cn2uid to convert my ldap database on server B :
 
# (umask 077 && /kolab/bin/php /root/kolab-cn2uid -i new-kolab-ldap.ldif -o kolab-update-bis.ldif)
 
And I have this errors :

PHP Warning:  preg_replace(): Compilation failed: reference to non-existent subpattern at offset 22 in /root/kolab-cn2uid on line 38
PHP Warning:  preg_replace(): Compilation failed: reference to non-existent subpattern at offset 29 in /root/kolab-cn2uid on line 38
PHP Warning:  preg_replace(): Compilation failed: reference to non-existent subpattern at offset 25 in /root/kolab-cn2uid on line 38
 
7 ) I paste the hash password of manager and nobody from the default ldap database in my export database.
 
Nota when I do a slapcat of my fresh ldap database I get this error :
 
# /kolab/sbin/slapcat > tmp.ldif
/kolab/etc/openldap/slapd.conf: line 90: <replica> keyword is obsolete (ignored)
 
8 ) I check if the process of kolab are well stopped :
 
# /kolab/bin/openpkg rc all stop
OpenPKG: stop: spamassassin, amavisd, apache, clamav, imapd, postfix, kolabd
OpenPKG: stop: sasl, openldap.
 
9 ) I clean old openldap-data on server B :
 
cd /kolab/var/openldap/openldap-data/
# ll
total 1128
-rw-r--r-- 1 root  root        4096 20 févr. 13:13 alock
-rw------- 1 root  root       20480 20 févr. 12:47 cn.bdb
-rw------- 1 root  root       24576 20 févr. 13:13 __db.001
-rw------- 1 root  root       73728 20 févr. 13:13 __db.002
-rw------- 1 root  root      270336 20 févr. 13:13 __db.003
-rw------- 1 root  root       98304 20 févr. 13:13 __db.004
-rw------- 1 root  root      360448 20 févr. 13:13 __db.005
-rw------- 1 root  root       24576 20 févr. 13:13 __db.006
-rw-r----- 1 kolab kolab-r     1115 20 févr. 12:48 DB_CONFIG
-rw------- 1 root  root        8192 20 févr. 12:47 dn2id.bdb
-rw------- 1 root  root        8192 20 févr. 12:47 entryCSN.bdb
-rw------- 1 root  root        8192 20 févr. 12:47 entryUUID.bdb
-rw------- 1 root  root        8192 20 févr. 12:47 givenName.bdb
-rw------- 1 root  root       65536 20 févr. 13:03 id2entry.bdb
-rw------- 1 root  root        8192 20 févr. 12:47 kolabHomeServer.bdb
-rw------- 1 root  root    10485760 20 févr. 13:13 log.0000000001
-rw------- 1 root  root       16384 20 févr. 12:47 mail.bdb
-rw------- 1 root  root        8192 20 févr. 12:47 member.bdb
-rw------- 1 root  root        8192 20 févr. 12:47 objectClass.bdb
-rw------- 1 root  root        8192 20 févr. 12:47 sn.bdb
-rw------- 1 root  root        8192 20 févr. 12:47 uid.bdb
# rm *
 
 
10 ) I make the restore of ldap database :

# /kolab/sbin/slapadd -l /home/toto/kolab-update-bis.ldif
/kolab/etc/openldap/slapd.conf: line 90: <replica> keyword is obsolete (ignored)
bdb_db_open: warning - no DB_CONFIG file found in directory /kolab/var/openldap/openldap-data: (2).
Expect poor performance for suffix "dc=domain,dc=com".
*#################### 100.00% eta   none elapsed          03m20s spd   8.1 k/s
Closing DB...
 
I got on this step, more bad entries. I cleaned them.

11 ) I start openldap :

# /kolab/bin/openpkg rc openldap start
OpenPKG: start: openldap.

12 ) I run kolabconf :

# /kolab/sbin/kolabconf -n

13 ) I start all services :

# /kolab/bin/openpkg rc all start

14 ) I got this kind of errors in syslog :

Feb 20 16:39:07 host kolabconf[26047]: L Error: dc=domain,dc=com: No such object
Feb 20 16:39:07 host kolabconf[26047]: T Warning: No configuration variable corresponding to `kolab_php_module_prefix' exists
Feb 20 16:39:07 host kolabconf[26047]: T Warning: No configuration variable corresponding to `webserver_web_prefix' exists
Feb 20 16:39:08 host kolabconf[26047]: T Warning: No configuration variable corresponding to `webserver_web_prefix' exists
Feb 20 16:39:08 host kolabconf[26047]: T Warning: No configuration variable corresponding to `webserver_web_prefix' exists
Feb 20 16:39:08 host kolabconf[26047]: T Warning: No configuration variable corresponding to `webserver_web_prefix' exists
Feb 20 16:39:08 host kolabconf[26047]: T Warning: No configuration variable corresponding to `webserver_web_prefix' exists
Feb 20 16:39:08 host kolabconf[26047]: T Warning: No configuration variable corresponding to `webserver_web_prefix' exists
Feb 20 16:39:08 host kolabconf[26047]: T Warning: No configuration variable corresponding to `webserver_web_prefix' exists
Feb 20 16:40:06 host kolabd[28318]: Kolab is starting up

15 ) I can reach the kolab webadmin and log into.

16 ) I can't reach horde, I got this log in /kolab/var/kolab/webclient_data/log/horde.log :

Feb 20 16:59:45 HORDE [error] [kronolith] Erreur IMAP. Serveur : serveur.domain.com. Erreur : Connection failed to serveur.domain.com,143: Connexion terminée par expiration du délai d'attente [pid 15366 on line 1348 of "/kolab/var/kolab/www/client/kronolith/lib/Kronolith.php"]
Feb 20 17:00:23 HORDE [error] [kronolith] Erreur IMAP. Serveur : serveur.domain.com. Erreur : Connection failed to serveur.domain.com,143: Connexion terminée par expiration du délai d'attente [pid 15364 on line 1348 of "/kolab/var/kolab/www/client/kronolith/lib/Kronolith.php"]
Feb 20 17:00:45 HORDE [error] [nag] Erreur IMAP. Serveur : serveur.domain.com. Erreur : Connection failed to serveur.domain.com,143: Connexion terminée par expiration du délai d'attente [pid 15366 on line 295 of "/kolab/var/kolab/www/client/nag/lib/Nag.php"]

17 ) I can to know what is the next step ? Just a rsycn of /kolab/var/imapd/spool/ from server A to server B ? Or there are more others steps ?


I'm sorry for this long message, but I really need help !


Best regards,






 
 
 
 
 

 		 	   		   		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/users/attachments/20120222/a9660f4f/attachment.html>


More information about the users mailing list