Conversion: Unable to instantiate MIME handler: Difference between revisions
No edit summary |
|||
Line 13: | Line 13: | ||
$ zmlocalconfig convertd_version | $ zmlocalconfig convertd_version | ||
convertd_version = 1 | convertd_version = 1 | ||
Run the ZCS Installer and choose the Zimbra-Convertd service and choose | |||
Upgrade option. | |||
Choose the option to upgrade: Y | |||
Do you wish to upgrade? [Y] | |||
Yes to isntall convertd: | |||
Install zimbra-convertd [N] Y | |||
After the upgrade completes, run below command: | |||
$ /opt/zimbra/convertd/bin/upgrade_v2 | $ /opt/zimbra/convertd/bin/upgrade_v2 |
Revision as of 15:30, 23 February 2009
Summary
Document conversion may not function properly after migrating from ZCS FOSS to Network Edition. The problem can be identified by:
- Search for known string found in an attachment like PDF or DOC does not return the message containing the attachment.
- View as html results in file download.
Problem
MIME handlers for conversion are not updated during migration.
Solution
Update the MIME handler configuration in the Zimbra directory. Also, It is strongly recommended version 2 of conversion be used on a production Zimbra mailbox server.
Check and update conversion version 2
$ zmlocalconfig convertd_version convertd_version = 1
Run the ZCS Installer and choose the Zimbra-Convertd service and choose Upgrade option.
Choose the option to upgrade: Y Do you wish to upgrade? [Y]
Yes to isntall convertd: Install zimbra-convertd [N] Y
After the upgrade completes, run below command:
$ /opt/zimbra/convertd/bin/upgrade_v2 $ zmcontrol stop $ zmcontrol start
See the Zimbra release notes for further details.
Fix MIME handler configuration
Place the following LDIF file into the /tmp directory on the Zimbra LDAP server and make it readable for the zimbra user. This LDIF is to be used with conversion V2.
fixconversion.ldif
dn: cn=all,cn=mime,cn=config,cn=zimbra changetype: modify replace: zimbraMimeHandlerClass zimbraMimeHandlerClass: ConverterHandler - replace: zimbraMimeHandlerExtension zimbraMimeHandlerExtension: convertd - replace: description description: All Documents dn: cn=text/enriched,cn=mime,cn=config,cn=zimbra changetype: modify replace: zimbraMimeHandlerClass zimbraMimeHandlerClass: com.zimbra.cs.mime.handler.TextEnrichedHandler dn: cn=text/plain,cn=mime,cn=config,cn=zimbra changetype: modify replace: zimbraMimeHandlerClass zimbraMimeHandlerClass: com.zimbra.cs.mime.handler.TextEnrichedHandler
Run these commands as the zimbra user.
$ source ~/bin/zmshutil $ zmsetvars $ ldapmodify -x -H $ldap_master_url -D $zimbra_ldap_userdn -w $zimbra_ldap_password -f /tmp/fixconversion.ldif
Restart all mailbox servers
$ zmmailboxdctl restart
Bugs
Bug 28851 "View as html" doesn't work after upgrading from FOSS to NE
Keywords: conversion convertd