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 (1) Thread Tools Display Modes
  #41 (permalink)  
Old 01-27-2006, 11:25 AM
Junior Member
 
Posts: 8
Default

logger_mysql_bind_address = localhost
logger_mysql_data_directory = ${zimbra_home}/logger/db/data
logger_mysql_directory = ${zimbra_home}/logger/mysql
logger_mysql_mycnf = ${zimbra_home}/conf/my.logger.cnf
logger_mysql_pidfile = ${zimbra_home}/logger/db/mysql.pid
logger_mysql_port = 7307
logger_mysql_socket = ${zimbra_home}/logger/db/mysql.sock
mysql_bind_address = localhost
mysql_data_directory = ${zimbra_db_directory}/data
mysql_directory = ${zimbra_home}/mysql
mysql_innodb_log_buffer_size = 8388608
mysql_innodb_log_file_size = 104857600
mysql_logger_root_password = *
mysql_memory_percent = 40
mysql_mycnf = ${zimbra_home}/conf/my.cnf
mysql_pidfile = ${zimbra_db_directory}/mysql.pid
mysql_port = 7306
mysql_read_buffer_size = 1048576
mysql_root_password = *
mysql_socket = ${zimbra_db_directory}/mysql.sock
mysql_sort_buffer_size = 1048576
mysql_table_cache = 500
zimbra_logger_mysql_password = *
zimbra_mysql_connector_maxActive = 10
zimbra_mysql_password = *
zimbra_mysql_user = zimbra

To access the database, I did the following
su - zimbra
mysql
show databases

I could see the mysql, test, and zimbra databases. (and also select things out of the tables contained within)
Reply With Quote
  #42 (permalink)  
Old 01-27-2006, 12:02 PM
Zimbra Employee
 
Posts: 2,073
Default mysql

That's strange, that you can connect to sql from the command line, but tomcat can't find it.

What do you get from:
su - zimbra
mysqladmin status

Also
host localhost

What's in your /etc/hosts file?

Are you running a firewall?

Does
telnet localhost 7306
connect?
Reply With Quote
  #43 (permalink)  
Old 01-27-2006, 12:30 PM
Junior Member
 
Posts: 8
Default

Quote:
Originally Posted by marcmac
That's strange, that you can connect to sql from the command line, but tomcat can't find it.

What do you get from:
su - zimbra
mysqladmin status

>Uptime: 8536 Threads: 1 Questions: 250 Slow queries: 5 Opens: 33 Flush tables: 1 Open tables: 22 Queries per second avg: 0.029


Also
host localhost

>localhost.mtghouse.com has address 127.0.0.1

What's in your /etc/hosts file?

>127.0.0.1 localhost
>
># special IPv6 addresses
>::1 localhost ipv6-localhost ipv6-loopback
>
>fe00::0 ipv6-localnet
>
>ff00::0 ipv6-mcastprefix
>ff02::1 ipv6-allnodes
>ff02::2 ipv6-allrouters
>ff02::3 ipv6-allhosts
>192.168.1.150 zimbra.mtghouse.com zimbra


Are you running a firewall?

>no

Does
telnet localhost 7306
connect?
>telnet: connect to address 127.0.0.1: Connection refused
>Trying ::1...
>telnet: connect to address ::1: Connection refused
Reply With Quote
  #44 (permalink)  
Old 01-27-2006, 12:30 PM
Junior Member
 
Posts: 8
Default

sorry, my responses are inline next to the ">" character
Reply With Quote
  #45 (permalink)  
Old 01-27-2006, 12:38 PM
Zimbra Employee
 
Posts: 2,073
Default

Quote:
Originally Posted by echristi
>telnet: connect to address 127.0.0.1: Connection refused
>Trying ::1...
>telnet: connect to address ::1: Connection refused
That's the problem right there. THe mysql command is going through the local socket, but tomcat is trying to hit mysqld on the network port.

That's from
telnet localhost 7306
right? (Not telnet 127.0.0.1 7306)

Does
telnet 127.0.0.1 7306
connect?

What do you get from (as root):
iptables -t nat -L
iptables -L
Reply With Quote
  #46 (permalink)  
Old 01-27-2006, 12:49 PM
Junior Member
 
Posts: 8
Default

zimbra:/usr/bin # telnet localhost 7306
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
Trying ::1...
telnet: connect to address ::1: Connection refused
zimbra:/usr/bin # telnet 127.0.0.1 7306
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
zimbra:/usr/bin # iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
zimbra:/usr/bin # 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
Reply With Quote
  #47 (permalink)  
Old 01-27-2006, 01:05 PM
Zimbra Employee
 
Posts: 2,073
Default mysql

Just to verify - you said mysql is running, right?

Can you post the contents of /opt/zimbra/conf/my.cnf?
Reply With Quote
  #48 (permalink)  
Old 01-27-2006, 01:16 PM
Junior Member
 
Posts: 8
Default

I got it working.

It was due to making the change for
#skip-networking

When I removed this and re-initialized the db and ran zmmyinit, it worked! (my logger isn't starting still though)
Reply With Quote
  #49 (permalink)  
Old 02-07-2006, 09:04 AM
New Member
 
Posts: 3
Default

Just to follow up on this thread with a potential solution. It appears that mysql's resolveip is fragile (to the point of returning an answer 1 time out of 5) and it is not easy to get the --force option in the right place for mysql_install_db. The correct fix for the Zimbra project (IMHO) is to use Unix Domain Sockets exclusively, but that needs to be corrected in Tomcat as well (my earlier suggestion to remove the networking support from my.cnf does not work).

I wound up as one of the earlier posters suggested and commented out the call to zmmyinit and hardcoded the appropriate IP address in my.cnf, then changed mysql/scripts/mysql_install_db to assume --force was passed in. It's incredibly hacky, but I don't think there is another way around it. I have no idea why this only affects SLES 9 (possibly having to do with the dual CPU's).

John
Reply With Quote
  #50 (permalink)  
Old 08-25-2008, 04:23 AM
Active Member
 
Posts: 34
Default

I ran "telnet 127.0.0.1 7306" and this is what I got:
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Too many connectionsConnection closed by foreign host.
__________________

ice, ice baby
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