Results 1 to 4 of 4

Thread: cant get zimbra to start again after problems with permissions

  1. #1
    maxigs is offline Member
    Join Date
    Mar 2006
    Posts
    10
    Rep Power
    9

    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:
    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:
    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

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,483
    Rep Power
    56

    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.
    Last edited by phoenix; 12-01-2007 at 10:04 AM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    maxigs is offline Member
    Join Date
    Mar 2006
    Posts
    10
    Rep Power
    9

    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:

    ...
    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:
    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

  4. #4
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Clamav problem ? What's happening ?
    By aNt1X in forum Installation
    Replies: 23
    Last Post: 02-14-2008, 05:43 AM
  2. [SOLVED] Error Installing Zimbra on RHEL 5
    By harris7139 in forum Installation
    Replies: 10
    Last Post: 09-25-2007, 11:39 AM
  3. Getting problems in FC4 while instalation
    By kitty_bhoo in forum Installation
    Replies: 13
    Last Post: 09-12-2006, 10:34 PM
  4. Logger
    By jholder in forum Installation
    Replies: 24
    Last Post: 03-31-2006, 11:50 AM
  5. Mail logs
    By Rick Baker in forum Installation
    Replies: 8
    Last Post: 01-17-2006, 04:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •