Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
  #1 (permalink)  
Old 05-08-2008, 08:38 AM
yusufu's Avatar
yusufu yusufu is offline
Member
 
Join Date: Apr 2008
ZCS Version: Release 4.5.10_GA_1575.RHEL5_20071117121632 CentOS5 FOSS edition
Posts: 25
yusufu is on a distinguished road
Default Zimbra Message Trace not working

I tried to trace a message on Zimbra and this is the error I get.

[zimbra@mx root]$ zmmsgtrace -s test.user
DB: Can't connect to dbi:mysql:database=zimbra_logger;mysql_read_defaul t_file=/opt/zimbra/conf/my.logger.cnf;mysql_socket=/opt/zimbra/logger/db/mysql.sock: Can't connect to local MySQL server through socket '/opt/zimbra/logger/db/mysql.sock' (2)


What do do to rectify this, as some of my users call for message tracing regularly and it's making me and my team look really bad that we can't do anything for them.
FYI: I use Zimbra message trace on my test server running Zimbra 5
__________________

ice, ice baby
Reply With Quote
  #2 (permalink)  
Old 05-08-2008, 08:42 AM
uxbod's Avatar
uxbod uxbod is offline
Moderator
 
Join Date: Nov 2006
Location: Northampton, UK
ZCS Version: Release 5.0.7_GA_2450.RHEL5_20080630192737 CentOS5 NETWORK edition (Unsupported OS)
Posts: 1,335
uxbod is on a distinguished road
Send a message via MSN to uxbod
Default

can you connect to the mysql database as the zimbra user ? is mysql actually running ?
__________________
Server | CentOS 5.1 | Dual Opteron 250 | Tyan K8W Mobo | 6GB RAM | 3WARE 9550-SX4 | 4 x Samsung 200GB SATA II |
Zimbra | Release Release 5.0.7_GA_2450.RHEL5_20080630192737 NETWORK edition running on Xen 3.2 CentOS 5.2 i386 VM |
Network | Cisco 877 Router - Cisco ASA 5505 FW - Cisco 1131AP |
Reply With Quote
  #3 (permalink)  
Old 05-08-2008, 08:44 AM
yusufu's Avatar
yusufu yusufu is offline
Member
 
Join Date: Apr 2008
ZCS Version: Release 4.5.10_GA_1575.RHEL5_20071117121632 CentOS5 FOSS edition
Posts: 25
yusufu is on a distinguished road
Default

Yes, I believe it is.


zmmysqlstatus status
MySQL uptime: 440 minutes

Connections and Threads:
-----------------------
Connections = 1145
Max_used_connections = 50
Threads_cached = 0
Threads_connected = 50
Threads_created = 50
Threads_running = 1

Operations by type:
------------------
Com_select = 1
Com_insert = 0
Com_insert_select = 0
Com_update = 0
Com_delete = 0
Com_delete_multi = 0

Temp table activity:
-------------------
Created_tmp_disk_tables = 0
Created_tmp_files = 5

Row-level statistics:
--------------------
Handler_read_key = 0
Handler_read_first = 0
Handler_read_rnd = 0
Handler_read_rnd_next = 0
Handler_write = 132
Handler_update = 0
Handler_delete = 0
Handler_commit = 0
Handler_rollback = 0

Key Buffer:
----------
Key_read_requests = 3910491
Key_reads = 2329
Key_write_requests = 6174
Key_writes = 5528

Handles:
-------
Open_files = 32
Open_tables = 500

Table scans:
-----------
Select_full_join = 0
Select_full_range_join = 0
Select_range_check = 0
Select_scan = 1

Sorting:
-------
Sort_merge_passes = 0
Sort_range = 0
Sort_rows = 0
Sort_scan = 0

Locking:
-------
Table_locks_immediate = 2585758
Table_locks_waited = 2

InnoDB Status:
BUFFER POOL AND MEMORY
----------------------
Total memory allocated 1757377264; in additional pool allocated 1048576
Buffer pool size 97344
Free buffers 0
Database pages 96490
Modified db pages 40342
Pending reads 0
Pending writes: LRU 0, flush list 0, single page 0
Pages read 311083, created 6634, written 354346
1.36 reads/s, 0.02 creates/s, 10.62 writes/s
Buffer pool hit rate 1000 / 1000
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
1 read views open inside InnoDB
Main thread process no. 11048, id 1337682832, state: sleeping
Number of rows inserted 242536, updated 670334, deleted 180678, read 170679306
0.31 inserts/s, 7.69 updates/s, 4.64 deletes/s, 6140.64 reads/s
__________________

ice, ice baby
Reply With Quote
  #4 (permalink)  
Old 05-08-2008, 08:48 AM
uxbod's Avatar
uxbod uxbod is offline
Moderator
 
Join Date: Nov 2006
Location: Northampton, UK
ZCS Version: Release 5.0.7_GA_2450.RHEL5_20080630192737 CentOS5 NETWORK edition (Unsupported OS)
Posts: 1,335
uxbod is on a distinguished road
Send a message via MSN to uxbod
Default

Code:
su - zimbra
logmysql
does that take you into MySQL ?
__________________
Server | CentOS 5.1 | Dual Opteron 250 | Tyan K8W Mobo | 6GB RAM | 3WARE 9550-SX4 | 4 x Samsung 200GB SATA II |
Zimbra | Release Release 5.0.7_GA_2450.RHEL5_20080630192737 NETWORK edition running on Xen 3.2 CentOS 5.2 i386 VM |
Network | Cisco 877 Router - Cisco ASA 5505 FW - Cisco 1131AP |
Reply With Quote
  #5 (permalink)  
Old 05-08-2008, 08:52 AM
yusufu's Avatar
yusufu yusufu is offline
Member
 
Join Date: Apr 2008
ZCS Version: Release 4.5.10_GA_1575.RHEL5_20071117121632 CentOS5 FOSS edition
Posts: 25
yusufu is on a distinguished road
Default

yes it does.

how do i get the database itself.

could u give me all the troubleshooting commands

thanks
__________________

ice, ice baby
Reply With Quote
  #6 (permalink)  
Old 05-08-2008, 09:14 AM
uxbod's Avatar
uxbod uxbod is offline
Moderator
 
Join Date: Nov 2006
Location: Northampton, UK
ZCS Version: Release 5.0.7_GA_2450.RHEL5_20080630192737 CentOS5 NETWORK edition (Unsupported OS)
Posts: 1,335
uxbod is on a distinguished road
Send a message via MSN to uxbod
Default

Code:
ls -l /opt/zimbra/logger/db
ps -fp `cat /opt/zimbra/logger/db/mysql.pid`
__________________
Server | CentOS 5.1 | Dual Opteron 250 | Tyan K8W Mobo | 6GB RAM | 3WARE 9550-SX4 | 4 x Samsung 200GB SATA II |
Zimbra | Release Release 5.0.7_GA_2450.RHEL5_20080630192737 NETWORK edition running on Xen 3.2 CentOS 5.2 i386 VM |
Network | Cisco 877 Router - Cisco ASA 5505 FW - Cisco 1131AP |
Reply With Quote
  #7 (permalink)  
Old 05-08-2008, 09:14 AM
phoenix phoenix is offline
Zimbra Employee
 
Join Date: Sep 2005
Location: Vannes, France
Posts: 7,386
phoenix is on a distinguished road
Default

Post the contents of your /etc/hosts file and are there any errors in the logfile: /opt/zimbra/logger/db/data/your_hostname.err.
__________________
Regards


Bill
Reply With Quote
  #8 (permalink)  
Old 05-08-2008, 09:18 AM
yusufu's Avatar
yusufu yusufu is offline
Member
 
Join Date: Apr 2008
ZCS Version: Release 4.5.10_GA_1575.RHEL5_20071117121632 CentOS5 FOSS edition
Posts: 25
yusufu is on a distinguished road
Default

080508 16:53:27 [ERROR] /opt/zimbra/logger/mysql/libexec/mysqld: Table './zimbra_logger/mta' is marked as crashed and last (automatic?) repair failed
080508 16:53:27 [ERROR] /opt/zimbra/logger/mysql/libexec/mysqld: Table './zimbra_logger/mta' is marked as crashed and last (automatic?) repair failed
080508 16:53:27 [ERROR] /opt/zimbra/logger/mysql/libexec/mysqld: Table './zimbra_logger/mta' is marked as crashed and last (automatic?) repair failed
080508 16:53:27 [ERROR] /opt/zimbra/logger/mysql/libexec/mysqld: Table './zimbra_logger/mta' is marked as crashed and last (automatic?) repair failed
080508 16:53:27 [ERROR] /opt/zimbra/logger/mysql/libexec/mysqld: Table './zimbra_logger/mta' is marked as crashed and last (automatic?) repair failed
080508 16:53:27 [ERROR] /opt/zimbra/logger/mysql/libexec/mysqld: Table './zimbra_logger/mta' is marked as crashed and last (automatic?) repair failed
080508 16:53:27 [ERROR] /opt/zimbra/logger/mysql/libexec/mysqld: Table './zimbra_logger/mta' is marked as crashed and last (automatic?) repair failed
080508 16:53:27 [ERROR] /opt/zimbra/logger/mysql/libexec/mysqld: Table './zimbra_logger/mta' is marked as crashed and last (automatic?) repair failed
080508 16:53:27 [ERROR] /opt/zimbra/logger/mysql/libexec/mysqld: Table './zimbra_logger/mta' is marked as crashed and last (automatic?) repair failed
080508 16:53:27 [ERROR] /opt/zimbra/logger/mysql/libexec/mysqld: Table './zimbra_logger/mta' is marked as crashed and last (automatic?) repair failed
__________________

ice, ice baby

Last edited by yusufu : 05-08-2008 at 11:57 AM.
Reply With Quote
  #9 (permalink)  
Old 05-08-2008, 09:21 AM
uxbod's Avatar
uxbod uxbod is offline
Moderator
 
Join Date: Nov 2006
Location: Northampton, UK
ZCS Version: Release 5.0.7_GA_2450.RHEL5_20080630192737 CentOS5 NETWORK edition (Unsupported OS)
Posts: 1,335
uxbod is on a distinguished road
Send a message via MSN to uxbod
Default

Code:
su - zimbra
logmysql
use zimbra_logger;
repair table mta;
exit
good catch Bill
__________________
Server | CentOS 5.1 | Dual Opteron 250 | Tyan K8W Mobo | 6GB RAM | 3WARE 9550-SX4 | 4 x Samsung 200GB SATA II |
Zimbra | Release Release 5.0.7_GA_2450.RHEL5_20080630192737 NETWORK edition running on Xen 3.2 CentOS 5.2 i386 VM |
Network | Cisco 877 Router - Cisco ASA 5505 FW - Cisco 1131AP |
Reply With Quote
  #10 (permalink)  
Old 05-08-2008, 09:52 AM
yusufu's Avatar
yusufu yusufu is offline
Member
 
Join Date: Apr 2008
ZCS Version: Release 4.5.10_GA_1575.RHEL5_20071117121632 CentOS5 FOSS edition
Posts: 25
yusufu is on a distinguished road
Default

thanks man.

It worked.
I just have one question, how much space does the database take. I have about 96G left from 400G.
Is it advisable to leave it on, is there any logging level I can set?
__________________

ice, ice baby
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
admin consol blank after 5.0.3 upgarde maumar Administrators 6 03-21-2008 05:16 AM
[SOLVED] zmfixperms error when migrating [using John Holder's powertip] parixit Installation 22 12-02-2007 04:05 PM
upgrade woes -made into new thread JustinHarlow Installation 18 06-08-2007 12:11 PM
Can't start Zimbra! zibra Administrators 5 03-22-2007 11:34 AM
huge log size rmvg Administrators 5 01-02-2007 09:39 AM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.0.0