Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

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 01-24-2010, 08:15 AM
Active Member
 
Posts: 32
Default [SOLVED] Jetty error after backup & restore of /opt/zimbra

I'm testing disaster restore to make sure it will work in the event of a complete failure, I have simply stopped all services and dumped all of /opt/zimbra according to
Open Source Edition Backup Procedure - Zimbra :: Wiki

I am not restoring this to the same production server but rather a VM that ive tried to keep as close to the production server as possible (same OS type, Same Hostname, ect)

After restoring and doing a cp -Rp from zimbra backup to /opt/zimbra VM I am getting a jetty http error 404 NOT_FOUND RequestURI=/

I have done the "zmfixperms -extended" mentioned in another post and still the same issue.

All services seem to start ok, looking at the logs while starting I see

<--
Jan 24 10:51:39 mail zmmailboxdmgr[15695]: file /opt/zimbra/log/zmmailboxd.pid does not exist
Jan 24 10:51:39 mail zmmailboxdmgr[15695]: assuming no other instance is running
Jan 24 10:51:39 mail zmmailboxdmgr[15696]: wrote manager pid 15696 to /opt/zimbra/log/zmmailboxd_manager.pid
Jan 24 10:51:39 mail zmmailboxdmgr[15697]: wrote java pid 15697 to /opt/zimbra/log/zmmailboxd_java.pid
Jan 24 10:51:39 mail zmmailboxdmgr[15696]: manager started mailboxd/JVM with pid 15697
Jan 24 10:52:38 mail zmmailboxdmgr[16071]: status requested
Jan 24 10:52:38 mail zmmailboxdmgr[16071]: status OK
Jan 24 10:53:26 mail zmmailboxdmgr[16588]: status requested
Jan 24 10:53:26 mail zmmailboxdmgr[16588]: status OK
Jan 24 10:53:41 mail zmmailboxdmgr[16734]: status requested
Jan 24 10:53:41 mail zmmailboxdmgr[16734]: status OK
Jan 24 10:53:51 mail postfix/postfix-script[16849]: warning: not owned by root: /opt/zimbra/postfix-2.4.7.5z/conf/main.cf
Jan 24 10:53:51 mail postfix/postfix-script[16863]: starting the Postfix mail system
Jan 24 10:53:51 mail postfix/master[16864]: daemon started -- version 2.4.7, configuration /opt/zimbra/postfix-2.4.7.5z/conf
Jan 24 10:53:51 mail postfix/qmgr[16871]: 9897251450: from=, size=1125, nrcpt=2 (queue active)
Jan 24 10:53:52 mail postfix/qmgr[16871]: 056E951455: from=, size=1127, nrcpt=2 (queue active)
Jan 24 10:53:52 mail postfix/qmgr[16871]: 1555351457: from=, size=1121, nrcpt=2 (queue active)
Jan 24 10:53:52 mail postfix/lmtp[16882]: connect to mail.blah.ca[74.213.163.66]: No route to host (port 7025)
Jan 24 10:53:52 mail postfix/lmtp[16883]: connect to mail.blah.ca[74.213.163.66]: No route to host (port 7025)
Jan 24 10:53:52 mail postfix/lmtp[16882]: 9897251450: to=, relay=none, delay=521, delays=520/0.32/0.02/0, dsn=4.4.1, status=deferred (connect to mail.blah.ca[74.213.163.66]: No route to host)
Jan 24 10:53:52 mail postfix/lmtp[16883]: 056E951455: to=, relay=none, delay=507, delays=507/0.1/0.02/0, dsn=4.4.1, status=deferred (connect to mail.blah.ca[74.213.163.66]: No route to host)
--->

FYI the ip and hostnames have been scrubbed/changed.

I realize that email sending/recv is not going to function correctly as running in a VM and MX records point to a totally different server ip, However for testing I at least expected the admin and ZWC to function but all I get is the Jetty http error Not_Found.

"HTTP ERROR: 404
NOT_FOUND
RequestURI=/

Powered by jetty://"


Is there anything else I need to do here??

Thanks!!
Reply With Quote
  #2 (permalink)  
Old 01-24-2010, 10:03 AM
raj raj is offline
Moderator
 
Posts: 768
Default

they 404 error is usually permission or zimbra uid which is hardcoded in zimbra config. on new machine you may have different UID for zimbra user than your old machine

to fix permissions run the following as root
cd /opt/zimbra/libexec
./zmfixperms

to fix 404 error
[SOLVED] change uid of zimbra user

Raj
__________________
i2k2 Networks
Dedicated & Shared Zimbra Hosting Provider
Reply With Quote
  #3 (permalink)  
Old 01-24-2010, 10:33 AM
Active Member
 
Posts: 32
Default

Quote:
Originally Posted by raj View Post
they 404 error is usually permission or zimbra uid which is hardcoded in zimbra config. on new machine you may have different UID for zimbra user than your old machine

to fix permissions run the following as root
cd /opt/zimbra/libexec
./zmfixperms

to fix 404 error
[SOLVED] change uid of zimbra user

Raj
Thanks Raj,

"zmlocalconfig -e zimbra_uid=" Did the trick!!!

actually I just found the localconfig.xml and directly edited that with the UID...

Thanks again...
Reply With Quote
  #4 (permalink)  
Old 04-17-2010, 03:13 AM
Active Member
 
Posts: 29
Default

What do I need to change the UID to? Do I change it to the 'id zimbra' UID?

I have literally been going crazy with this machine for now going on 21 hours after a hard drive that showed no signs of wear decided that it would just die without warning....
Reply With Quote
  #5 (permalink)  
Old 04-17-2010, 03:43 AM
raj raj is offline
Moderator
 
Posts: 768
Default

in /etc/passwords is the real uid of "zimbra"user
/opt/zimbra/conf/localconfig.xml has this uid hardcoded in it

Raj
__________________
i2k2 Networks
Dedicated & Shared Zimbra Hosting Provider
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.