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

Thread: Zimbra wont start, only LDAP...

  1. #1
    redbaron is offline Intermediate Member
    Join Date
    Jul 2007
    Posts
    16
    Rep Power
    8

    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

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

    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


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    redbaron is offline Intermediate Member
    Join Date
    Jul 2007
    Posts
    16
    Rep Power
    8

    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

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

    Default

    Are you running in a virtual machine?

  5. #5
    redbaron is offline Intermediate Member
    Join Date
    Jul 2007
    Posts
    16
    Rep Power
    8

    Default

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

    gili

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

    Default

    What does your hosts file look like?
    cat /etc/hosts ?

  7. #7
    redbaron is offline Intermediate Member
    Join Date
    Jul 2007
    Posts
    16
    Rep Power
    8

    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

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

    Default

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

    try
    ldap start

    what do you get?

  9. #9
    redbaron is offline Intermediate Member
    Join Date
    Jul 2007
    Posts
    16
    Rep Power
    8

    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

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

    Default

    Okay-
    Next, let's start mysql.server

    mysql.server start

    then you should be able to run zmmyinit

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. dspam logrotate errors
    By michaeln in forum Users
    Replies: 7
    Last Post: 02-19-2007, 12:45 PM
  2. huge log size
    By rmvg in forum Administrators
    Replies: 5
    Last Post: 01-02-2007, 10:39 AM
  3. Getting problems in FC4 while instalation
    By kitty_bhoo in forum Installation
    Replies: 13
    Last Post: 09-12-2006, 10:34 PM
  4. Logger
    By jholder in forum Installation
    Replies: 24
    Last Post: 03-31-2006, 11:50 AM
  5. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 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
  •