Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Zimbra wont start, only LDAP...

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

    Default

    Quote Originally Posted by jholder View Post
    Okay-
    Next, let's start mysql.server

    mysql.server start

    then you should be able to run zmmyinit
    If I start zmmyinit MySQL start, but the script doesn't know about it...
    Code:
     ps -ef | grep mysql
    zimbra   23743 12719  0 00:34 pts/3    00:00:00 grep mysql
    
     mysql.server start
    [zimbra@slinkilin ~]$ Starting mysqld daemon with databases from /opt/zimbra/db/data
    
    [zimbra@slinkilin ~]$
    [zimbra@slinkilin ~]$
    [zimbra@slinkilin ~]$ ps -ef | grep mysql
    zimbra   23815     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   23854 23815  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
    zimbra   23911 12719  0 00:36 pts/3    00:00:00 grep mysql
    
    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...retrying
    * Failed to connect to mysql...retrying
    .
    .
    .
    * Failed to connect to mysql...giving up!
    ps -ef | grep mysql
    zimbra   23815     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   23854 23815  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
    zimbra   25004 12719  0 00:39 pts/3    00:00:00 grep mysql
    
    
     mysql.server stop
    Killing mysqld with pid 23854
    
    STOPPING server from pid file /opt/zimbra/db/mysql.pid
    070728 00:39:33  mysqld ended
    
     done.
    ps -ef | grep mysql
    zimbra   25085 12719  0 00:39 pts/3    00:00:00 grep mysql
    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!
    
    ps -ef | grep mysql
    zimbra   25293     1  0 00:39 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   25361 25293  0 00:39 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
    zimbra   25703 12719  0 00:40 pts/3    00:00:00 grep mysql
    This is my sudoers file:
    Code:
    cat /etc/sudoers | grep -v "#" | sed '/^$/d'
    Cmnd_Alias NETWORKING = /sbin/route, /sbin/ifconfig, /bin/ping, /sbin/dhclient, /usr/bin/net, /sbin/iptables, /usr/bin/rfcomm, /usr/bin/wvdial, /sbin/iwconfig, /sbin/mii-tool
    Cmnd_Alias SOFTWARE = /bin/rpm, /usr/bin/up2date, /usr/bin/yum
    Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig
    Cmnd_Alias LOCATE = /usr/sbin/updatedb
    Cmnd_Alias STORAGE = /sbin/fdisk, /sbin/sfdisk, /sbin/parted, /sbin/partprobe, /bin/mount, /bin/umount
    Cmnd_Alias DELEGATING = /usr/sbin/visudo, /bin/chown, /bin/chmod, /bin/chgrp
    Cmnd_Alias PROCESSES = /bin/nice, /bin/kill, /usr/bin/kill, /usr/bin/killall
    Cmnd_Alias DRIVERS = /sbin/modprobe
    Defaults    env_reset
    Defaults    env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR \
                            LS_COLORS MAIL PS1 PS2 QTDIR USERNAME \
                            LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION \
                            LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC \
                            LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS \
                            _XKB_CHARSET XAUTHORITY"
    root    ALL=(ALL)      ALL
    %wheel  ALL=(ALL) ALL
    %zimbra   ALL=NOPASSWD:/opt/zimbra/openldap/libexec/slapd
    %zimbra   ALL=NOPASSWD:/opt/zimbra/postfix-2.2.9/sbin/postfix, /opt/zimbra/postfix-2.2.9/sbin/postalias, /opt/zimbra/postfix-2.2.9/sbin/qshape.pl, /opt/zimbra/postfix-2.2.9/sbin/postconf,/opt/zimbra/postfix-2.2.9/sbin/postsuper
    %zimbra   ALL=NOPASSWD:/opt/zimbra/libexec/zmqstat
    %zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmtomcatmgr
    %zimbra ALL=NOPASSWD:/opt/zimbra/perdition/sbin/perdition
    Gili

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

    Default

    OK, Some updates....

    I run the zmmyinit script in bash whit debug, and sew that there is a parameter "password=" that in the end of the script need to be changed, but I have MYSQL password, so I changed the script and added my password to the script (I know, bad idea, bad security).... and it worked !!!
    (OK, I used this article to override mysql password )
    now MySQL is running and the passwords in the output of this command "zmlocalconfig -s | grep mysql" and my passwords are the same...
    testing:
    /opt/zimbra/bin/mysqladmin -u root ping -p
    Enter password:
    mysqld is alive

    after running zmmyinit finelly the passwords changed and MySQL start running. I can test the PING whit my passwords (from zmlocalconfig -s | grep mysql).

    BUT, when I start zimbra by the zmcontrol, I get LDAP started, and that's it...
    I can see it running from the command:
    Code:
    ps -ef | grep zimbra
    zimbra   24752     1  0 22:59 ?        00:00:00 /opt/zimbra/openldap/libexec/slapd -l LOCAL0 -4 -u zimbra -h ldap://slinkilin.XXX.YYY:389 -f /opt/zimbra/conf/slapd.conf
    I can start mysql and connect to it. But if I'll try to run any script like /opt/zimbra/bin/zmmailboxctl I'll get a complain about LDAP that is NOT RUNNING....
    WHAT?! Why?!
    What I'm missing ???
    Code:
    Starting mysqld daemon with databases from /opt/zimbra/db/data
    
    ERROR: problem reading config from ldap. Make sure ldap is running.
    [zimbra@slinkilin ~]$ zmcontrol status
    Cannot determine services - exiting
    Gili
    Last edited by redbaron; 07-30-2007 at 02:29 PM.

  3. #13
    vclark is offline Junior Member
    Join Date
    Jul 2007
    Posts
    8
    Rep Power
    7

    Default Misery Loves Company

    Redbaron

    Your trials and tribulations sound all too familiar. I have been struggling with what sounds like the same thing as you. Please keep the forum updated if you make any progress.

    I have the same problem where ldap starts but no other services. I am in a different environment, specifically:
    Debian 3.1 running in a vserver
    I applied all the changes recommended for vservers on the wiki.

    Although one thing I wasn't sure about:
    "change
    $inet_socket_bind = '127.0.0.1'; # limit socket bind to loopback interface
    to
    $inet_socket_bind = '10.11.12.5'; # no loopback in vserver, use rfc1918 internal ip bound to your vserver"

    Any idea how to determine the rfc 1918 internal IP?

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

    Default

    Hi,

    There are no news, can someone help my whit this thing?
    I'm going crazy whit this...

    Only LDAP start (from init script), when I start Mysql from the command "mysql.server start" it starts, I can test it whit mysqladmin -u root ping -p
    but zmmyinit fails...

    Any ideas?
    Gili

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

    Default

    Try zmldapinit

    Redbaron, you may wish to start another thread. I don't this it's related to this issue

Page 2 of 2 FirstFirst 12

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
  •