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 Display Modes
  #1 (permalink)  
Old 03-27-2008, 07:13 AM
Elite Member
 
Posts: 303
Question mobile calender Internal Server Error

i'm getting:

Internal Server Error
The server has encountered an internal error.


when i login to the mobile calender on one of my 5.04 (upgraded from 4.56) boxes, the second one works ok, any suggestions?

TIA,
p.
Reply With Quote
  #2 (permalink)  
Old 03-27-2008, 10:55 AM
Elite Member
 
Posts: 303
Exclamation beware of removing /opt/zimbra/jetty/work/*

its caused by a missing:
/opt/zimbra/jetty/work/zimbra/jsp/org/apache/jsp/tag/web/mobile/moAttachments_tag.class

beware of removing /opt/zimbra/jetty/work/* to solve the ssh

system failure: exception during auth {RemoteManager: zimbra.snp.org->zimbra@zimbra.snp.org:22}
Reply With Quote
  #3 (permalink)  
Old 04-14-2008, 12:51 PM
Moderator
 
Posts: 511
Default

Quote:
Originally Posted by padraig View Post
its caused by a missing:
/opt/zimbra/jetty/work/zimbra/jsp/org/apache/jsp/tag/web/mobile/moAttachments_tag.class

beware of removing /opt/zimbra/jetty/work/* to solve the ssh

system failure: exception during auth {RemoteManager: zimbra.snp.org->zimbra@zimbra.snp.org:22}
Well, if you search the forums for "Internal Server Error" you'll see that doing an rm -rf /opt/zimbra/jetty/work/* is a recommended step in the fix.

We are having this internal server error problem now with html clients after cleaning out the jetty work directory for another (java memory consumption) issue.

I see in the logs the system complains about a missing dislayMessage_tag.class file

How can this file be restored?

Thanks,
Mark
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | data storage
Reply With Quote
  #4 (permalink)  
Old 04-14-2008, 01:00 PM
Moderator
 
Posts: 5,806
Default

Mark, if you have a backup the file is here
Code:
[zimbra@office tmp]$ find /opt/zimbra -name displayMessage_tag.class 2>/dev/null
/opt/zimbra/jetty-6.1.5/work/zimbra/jsp/org/apache/jsp/tag/web/message/displayMessage_tag.class
as long as you are on 5.0.4 as between releases could be a different jetty version!
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
  #5 (permalink)  
Old 04-14-2008, 01:17 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

Guys-
JSP is a compiled at runtime programming language. This is different than PHP. PHP compiles on the fly, then sends back the compiled version to the browser.

JSP compiles pages, stores them in the work directory as a cache incase another user calls it.

If a file is missing from the work dir, it means that the jsp page isn't compiling correctly.

So, the problem isn't really that the file is missing...it's missing because it's not getting compiled.

Did you restart mailboxd? We had this issue back in 5.0.2
Reply With Quote
  #6 (permalink)  
Old 04-14-2008, 01:18 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

re:
Quote:
beware of removing /opt/zimbra/jetty/work/* to solve the ssh
He's right in a sense. Removing the work dir wouldn't solve the ssh key mgmt issue..It doesn't hurt anything. If anything in the work dir is missing, the server will recompile it.
Reply With Quote
  #7 (permalink)  
Old 04-14-2008, 01:24 PM
Moderator
 
Posts: 5,806
Default

Quote:
Originally Posted by jholder View Post
If a file is missing from the work dir, it means that the jsp page isn't compiling correctly.
John, when a error message pops up in the logfiles for things like this, how can we help to debug it ?
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
  #8 (permalink)  
Old 04-14-2008, 01:29 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

Quote:
Originally Posted by uxbod View Post
John, when a error message pops up in the logfiles for things like this, how can we help to debug it ?
That's the tricky part

Stop mailbox
clear work dir
turn up debugging (sever ajax problems)
start mailbox

Look for the exception before the fnf error. It should give a compiling error. Let's see why it can't compile
Reply With Quote
  #9 (permalink)  
Old 04-14-2008, 01:35 PM
Moderator
 
Posts: 511
Default

Quote:
Originally Posted by uxbod View Post
Mark, if you have a backup the file is here
Code:
[zimbra@office tmp]$ find /opt/zimbra -name displayMessage_tag.class 2>/dev/null
/opt/zimbra/jetty-6.1.5/work/zimbra/jsp/org/apache/jsp/tag/web/message/displayMessage_tag.class
as long as you are on 5.0.4 as between releases could be a different jetty version!
Thanks Uxbod. I restored the missing class file from a backup, restarted the mailbox and now it works.

Mark

P.S. You may want to change:
Code:
[zimbra@office tmp]$ find /opt/zimbra -name displayMessage_tag.class 2>/dev/null
to

Code:
[zimbra@office tmp]$ find /opt/zimbra/jetty -name displayMessage_tag.class 2>/dev/null
to avoid searching the store and database directories, which on a production might take a while... :-)
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | data storage
Reply With Quote
  #10 (permalink)  
Old 04-14-2008, 01:38 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

Quote:
Originally Posted by LMStone View Post
Thanks Uxbod. I restored the missing class file from a backup, restarted the mailbox and now it works.

Mark

P.S. You may want to change:
Code:
[zimbra@office tmp]$ find /opt/zimbra -name displayMessage_tag.class 2>/dev/null
to

Code:
[zimbra@office tmp]$ find /opt/zimbra/jetty -name displayMessage_tag.class 2>/dev/null
to avoid searching the store and database directories, which on a production might take a while... :-)
BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD

You're addressing the symptom and not the problem. It's only a matter of time before the cache is cleared, and the compiling fails again
BAD BAD BAD BAD
Reply With Quote
Reply


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

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0