| 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.
|  | | 
06-16-2006, 05:40 PM
| | Zimbra Employee | |
Posts: 274
| | mystery solved: unclean shutdown causes redo.log to be owned by root:root Today we finally tracked down why on unclean shutdown of the tomcat JVM (mailbox server process) would cause redo.log and even some other files to be owned by root:root.
Turns out there is a bug in linux kernel circa 2.6.5 (can't find a specific bug report on it) which would cause threads created before a setuid() call to have wrong privileges. (See zimbra bug 8158 for details.)
This was showing up on our SuSE Linux Enterprise Server v9 build box. We just upgraded the SLES box and problem is fixed in the latest kernel on SLES9.
I know this has come up and forums a few times, specially with Debian. So be sure to check your kernel version - because to be security hygienic you really don't want those threads running root privileged. | 
06-19-2006, 01:28 AM
| | | Vindicated! Ha-HA! and you guys thought I was just some kind of looney (with reference to my bugzilla report). Nice one, good to know you guys have got a bit of terrier in you (won't let go until it's dead) 
Last edited by Crexis; 06-20-2006 at 12:22 AM..
| 
06-19-2006, 09:11 AM
| | Former Zimbran | |
Posts: 5,606
| | Loony Toon  j/k
Good job | 
07-13-2006, 01:23 AM
| | | I do not know if this is the right place for comments, but please read this. I have noticed several times that files in opt/zimbra/amavisd/.spamassassin/ directory have incorrect permissions, in fact the same you mentioned (owned by root/root, read only). This happens quite randomly, let's say once a month. I do not think it is related with Zimbra shutdown or restart, it just happens while Zimbra is running. As an effect, bayes stops working, while other spamassassin tests work, just as DSPAM does. After I manually set permissions back to zimbra/zimbra, bayes will start working, no need to restart Zimbra. I am using Centos 4.3 with 2.6.9-34.0.1 kernel, which is much newer version than you suspect to cause the bug. Today I got notification from Centos and upgrading to 2.6.9-34.0.2. Later I will see, it this helped, but as I wrote above, problem appears to be very random.
Does anyone here have the same problem? And is it related to the bug mentionded in this thread? | 
08-03-2006, 05:14 PM
| | Project Contributor | |
Posts: 58
| | Shutdown ? Quote: |
Originally Posted by PNE I do not know if this is the right place for comments, but please read this. I have noticed several times that files in opt/zimbra/amavisd/.spamassassin/ directory have incorrect permissions, in fact the same you mentioned (owned by root/root, read only). This happens quite randomly, let's say once a month. I do not think it is related with Zimbra shutdown or restart, it just happens while Zimbra is running. As an effect, bayes stops working, while other spamassassin tests work, just as DSPAM does. After I manually set permissions back to zimbra/zimbra, bayes will start working, no need to restart Zimbra. I am using Centos 4.3 with 2.6.9-34.0.1 kernel, which is much newer version than you suspect to cause the bug. Today I got notification from Centos and upgrading to 2.6.9-34.0.2. Later I will see, it this helped, but as I wrote above, problem appears to be very random.
Does anyone here have the same problem? And is it related to the bug mentionded in this thread? | Ciao,
I'm testing zimbra since a week, but will try to contribute...
With the startup script included in /opt/zimbra/libexec/zimbra service will never shutdown in a clean way under RHEL and Centos.
In this way you could loose your file permission and have a strange modification in zimbra config files.
Seem to have solved creating a semaphore file under /var/lock/subsys. Testing with kernel 2.6.9-34.0.2smp
My startup/shutdown script is attached, just the modified part without comments and license
Greetings
Claudio | 
08-07-2006, 04:27 AM
| | | Claros thanks for your help. And for Zimbra staff - can you please check Claros' solution and confirm the problem itself and this one solution?
It seems to me that you consider this "mysterious problem" solved (no one posted anything after my post since almost one month ago), but for sure it is not! Just today my Zimbra instal got stuck just because permissions on amavisd/.spamassassin/ got corrupted again (see my last post for more). The result was long timeouts for content checking and subsequently overall server performance drop/overload/jam. Messages not passing through, users complaining etc... Really bad monday morning. | 
08-11-2006, 11:22 AM
| | Zimbra Employee | |
Posts: 4,792
| | PNE, claros - What Distro and version are you running and what is the exact Kernel version?
To date we've only seen this on SuSE and Debian. SuSE kernel upgrade fixes it. Debain doesn't have a patch available yet. | 
08-14-2006, 07:09 AM
| | | Running 3.1.4 GA on fully patched Centos 4.3, kernel 2.6.9-34.0.2, as I wrote in one of posts above. | 
08-15-2006, 10:39 PM
| | Zimbra Employee | |
Posts: 4,792
| | Quote: |
Originally Posted by PNE Running 3.1.4 GA on fully patched Centos 4.3, kernel 2.6.9-34.0.2, as I wrote in one of posts above. | Can you reproduce this everytime? I assume you installed the RedHat EL4 build on CentOS right? | 
08-16-2006, 01:58 AM
| | | I don't know if the naming is right, but I've downloaded and installed CentOS 4.2 Server CD, just necessary services + GUI (X-Window + Gnome), then updated using yum to 4.3. CentOS Server distribution is described at centos.org. I think many users here use the same OS.
No, I cannot reproduce this behaviour. I don't know next time the problem will occur. It happens occasionally let's say once or twice a month, it has happenned overnight or in daytime, without restarting Zimbra or OS. | | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |