Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

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 05-18-2008, 12:26 PM
Awaiting Activation
 
Posts: 3
Question rights on/in /opt/zimbra

Hi all,

My first post here.. Installation went fine, but this evening I made a terrible and horrible dumb mistake. The (for me terrible story..):

I went to my home pc and wanted to check my mail.. This is where Zimbra comes in action (for a couple of weeks, without a problem!) but not tonight! Zimbra wasn't running anymore.. no problem, zmcontrol start is executed quickly enough. Some error about disk space being insufficient.

My first guess was: That can't be true, I've got plenty of space.. (Just 1 mailbox at the time and a 250 Gb disk.... Nothing more installed on that disk). Maybe is it all about writing permissions? This is where things took a turn for the worst.. This is the point of where I executed the following command (what the f*** was I thinking?):

sudo chmod 777 /opt/zimbra -R ......

Yes, I executed that command. After that it still complained about the disk space, so I started thinking. It crossed my mind that I connected a 250 Gig external USB disk and made a backup to that disk. Including my striped disk set (some important folder with photo's and video's). Could it be that my usb.... oh my god, It is in front of me.. Not connected to my server anymore and a crontab which starts the backup. Why didn't I think of that and why is it disconnected?

That guess was the solution to the disk space problem. 225 Gb deleted and everything went smooth again... Except for Zimbra. Complaining about permissions.. And I don't know the default permissions. Well time for my fabulous backup.. Ohw that's the thing why it is disconnected.. It was partitioned wrong.

So now I'm stuck with my permission settings of zimbra. How can I get it to work again? Who should be the owner of what file? And what permissions should I set to which files? That's the question.....
Reply With Quote
  #2 (permalink)  
Old 05-18-2008, 12:45 PM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

You need to reset the permissions on /opt/zimbra run the following (as root)

Code:
chown -R zimbra:zimbra /opt/zimbra
/opt/zimbra/libexec/zmfixperms -verbose -extended
then restart zimbra with a 'zmcontrol start', that should fix it but if there's still any errors then look in the log files.
__________________
Regards


Bill

Last edited by phoenix; 05-18-2008 at 10:32 PM..
Reply With Quote
  #3 (permalink)  
Old 05-18-2008, 01:27 PM
Awaiting Activation
 
Posts: 3
Default Thanx!

Thanx for the quick reply!

Now the only thing is the MySQL server. It wil not start.
Code:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/zimbra/db/mysql.sock' (2)
I did read something about this error, but didn't find any solution. Could you help me once again??
Reply With Quote
  #4 (permalink)  
Old 05-19-2008, 02:10 AM
Outstanding Member
 
Posts: 684
Default

Check for the existence of the mysql.sock file and that it belongs to zimbra. it also need rwxrwxrwx perms.
Reply With Quote
  #5 (permalink)  
Old 05-19-2008, 02:31 AM
Moderator
 
Posts: 7,928
Default

Also take a look at /opt/zimbra/logger/db/.err to ensure that none of your tables are corrupt aswell.

Also, http://www.zimbra.com/forums/announc...r-profile.html please so we know what version of ZCS you are running
__________________
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.