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

Thread: Ldap issues

  1. #1
    Join Date
    Jan 2007
    Posts
    6
    Rep Power
    8

    Default Ldap issues

    I'm running a intel mac version 10.4.5 with zimbra version 4.04 i think

    anyway whenever i try to install i get an ldap error. i've tried several solutions in the forums all to no avail. please help.

    here is a copy of my install log

    Checking java version...
    1.5 found

    Setting defaults...
    Setting local config zimbra_java_home to /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home

    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e zimbra_java_home=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home

    Error: save to /opt/zimbra/conf/localconfig.xml failed
    java.io.IOException: Permission denied
    java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Nativ e Method)
    at java.io.File.checkAndCreate(File.java:1345)
    at java.io.File.createTempFile(File.java:1434)
    at com.zimbra.cs.localconfig.LocalConfig.save(LocalCo nfig.java:144)
    at com.zimbra.cs.localconfig.Main.main(Main.java:151)


    DNS ERROR resolving MX for host-216-119-187-80.vista-express.com

    It is suggested that the domain name have an MX record configured in DNS

    MX: mail.marshallacademy.com (216.119.187.80)



    Interface: 127.0.0.1

    Interface: 216.119.187.80

    Done

    Disabling postfix in launchd

    Checking for port conflicts



    Note


    The previous configuration appears to have failed to complete


    Can't open opt/zimbra/config.1727: No such file or directory

    Operations logged to /tmp/zmsetup.log.1727

    Setting local config values...
    Setting local config zimbra_server_hostname to marshallacademy.com

    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e zimbra_server_hostname=marshallacademy.com

    Error: save to /opt/zimbra/conf/localconfig.xml failed
    java.io.IOException: Permission denied
    java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Nativ e Method)
    at java.io.File.checkAndCreate(File.java:1345)
    at java.io.File.createTempFile(File.java:1434)
    at com.zimbra.cs.localconfig.LocalConfig.save(LocalCo nfig.java:144)
    at com.zimbra.cs.localconfig.Main.main(Main.java:151)
    Setting local config ldap_master_url to ldap://marshallacademy.com:389

    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e ldap_master_url=ldap://marshallacademy.com:389

    Error: save to /opt/zimbra/conf/localconfig.xml failed
    java.io.IOException: Permission denied
    java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Nativ e Method)
    at java.io.File.checkAndCreate(File.java:1345)
    at java.io.File.createTempFile(File.java:1434)
    at com.zimbra.cs.localconfig.LocalConfig.save(LocalCo nfig.java:144)
    at com.zimbra.cs.localconfig.Main.main(Main.java:151)
    Setting local config ldap_url to ldap://marshallacademy.com:389

    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e ldap_url=ldap://marshallacademy.com:389

    Error: save to /opt/zimbra/conf/localconfig.xml failed
    java.io.IOException: Permission denied
    java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Nativ e Method)
    at java.io.File.checkAndCreate(File.java:1345)
    at java.io.File.createTempFile(File.java:1434)
    at com.zimbra.cs.localconfig.LocalConfig.save(LocalCo nfig.java:144)
    at com.zimbra.cs.localconfig.Main.main(Main.java:151)
    Setting local config ldap_port to 389

    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e ldap_port=389

    Error: save to /opt/zimbra/conf/localconfig.xml failed
    java.io.IOException: Permission denied
    java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Nativ e Method)
    at java.io.File.checkAndCreate(File.java:1345)
    at java.io.File.createTempFile(File.java:1434)
    at com.zimbra.cs.localconfig.LocalConfig.save(LocalCo nfig.java:144)
    at com.zimbra.cs.localconfig.Main.main(Main.java:151)
    Setting local config ldap_host to marshallacademy.com

    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e ldap_host=marshallacademy.com

    Error: save to /opt/zimbra/conf/localconfig.xml failed
    java.io.IOException: Permission denied
    java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Nativ e Method)
    at java.io.File.checkAndCreate(File.java:1345)
    at java.io.File.createTempFile(File.java:1434)
    at com.zimbra.cs.localconfig.LocalConfig.save(LocalCo nfig.java:144)
    at com.zimbra.cs.localconfig.Main.main(Main.java:151)
    Setting local config zimbra_uid to 502

    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e zimbra_uid=502

    Error: save to /opt/zimbra/conf/localconfig.xml failed
    java.io.IOException: Permission denied
    java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Nativ e Method)
    at java.io.File.checkAndCreate(File.java:1345)
    at java.io.File.createTempFile(File.java:1434)
    at com.zimbra.cs.localconfig.LocalConfig.save(LocalCo nfig.java:144)
    at com.zimbra.cs.localconfig.Main.main(Main.java:151)
    Setting local config zimbra_gid to 502

    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e zimbra_gid=502

    Error: save to /opt/zimbra/conf/localconfig.xml failed
    java.io.IOException: Permission denied
    java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Nativ e Method)
    at java.io.File.checkAndCreate(File.java:1345)
    at java.io.File.createTempFile(File.java:1434)
    at com.zimbra.cs.localconfig.LocalConfig.save(LocalCo nfig.java:144)
    at com.zimbra.cs.localconfig.Main.main(Main.java:151)
    Setting local config zimbra_user to zimbra

    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e zimbra_user=zimbra

    Error: save to /opt/zimbra/conf/localconfig.xml failed
    java.io.IOException: Permission denied
    java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Nativ e Method)
    at java.io.File.checkAndCreate(File.java:1345)
    at java.io.File.createTempFile(File.java:1434)
    at com.zimbra.cs.localconfig.LocalConfig.save(LocalCo nfig.java:144)
    at com.zimbra.cs.localconfig.Main.main(Main.java:151)
    Setting local config av_notify_user to admin@marshallacademy.com

    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e av_notify_user=admin@marshallacademy.com

    Error: save to /opt/zimbra/conf/localconfig.xml failed
    java.io.IOException: Permission denied
    java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Nativ e Method)
    at java.io.File.checkAndCreate(File.java:1345)
    at java.io.File.createTempFile(File.java:1434)
    at com.zimbra.cs.localconfig.LocalConfig.save(LocalCo nfig.java:144)
    at com.zimbra.cs.localconfig.Main.main(Main.java:151)
    Setting local config ssl_allow_untrusted_certs to TRUE

    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e ssl_allow_untrusted_certs=TRUE

    Error: save to /opt/zimbra/conf/localconfig.xml failed
    java.io.IOException: Permission denied
    java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Nativ e Method)
    at java.io.File.checkAndCreate(File.java:1345)
    at java.io.File.createTempFile(File.java:1434)
    at com.zimbra.cs.localconfig.LocalConfig.save(LocalCo nfig.java:144)
    at com.zimbra.cs.localconfig.Main.main(Main.java:151)
    Done

    Creating SSL certificate...
    *** Running as zimbra user: cd /opt/zimbra; zmcreatecert

    expr: non-numeric argument
    /opt/zimbra/bin/zmcreatecert: line 78: [: -lt: unary operator expected
    ** Importing CA

    keytool error: java.lang.Exception: Certificate not imported, alias already exists
    ** Creating keystore

    ** Creating server cert request

    Generating a 1024 bit RSA private key
    ....++++++
    .................................................. ............................................++++++
    unable to write 'random state'
    writing new private key to '/opt/zimbra/ssl/ssl/server/server.key'
    -----
    ** Signing cert request

    Using configuration from /opt/zimbra/ssl/ssl/zmssl.cnf
    unable to load number from /opt/zimbra/ssl/ssl/ca/ca.srl
    error while loading serial number
    1957:error:0D066096:asn1 encoding routines:a2i_ASN1_INTEGER:short line:f_int.c:215:
    unable to write 'random state'
    Signature ok
    subject=/C=US/ST=NA/L=NA/O=Zimbra/OU=Zimbra/CN=marshallacademy.com
    Getting CA Private Key
    unable to load number from /opt/zimbra/ssl/ssl/ca/ca.srl
    1958:error:0D066096:asn1 encoding routines:a2i_ASN1_INTEGER:short line:f_int.c:215:
    unable to write 'random state'
    Done

    Initializing ldap...
    *** Running as zimbra user: /opt/zimbra/libexec/zmldapinit

    Error: save to /opt/zimbra/conf/localconfig.xml failed
    java.io.IOException: Permission denied
    java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Nativ e Method)
    at java.io.File.checkAndCreate(File.java:1345)
    at java.io.File.createTempFile(File.java:1434)
    at com.zimbra.cs.localconfig.LocalConfig.save(LocalCo nfig.java:144)
    at com.zimbra.cs.localconfig.Main.main(Main.java:151)
    Error: save to /opt/zimbra/conf/localconfig.xml failed
    java.io.IOException: Permission denied
    java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Nativ e Method)
    at java.io.File.checkAndCreate(File.java:1345)
    at java.io.File.createTempFile(File.java:1434)
    at com.zimbra.cs.localconfig.LocalConfig.save(LocalCo nfig.java:144)
    at com.zimbra.cs.localconfig.Main.main(Main.java:151)
    Error: save to /opt/zimbra/conf/localconfig.xml failed
    java.io.IOException: Permission denied
    java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Nativ e Method)
    at java.io.File.checkAndCreate(File.java:1345)
    at java.io.File.createTempFile(File.java:1434)
    at com.zimbra.cs.localconfig.LocalConfig.save(LocalCo nfig.java:144)
    at com.zimbra.cs.localconfig.Main.main(Main.java:151)
    mv: rename /tmp/slapd.conf to /opt/zimbra/conf/slapd.conf.in: Permission denied
    slapd already running: pid 1300
    FAILED (256)



    ERROR




    Configuration failed


    Please address the error and re-run /opt/zimbra/libexec/zmsetup.pl to

    complete the configuration

  2. #2
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    Please try and running the zmfixperms script in the libexec directory.

  3. #3
    Join Date
    Jan 2007
    Posts
    6
    Rep Power
    8

    Default

    Still no luck. I'm getting the same error.

    This wouldn't bother me so much if i hadn't gotten it working before on the same box

  4. #4
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    Try this:
    >su root
    >chown -R zimbra:zimbra /opt/zimbra
    >cd /opt/zimbra/libexec
    >./zmfixperms
    >su zimbra
    >zmcontrol start
    >tail -100 /var/log/zimbra.log
    (post that here)
    >tail -100 /var/log/zimbra.log
    (post that here too)

  5. #5
    Join Date
    Jan 2007
    Posts
    6
    Rep Power
    8

    Default

    host-216-119-187-80:~/libexec zimbra$ zmcontrol start
    Host marshallacademy.com
    Starting ldap...Done.
    FAILED
    ERROR - failed to start slapd



    host-216-119-187-80:~/libexec zimbra$ tail -100 /var/log/zimbra.log
    tail: /var/log/zimbra.log: No such file or directory
    host-216-119-187-80:~/libexec zimbra$ tail -100 /var/log/zimbra.log
    tail: /var/log/zimbra.log: No such file or directory
    host-216-119-187-80:~/libexec zimbra$ tail -100 /var/log/zimbra.log
    tail: /var/log/zimbra.log: No such file or directory
    host-216-119-187-80:~/libexec zimbra$

  6. #6
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    hmn-
    Can you post your zmlocalconfig ?

    BTW: The second log file is supposed to be /opt/zimbra/log/zimbra.log not /var/log/zimbra.log

  7. #7
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    By the way-
    Are you using SSH to get into your machine? I noticed that the hostname was different on the output than what it was on your copy/paste.

  8. #8
    Join Date
    Jan 2007
    Posts
    6
    Rep Power
    8

    Default

    #!/bin/bash
    #
    # ***** BEGIN LICENSE BLOCK *****
    # Version: MPL 1.1
    #
    # The contents of this file are subject to the Mozilla Public License
    # Version 1.1 ("License"); you may not use this file except in
    # compliance with the License. You may obtain a copy of the License at
    # http://www.zimbra.com/license
    #
    # Software distributed under the License is distributed on an "AS IS"
    # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
    # the License for the specific language governing rights and limitations
    # under the License.
    #
    # The Original Code is: Zimbra Collaboration Suite Server.
    #
    # The Initial Developer of the Original Code is Zimbra, Inc.
    # Portions created by Zimbra are Copyright (C) 2005, 2006 Zimbra, Inc.
    # All Rights Reserved.
    #
    # Contributor(s):
    #
    # ***** END LICENSE BLOCK *****
    #
    #
    # We cannot rely on any config parameters when running
    # zmlocalconfig for obvious chicken and egg reasons. So
    # we just make assumptions about install layout.
    #

    ZMROOT=`dirname $0`/..
    ZMROOT=`(cd "${ZMROOT}"; pwd)`

    if [ -x "${ZMROOT}/java/bin/java" ]; then
    java="${ZMROOT}/java/bin/java"
    else
    java=java
    fi

    CP=${ZMROOT}/lib/jars/zimbrastore.jar:${ZMROOT}/lib/jars/commons-logging.jar:${ZMROOT}/lib/jars/commons-cli-2.0.jar:${ZMROOT}/lib/jars/dom4j-1.5.jar:${ZMROOT}/lib/jars/log4j-1.2.8.jar:${ZMROOT}/lib/jars/commons-httpclient-2.0.1.jar
    exec ${java} -client -Dzimbra.home="${ZMROOT}" -cp "$CP" \
    com.zimbra.cs.localconfig.Main "$@"




    and nope i'm not using ssh

  9. #9
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by wannabetenor View Post
    hmn-
    Can you post your zmlocalconfig ?
    I think he meant run the command zmlocalconfig' not post the script.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  10. #10
    Join Date
    Jan 2007
    Posts
    6
    Rep Power
    8

    Default

    host-216-119-187-80:/opt/zimbra/libexec root# /opt/zimbra/bin/zmlocalconfig
    av_notify_user = admin@marshallacademy.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 = marshallacademy.com
    ldap_is_master = true
    ldap_log_level = 0
    ldap_master_url = ldap://marshallacademy.com:389
    ldap_port = 389
    ldap_root_password = *
    ldap_url = ldap://marshallacademy.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 = 502
    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 = /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
    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 = marshallacademy.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 = 502
    zimbra_user = zimbra
    zimbra_zmprov_default_soap_server = localhost
    zimbra_zmprov_default_to_ldap = false
    zimlet_directory = ${tomcat_directory}/webapps/service/zimlet




    sorry guys, its been a long day

Similar Threads

  1. LDAP Replication Experiences
    By technikolor in forum Administrators
    Replies: 4
    Last Post: 11-11-2008, 11:52 PM
  2. 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
  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. Mac OSX install: Java errors & LDAP CA error
    By jefbear in forum Installation
    Replies: 9
    Last Post: 12-16-2006, 02:39 PM
  5. Replies: 4
    Last Post: 11-15-2006, 11:16 AM

Posting Permissions

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