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 12-01-2007, 08:39 AM
Member
 
Posts: 10
Default cant get zimbra to start again after problems with permissions

i'm already spending all day trying to figure out what could be the problem, but i dont get any further yet.
since its a production server, im a bit in a hurry to get it to work again. i hope you guys can help me to figure out whats going wrong.

what happend: server was runing fine on 4.5.9 untill today, yet the logger module did not work.
following the sugestions in the wiki i tried to fix the permissions, which gave me errors (as zimbra user ist was not allowed to change the permissions and as su there seemed to be some folders missing).
out of stupidity i just chmod -R zimbra /opt/zimbra the whole thing, which seemed to be a bad mistake.

i already re-installed the server (also as 4.5.10). and with a fresh install its running fine again, yet the moment when i put my /opt/zimbra back in it fails updating/starting the servers.

the zmsetup.pl always gets stuck at "starting mysql"

zmcontrol start pretends to start the server:
Code:
zimbra@server1:~$ zmcontrol start
Host maxigs.net
	Starting ldap...Done.
Unable to determine enabled services from ldap.
Enabled services read from cache. Service list may be inaccurate.
	Starting logger...Done.
	Starting mailbox...Done.
	Starting antispam...Done.
	Starting antivirus...Done.
	Starting snmp...Done.
	Starting spell...Done.
	Starting mta...Done.
	Starting stats...Done.
yet:
Quote:
zimbra@server1:~$ zmcontrol status
Unable to determine enabled services from ldap.
Enabled services read from cache. Service list may be inaccurate.
Host maxigs.net
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Stopped
mysql.server is not running
tomcat is not running
mta Running
snmp Running
spell Running
stats Stopped
You have new mail in /var/mail/zimbra
trying to connecto to mysql looks like this:
Quote:
zimbra@server1:~$ mysql mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/zimbra/db/mysql.sock' (2)
You have new mail in /var/mail/zimbra
normally since the mysql server never started....


so short guess:

some folders still have the wrong permission settings so the services cant start

zmfixperms runns without errors since i added a missing (empty?) folder, but this did nor really change the problem.



i'm only a second away from reverting to a recent backup - yet i'm afraid to loose the mail data since, the backup was before a couple of new mailaccounts have been added
Reply With Quote
  #2 (permalink)  
Old 12-01-2007, 08:55 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

So you have a backup copy of /opt/zimbra from your 4.5.9 installation? What you should do is to stop mail delivery by blocking port 25 on your firewall (if you have that). Remove the current install of 4.5.10 with 'install.sh -u' then reinstall 4.5.9 - when you've done that copy your /opt/zimbra directory over the new install then (as root) run the /opt/zimbra/ibexec/zmfixperms script. Next, install the 4.5.9 again over your current set-up. when you've done that you should be back to a working system (or relatively close). Post again when you done all that and once the system is up again you'll open port 25 in the firewall.
__________________
Regards


Bill

Last edited by phoenix; 12-01-2007 at 09:04 AM..
Reply With Quote
  #3 (permalink)  
Old 12-01-2007, 10:19 AM
Member
 
Posts: 10
Default

thanks phoenix,

except of the port 25 blocking (no firewall on the server) i've been following your guide.
yet the system ist not completely up again.

after the clean re-install of the 4.5.9 the server was up and running clean.

i shut it down and replaced the /opt/zimbra with the one from the backup (but it was from after my chown -R zimbra mistake as mentioned before) and let the zmfixperms script run.
the installation went almost fine, yet there was a little error:

Quote:
...
Setting defaults...Done
Setting defaults from existing config...Checking for port conflicts
Port conflict detected: 80 (zimbra-store)
Port conflicts detected! - Any key to continue
...
(my zimbra http port is normally 8080, which should have been in the old configs as well as in the config of the clean install)
yet the installation went on normally and finished (at least pretended to)

but:
Quote:
zimbra@server1:~$ zmcontrol status
Host maxigs.net
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Stopped
mysql.server is not running
tomcat is not running
mta Running
snmp Running
spell Running
stats Stopped
You have new mail in /var/mail/zimbra

the not running tomcat might be because of the port conflict but mysql still did not start
Reply With Quote
  #4 (permalink)  
Old 12-01-2007, 12:26 PM
Moderator
 
Posts: 6,237
Default

Quote:
Originally Posted by maxigs View Post
after the clean re-install of the 4.5.9 the server was up and running clean.
When you did this 'clean install' did you run ./install.sh -s ? This tells the installer to only install the software, and not to configure the installation.
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.