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 12-05-2008, 10:23 AM
Junior Member
 
Posts: 5
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
Reply With Quote
  #2 (permalink)  
Old 12-05-2008, 10:33 AM
Outstanding Member
 
Posts: 684
Default ownership.

Make sure the file is owned by Zimbra - user and group.
Reply With Quote
  #3 (permalink)  
Old 12-05-2008, 10:45 AM
Junior Member
 
Posts: 5
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
Reply With Quote
  #4 (permalink)  
Old 12-05-2008, 02:03 PM
Special Member
 
Posts: 118
Default just a stab

zmfixperms -extended
__________________
Work
7.0.1 UBUNTU8_64 UBUNTU8_64 NETWORK

Home
7.0.1 UBUNTU8_64 UBUNTU8_64 FOSS
Reply With Quote
  #5 (permalink)  
Old 12-05-2008, 05:10 PM
Outstanding Member
 
Posts: 684
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. :-)
Reply With Quote
  #6 (permalink)  
Old 12-05-2008, 05:15 PM
Special Member
 
Posts: 118
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
7.0.1 UBUNTU8_64 UBUNTU8_64 NETWORK

Home
7.0.1 UBUNTU8_64 UBUNTU8_64 FOSS
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.