Results 1 to 6 of 6

Thread: Restore - jetty problem

  1. #1
    stefaan is offline Junior Member
    Join Date
    Dec 2008
    Posts
    5
    Rep Power
    6

    Default Restore - jetty problem

    Hi!

    I'm trying to restore a Zimbra-Installation (5.0.6 Open Source) from a cold-copy (Stopping zimbra, copy /opt/zimbra, start zimbra as described in the wiki as "Desaster Recovery").

    After fixing permissions, every service started with "done", mails are delivered.

    But the webinterface doesn't work. In zmmailboxd.out I get (3 times, for service, zimbra and zimbraAdmin)
    Code:
    10111 INFO  [main] log - Setting umask=027
    10192 INFO  [main] log - Setting GID=1001
    10192 INFO  [main] log - Setting UID=1001
    10192 INFO  [main] log - jetty-6.1.5
    16916 WARN  [main] log - Failed startup of context org.mortbay.jetty.webapp.WebAppContext@1a4ded3{/service,/opt/zimbra/jetty-6.1.5                           /webapps/service}
    java.io.FileNotFoundException: /opt/zimbra/jetty-6.1.5/webapps/service/WEB-INF/web.xml (Permission denied)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:106)
            at java.io.FileInputStream.<init>(FileInputStream.java:66)
            at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
            at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
            at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
            at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
            at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
            at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
            at org.mortbay.xml.XmlParser.parse(XmlParser.java:188)
            at org.mortbay.xml.XmlParser.parse(XmlParser.java:204)
            at org.mortbay.jetty.webapp.WebXmlConfiguration.configure(WebXmlConfiguration.java:221)
            at org.mortbay.jetty.plus.webapp.AbstractConfiguration.configure(AbstractConfiguration.java:113)
            at org.mortbay.jetty.webapp.WebXmlConfiguration.configureWebApp(WebXmlConfiguration.java:180)
            at org.mortbay.jetty.plus.webapp.AbstractConfiguration.configureWebApp(AbstractConfiguration.java:96)
            at org.mortbay.jetty.plus.webapp.Configuration.configureWebApp(Configuration.java:124)
            at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1219)
            at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:501)
            at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:449)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
            at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
            at org.mortbay.jetty.Server.doStart(Server.java:217)
            at org.mortbay.setuid.SetUIDServer.doStart(SetUIDServer.java:100)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:979)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            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)
    But this web.xml file exists, owner and group is zimbra, permissions are 440.
    Even when I change it to 777 and restart zmmailboxdctl, the same error occurs. And the permissions are set back to 440.

    The web interface says
    Code:
    HTTP ERROR: 503
    
    SERVICE_UNAVAILABLE
    
    RequestURI=/zimbra/
    
    Powered by jetty://
    Any ideas?

    Thank you!

    Stefan

  2. #2
    Bill Brock is offline Outstanding Member
    Join Date
    May 2007
    Location
    Oklahoma
    Posts
    703
    Rep Power
    9

    Default ownership.

    Make sure the file is owned by Zimbra - user and group.

  3. #3
    stefaan is offline Junior Member
    Join Date
    Dec 2008
    Posts
    5
    Rep Power
    6

    Default

    My permissions are:
    Code:
    -r--r----- 1 zimbra zimbra 13862 2008-12-05 19:04 /opt/zimbra/jetty/webapps/zimbra/WEB-INF/web.xml
    Thank you!

    Stefan

  4. #4
    dwill's Avatar
    dwill is offline Special Member
    Join Date
    Aug 2006
    Posts
    122
    Rep Power
    9

    Default just a stab

    zmfixperms -extended
    Work
    8.0.3 UBUNTU10_04 UBUNTU10_04 NETWORK

    Home
    8.0.3 UBUNTU10_04 UBUNTU10_04 FOSS

  5. #5
    Bill Brock is offline Outstanding Member
    Join Date
    May 2007
    Location
    Oklahoma
    Posts
    703
    Rep Power
    9

    Default Extended switch.

    What does the extended switch do for the zmfixperms command? I was unaware of it. I used the zmfixperms command when I switched my install to a new machine a few months back. It didn't fix all of the permissions. The .ssh directory and another one I don't recall had to be set manually. Not using that particular switch may have been my problem. Is this a new switch in the last few months or did I just miss it in my reading.

    I'm always for learning something new. :-)

  6. #6
    dwill's Avatar
    dwill is offline Special Member
    Join Date
    Aug 2006
    Posts
    122
    Rep Power
    9

    Default -extended

    It seems to dig a little dipper in the permission fixes

    See post #6 in this thread

    Can't Send Email or View Mail Queue after restoring from Backup
    Work
    8.0.3 UBUNTU10_04 UBUNTU10_04 NETWORK

    Home
    8.0.3 UBUNTU10_04 UBUNTU10_04 FOSS

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Mailbox restore restores to the wrong date
    By silbro in forum Administrators
    Replies: 2
    Last Post: 12-05-2008, 02:59 PM
  2. Problem with mod_jk 1.2.18 and jetty 6.1.5 in ZImbra
    By daniel.sery in forum Installation
    Replies: 0
    Last Post: 05-22-2008, 07:23 AM
  3. Missing Email Problem
    By prox in forum Zimbra Connector for Outlook
    Replies: 6
    Last Post: 03-16-2008, 10:01 PM
  4. Restore: Problem of Zimbra Version
    By victorLeong in forum Administrators
    Replies: 3
    Last Post: 07-28-2006, 08:53 PM
  5. Is it started or not
    By kwelipatton in forum Installation
    Replies: 10
    Last Post: 03-28-2006, 11:11 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
  •