Error when trying to start mailbox services: Difference between revisions

mNo edit summary
Line 1: Line 1:
===<h1>Error when trying to start mailbox services</h1>===
__TOC__
<hr>
=Error when trying to start mailbox services=
<br>
{{KB|{{ZC}}|{{ZCS 8.8}}|{{ZCS 8.7}}|{{ZCS 8.6}}|{{ZCS 8.5}}|}}
<h2>Problem:</h2>


Error when trying to start mailbox services -
<pre>
Exception in thread "main" java.io.IOException: Keystore was tampered with, or password was incorrect
        at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:771)
        at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)
        at java.security.KeyStore.load(KeyStore.java:1185)
</pre>


==Problem==


<h2>Solution</h2>
Error when trying to start mailbox services:


To resolve this issue re-install the certificates after below steps -
  Exception in thread "main" java.io.IOException: Keystore was tampered with, or password was incorrect
        at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:771)
        at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)
        at java.security.KeyStore.load(KeyStore.java:1185)


==Solution==
This problem comes up because the Java keystore is either changed, or not accessible.
Regenerating the certificates creates a new keystore.
To do so, first move the old keystore:
  mv /opt/zimbra/mailboxd/etc/keystore /root/keystore.old
  mv /opt/zimbra/mailboxd/etc/keystore /root/keystore.old


After re-install certificates try to start mailbox services -
Then re-generate certificates and restart the mailbox service:
 
  /opt/zimbra/bin/zmcertmgr createca -new
  /opt/zimbra/bin/zmcertmgr createca -new
  /opt/zimbra/bin/zmcertmgr createcrt -new -days 3650
  /opt/zimbra/bin/zmcertmgr createcrt -new -days 3650
Line 26: Line 28:
  /opt/zimbra/bin/zmcertmgr deploycrt self
  /opt/zimbra/bin/zmcertmgr deploycrt self
  /opt/zimbra/bin/zmcertmgr viewdeployedcrt
  /opt/zimbra/bin/zmcertmgr viewdeployedcrt
zmmailboxdctl restart


Submitted by: Sourabh Bhushan


 
{{Article Footer|ZCS 8.8, 8.7, 8.6|8/8/2017}}
Submitted by: Sourabh Bhushan
{{NeedSME|Heera|SME2|Copyeditor}}

Revision as of 12:36, 15 May 2018

Error when trying to start mailbox services

   KB 23328        Last updated on 2018-05-15  




0.00
(0 votes)


Problem

Error when trying to start mailbox services:

Exception in thread "main" java.io.IOException: Keystore was tampered with, or password was incorrect
        at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:771)
        at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)
        at java.security.KeyStore.load(KeyStore.java:1185)


Solution

This problem comes up because the Java keystore is either changed, or not accessible. Regenerating the certificates creates a new keystore.

To do so, first move the old keystore:

mv /opt/zimbra/mailboxd/etc/keystore /root/keystore.old

Then re-generate certificates and restart the mailbox service:

/opt/zimbra/bin/zmcertmgr createca -new
/opt/zimbra/bin/zmcertmgr createcrt -new -days 3650
/opt/zimbra/bin/zmcertmgr deployca
/opt/zimbra/bin/zmcertmgr deploycrt self
/opt/zimbra/bin/zmcertmgr viewdeployedcrt

zmmailboxdctl restart

Submitted by: Sourabh Bhushan

Verified Against: ZCS 8.8, 8.7, 8.6 Date Created: 8/8/2017
Article ID: https://wiki.zimbra.com/index.php?title=Error_when_trying_to_start_mailbox_services Date Modified: 2018-05-15



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »


Wiki/KB reviewed by Heera SME2 Copyeditor Last edit by Shanxt
Jump to: navigation, search