Results 1 to 8 of 8

Thread: Live server picked up settings from Test server

  1. #1
    The Fold is offline Senior Member
    Join Date
    Mar 2007
    Location
    London, UK
    Posts
    50
    Rep Power
    8

    Exclamation Live server picked up settings from Test server

    I had a test server setup using some data from our live server. Our live server suddenly stopped working and taking a look at the logs looked as if it was attempting to act as if it was the test server I'd setup.

    I couldn't find any evidence of any configuration files having been changed but I have a hunch that LDAP somehow replicated and caused this issue.

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    What sort of data did you migrate to the test server, and how did you do it ?
    Code:
    su - zimbra
    zmlocalconfig | grep -i ldap
    does that contain any of the production settings ? What do your Log Files - Zimbra :: Wiki show ?

  3. #3
    The Fold is offline Senior Member
    Join Date
    Mar 2007
    Location
    London, UK
    Posts
    50
    Rep Power
    8

    Default

    I restored a full backup of the live server and performed a zmsetservername and permission fix on the restored copy.

    As I'm currently trying to fix this issue I can't run a zmlocalconfig | grep -i ldap as it will be referring to yesterdays backup.

    I'm currently attempting a copy of the store, db, index, and postfix folders from the broken install over the new install.

    My thinking the issue was ldap related stems from when I performed an export it had the settings for the test server in the ldif file.

  4. #4
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Did you follow ZmSetServerName - Zimbra :: Wiki as it has a few checks in there aswell.

  5. #5
    The Fold is offline Senior Member
    Join Date
    Mar 2007
    Location
    London, UK
    Posts
    50
    Rep Power
    8

    Default

    I followed that page to perform the rename process on the test server, all was working ok but then the live server stopped working and checking the logs showed mail trying to relay through the test server.

    I found the following thread which seems very much like the problem I was experiencing.

    Problem starting up Zimbra

    I managed to get everything working again by restoring everything except the db, store, index and data folders to the working directory and then copying these folders over from the broken install.

    It does seem to be working ok, I am however now getting messages in the logs from slapd saying:

    Code:
    May 21 09:53:18 zimbra slapd[12427]: bdb(): Lock table is out of available locker entries
    May 21 09:53:18 zimbra slapd[12427]: bdb_db_cache: db_open(displayName) failed: Cannot allocate memory (12)
    May 21 09:53:18 zimbra slapd[12427]: <= bdb_substring_candidates: (displayName) index_param failed (12)

  6. #6
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Take a look at Performance Tuning Guidelines for Large Deployments - Zimbra :: Wiki and the section "Configuring the BDB subsystem to increase LDAP server performance" for tuning the number of lockers.

  7. #7
    The Fold is offline Senior Member
    Join Date
    Mar 2007
    Location
    London, UK
    Posts
    50
    Rep Power
    8

    Default

    I took a look at that and I don't think I should be having an issue

    Code:
    # /opt/zimbra/sleepycat/bin/db_stat -c -h /opt/zimbra/openldap-data | head -n 12
    
    db_stat: Ignoring log file: /opt/zimbra/openldap-data/logs/log.0000000008: magic number 0, not 40988
    db_stat: DB_ENV->log_put: 8: Invalid argument
    db_stat: dbenv->close: Invalid argument
    11228   Last allocated locker ID.
    2147M   Current maximum unused locker ID.
    9       Number of lock modes.
    3000    Maximum number of locks possible.
    1500    Maximum number of lockers possible.
    1500    Maximum number of lock objects possible.
    25      Number of current locks.
    163     Maximum number of locks at any one time.
    1499    Number of current lockers.
    1500    Maximum number of lockers at any one time.
    20      Number of current lock objects.
    93      Maximum number of lock objects at any one time.
    EDIT: My bad, I didn't see the
    Code:
    1499    Number of current lockers.
    1500    Maximum number of lockers at any one time.

  8. #8
    The Fold is offline Senior Member
    Join Date
    Mar 2007
    Location
    London, UK
    Posts
    50
    Rep Power
    8

    Default

    Ok, so at about 11:30 this morning ldap decided it would die altogether saying it couldn't recover and to restore from a backup. I had altered my max locker size in DB_CONFIG but I hadn't yet restarted.

    I restored the openldap-data folder from a backup made a couple of days ago and everything is now back to normal, I'm not getting any messages from ldap at all.

    I'm still curious however as to how this all happened in the first place.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  2. Replies: 0
    Last Post: 05-13-2008, 12:53 AM
  3. [SOLVED] Multi Server - DNS - Imapproxy
    By innercy in forum Installation
    Replies: 1
    Last Post: 12-29-2007, 10:21 PM
  4. Installation Problem - Possibly LDAP
    By geroshea in forum Installation
    Replies: 5
    Last Post: 03-16-2007, 04:47 AM
  5. Send mail to test server, not working
    By eXtremeSG in forum Administrators
    Replies: 10
    Last Post: 02-16-2006, 08:40 AM

Posting Permissions

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