Jump to content

MimeHandlerException issue mailbox.log zimbra indorama: Difference between revisions

From TetraWiki
Pramod (talk | contribs)
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Indorama]]
[[Category:Zimbra]]
==Problem Statement == 
Indorama Reported there mailbox log ( /opt/zimbra/log/mailbox.log) is increasing ( few GBs in an hours ) and filling the space .
==Initial Diagnosis ==
The mailbox log was analyzed and found that Converd , the daemon responsible for converting the Document in readable format on WebUI is not running . Due to which many warning lines were getting printed on every transaction in mailbox.log resulting in huge size of it . The log said ( only 3 line was shown).
When reindexing a user's mailbox, the following appeared in mailbox.log but did not show as a failed reindex in the admin UI. mailbox.log size will increase fastly due to creating of exception.
When reindexing a user's mailbox, the following appeared in mailbox.log but did not show as a failed reindex in the admin UI. mailbox.log size will increase fastly due to creating of exception.


'''Errors:'''
'''Errors:'''


com.zimbra.cs.mime.MimeHandlerException: extraction failed
com.zimbra.cs.mime.MimeHandlerException: extraction failed
         at com.zimbra.cs.mime.handler.ConverterHandler.getContentImpl(ConverterHandler.java:114)
         at com.zimbra.cs.mime.handler.ConverterHandler.getContentImpl(ConverterHandler.java:114)
         at com.zimbra.cs.mime.MimeHandler.getContent(MimeHandler.java:157)
         at com.zimbra.cs.mime.MimeHandler.getContent(MimeHandler.java:157)
Line 11: Line 19:


this issue is created by convertd process and solution is below.
this issue is created by convertd process and solution is below.
this issue occurred only in Zimbra Network Edition.
this issue occurred only in '''Zimbra Network Edition'''.


'''What does Convertd ?'''
==What does Convertd ?==


Zimbra uses also Convertd module to build a preview of the documents. The Convertd preview conversion is works great but also works much better with the new High Fidelity Document Preview feature, using Libreoffice to render the preview into a .pdf file.
Zimbra uses also Convertd module to build a preview of the documents. The Convertd preview conversion is works great but also works much better with the new High Fidelity Document Preview feature, using Libreoffice to render the preview into a .pdf file.
Line 19: Line 27:
The benefits of this features is that the users can preview any file, in any computer, even if you don't have a Microsoft Office, or Libreoffice in your computer, you will be able to render and see the file.  
The benefits of this features is that the users can preview any file, in any computer, even if you don't have a Microsoft Office, or Libreoffice in your computer, you will be able to render and see the file.  


first of all check zimbra-convertd rpm package is installed if not than install this package using below command. you will get this package under your extracted "zcs/packages".
==Intermediate Solution==
We have installed the convertd RPM via rpm install from the main instal directory . And started the convertd service of zimbra.first of all check zimbra-convertd rpm package is installed if not than install this package using below command. you will get this package under your extracted "zcs/packages".


'''#rpm -Uvh zimbra-convertd-8.6.0_GA_1153.RHEL6_64-20141215151258.x86_64.rpm'''
#rpm -Uvh zimbra-convertd-8.6.0_GA_1153.RHEL6_64-20141215151258.x86_64.rpm


'''How to check convertd service status ?'''
'''How to check convertd service status ?'''
'''#zmconvertctl status'''
 
convertd is not running.
#zmconvertctl status
convertd is not running.


'''How to start convertd service ?'''
'''How to start convertd service ?'''


'''#zmconvertctl start'''
#zmconvertctl start
 
As convertd started , the mailbox log did not show any error and logging was normal . This has solved the issue .
This solution was  temporary as every time the zimbra services were started , convertd will start by itself . Every time it has to be restarted manually which is not preferred .
 
==Permanent solution==
We need to figure out how this service of convertd needs to be included in zmcontrol so that every time zimbra services gets restart this also starts with it .
Zimbra give two parameters "zimbraServiceInstalled" and "zimbraServiceEnabled" which can be introduced via zmprov command . First we checked whether service is installed and enabled via
 
zmprov gs `zmhostname` | grep -i zimbraServiceInstalled
zmprov gs `zmhostname` | grep -i zimbraServiceEnabled
 
But found that convertd service was nighter installed nor enabled .
 
So we installed and enabled it via
 
zmprov ms `zmhostname` +zimbraServiceInstalled convertd
zmprov ms `zmhostname` +zimbraServiceEnabled convertd


'''Note:-'''


If you restart zimbra service it will not start automatic convertd at that time.
Now Restaring zimbra with zmcontrol restart has shown that convertd service is started as default service
so you will have to start manualy whenever you will restart zimbra service.

Latest revision as of 09:16, 11 September 2015


Problem Statement[edit]

Indorama Reported there mailbox log ( /opt/zimbra/log/mailbox.log) is increasing ( few GBs in an hours ) and filling the space .

Initial Diagnosis[edit]

The mailbox log was analyzed and found that Converd , the daemon responsible for converting the Document in readable format on WebUI is not running . Due to which many warning lines were getting printed on every transaction in mailbox.log resulting in huge size of it . The log said ( only 3 line was shown). When reindexing a user's mailbox, the following appeared in mailbox.log but did not show as a failed reindex in the admin UI. mailbox.log size will increase fastly due to creating of exception.

Errors:

com.zimbra.cs.mime.MimeHandlerException: extraction failed
       at com.zimbra.cs.mime.handler.ConverterHandler.getContentImpl(ConverterHandler.java:114)
       at com.zimbra.cs.mime.MimeHandler.getContent(MimeHandler.java:157)
       at com.zimbra.cs.mime.ParsedMessage.analyzePart(ParsedMessage.java:1135)
       at com.zimbra.cs.mime.ParsedMessage.analyzeNonBodyParts(ParsedMessage.java:439)


this issue is created by convertd process and solution is below. this issue occurred only in Zimbra Network Edition.

What does Convertd ?[edit]

Zimbra uses also Convertd module to build a preview of the documents. The Convertd preview conversion is works great but also works much better with the new High Fidelity Document Preview feature, using Libreoffice to render the preview into a .pdf file.

The benefits of this features is that the users can preview any file, in any computer, even if you don't have a Microsoft Office, or Libreoffice in your computer, you will be able to render and see the file.

Intermediate Solution[edit]

We have installed the convertd RPM via rpm install from the main instal directory . And started the convertd service of zimbra.first of all check zimbra-convertd rpm package is installed if not than install this package using below command. you will get this package under your extracted "zcs/packages".

#rpm -Uvh zimbra-convertd-8.6.0_GA_1153.RHEL6_64-20141215151258.x86_64.rpm

How to check convertd service status ?

#zmconvertctl status
convertd is not running.

How to start convertd service ?

#zmconvertctl start

As convertd started , the mailbox log did not show any error and logging was normal . This has solved the issue . This solution was temporary as every time the zimbra services were started , convertd will start by itself . Every time it has to be restarted manually which is not preferred .

Permanent solution[edit]

We need to figure out how this service of convertd needs to be included in zmcontrol so that every time zimbra services gets restart this also starts with it . Zimbra give two parameters "zimbraServiceInstalled" and "zimbraServiceEnabled" which can be introduced via zmprov command . First we checked whether service is installed and enabled via

zmprov gs `zmhostname` | grep -i zimbraServiceInstalled
zmprov gs `zmhostname` | grep -i zimbraServiceEnabled

But found that convertd service was nighter installed nor enabled .

So we installed and enabled it via

zmprov ms `zmhostname` +zimbraServiceInstalled convertd
zmprov ms `zmhostname` +zimbraServiceEnabled convertd


Now Restaring zimbra with zmcontrol restart has shown that convertd service is started as default service