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
  #11 (permalink)  
Old 07-27-2007, 04:42 PM
Intermediate Member
 
Posts: 16
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
Reply With Quote
  #12 (permalink)  
Old 07-30-2007, 03:10 PM
Intermediate Member
 
Posts: 16
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 03:29 PM..
Reply With Quote
  #13 (permalink)  
Old 07-31-2007, 03:18 PM
Junior Member
 
Posts: 8
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?
Reply With Quote
  #14 (permalink)  
Old 08-04-2007, 04:08 PM
Intermediate Member
 
Posts: 16
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
Reply With Quote
  #15 (permalink)  
Old 08-11-2007, 12:17 AM
Former Zimbran
 
Posts: 5,606
Default

Try zmldapinit

Redbaron, you may wish to start another thread. I don't this it's related to this issue
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.