Microsoft KB Archive/830408

= Store databases are dismounted without warning or users cannot log on to their mailboxes in Exchange Server 2003 or in Exchange 2000 Server =

Article ID: 830408

Article Last Modified on 10/25/2007

-

APPLIES TO


 * Microsoft Exchange Server 2003 Enterprise Edition
 * Microsoft Exchange Server 2003 Standard Edition
 * Microsoft Exchange 2000 Server Standard Edition

-



SYMPTOMS
In Microsoft Exchange Server 2003 or in Microsoft Exchange 2000 Server, you experience the following symptoms.

Symptom 1
You notice that Exchange store databases are dismounted without warning on a computer that is running any of the following items:
 * Microsoft Exchange Server 2003 Service Pack 1 (SP1)
 * The August 2004 Exchange 2000 Server post-Service Pack 3 update rollup

When you try to mount a dismounted Exchange database in Exchange System Manager, you receive an error message that resembles the following error message:

An internal processing error has occurred. Try restarting the Exchange System Manager or the Microsoft Exchange Information Store service, or both.

ID no: c1041724

Exchange System Manager

Additionally, the following events are logged in the Application log: Event ID: 1159

Event Type: Error

Event Source: MSExchangeIS

Event Category: General

Description: Database error 0xfffffdf9 occurred in function JTAB_BASE::EcEscrowUpdate while accessing the database &quot;First Storage Group\Mailbox Store (SERVER)&quot;.

Event ID: 9518

Event Type: Error

Event Source: MSExchangeIS

Event Category: General

Description: Error 0xfffffddc starting Storage Group Path_of_Storage_Group on the Microsoft Exchange Information Store. Storage Group - Initialization of Jet failed.

Symptom 2
In the original release version of Exchange Server 2003 or in versions of Exchange 2000 Server that are not running the August 2004 Exchange 2000 Server post-Service Pack 3 update rollup, users who have mailboxes in a particular storage group start to experience logon failures or other failures.

This problem occurs when the users connect to their Exchange 2000 Server mailboxes or to their Exchange Server 2003 mailboxes. Although the store databases are still mounted, these databases become inaccessible.

Additionally, an event that resembles the following event is logged in the Application log: Event Type: Error

Event Source: MSExchangeIS Mailbox

Event Category: Logons

Event ID: 1022

Description: Logon Failure on database.

Error: -519



CAUSE
This problem may occur if Exchange Server has used all the transaction logs that are available to a storage group.

Exchange uses transaction log files that are numbered sequentially. The first file name in the transaction log file sequence is &quot;E  00001.log.&quot; The file names increase sequentially to &quot;E   ffff0.log.&quot;

Note In this log file name,  is the number of the storage group.

The maximum number of transaction log files that can be generated in a single sequence is 1,048,560 (0xFFFF0).

When the last transaction log is filled, the Microsoft Jet database engine returns error &quot;-519 (JET_errLogSequenceEnd)&quot; to the store. This error causes the symptoms in the different versions of Exchange that are mentioned in the &quot;Symptoms&quot; section.



WORKAROUND
To work around this problem, reset the log sequence.

To do this, you must move all existing transaction logs to another location. After you do this, a new sequence of log files that starts with 0x00001 is generated.

Important Before you move the transaction logs, you must verify that all databases in the storage group are in a Clean Shutdown state. To do this and to reset the log file sequence, follow these steps:  Mark all the databases in the affected storage group to not mount on startup. To do this, follow these steps:  Click Start, point to Programs, point to Microsoft Exchange, and then click System Manager. Expand Organization, click Servers, click  , click Information Store, and then click  . Right-click, and then click Properties. Click the Database tab. Click to select the Don't mount this store at start-up check box.</ol> </li> Kill the store to dismount the database that could not be dismounted.

To download the latest version of the Debugging Tools for Windows package, visit the following Microsoft Web site:

http://www.microsoft.com/whdc/devtools/debugging/default.mspx

</li> Restart the store so that other storage groups can be mounted.</li> Run eseutil /r on all the databases that are in the affected storage group.</li> Verify that the databases were in a Clean Shutdown state. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> In Exchange System Manager, right-click the first store in the storage group that has run out of transaction log files, and then click Properties.</li> Click the Database tab, and then note the paths and the file names of the database files in the Exchange database box and in the Exchange streaming database box.

Each Exchange database is composed of a paired set of files that have the .edb file name extension and the .stm file name extension.

Repeat this step for each store in the storage group.</li> At a command prompt, move to the Exchange Server bin folder. For example, move to the C:\Program Files\Exchsrvr\bin.</li> Type Eseutil /mh, and then press ENTER.

Repeat this step for each database in the storage group. This command displays the database file header. The header contains one of the following lines: <ul> State: Clean Shutdown</li> State: Dirty Shutdown</li></ul> </li></ol> </li> Move logs and checkpoint files to another location in case a recovery is required from an old database. The log files have the .log file name extension. The checkpoint files have the .chk file name extension.</li> Mount all the databases in the storage group.</li> Click to clear the Don't mount this store at start-up check box for all the databases in the affected storage group.</li> The storage group must be backed up when delivery settles down on this computer because you cannot recover log files past the new log file generation point.</li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

<div class="moreinformation_section">

Hotfix to help identify the problem
Microsoft has created a hotfix for Exchange 2000 Server to help identify the problem. After you apply this hotfix, the store databases dismount when the Microsoft Jet database engine returns the &quot;-519 (JET_errLogSequenceEnd)&quot; error. This behavior helps Exchange Server administrators quickly identify the problem storage group.

This hotfix is also included in the following items:
 * The August 2004 Exchange 2000 Server post-Service Pack 3 update rollup
 * Exchange Server 2003 SP1

After you apply the hotfix, the update rollup, or the service pack, you still must manually reset the log files. To do this, see the steps in the &quot;Workaround&quot; section.

Prerequisites
You must install Exchange 2000 Server Service Pack 3 (SP3) before you apply the hotfix.

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

301378 How to obtain the latest Exchange 2000 Server service pack

Restart information
You do not have to restart the computer after you apply the hotfix. However, the Microsoft Exchange Information Store service and all dependent services will be stopped and then restarted.

File information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

Hotfix to configure Exchange to log an event before it reaches the end of the log file sequence
To help prevent this problem from occurring, you can apply the hotfix that is described in the following Microsoft Knowledge Base article:

896001 An event is not logged in the Application log before the last available transaction log in the sequence is used in Exchange 2000 Server

This hotfix (hotfix 896001) is included in Exchange Server 2003 SP2.

After you apply hotfix 896001 or Exchange Server 2003 SP2, an event that resembles the following event is logged in the Application log when the last available transaction log in the sequence becomes available:

Event Type: Warning

Event Source: ESE

Event Category: Logging/Recovery

Event ID: 514

Description: Information Store (2748) SG2: Log sequence numbers for this instance have almost been completely consumed. To begin renumbering from generation 1, the instance must be shutdown cleanly and all log files must be deleted. Backups will be invalidated.

Issues that occur after you apply hotfix 896001 or install Exchange Server 2003 SP2
You apply hotfix 896001 for Exchange 2000 Server, or you install Exchange Server 2003 SP2. You use the available transaction log files. You then try to mount the stores without performing the steps that are described in the &quot;Workaround&quot; section of this article.

When you do this, events that are similar to the following events may be logged in the Application log: Event Type: Error

Event Source: MSExchangeIS

Event Category: General

Event ID: 1159

Description: Database error 0xfffffdf9 occurred in function JTAB_BASE::EcEscrowUpdate while accessing the database &quot;First Storage Group\Mailbox Store (SERVER)&quot;.

Event Type: Error

Event Source: MSExchangeIS

Event Category: General

Event ID: 9518

Description: Error 0xfffffddc starting Storage Group  on the Microsoft Exchange Information Store.

Storage Group - Initialization of Jet failed.

<div class="references_section">