Install Error on FC3

Ask questions about your setup or get help installing ZCS server (ZD section below).
eici
Posts: 4
Joined: Fri Sep 12, 2014 9:56 pm

Install Error on FC3

Postby eici » Sat Oct 01, 2005 5:30 pm

Hi,
i'm trying to install Zimbra on a freshly installed FC3 Box:

[root@abc tmp]# uname -a

Linux abc.xyz.ab 2.6.12-1.1378_FC3 #1 Wed Sep 14 04:24:31 EDT 2005 i686 i686 i386 GNU/Linux
During install i get:
Preparing packages for installation...

zimbra-core-3.0.M1_21.FC3-20050920155949_

ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)



Preparing packages for installation...

zimbra-ldap-3.0.M1_21.FC3-20050920155949_

Preparing packages for installation...
Then:
Generating a 1024 bit RSA private key

......++++++

.........................++++++

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/CN=abc.xyz.ab

Getting Private key

** Importing CA
Certificate was added to keystore

keytool error: java.io.FileNotFoundException: /opt/zimbra/java/jre/lib/security/cacerts (Permission denied)



** Creating keystore
COMMAND: zmcertinstall mailbox

** Importing server cert

keytool error: java.lang.Exception: Failed to establish chain from reply


Subsequent starting of the zimbra-servers is failing....

(only errors listed)
from the log:

Oct 2 00:25:00 abc zimbramon[6440]: 6440:info: start app postfix

Oct 2 00:25:01 abc zimbramon[6440]: 6440:err: SMTP RESPONSE: FAILURE from localhost: problem connecting to "localhost", port 25: Connection ref
on the console:

[root@abc zcs]# /etc/init.d/zimbra start

Calling startup (abc.xyz.ab)

perl /opt/zimbra/bin/zmmon &

Soap call failed: 500 Can't connect to localhost:7777 (connect: Connection refused) at /opt/zimbra/bin/zmcontrol line 230
Any ideas whats wrong?

Thanks in advance for help!
Greets,

Chris


14319KevinH
Ambassador
Ambassador
Posts: 4558
Joined: Fri Sep 12, 2014 9:52 pm

Install Error on FC3

Postby 14319KevinH » Sun Oct 02, 2005 6:01 am

Have you ran the install more than once? Seems that some old processes may have been left over from a previous install. Do you have a different MTa (sendmail?) running on port 25 that prevents postfix from binding?
eici
Posts: 4
Joined: Fri Sep 12, 2014 9:56 pm

Install Error on FC3

Postby eici » Sun Oct 02, 2005 1:26 pm

Yep, after reading some threads here i uninstalled with:
./install.sh -u
i did: ps -ef | grep zibra (nothing was found)

i did: chkconfig sendmail off
reboot, then ./install.sh
the above is the output from the reinstall...
Greets,

Chris
14319KevinH
Ambassador
Ambassador
Posts: 4558
Joined: Fri Sep 12, 2014 9:52 pm

Install Error on FC3

Postby 14319KevinH » Sun Oct 02, 2005 8:34 pm

ldap is not starting up, for some reason. To find out why, try this:



su - zimbra

bash -x bin/ldap start



If no errors appear there, try the command that it runs to start ldap (all one line):



/opt/zimbra/openldap/libexec/slapd -4 -u zimbra -h ldap://:7389/ -f /opt/zimbra/conf/slapd.conf



If that gives you a "slapd.conf not found" error, then the ldap initialization script failed - try running that by hand:



/opt/zimbra/libexec/zmldapinit



and look for errors there.
eici
Posts: 4
Joined: Fri Sep 12, 2014 9:56 pm

Install Error on FC3

Postby eici » Mon Oct 03, 2005 4:58 am

Hi,
ldap is running fine... (no errors on all your suggestions)
[zimbra@mailman ~]$ zmprov gas

abc.xyz.de
[zimbra@mailman ~]$ zmprov gs abc.xyz.de

# name abc.xyz.de

cn: abc.xyz.de

objectClass: zimbraServer

zimbraAdminPort: 7071

...

..

.(snipped)
i'll tried installing again and still getting these java errors:
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)

keytool error: java.io.FileNotFoundException: /opt/zimbra/java/jre/lib/security/cacerts (Permission denied)

keytool error: java.lang.Exception: Failed to establish chain from reply


(complete install-log attached)

zimbra_install.txt

marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

Install Error on FC3

Postby marcmac » Mon Oct 03, 2005 9:01 am

The keytool errors are not serious, and can safely be ignored.
eici
Posts: 4
Joined: Fri Sep 12, 2014 9:56 pm

Install Error on FC3

Postby eici » Mon Oct 03, 2005 10:43 am

Ok, thanks
i'll ignored all errs and got it up&running now... :-)
Greets,

Chris
jharrell
Posts: 9
Joined: Fri Sep 12, 2014 9:58 pm

Install Error on FC3

Postby jharrell » Thu Oct 13, 2005 6:07 pm

I'am getting the same error, however after several attempts at re-installing etc. I get an error when I use the command:
zmprov gas
ERROR: service.Failure (system failure: getDirectContext) (cause: javax:naming.CommunicationException mail.******.com:389)


thanks.
jh
14319KevinH
Ambassador
Ambassador
Posts: 4558
Joined: Fri Sep 12, 2014 9:52 pm

Install Error on FC3

Postby 14319KevinH » Thu Oct 13, 2005 6:34 pm

[quote user="jharrell"]I'am getting the same error, however after several attempts at re-installing etc. I get an error when I use the command:
zmprov gas
ERROR: service.Failure (system failure: getDirectContext) (cause: javax:naming.CommunicationException mail.******.com:389)


thanks.
jh[/QUOTE]


When you re-install did you make sure LDAP was not running? (ie run 'ps -ef | grep slapd' before you tried the re-install)
If you did this please post your install log from /tmp/install.log.
jharrell
Posts: 9
Joined: Fri Sep 12, 2014 9:58 pm

Install Error on FC3

Postby jharrell » Fri Oct 14, 2005 12:29 pm

Last night I ran the uninstall script. (install.sh -u)

Then I searched for running processes- ps -ef | grep slapd

and killed any pids that matched...
then an the install... but when thu install finished and the services tried to run I got this error:
ERROR:
Starting servers...Calling GetServiceInfoRequest (mail.acmeco.com)
Soap call failed: 500 read timeout at /opt/zimbra/bin/zmcontrol line 230
done

ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException mail.acmeco.com:389)

The install log is as follows (real company info replaced with acmeco amd logs reflecting timezones and the zmprov command help truncated):


Preparing packages for installation...

useradd: warning: the home directory already exists.

Not copying any file from skel directory into it.

zimbra-core-3.0.M1_21.FC3-20050920155949_
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
Preparing packages for installation...

zimbra-ldap-3.0.M1_21.FC3-20050920155949_

Preparing packages for installation...

zimbra-mta-3.0.M1_21.FC3-20050920155949_

Preparing packages for installation...

zimbra-snmp-3.0.M1_21.FC3-20050920155949_

Preparing packages for installation...

zimbra-store-3.0.M1_21.FC3-20050920155949_

COMMAND: /opt/zimbra/libexec/zmmyinit

* Creating required directories

* Generating mysql config /opt/zimbra/conf/my.cnf

* Creating database in /opt/zimbra/db/data

* Starting mysql server

* Loading schema /opt/zimbra/db/db.sql

* Loading version from /opt/zimbra/db/versions-init.sql

* Setting random password for mysql root user in zimbra local config

* Setting random password for mysql zimbra user in zimbra local config

* Changing mysql root user password

* Changing mysql zimbra user password

* Changed zimbra mysql user password

COMMAND: zmlocalconfig -e zimbra_server_hostname=mail.acmeco.com

COMMAND: zmlocalconfig -e ldap_host=mail.acmeco.com

COMMAND: zmlocalconfig -e ldap_port=389

COMMAND: /opt/zimbra/libexec/zmldapinit

Started slapd: pid 21649

adding new entry "cn=zimbra"

[...]
COMMAND: zmprov cs mail.acmeco.com

ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException mail.acmeco.com:389)

COMMAND: zmprov cd mail.acmeco.com

ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException mail.acmeco.com:389)

COMMAND: zmprov mcf zimbraDefaultDomainName mail.acmeco.com

ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException mail.acmeco.com:389)

COMMAND: zmprov ca admin@mail.acmeco.com *password* zimbraIsAdminAccount TRUE

ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException mail.acmeco.com:389)

COMMAND: zmprov aaa admin@mail.acmeco.com postmaster@mail.acmeco.com

ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException mail.acmeco.com:389)

COMMAND: id=`zmprov gs mail.acmeco.com | grep zimbraId | awk '{print $2}'`; for i in `zmprov gc default | grep zimbraMailHostPool | sed 's/zimbraMailHostPool: //'`; do host="$host zimbraMailHostPool $i"; done; zmprov mc default $host zimbraMailHostPool $id

ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException mail.acmeco.com:389)

ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException mail.acmeco.com:389)

zmprov [cmd] [args ...]
CreateAccount(ca) {name@domain} {password} [attr1 value1 [attr2 value2...]]

DeleteAccount(da) {name@domain|id}

GetAccount(ga) {name@domain|id}

GetAllAccounts(gaa) [-v] [{domain}]

[...]
exit (quit)

help (?)
COMMAND: /opt/zimbra/libexec/zmmtainit mail.acmeco.com

COMMAND: zmlocalconfig -e av_notify_user=notify@mail.acmeco.com

COMMAND: zmlocalconfig -e av_notify_domain=mail.acmeco.com

COMMAND: zmlocalconfig -e snmp_notify=0

COMMAND: zmlocalconfig -e smtp_notify=0

COMMAND: zmlocalconfig -e snmp_trap_host=mail.acmeco.com

COMMAND: zmlocalconfig -e smtp_source=none

COMMAND: zmlocalconfig -e smtp_destination=none

COMMAND: zmsnmpinit

creating /opt/zimbra/conf/swatchrc

COMMAND: zmprov ms mail.acmeco.com zimbraServiceInstalled ldap zimbraServiceInstalled mailbox zimbraServiceInstalled mta zimbraServiceInstalled antivirus zimbraServiceInstalled antispam zimbraServiceInstalled snmp

ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException mail.acmeco.com:389)

COMMAND: zmprov ms mail.acmeco.com zimbraServiceEnabled ldap zimbraServiceEnabled mailbox zimbraServiceEnabled mta zimbraServiceEnabled antivirus zimbraServiceEnabled antispam zimbraServiceEnabled snmp

ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException mail.acmeco.com:389)

COMMAND: zmlocalconfig -e zimbra_services="ldap mailbox mta antivirus antispam snmp"

COMMAND: zmcreatecert

** Creating CA private key
Generating a 1024 bit RSA private key

......++++++

.....................++++++

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/CN=mail.acmeco.com

Getting Private key

** Importing CA
Certificate was added to keystore

keytool error: java.io.FileNotFoundException: /opt/zimbra/java/jre/lib/security/cacerts (Permission denied)
** Creating keystore

** Creating server cert request

** Signing cert request
Signature ok

subject=/C=US/ST=NA/L=NA/O=Zimbra/OU=Zimbra/CN=mail.acmeco.com

Getting CA Private Key

Signature ok

subject=/C=US/ST=NA/L=NA/O=Zimbra/OU=Zimbra/CN=mail.acmeco.com

Getting Private key

COMMAND: zmcertinstall mailbox

** Importing server cert
keytool error: java.lang.Exception: Failed to establish chain from reply

COMMAND: zmtlsctl http

ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException mail.acmeco.com:389)

COMMAND: zmcertinstall mta /opt/zimbra/ssl/ssl/server/smtpd.crt /opt/zimbra/ssl/ssl/ca/ca.key

** Importing server cert
COMMAND: zmlocalconfig -e ssl_allow_untrusted_certs=true

COMMAND: zmcontrol startup

Calling startup (mail.acmeco.com)
perl /opt/zimbra/bin/zmmon &
Soap call failed: 500 read timeout at /opt/zimbra/bin/zmcontrol line 230
COMMAND: zmlocalconfig -s > .localconfig.save.19931

COMMAND: zmprov gs mail.acmeco.com > .zmprov.mail.acmeco.com.save.19931

ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException mail.acmeco.com:389)

COMMAND: zmprov gacf mail.acmeco.com > .zmprov.gacf.save.19931

ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException mail.acmeco.com:389)

Thanks.

jh

Return to “Installation and Upgrade”

Who is online

Users browsing this forum: No registered users and 3 guests