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 10-15-2008, 09:25 AM
Junior Member
 
Posts: 7
Default Huge problem after upgrade: TLS init def ctx failed: -1

Hello all,

First, thanks in advance for any help you might be able to give. I've been struggling mightily with this one issue and it could not have come at a worse time.

I am in the process of migrating my whole company from Exchange to Zimbra on CentOS 5.2 (Hurray!), however the From sorting is broken and I need to upgrade to 5.0.10 to get that addressed. When I upgrade to 5.0.10 however, I can not start zimbra, it failed while trying to start ldap with this error "TLS init def ctx failed: -1".

Digging a little deeper, I find that I am getting the following error when tring to start zimbra: TLS: error:02001002:system library:fopen:No such file or directory bss_file.c:352

Appears to be SSL related, but I can not pin down what is exactly missing, or what file it can not find.

After 2 attempts and absolutely no success, I had to roll back to my backup, which of course works like clock work.

Does anyone have any insight that may help?

Again, thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 10-15-2008, 10:07 AM
Zimbra Employee
 
Posts: 580
Default

The error generally indicates the cert files are not readable or don't exist, which the fopen error confirms.
__________________
Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
Reply With Quote
  #3 (permalink)  
Old 10-15-2008, 10:26 AM
tgx tgx is offline
Elite Member
 
Posts: 291
Default

Please see this thread and see if it helps.

http://www.zimbra.com/forums/adminis...e-problem.html

I think you've hit a known problem with 5.0.10. Be very careful when you upgrade as there are often gotchas.
Reply With Quote
  #4 (permalink)  
Old 10-21-2008, 08:10 AM
Junior Member
 
Posts: 7
Default

Thanks so much for the info, I think Im prepared to have another go at it.

Is there a command or series of commands I can use to create and install new certificates to resolve this issue?

I am going to try the upgrade again this weekend, and in the worst case scenario, Id like to have a backup plan.
Reply With Quote
  #5 (permalink)  
Old 10-21-2008, 08:33 AM
Moderator
 
Posts: 7,928
Default

Recreate a self-signed certificate.
__________________
Reply With Quote
  #6 (permalink)  
Old 10-21-2008, 08:43 AM
Junior Member
 
Posts: 7
Default

I was afraid Id get that answer.

I tried that already, step by step, and it did not resolve the problem. Zimbra would not start and the error remained the same.
Reply With Quote
  #7 (permalink)  
Old 10-21-2008, 01:10 PM
tgx tgx is offline
Elite Member
 
Posts: 291
Default

Quote:
Originally Posted by tvcian View Post
I was afraid Id get that answer.

I tried that already, step by step, and it did not resolve the problem. Zimbra would not start and the error remained the same.
Did you try this from the "5.0.10 upgrade problem" thread ?:

-----------------------------------------------------------
As per support instructions the fix was:

1) Clear all the contents of the /opt/zimbra/conf/ca directory by backing them up
somewhere on disk.
2) Copy the /opt/zimbra/ssl/zimbra/commercial/commercial.key /opt/zimbra/conf/ca/ca.key
3) Copy /opt/zimbra/ssl/zimbra/commercial/commercial.crt /opt/zimbra/conf/ca/ca.pem
4) Create the hash value
ln -f -s ca.pem /opt/zimbra/conf/ca/`openssl x509 -hash -noout -in
/opt/zimbra/conf/ca/ca.pem`.0
5) Chmod 644 /opt/zimbra/conf/ca/*
6) Restart the zmcontrol
--------------------------------------------------------
Reply With Quote
  #8 (permalink)  
Old 10-21-2008, 02:05 PM
Junior Member
 
Posts: 7
Default

Thanks very much. Ill certainly try that on my next attempt.
Reply With Quote
  #9 (permalink)  
Old 11-25-2008, 01:03 AM
New Member
 
Posts: 4
Default

Problem still exists - fix works

I just upgraded from 5.0.6 to 5.0.11, and had this exact problem. I followed the instructions on the post above (as the root user, restarting zimbra as the zimbra user), and now it looks like everything's working.

Can a fix be applied so other people don't have this problem?
Reply With Quote
  #10 (permalink)  
Old 12-02-2008, 06:10 PM
Intermediate Member
 
Posts: 18
Default

I Could not get into Zimbra from browser, zmcontrol showed everything down was receiving many errors one of which was: zimbra TLS: error:02001002:system library:fopen:No such file or directory bss_file.c:352

1. I removed ssl folder and recreated etc by doing the following:
(Base on Recreating a Self-Signed SSL Certificate - Zimbra :: Wiki)

As Root:
rm -rf /opt/zimbra/ssl
mkdir /opt/zimbra/ssl
chown zimbra:zimbra /opt/zimbra/ssl
chown zimbra:zimbra /opt/zimbra/java/jre/lib/security/cacerts
chmod 644 /opt/zimbra/java/jre/lib/security/cacerts

As zimbra:
keytool -delete -alias my_ca -keystore /opt/zimbra/java/jre/lib/security/cacerts -storepass changeit
keytool -delete -alias jetty -keystore /opt/zimbra/mailboxd/etc/keystore -storepass zimbra
zmlocalconfig -s -m nokey mailboxd_keystore_password

As root:
/opt/zimbra/bin/zmcertmgr createca -new
/opt/zimbra/bin/zmcertmgr deployca -localonly
/opt/zimbra/bin/zmcertmgr createcrt self -new
/opt/zimbra/bin/zmcertmgr deploycrt self

As zimbra
zmcontrol start


2. THen I followed the following steps:

--Clear all the contents of the /opt/zimbra/conf/ca directory by backing them up somewhere
--Copy the /opt/zimbra/ssl/zimbra/ca/ca.key /opt/zimbra/conf/ca/ca.key
--Copy /opt/zimbra/ssl/zimbra/ca/ca.pem /opt/zimbra/conf/ca/ca.pem
--Create the hash value by doing the following
--ln -f -s ca.pem /opt/zimbra/conf/ca/`openssl x509 -hash -noout -in
--/opt/zimbra/conf/ca/ca.pem`.0
--chmod 644 /opt/zimbra/conf/ca/*
--Restart the zmcontrol

3. I restarted zimbra (su zimbra then zmcontrol restart) and everyting came up ok.
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.