Results 1 to 5 of 5

Thread: [SOLVED] Jetty error after backup & restore of /opt/zimbra

  1. #1
    Join Date
    Nov 2009
    Location
    Markham, Ontario Canada
    Posts
    35
    Rep Power
    5

    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!!

  2. #2
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    10

    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
    http://www.zimbra.com/forums/adminis...mbra-user.html

    Raj
    i2k2 Networks
    Dedicated & Shared Zimbra Hosting Provider

  3. #3
    Join Date
    Nov 2009
    Location
    Markham, Ontario Canada
    Posts
    35
    Rep Power
    5

    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
    http://www.zimbra.com/forums/adminis...mbra-user.html

    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...

  4. #4
    Join Date
    Sep 2008
    Posts
    29
    Rep Power
    7

    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....

  5. #5
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    10

    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

Similar Threads

  1. [SOLVED] Regarding Network Edition Backup and Restore
    By bhwong in forum Administrators
    Replies: 7
    Last Post: 12-03-2009, 07:07 AM
  2. Proofing Modified Backup Script
    By dkbk in forum Administrators
    Replies: 0
    Last Post: 11-26-2009, 11:52 AM
  3. zimbra opesource Backup Script Problem!
    By tashi in forum Administrators
    Replies: 4
    Last Post: 03-30-2009, 11:49 PM
  4. Restore specific network edition backup
    By sdemeyer in forum Administrators
    Replies: 5
    Last Post: 09-07-2008, 09:04 PM
  5. Backup and Restore of 4.5.7 CE
    By bjquinn in forum Administrators
    Replies: 5
    Last Post: 10-30-2007, 03:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •