Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Initializing ldap...FAILED (256)

  1. #1
    rmvg is offline Advanced Member
    Join Date
    Sep 2005
    Location
    Calgary
    Posts
    208
    Rep Power
    9

    Default Initializing ldap...FAILED (256)

    Ok all i have been struggling with the 4.0.4_GA_457.RHEL4-20061115174505 install on centos for a couple of days now. Reluctant to submit to the forums as they are so huge now i am guessing almost every possible question has been answered heehee. As always forgive me if this has been answered elsewhere and I would like to apologize in advance for the lengthy post hope the code brackets did not seem to work so i added a link to a text file on my ftp server.

    During install/reinstall using the -u option of the install script I get this error

    Creating SSL certificate...Done
    Initializing ldap...FAILED (256)


    ERROR



    Configuration failed

    Please address the error and re-run /opt/zimbra/libexec/zmsetup.pl to
    complete the configuration[root@mx1 zcs]#


    This pointed me to the ldap wiki page and i tried the troubleshooting stuff there could not fit the entire message so the output is contained here

    ftp://ftpking:fileshare@computerking...ng/zimbra1.txt

    thank you
    Computer King

    http://www.computerking.ca

    Sales, Service, and Hosting
    Email, Data, and Web Packages
    Ask about web design specials

    Affiliates
    http://www.computerking.ca/pages/lin...affiliates.htm

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,492
    Rep Power
    56

    Default

    I haven't looked at your log yet but is this a new install or an upgrade? Is CentOS newly installed? If it is have you disabled the firewall and SElinux? I assume you have your DNS records set-up correctly?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    rmvg is offline Advanced Member
    Join Date
    Sep 2005
    Location
    Calgary
    Posts
    208
    Rep Power
    9

    Default

    Quote Originally Posted by phoenix View Post
    I haven't looked at your log yet but is this a new install or an upgrade? Is CentOS newly installed? If it is have you disabled the firewall and SElinux? I assume you have your DNS records set-up correctly?
    This is a new install however it has failed several times, but i have issued the ./install.sh -u command to completely remove previous attempts. Yes it is a fairly fresh and updated version of centos 4.4 i believe not on site right now so cannot get exact version number. Yes the firewall and SElinux were disabled during centos setup.
    Computer King

    http://www.computerking.ca

    Sales, Service, and Hosting
    Email, Data, and Web Packages
    Ask about web design specials

    Affiliates
    http://www.computerking.ca/pages/lin...affiliates.htm

  4. #4
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    Make sure that you don't have LDAP running

    telnet localhost 389

  5. #5
    ContemporaryFusion is offline Intermediate Member
    Join Date
    Dec 2006
    Location
    Newmarket, Suffolk, UK
    Posts
    23
    Rep Power
    8

    Unhappy

    I also have this error - although I am pretty sure this is due to me trying to use FC5's version of Zimbra on FC 6

    I'm about to play with a source download as I have nothing better to do on a Sunday

    *** EDIT *** Solution:

    as root:
    visudo
    comment out

    #Defaults requiretty

    Hope this helps you
    Last edited by ContemporaryFusion; 12-17-2006 at 09:13 AM. Reason: Found solution (for me)

  6. #6
    iratik is offline Intermediate Member
    Join Date
    Jan 2007
    Posts
    16
    Rep Power
    8

    Angry Arghhh!!! So Frustrated!!!

    Quote Originally Posted by ContemporaryFusion View Post
    I also have this error - although I am pretty sure this is due to me trying to use FC5's version of Zimbra on FC 6

    I'm about to play with a source download as I have nothing better to do on a Sunday

    *** EDIT *** Solution:

    as root:
    visudo
    comment out

    #Defaults requiretty

    Hope this helps you

    What file are those changes made in ? I'm getting the same error and my router IS configured and I get connection refused when attempting to telnet to localhost on 389. I need to get this up and running and it just doesn't work!

  7. #7
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    run a zmlocalconfig
    and post your results

  8. #8
    iratik is offline Intermediate Member
    Join Date
    Jan 2007
    Posts
    16
    Rep Power
    8

    Default zmlocalconfig results

    av_notify_user = admin@com.mydomain.com
    ldap_cache_account_maxage = 15
    ldap_cache_account_maxsize = 5000
    ldap_cache_cos_maxage = 15
    ldap_cache_cos_maxsize = 100
    ldap_cache_domain_maxage = 15
    ldap_cache_domain_maxsize = 100
    ldap_cache_server_maxage = 15
    ldap_cache_server_maxsize = 100
    ldap_cache_timezone_maxsize = 100
    ldap_cache_zimlet_maxage = 15
    ldap_cache_zimlet_maxsize = 100
    ldap_connect_pool_debug = false
    ldap_connect_pool_initsize = 1
    ldap_connect_pool_maxsize = 50
    ldap_connect_pool_prefsize = 0
    ldap_connect_pool_timeout = 120000
    ldap_connect_timeout = 30000
    ldap_host = com.mydomain.com
    ldap_is_master = true
    ldap_log_level = 0
    ldap_master_url = ldap://com.mydomain.com:389
    ldap_port = 389
    ldap_root_password = *
    ldap_url = ldap://com.mydomain.com:389
    localized_msgs_directory = ${zimbra_home}/conf/msgs
    logger_mysql_bind_address = localhost
    logger_mysql_data_directory = ${zimbra_home}/logger/db/data
    logger_mysql_directory = ${zimbra_home}/logger/mysql
    logger_mysql_mycnf = ${zimbra_home}/conf/my.logger.cnf
    logger_mysql_pidfile = ${zimbra_home}/logger/db/mysql.pid
    logger_mysql_port = 7307
    logger_mysql_socket = ${zimbra_home}/logger/db/mysql.sock
    mysql_bind_address = localhost
    mysql_data_directory = ${zimbra_db_directory}/data
    mysql_directory = ${zimbra_home}/mysql
    mysql_innodb_log_buffer_size = 8388608
    mysql_innodb_log_file_size = 104857600
    mysql_memory_percent = 40
    mysql_mycnf = ${zimbra_home}/conf/my.cnf
    mysql_pidfile = ${zimbra_db_directory}/mysql.pid
    mysql_port = 7306
    mysql_read_buffer_size = 1048576
    mysql_root_password = *
    mysql_socket = ${zimbra_db_directory}/mysql.sock
    mysql_sort_buffer_size = 1048576
    mysql_table_cache = 500
    nio_imap_enable = false
    nio_imap_log_buffers = false
    nio_imap_write_queue_max_size = 10240000
    nio_imap_write_queue_max_size_unauth = 20480
    nio_write_buffer_compaction_percent = 50
    postfix_alias_maps = hash:/etc/aliases
    postfix_broken_sasl_auth_clients = yes
    postfix_command_directory = /opt/zimbra/postfix-${postfix_version}/sbin
    postfix_daemon_directory = /opt/zimbra/postfix-${postfix_version}/libexec
    postfix_header_checks = pcre:/opt/zimbra/conf/postfix_header_checks
    postfix_mailq_path = /opt/zimbra/postfix-${postfix_version}/sbin/mailq
    postfix_manpage_directory = /opt/zimbra/postfix-${postfix_version}/man
    postfix_newaliases_path = /opt/zimbra/postfix-${postfix_version}/sbin/newaliases
    postfix_queue_directory = /opt/zimbra/postfix-${postfix_version}/spool
    postfix_sender_canonical_maps = ldap:/opt/zimbra/conf/ldap-scm.cf
    postfix_sendmail_path = /opt/zimbra/postfix-${postfix_version}/sbin/sendmail
    postfix_smtpd_client_restrictions = reject_unauth_pipelining
    postfix_smtpd_data_restrictions = reject_unauth_pipelining
    postfix_smtpd_helo_required = yes
    postfix_smtpd_tls_cert_file = ${zimbra_home}/conf/smtpd.crt
    postfix_smtpd_tls_key_file = ${zimbra_home}/conf/smtpd.key
    postfix_smtpd_tls_loglevel = 1
    postfix_transport_maps = ldap:/opt/zimbra/conf/ldap-transport.cf
    postfix_version = 2.2.9
    postfix_virtual_alias_domains = ldap://opt/zimbra/conf/ldap-vad.cf
    postfix_virtual_alias_maps = ldap:/opt/zimbra/conf/ldap-vam.cf
    postfix_virtual_mailbox_domains = ldap:/opt/zimbra/conf/ldap-vmd.cf
    postfix_virtual_mailbox_maps = ldap:/opt/zimbra/conf/ldap-vmm.cf
    postfix_virtual_transport = error
    ssl_allow_untrusted_certs = TRUE
    stats_img_folder = ${zimbra_home}/logger/db/work
    tomcat_directory = ${zimbra_home}/tomcat
    tomcat_java_heap_memory_percent = 30
    tomcat_java_home = ${zimbra_java_home}
    tomcat_java_options = -client -XX:NewRatio=2
    tomcat_keystore = ${tomcat_directory}/conf/keystore
    tomcat_pidfile = ${zimbra_log_directory}/tomcat.pid
    wiki_enabled = false
    wiki_user = wiki
    zimbra_admin_service_port = 7071
    zimbra_attrs_directory = ${zimbra_home}/conf/attrs
    zimbra_auth_always_send_refer = false
    zimbra_db_directory = ${zimbra_home}/db
    zimbra_extension_common_directory = ${zimbra_home}/lib/ext-common
    zimbra_extension_directory = ${zimbra_home}/lib/ext
    zimbra_gid = 1001
    zimbra_home = /opt/zimbra
    zimbra_index_directory = ${zimbra_home}/index
    zimbra_index_idle_flush_time = 600
    zimbra_index_lru_size = 100
    zimbra_index_max_uncommitted_operations = 200
    zimbra_java_home = ${zimbra_home}/java
    zimbra_ldap_password = *
    zimbra_ldap_user = zimbra
    zimbra_ldap_userdn = uid=zimbra,cn=admins,cn=zimbra
    zimbra_log4j_properties = ${zimbra_home}/conf/log4j.properties
    zimbra_log_directory = ${zimbra_home}/log
    zimbra_logger_mysql_password = *
    zimbra_mtareport_max_recipients = 50
    zimbra_mtareport_max_senders = 50
    zimbra_mysql_password = *
    zimbra_mysql_user = zimbra
    zimbra_server_hostname = com.mydomain.com
    zimbra_spam_report_queue_size = 100
    zimbra_store_directory = ${zimbra_home}/store
    zimbra_store_sweeper_max_age = 480
    zimbra_throttle_op_concurrency = 1000,1000,1000,1000,1000
    zimbra_tmp_directory = /tmp/zimbra
    zimbra_uid = 1001
    zimbra_user = zimbra
    zimbra_zmprov_default_soap_server = localhost
    zimbra_zmprov_default_to_ldap = false
    zimlet_directory = ${tomcat_directory}/webapps/service/zimlet

  9. #9
    iratik is offline Intermediate Member
    Join Date
    Jan 2007
    Posts
    16
    Rep Power
    8

    Exclamation preemptive responses

    I checked around and saw several similar threads and took the initiative to answer questions I am quite sure I will be asked.
    1. OpenSSL is installed
    2. hosts shows LOCALLANIP fqhn hn
    3. have tried WANIP fqhn hn
    4. did ensure libssl.so.5 and libcrypto.so.5 were available in usr/lib - linked to libssl.so.0.9.8 and libcrypto.so.0.9.8

    Code:
    c0@com:/usr/lib$ ls -l | grep crypto
    -rw-r--r--  1 root root 1314744 2006-09-29 13:54 libcrypto.so.0.9.8
    lrwxrwxrwx  1 root root      18 2007-01-03 15:29 libcrypto.so.5 -> libcrypto.so.0.9.8
    lrwxrwxrwx  1 root root      18 2007-01-02 15:56 libk5crypto.so.3 -> libk5crypto.so.3.0
    -rw-r--r--  1 root root  147732 2006-09-20 09:20 libk5crypto.so.3.0
    c0@com:/usr/lib$ ls -l | grep ssl
    lrwxrwxrwx  1 root root      27 2007-01-02 15:52 libgnutls-openssl.so.13 -> libgnutls-openssl.so.13.0.5
    -rw-r--r--  1 root root   39960 2006-09-18 08:46 libgnutls-openssl.so.13.0.5
    lrwxrwxrwx  1 root root      15 2007-01-02 22:58 libssl.so.0.9.7 -> libssl.so.0.9.8
    -rw-r--r--  1 root root  255648 2006-09-29 13:54 libssl.so.0.9.8
    lrwxrwxrwx  1 root root      15 2007-01-03 15:29 libssl.so.5 -> libssl.so.0.9.8
    drwxr-xr-x  4 root root    4096 2007-01-02 22:08 ssl

  10. #10
    iratik is offline Intermediate Member
    Join Date
    Jan 2007
    Posts
    16
    Rep Power
    8

    Default Looking at Logs

    If you notice in the above output that I had already linked libssl.so.0.9.7 to libssl.so.0.9.8 , this is because i saw a suspicious error the first time i tried to install zimbra. I looked at the installation log after the last post and saw that it couldn't find libcrypto.so.0.9.7, i linked it to libcrypto.so.0.9.8 and tried again.

    New error this time. (Same error code Initializing LDAP....failed (256))
    Code:
    Setting local config zimbra_user to zimbra
    
    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e zimbra_user=zimbra
    
    Setting local config av_notify_user to admin@com.c******s.com
    
    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e av_notify_user=admin@com.c******s.com
    
    Setting local config ssl_allow_untrusted_certs to TRUE
    
    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e ssl_allow_untrusted_certs=TRUE
    
    Done
    
    Setting up CA...
    *** Running as zimbra user: cd /opt/zimbra; zmcreateca
    
    ** Creating CA private key
    
    Generating a 1024 bit RSA private key
    .......++++++
    .......++++++
    unable to write 'random state'
    writing new private key to '/opt/zimbra/ssl/ssl/ca/ca.key'
    -----
    ** Creating CA cert
    
    Signature ok
    subject=/C=US/ST=N/A/L=N/A/O=Zimbra Collaboration Suite
    Getting Private key
    unable to write 'random state'
    Done
    
    Creating SSL certificate...
    chmod: cannot access `/jre/lib/security/cacerts': No such file or directory
    *** Running as zimbra user: cd /opt/zimbra; zmcreatecert
    
    /opt/zimbra/bin/zmcreatecert: 27: source: not found
    chmod: cannot access `/jre/lib/security/cacerts': No such file or directory
    Done
    
    Initializing ldap...
    *** Running as zimbra user: /opt/zimbra/libexec/zmldapinit
    
    /opt/zimbra/bin/ldap: 32: source: not found
    FAILED (256)
    
    
    
    ERROR
    
    
    
    
    Configuration failed
    Last edited by mmorse; 09-29-2009 at 10:14 AM. Reason: domain scrubb request

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Upgrade: 4.5.5 -> 4.5.6 failed, LDAP/slapd issues
    By Daimyo in forum Installation
    Replies: 7
    Last Post: 08-04-2007, 09:23 PM
  2. Zimbra Install Problem - getDirectContext
    By bsimzer in forum Installation
    Replies: 27
    Last Post: 07-19-2007, 10:12 AM
  3. 3 testing: LDAP: 389 Failed when restore zimbra
    By victorLeong in forum Administrators
    Replies: 15
    Last Post: 05-24-2007, 06:45 AM
  4. Initializing ldap...FAILED (256) on Mac OSX 10.4.4
    By kenzoida in forum Installation
    Replies: 19
    Last Post: 02-14-2007, 12:19 AM
  5. Replies: 4
    Last Post: 11-15-2006, 12:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •