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 Display Modes
  #1 (permalink)  
Old 07-26-2007, 05:24 PM
Intermediate Member
 
Posts: 16
Default Zimbra wont start, only LDAP...

Hi all,

I have CentOS5, on a 64bit (AMD) machine...

I installed Zimbra (4.5.6) using RPM's.
I configure it using this manual .
When I start Zimbra using the init script (/etc/init.d/zimbra start) only LDAP startup.
if I su to zimbra user and start mysql I get this error:
Code:
zmmyinit
* Creating required directories
* Generating mysql config /opt/zimbra/conf/my.cnf
* Creating database in /opt/zimbra/db/data
* Starting mysql server
* Failed to connect to mysql...retrying
* Failed to connect to mysql...retrying
* Failed to connect to mysql...retrying
 Failed to connect to mysql...giving up!
but I can see it running:
Code:
 ps -ef | grep mysql
zimbra     365     1  0 00:34 pts/3    00:00:00 /bin/sh /opt/zimbra/mysql/bin/mysqld_safe --defaults-file=/opt/zimbra/conf/my.cnf --ledir=/opt/zimbra/mysql/libexec
zimbra     435   365  0 00:34 pts/3    00:00:00 /opt/zimbra/mysql/libexec/mysqld --defaults-file=/opt/zimbra/conf/my.cnf --basedir=/opt/zimbra/mysql --datadir=/opt/zimbra/db/data --pid-file=/opt/zimbra/db/mysql.pid --skip-external-locking --port=7306 --socket=/opt/zimbra/db/mysql.sock
now, I can see ldap and mysql...
if I start tomcat I can see the java listening on port 8080 but I can't connect to it...

What I'm doing wrong?
Gili
Reply With Quote
  #2 (permalink)  
Old 07-26-2007, 11:37 PM
Zimbra Consultant & Moderator
 
Posts: 11,518
Default

That article is about a development environment for building from source, is that what you've done? If you have it's not the correct steps for installing Zimbra, you need to check for additional packages. If you've downmloaded from sourceforge and installed the vesion from there you will also find Zimbra doesn't work . Please search the forums for details of installing ZImbra on CentOS5 and read the Quick Start Guide for details of system requirements.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 07-27-2007, 03:32 PM
Intermediate Member
 
Posts: 16
Default

Quote:
Originally Posted by phoenix View Post
That article is about a development environment for building from source, is that what you've done? If you have it's not the correct steps for installing Zimbra, you need to check for additional packages. If you've downmloaded from sourceforge and installed the vesion from there you will also find Zimbra doesn't work . Please search the forums for details of installing ZImbra on CentOS5 and read the Quick Start Guide for details of system requirements.
Hi

Thanks for the replay. I posted the wrong link to the manual I use, this is the manual I used.
Also it didn't work "out of the box".
I downloaded the 64bit version, untar it and try to install it using the install script and it failed, then I installed each RPM manually.
I downloaded the openssl097a-0.9.7a-9.x86_64.rpm and unwrap it using rpm2cpio. Then I copy the libcrypto.so.0.9.7a and libssl.so.0.9.7a to /opt/zimbra/lib/openssl and created a symbolic links to libcrypto.so.4 and libssl.so.4, then I add the path to /etc/ld.so.conf.d/zimbra.ld.conf...
About the link, my mistake, I used this manual and this one...

sendmail isn't working, I disable it from the rc directory.

Code:
zmcontrol  status
Cannot determine services - exiting
zmcontrol  start
Host slinkilin.pnc.co.il
        Starting ldap...Done.
zmcontrol  status
Cannot determine services - exiting

ps -ef | grep zimbra
root     12718 11009  0 Jul26 pts/3    00:00:00 su - zimbra
zimbra   12719 12718  0 Jul26 pts/3    00:00:00 -bash
zimbra   20155     1  0 23:17 ?        00:00:00 /opt/zimbra/openldap/libexec/slapd -l LOCAL0 -4 -u zimbra -h ldap://slinkilin.pnc.co.il:389 -f /opt/zimbra/conf/slapd.conf
I can't start zimbra and I secure this is something dumb nad I can't figure what...

Gili
Reply With Quote
  #4 (permalink)  
Old 07-27-2007, 03:44 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

Are you running in a virtual machine?
Reply With Quote
  #5 (permalink)  
Old 07-27-2007, 03:50 PM
Intermediate Member
 
Posts: 16
Default

Quote:
Originally Posted by jholder View Post
Are you running in a virtual machine?
Nop...
I'm running CentOS 64bit (AMD CPU)...

gili
Reply With Quote
  #6 (permalink)  
Old 07-27-2007, 03:51 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

What does your hosts file look like?
cat /etc/hosts ?
Reply With Quote
  #7 (permalink)  
Old 07-27-2007, 03:59 PM
Intermediate Member
 
Posts: 16
Default

Quote:
Originally Posted by jholder View Post
What does your hosts file look like?
cat /etc/hosts ?
cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
199.Z.Y.X zimbralin.yyy.xx.xx zimbralin
199.Z.Y.X zimbra.yyy.xx.xx zimbra
MX record is set to zimbralin.yyy.xx.xx

(the name and IP are modified )
gili
Reply With Quote
  #8 (permalink)  
Old 07-27-2007, 04:10 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

If you get a cannot determine services, then ldap isn't starting. It's little deceptive

try
ldap start

what do you get?
Reply With Quote
  #9 (permalink)  
Old 07-27-2007, 04:19 PM
Intermediate Member
 
Posts: 16
Default

Quote:
Originally Posted by jholder View Post
If you get a cannot determine services, then ldap isn't starting. It's little deceptive

try
ldap start

what do you get?
OK, this is the scary/wired part...
ldap works, or at least appear to work...

Code:
ldap status
slapd running pid: 20155

 ps -ef | grep ldap
zimbra   20155     1  0 Jul27 ?        00:00:00 /opt/zimbra/openldap/libexec/slapd -l LOCAL0 -4 -u zimbra -h ldap://slinkilin.yyy.xx.xx:389 -f /opt/zimbra/conf/slapd.conf
ldap stop
Killing slapd with pid 20155
/opt/zimbra/bin/ldap: line 150: kill: (20155) - No such process
 done.
ps -ef | grep ldap
zimbra   22346 12719  0 00:18 pts/3    00:00:00 grep ldap
-----
zmcontrol  start
Host slinkilin.yyy.xx.xx
        Starting ldap...Done.
[zimbra@slinkilin ~]$ ps -ef | grep ldap
zimbra   22495     1  0 00:18 ?        00:00:00 /opt/zimbra/openldap/libexec/slapd -l LOCAL0 -4 -u zimbra -h ldap://slinkilin.yyy.xx.xx:389 -f /opt/zimbra/conf/slapd.conf
zimbra   22573 12719  0 00:19 pts/3    00:00:00 grep ldap

sestatus
SELinux status:                 disabled
iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
If I use netcat on port 389 I get a connection....
Gili
Reply With Quote
  #10 (permalink)  
Old 07-27-2007, 04:26 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

Okay-
Next, let's start mysql.server

mysql.server start

then you should be able to run zmmyinit
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0