Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-06-2007, 12:29 AM
Junior Member
 
Posts: 6
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
Reply With Quote
  #2 (permalink)  
Old 01-06-2007, 05:43 AM
Former Zimbran
 
Posts: 5,606
Default

Please try and running the zmfixperms script in the libexec directory.
Reply With Quote
  #3 (permalink)  
Old 01-06-2007, 12:44 PM
Junior Member
 
Posts: 6
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
Reply With Quote
  #4 (permalink)  
Old 01-06-2007, 01:13 PM
Former Zimbran
 
Posts: 5,606
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)
Reply With Quote
  #5 (permalink)  
Old 01-06-2007, 02:53 PM
Junior Member
 
Posts: 6
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$
Reply With Quote
  #6 (permalink)  
Old 01-06-2007, 05:26 PM
Former Zimbran
 
Posts: 5,606
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
Reply With Quote
  #7 (permalink)  
Old 01-06-2007, 06:11 PM
Former Zimbran
 
Posts: 5,606
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.
Reply With Quote
  #8 (permalink)  
Old 01-07-2007, 12:21 AM
Junior Member
 
Posts: 6
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
Reply With Quote
  #9 (permalink)  
Old 01-07-2007, 12:36 AM
Zimbra Consultant & Moderator
 
Posts: 19,633
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
Reply With Quote
  #10 (permalink)  
Old 01-07-2007, 12:39 AM
Junior Member
 
Posts: 6
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.