Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

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
  #1 (permalink)  
Old 05-27-2008, 02:50 AM
Loyal Member
 
Posts: 93
Default [SOLVED] Message: system failure: getting database logger connection on admin login

Hello

ubuntu 606
zimbra NE 5.0.5

Ive seen a couple of forum posts about similar errors, but they all seem to say that the logger service is dead. This is not the case here, as zmcontrol says that all processes are running fine:

zmcontrol status
Host mail.changeddomain.com
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Running
mta Running
snmp Running
spell Running
stats Running

ps shows 10 "/usr/bin/perl /opt/zimbra/libexec/zmlogger" processes running as well.

Yet I still get the error when logging in to the admin gui:
Server error encountered Message: system failure: getting database logger connection Error code: service.FAILURE Method: GetServiceStatusRequest Details:soap:Receiver

I have tried stopping and starting the logger with zmloggerctl stop/start, but this error continues on each login, Ive tried a myisamchk under /opt/zimbra/logger/db/data/zimbra_logger, also get same results.

Anyone have any ideas, am I missing something?
Reply With Quote
  #2 (permalink)  
Old 05-27-2008, 02:55 AM
Moderator
 
Posts: 7,928
Default

Are you able to connect to the database via
Code:
su - zimbra
logmysql
also take a look in /opt/zimbra/logger/db/data for a file named <zmhostname>.err. See if there are any problems being identified in it. Also, have a check through your Log Files - Zimbra :: Wiki for any error messages.
__________________
Reply With Quote
  #3 (permalink)  
Old 05-27-2008, 03:20 AM
Loyal Member
 
Posts: 93
Default

thanks uxbod - some useful info there!
I tried logmysql and it errored out with "ERROR 1040 (08004): Too many connections"

I have upped the max_connections in /opt/zimbra/conf/my.cnf, then restarted the logger with zmloggerctl - I could connect suggesfully with logmysql after this, but still get the error. I am not sure if the new config is being read, is there a better way to get zimbra's mysql to re-read its config?

Cheers,
Reply With Quote
  #4 (permalink)  
Old 05-27-2008, 03:37 AM
Moderator
 
Posts: 7,928
Default

Code:
su - zimbra
zmcontrol stop ; zmcontrol start
that will read everything then.
__________________
Reply With Quote
  #5 (permalink)  
Old 05-27-2008, 03:39 AM
Loyal Member
 
Posts: 93
Default

It was actually /opt/zimbra/conf/my.logger.cnf that I wanted. I upped the max connections to 20 and restarted the logger, and it all seems happy. Should I be worried that it hit max connections?
Reply With Quote
  #6 (permalink)  
Old 05-27-2008, 03:55 AM
Moderator
 
Posts: 7,928
Default

You could also set it via
Code:
su - zimbra
zmlocalconfig -e zimbra_mysql_connector_maxActive=20
with respect to anything to worry about, are you seeing any other strange error messages ? How many users are connected to the system ? Or multiple people using the Admin GUI ?
__________________
Reply With Quote
  #7 (permalink)  
Old 05-27-2008, 04:09 AM
Loyal Member
 
Posts: 93
Default

Ah, should have known zmlocalconfig could do it, thats useful - I guess it will stop my edit being broken on upgrades.
There are about 100 users on this server, and possibly one more admin - cant seem to find anything hugely worrying in the logs, but i have not done an exhaustive search of them all.
Reply With Quote
  #8 (permalink)  
Old 05-28-2008, 03:42 AM
Loyal Member
 
Posts: 93
Default

Quote:
Originally Posted by uxbod View Post
You could also set it via
Code:
su - zimbra
zmlocalconfig -e zimbra_mysql_connector_maxActive=20
with respect to anything to worry about, are you seeing any other strange error messages ? How many users are connected to the system ? Or multiple people using the Admin GUI ?
This wont work for this particular problem, because the logger gets its config from ${zimbra_home}/conf/my.logger.cnf, not the my.cnf used by other mysql stuff. (Set via zmlocalconfig, then logmysql and show variables, max connections still at default 10) There doesnt seem to be a localconfig setting for the logger mysql max connections:

zmlocalconfig | grep mysql
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
[snip]

So its a config file edit and remember on each upgrade for now..
Reply With Quote
  #9 (permalink)  
Old 10-09-2008, 08:55 AM
New Member
 
Posts: 3
Default Thanks!

Thanks for posting this. I ran into this same problem with my Zimbra installation this morning and figuring out the problem on my own would have taken quite some time!

Like the OP, I am a little concerned about what the root cause of this might be. We've only got about 80 users on the system, and very few use the webmail. I am the only admin.
Reply With Quote
  #10 (permalink)  
Old 12-06-2008, 09:23 AM
Outstanding Member
 
Posts: 708
Default

Did any of you file a bug or support case?

Do you have a large number of volumes or CPUs (as I do) that might explain this?

Ran into this again at

zmlogger dying under 5.0.11
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.