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 01-16-2012, 05:58 AM
Advanced Member
 
Posts: 189
Default SQL: 'SHOW INNODB STATUS' Error

Fresh install! Release 7.1.4_GA_2555.SLES11_64_20120105094644 SLES11_64 FOSS edition. What we were doing before this error: importing users mailboxes (using the import/export option of users found in preferences). All seem to go ok until we hit an import of 2GB. This took hours but completed. After that, this user could not login using WebUI or email client. The funny thing is ONLY this user was experiencing this problem. The other users could use their email fine. I check the mailbox logs and find:
Code:
2012-01-16 00:30:45,670 WARN  [mailboxd.csv] [] DbStats - An error occurred while getting current database stats
com.zimbra.common.service.ServiceException: system failure: SQL: 'SHOW INNODB STATUS'
ExceptionId:mailboxd.csv:1326691845669:74d105cbd71278c9
Code:service.FAILURE
	at com.zimbra.common.service.ServiceException.FAILURE(ServiceException.java:253)
	at com.zimbra.cs.db.DbUtil.executeQuery(DbUtil.java:134)
	at com.zimbra.cs.db.DbUtil.executeQuery(DbUtil.java:176)
	at com.zimbra.cs.db.DbUtil.executeQuery(DbUtil.java:202)
	at com.zimbra.cs.db.DbStats.getStatData(DbStats.java:47)
	at com.zimbra.common.stats.RealtimeStats.getData(RealtimeStats.java:67)
	at com.zimbra.cs.stats.ZimbraPerf$MailboxdStats.getDataLines(ZimbraPerf.java:520)
	at com.zimbra.common.stats.StatsDumper.call(StatsDumper.java:110)
	at com.zimbra.common.stats.StatsDumper$1.run(StatsDumper.java:79)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown table engine 'InnoDB'

Query being executed when exception was thrown:
SHOW INNODB STATUS


	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
	at com.mysql.jdbc.Util.getInstance(Util.java:384)
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1054)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3566)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3498)
	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959)
	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2113)
	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2568)
	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2113)
	at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2275)
	at com.zimbra.cs.db.DebugPreparedStatement.executeQuery(DebugPreparedStatement.java:156)
	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
	at com.zimbra.cs.db.DbUtil.executeQuery(DbUtil.java:130)
	... 8 more
This is the first instance of said error in the logs after the import. I google this error and found most seem to apply to ubuntu users, we are using SLES11. I also see where AppArmor may cause the problem (apparmor has the docs, guides, profile editor and utils installed but i don't see the actual app?) and last but not least, someone reported fixing this error by adding a swap partition (we are not using a swap).

The following info is taken while in the "error" state:
Code:
ls -l /opt/zimbra/data/tmp    
total 144                              
-rw-r----- 1 zimbra zimbra  2940 Jan 15 18:40 .swatch_script.1309
-rw-r----- 1 zimbra zimbra  2940 Jan 15 20:28 .swatch_script.3061
-rw-r----- 1 zimbra zimbra  2940 Jan 15 19:37 .swatch_script.32016
-rw-r----- 1 zimbra zimbra  4511 Jan 15 20:28 .swatch_script.4957 
drwxr-x--- 2 zimbra zimbra  4096 Jan 15 20:26 antispam-mysql      
drwxr-x--- 3 zimbra zimbra  4096 Jan 15 20:29 calcache            
-rw-r----- 1 zimbra zimbra 71819 Jan 15 20:27 jffi5500747603473743922.tmp
drwxr-x--- 2 zimbra zimbra  4096 Jan 15 20:28 mysql                      
drwxr-xr-x 5 zimbra zimbra  4096 Jan 15 18:13 nginx                      
-rw-r--r-- 1 root   root    8211 Jan 15 18:37 syslog-ng.conf.hvec~       
drwxr-x--- 2 zimbra zimbra  4096 Jan 15 18:40 uncompressed               
drwxr-x--- 2 zimbra zimbra  4096 Jan 15 18:40 upload                     
-rw-r--r-- 1 zimbra zimbra   210 Jan 16 08:19 zmcontrol.error.zQnzS      
-rw-r----- 1 zimbra zimbra   191 Jan 15 19:32 zmcontrol.out.uGs9m        
-rw-r----- 1 zimbra zimbra   191 Jan 15 19:25 zmcontrol.out.vbz0M        
-rw-r--r-- 1 zimbra zimbra     0 Jan 16 08:19 zmcontrol.status.VJSw5     
mail:~ # su - zimbra                                      
zimbra@mail:~> mysql                                      

mysql> show variables like 'have_innodb';
+---------------+-------+                
| Variable_name | Value |                
+---------------+-------+                
| have_innodb   | NO    |                
+---------------+-------+                
1 row in set (0.00 sec)                  

mysql> show engines \G
*************************** 1. row ***************************
      Engine: CSV                                             
     Support: YES                                             
     Comment: CSV storage engine
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 2. row ***************************
      Engine: MRG_MYISAM
     Support: YES
     Comment: Collection of identical MyISAM tables
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 3. row ***************************
      Engine: MEMORY
     Support: YES
     Comment: Hash based, stored in memory, useful for temporary tables
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 4. row ***************************
      Engine: MyISAM
     Support: DEFAULT
     Comment: Default engine as of MySQL 3.23 with great performance
Transactions: NO
          XA: NO
  Savepoints: NO
4 rows in set (0.00 sec)

mysql>SHOW INNODB STATUS;
ERROR 1286 (42000): Unknown table engine 'InnoDB'

mysql> quit                                      

cat /opt/zimbra/conf/my.cnf       

[mysqld]

basedir        = /opt/zimbra/mysql
datadir        = /opt/zimbra/db/data
socket         = /opt/zimbra/db/mysql.sock
pid-file       = /opt/zimbra/db/mysql.pid 
bind-address   = localhost                
port           = 7306                     
user           = zimbra                   
tmpdir         = /opt/zimbra/data/tmp     

external-locking
slow_query_log = 1
slow_query_log_file = /opt/zimbra/log/myslow.log
ignore-builtin-innodb                           

plugin-load=innodb=ha_innodb_plugin.so;innodb_trx=ha_innodb_plugin.so;innodb_locks=ha_innodb_plugin.so;innodb_lock_waits=ha_innodb_plugin.so;innodb_cmp=ha_innodb_plugin.so;innodb_cmp_reset=ha_innodb_plugin.so;innodb_cmpmem=ha_innodb_plugin.so;innodb_cmpmem_reset=ha_innodb_plugin.so                                                                                                                                    

long-query-time  = 1
log-queries-not-using-indexes

thread_cache_size = 110
max_connections   = 110

# We do a lot of writes, query cache turns out to be not useful.
query_cache_type = 0

sort_buffer_size = 1048576
read_buffer_size = 1048576

# (Num mailbox groups * Num tables in each group) + padding
table_cache = 1200

innodb_buffer_pool_size        = 1206498508
innodb_log_file_size           = 524288000
innodb_log_buffer_size         = 8388608
innodb_file_per_table

# Value is: 200 + max_connections + 2 * table_cache
innodb_open_files              = 2710

innodb_max_dirty_pages_pct     = 30
innodb_flush_method            = O_DIRECT
innodb_flush_log_at_trx_commit = 0
max_allowed_packet             = 16777216

[mysqld_safe]

err-log      = /opt/zimbra/log/mysqld.log
pid-file     = /opt/zimbra/db/mysql.pid
I would appreciate ANY help.
Reply With Quote
  #2 (permalink)  
Old 01-16-2012, 08:18 AM
Advanced Member
 
Posts: 189
Default

When importing another users email, this occurs on the WebUI:
Code:
A network service error has occurred.
method:	[unknown]
msg:	system failure: fetching folder data for mailbox 9
code:	service.FAILURE
detail:	soap:Receiver
trace:	btpool0-23://mail:8080/service/soap/DismissCalendarItemAlarmRequest:1326730378515:c24afd6a612ccaf6
request:	

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Header><context xmlns="urn:zimbra"><userAgent xmlns="" name="ZimbraWebClient - FF3.0 (Linux)" version="7.1.4_GA_2555"/><session xmlns="" id="19"/><notify xmlns="" seq="30"/><account xmlns="" by="name">name@teknerds.net</account><format xmlns="" type="js"/><authToken xmlns="">0_442b0223e2272a1b9914ce0c54ca4b6f8016645b_69643d33363a30326433393537352d323235662d343562662d383465622d3766323036346662393139323b6578703d31333a313332363839393035383132383b747970653d363a7a696d6272613b</authToken></context></soap:Header><soap:Body><DismissCalendarItemAlarmRequest xmlns="urn:zimbraMail"><appt xmlns="" id="122880" dismissedAt="1326730378437"/></DismissCalendarItemAlarmRequest></soap:Body></soap:Envelope>
And after clicking on the mail tab in the WebUI, i get:
Code:
A network service error has occurred.
method:	[unknown]
msg:	system failure: fetching folder data for mailbox 9
code:	service.FAILURE
detail:	soap:Receiver
trace:	btpool0-23://mail:8080/service/soap/SearchRequest:1326730747411:c24afd6a612ccaf6
request:	

Body: {
  SearchRequest: {
    _jsns: "urn:zimbraMail",
    fetch: 1,
    limit: 100,
    locale: {
      _content: "en"
     },
    offset: 0,
    query: "in:inbox",
    sortBy: "dateDesc",
    types: "message",
    tz: {
      id: "America/New_York"
     }
   }
 },
Header: {
  context: {
    _jsns: "urn:zimbra",
    account: {
      _content: "name@teknerds.net",
      by: "name"
     },
    authToken: "(removed)",
    notify: {
      seq: 30
     },
    session: {
      _content: 19,
      id: 19
     },
    userAgent: {
      name: "ZimbraWebClient - FF3.0 (Linux)",
      version: "7.1.4_GA_2555"
     }
   }
 }
Which seems to be the same mysql error as seen in the first post.
Reply With Quote
  #3 (permalink)  
Old 01-16-2012, 09:53 AM
Advanced Member
 
Posts: 189
Default

I am wondering if it has to do with the export from 7.1.3 and import to 7.1.4? In other words, we exported from zimbra 7.1.3 and imported into 7.1.4. Could this be the problem?

We also have a backup exec backup of the store folder. Anyway to get that email into a new install?

Last edited by carnold; 01-16-2012 at 10:09 AM..
Reply With Quote
  #4 (permalink)  
Old 01-17-2012, 03:28 AM
Advanced Member
 
Posts: 189
Default

Well, this error is coming from the import of email used from the users preferences of zimbra. I wiped and reloaded 7.1.3 then imported, getting same error in mailbox.log. I just upgraded to see if the upgrade re-writes the broken piece. Anyone got any answers to my questions found in the posts above?
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.