Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
  #1 (permalink)  
Old 05-01-2008, 10:49 PM
rsgooch rsgooch is offline
Junior Member
 
Join Date: May 2008
Posts: 3
rsgooch is on a distinguished road
Default [SOLVED] moving just the data

Is it possible to move just the email and user accounts to a new zimbra server? I have a zimbra server that was working fine. I needed to be able to run a webserver along side of the ZCS server. I installed Drupal on the ZCS box and at some point I managed to break my ZCS install. I have tried to reinstall ZCS, but it did not fix the problem. i have been troubleshooting this for a day now and can not continue to have my email down. I want to rebuild the ZCS box, but I want to bring over just the data not the apps and settings. Is this possible if so can anyone point me to the steps involved.

I am using ZCS Community Edition version 5.0.2. on debian etch 4.0

FYI the problem I am having has to do with the Mailbox service unable to connect to the mysql server.

In the the mailbox.log file the following error is displayed:

2008-05-02 07:48:23,875 INFO [main] [] soap - Servlet SoapServlet starting up
2008-05-02 07:48:23,936 INFO [main] [] soap - Adding service AccountService to SoapServlet
2008-05-02 07:48:24,632 INFO [main] [] soap - Adding service MailService to SoapServlet
2008-05-02 07:48:24,857 INFO [main] [] soap - Adding service IMService to SoapServlet
2008-05-02 07:48:24,873 INFO [main] [] misc - version=5.0.2_GA_1975.DEBIAN4.0 release=20080130234700 builddate=20080130-2350 buildhost=build-debian-etch
2008-05-02 07:48:24,876 INFO [main] [] misc - LANG environment is set to: C
2008-05-02 07:48:24,936 INFO [main] [] system - Setting mysql connector property: maxActive=100
2008-05-02 07:48:24,937 INFO [main] [] system - Setting mysql connector property: maxActive=100
2008-05-02 07:48:29,255 FATAL [main] [] system - Config initialization failed
com.zimbra.common.service.ServiceException: system failure: getting database connection
Code:service.FAILURE
at com.zimbra.common.service.ServiceException.FAILURE (ServiceException.java:183)
at com.zimbra.cs.db.DbPool.getConnection(DbPool.java: 231)
at com.zimbra.cs.util.Config.init(Config.java:62)
at com.zimbra.cs.util.Config.initConfig(Config.java:8 9)
at com.zimbra.cs.util.Config.getString(Config.java:10 1)
at com.zimbra.cs.db.Versions.checkDBVersion(Versions. java:77)
at com.zimbra.cs.db.Versions.checkVersions(Versions.j ava:73)
at com.zimbra.cs.util.Zimbra.startup(Zimbra.java:88)
at com.zimbra.soap.SoapServlet.init(SoapServlet.java: 114)
at javax.servlet.GenericServlet.init(GenericServlet.j ava:241)
at org.mortbay.jetty.servlet.ServletHolder.initServle t(ServletHolder.java:433)
at org.mortbay.jetty.servlet.ServletHolder.doStart(Se rvletHolder.java:256)
at org.mortbay.component.AbstractLifeCycle.start(Abst ractLifeCycle.java:40)
at org.mortbay.jetty.servlet.ServletHandler.initializ e(ServletHandler.java:612)
at org.mortbay.jetty.servlet.Context.startContext(Con text.java:139)
at org.mortbay.jetty.webapp.WebAppContext.startContex t(WebAppContext.java:1222)
at org.mortbay.jetty.handler.ContextHandler.doStart(C ontextHandler.java:501)
at org.mortbay.jetty.webapp.WebAppContext.doStart(Web AppContext.java:449)
at org.mortbay.component.AbstractLifeCycle.start(Abst ractLifeCycle.java:40)
at org.mortbay.jetty.handler.HandlerCollection.doStar t(HandlerCollection.java:147)
at org.mortbay.jetty.handler.ContextHandlerCollection .doStart(ContextHandlerCollection.java:161)
at org.mortbay.component.AbstractLifeCycle.start(Abst ractLifeCycle.java:40)
at org.mortbay.jetty.handler.HandlerCollection.doStar t(HandlerCollection.java:147)
at org.mortbay.component.AbstractLifeCycle.start(Abst ractLifeCycle.java:40)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(H andlerWrapper.java:117)
at org.mortbay.component.AbstractLifeCycle.start(Abst ractLifeCycle.java:40)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(H andlerWrapper.java:117)
at org.mortbay.jetty.Server.doStart(Server.java:217)
at org.mortbay.setuid.SetUIDServer.doStart(SetUIDServ er.java:100)
at org.mortbay.component.AbstractLifeCycle.start(Abst ractLifeCycle.java:40)
at org.mortbay.xml.XmlConfiguration.main(XmlConfigura tion.java:979)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mortbay.start.Main.invokeMain(Main.java:183)
at org.mortbay.start.Main.start(Main.java:497)
at org.mortbay.start.Main.main(Main.java:115)
Caused by: com.mysql.jdbc.exceptions.MySQLNonTransientConnect ionException: Server connection failure during transaction. Due to underlying exception: 'java.net.SocketException: java.net.ConnectException: Connection refused'.


Thanks!
Reply With Quote
  #2 (permalink)  
Old 05-02-2008, 06:33 AM
p24t p24t is offline
Moderator
 
Join Date: Mar 2007
Location: Austin
ZCS Version: RH EL5 64bit/5.0.6 NE .:. Ubuntu 6 LTS/5.0.7 OSS
Posts: 383
p24t is on a distinguished road
Default

Did you install Drupal via apt? You'll want to make sure that it didn't install mysql along with it. Zimbra uses its own mysql, and running another one on the box will interfere, especially if you have them running on default ports. It's likely that if you have another mysql running, that Zimbra's can't start.
Reply With Quote
  #3 (permalink)  
Old 05-02-2008, 06:39 AM
raj's Avatar
raj raj is offline
Special Member
 
Join Date: Oct 2005
Location: US, Canada and India
ZCS Version: zcs-5.0.1_GA_1902.RHEL5.20080109200629.tgz , CentOS 5.1
Posts: 167
raj is on a distinguished road
Default

i dont this think installing your own mysql on the server conflicts with zimbra mysql. We are running our own mysql for sqlgrey independed of zimbra on default ports.

Raj
__________________
i2k2 Networks
Dedicated & Shared Zimbra Hosting Experts
Reply With Quote
  #4 (permalink)  
Old 05-02-2008, 11:51 PM
rsgooch rsgooch is offline
Junior Member
 
Join Date: May 2008
Posts: 3
rsgooch is on a distinguished road
Default

I am using the Zimbra mysql server. I am sure is only 1 mysql server running on the box. Even if I would have installed mysql, zimbra uses non-standard ports for the mysql and the socket is in a non standard location so i am sure there is no conflict.
Thanks for replying to my post though. I have rebuilt the server from scratch reinstalled debian and Zimbra and the system is back online. The only pain is I lost all my email. I am planning on trying the Drupal install again will document the steps.

Thanks Again!
The Gooch
Reply With Quote
  #5 (permalink)  
Old 05-03-2008, 07:51 AM
mmorse's Avatar
mmorse mmorse is online now
Zimbra Employee
 
Join Date: May 2006
Location: USA
ZCS Version: NE & OS - in the many flavors of 4.5 & 5.0
Posts: 4,540
mmorse is on a distinguished road
Send a message via AIM to mmorse Send a message via MSN to mmorse Send a message via Yahoo to mmorse Send a message via Skype™ to mmorse
Default

You wouldn't have happened to make a backup or your /opt/zimbra (& any other linked directories) by chance?
Reply With Quote
  #6 (permalink)  
Old 05-04-2008, 06:04 PM
rsgooch rsgooch is offline
Junior Member
 
Join Date: May 2008
Posts: 3
rsgooch is on a distinguished road
Default

Quote:
Originally Posted by mmorse View Post
You wouldn't have happened to make a backup or your /opt/zimbra (& any other linked directories) by chance?
Unfortuantely it is to late the data is gone and I have succeeded in re-installing Zimbra with Drupal using the same mysql database server and new instance of Apache with the Drupal framework. I am not sure what I changed on the previous install but everything works fine. This server is my home mailserver so I a not really worried about the lost it is more of a pain in the a**.

Thanks for replying though!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Zimbra 5.0 RC2 and Jetty 404's s0undt3ch Installation 65 02-21-2008 10:58 AM
bayes db.. osiris Administrators 5 02-20-2008 11:41 AM
Postfix - fatal: Queue report unavailable - mail system is down? Chadsel Chen Administrators 2 02-12-2008 10:55 AM
How much data? howsday Zimbra Mobile 1 09-20-2007 06:39 PM
Sending mail to china (!) fails with SMTP 551 error... tommy Administrators 3 07-19-2007 02:00 AM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.0.0