Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
  #1 (permalink)  
Old 05-18-2008, 12:26 PM
lucaspr lucaspr is offline
Junior Member
 
Join Date: Mar 2008
Location: Netherlands
ZCS Version: Zimbra 5.0.5 on Ubuntu 8.04
Posts: 2
lucaspr is on a distinguished road
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
phoenix phoenix is online now
Zimbra Employee
 
Join Date: Sep 2005
Location: Vannes, France
Posts: 7,408
phoenix is on a distinguished road
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
lucaspr lucaspr is offline
Junior Member
 
Join Date: Mar 2008
Location: Netherlands
ZCS Version: Zimbra 5.0.5 on Ubuntu 8.04
Posts: 2
lucaspr is on a distinguished road
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
Bill Brock Bill Brock is offline
Elite Member
 
Join Date: May 2007
Location: Oklahoma
ZCS Version: 5.0.6_GA_2313.openSUSE_10.2_20080522133539 openSUSE_10.2 FOSS
Posts: 366
Bill Brock is on a distinguished road
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
uxbod's Avatar
uxbod uxbod is offline
Moderator
 
Join Date: Nov 2006
Location: Northampton, UK
ZCS Version: Release 5.0.7_GA_2450.RHEL5_20080630192737 CentOS5 NETWORK edition (Unsupported OS)
Posts: 1,354
uxbod is on a distinguished road
Send a message via MSN to uxbod
Default

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

Also, Don't forget to update your profile please so we know what version of ZCS you are running
__________________
Server | CentOS 5.1 | Dual Opteron 250 | Tyan K8W Mobo | 6GB RAM | 3WARE 9550-SX4 | 4 x Samsung 200GB SATA II |
Zimbra | Release Release 5.0.7_GA_2450.RHEL5_20080630192737 NETWORK edition running under Xen 3.2.1 CentOS 5.2 i386 VM |
Network | Cisco 877 Router - Cisco ASA 5505 FW - Cisco 1131AP |
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to find version of zimbra in /opt/zimbra? (moving from 4 to 5) dillera Installation 3 01-21-2008 02:47 PM
Sharing and rights to share twickle Administrators 0 11-27-2007 05:16 AM
Find the version of zimbra from /opt/zimbra jonnyRo Administrators 3 05-08-2007 11:30 AM
Emails Queue Fatal Error ( /opt/zimbra/.ssh/zimbra_identity don't exist) koby Installation 26 04-02-2007 03:00 PM
Set user with Send and Receive rights on all accounts CatiaL Zimbra Connector for Outlook 0 12-04-2006 04:33 AM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.0.0