Limit Search by Category:     Advanced search
Browse by category:

QMS Log showing Malformed database, or file is encrypted or is not in database

Add comment
Views: 5554
Votes: 11
Comments: 0
Posted: 23 Aug, 2007
by: Maughan E.
Updated: 12 Jan, 2010
by: Quintero R.
APPLIES TO:

GWAVA 4
NETWARE 6.5, 6, 5.1
LINUX OES, SLES9.3, SLES10.x (this info is forth-coming)

SYMPTOMS:

No mail in Quarantine back to a certain date
Error in QMS log or on console, "Database is malformed…"
Error in QMS log or on console, "DB Error: file is encrypted or is not a database"
Error in QMS log or on console, "Failed to Write Records: Error 9"

FIX:



NEW ARTICLE to simplify the QMS rebuilding process:

TO REBUILD the QMS Database without stopping mail flow or creating additional files, try the following link:

http://support2.gwava.com/kb/?View=entry&EntryID=235




continued...


NOTE:  If the QMS sync does not work, try the QMS Rebuild section in the lower half of this article.

In this case the QMS database has become corrupted and GWAVA can no longer place items into the Quarantine system.  To fix this the QMS database must be restored back to a time prior to corruption.  If that is not possible, a complete rebuild of the database will be required.

1.    Shutdown GWAVA4 by executing the GWAVADN.NCF from the server console.
2.    Browse to the directory GWAVA4 was installed to, by default, <volume>:/OPT/BEGINFINITE/GWAVA/SERVICES/QMS/DATA, and rename the QMS_DATA.DB file.
3.    In the same directory location, browse to the BACKUP directory.  Using the most recent YYYYMMDD.zip file, extract the backed up QMS_DATA.DB file, and put it in place of the file renamed above.

NOTE:  Because the original database is being replaced by an older one, only records of mail stored up to the date of the backup are in the replaced database.  It is necessary to "SYNC" the database with the storage area, so the system may add all of the new entries and bring the Quarantine database up to date.

4.    Next, create a new NCF file called QMSSYNC.NCF in <GWAVA4>/ASSETS/BIN directory.  Open the GWAVAUP.NCF file and copy the following lines (your paths may be different) from the GWAVAUP.NCF into the new QMSSYNC.NCF.

LOAD address space=GWAVA4CFG SYS:\OPT\BEGINFINITE\GWAVA4\ASSETS\BIN\gwavaman /ConsoleLog /Root=SYS:\OPT\BEGINFINITE\GWAVA4
LOAD address space=GWAVA4QMS SYS:\OPT\BEGINFINITE\GWAVA4\ASSETS\BIN\gwavaqms /ConsoleLog


NOTE: All of the other lines are not necessary.  Only GWAVAMAN and GWAVAQMS are needed for DB maintenance

Edit the 2nd line (QMS) to read as such:

LOAD address space=GWAVA4QMS SYS:\OPT\BEGINFINITE\GWAVA4\ASSETS\BIN\gwavaqms /recovery=sync /recoverdays=n /ConsoleLog

NOTE:  The /recoverdays is not necessary, but can be used to sync up to a certain amount of days if you don't need to go back through the entire storage system.

For the switch recoverdays=n, enter in a number for n on how many days you would like to sync back into the system.
For example: recoverdays=14.

This will recover 14 days of Quarantined messages.

SAVE THE FILE and exit.
   
5.    Run QMSSYNC.NCF at the server prompt.



NOTE:  Be patient here.  This part can be short or long.  It has taken as little as 2-3 minutes, and as long as 20 or more.  After a little time, the GWAVAQMS screen will show progress as it counts the number or records and how many inconsistencies.

6.    After the GWAVAQMS console screen shows the SYNC is complete, type GWAVADN.NCF at the console prompt.



7.    Now load all of GWAVA by executing GWAVAUP.NCF at the console.
8.    After loading is complete, login to GWAVAQMS and verify the items have been fixed/restored.

There are a few more options that can be used as well in the /recovery option.  SYNC is covered in this article, REBUILD can be used to create a new qms_data.db, the old one will be renamed, and finally SALVAGE, this one is not used often, but can repair a damaged database.  It is recommended that these be used under the direction of GWAVA technical support.



HOW TO REBUILD THE QMS DATABASE 


IF the SYNC does not work, or you are directed by support, you may also try rebuilding the database.  To rebuild your QMS database, do the following:

1.  Unload GWAVA4 by typing "gwavadn" at the system console.

2.  Create a new NCF file called QMSREBUILD.NCF in <GWAVA4>/ASSETS/BIN directory.  Open the GWAVAUP.NCF file and copy the following lines (your paths may be different) from the GWAVAUP.NCF into the new QMSREBUILD.NCF.

LOAD address space=GWAVA4CFG SYS:\OPT\BEGINFINITE\GWAVA4\ASSETS\BIN\gwavaman /ConsoleLog /Root=SYS:\OPT\BEGINFINITE\GWAVA4
LOAD address space=GWAVA4QMS SYS:\OPT\BEGINFINITE\GWAVA4\ASSETS\BIN\gwavaqms /ConsoleLog


NOTE: All of the other lines are not necessary.  Only GWAVAMAN and GWAVAQMS are needed for DB maintenance

3.  Edit the 2nd line (QMS) to read as such:

LOAD address space=GWAVA4QMS SYS:\OPT\BEGINFINITE\GWAVA4\ASSETS\BIN\gwavaqms /recovery=rebuild /ConsoleLog

4.  Type "qmsrebuild" at the console prompt to launch the rebuild function.  Only GWAVAMAN and GWAVAQMS consoles should start.



To view the progress of the rebuild, switch to the GWAVAQMS screen on the server.  It should look like the following:

NOTE:  "Maximum age of imported message is 7 days" is set to whatever your qms retention days are set to.



5.  After the GWAVAQMS console screen shows the REBUILD is complete, type GWAVADN.NCF at the console prompt.



6.  Type "gwavaup" to bring gwava completely back up.

If you still are having problems with QMS after attempting the rebuild, it is recommeded to contact GWAVA technical support for assistance.
Others in this Category
document Cannot Access Quarantine or Release Messages From Digest Outside of the Network
document Recreating QMS databases
document Users getting duplicate digest reports.
document Users Cannot Login to Quarantine Manager
document Using LDAP Authentication to Log into GWAVA QMS
document Running a GWAVAQMS Sync on Linux
document Access denied or session expired messages when users try to login to QMS
document Quarantine Database is Malformed, or Missing Messages. Rebuild QMS Without Mail Flow Interruption.
document Quarantine Database Failed A Nightly Integrity Check
document Messages in QMS with 'unrecognized subject'
document Testing QMS authentication through GWIA
document Troubleshooting the GWAVA Digest (e-mail Archive Report)
document Changing 'Quarantine Manager' link under home pages
document Messages Being Quarantined That Shoudn't Be
document Can't Login To QMS (Admin)
document QMS showing it is 'Closed for Maintenance'
document How to Quarantine All Mail (Global Quarantine)
document Getting a blank page when trying to access the QMS
document QMS Database Corruption (build 100 and earlier)
document QMS Error: The quarantine reported that the requested message does not exist in the system.
document Unable to login to QMS as admin or a user. User field being populated with numbers.
document Upgrade to QMS2 how-to/troubleshooting guide
document Force QMS2 upgrade
document no such table: t_Tokens after upgrading to QMS2
document How To Release a Digest manually in QMS2
document Login as a user to QMS times out
document Number in QMS login box
document Preventing Database Corruption
document How to Change the 'Manage my Quarantine' link
document Users unable to see messages in the QMS, after admin added them on the Users tab
document Timestamp on Quarantined Messages Wrong
document Slow browser or browser script errors
document Seeing Only a Certain Amount of Messages in the QMS
document Some QMS mail not viewable as a user
document Migrate QMS Data to a GWAVA 4 SMTP Appliance (Linux)
document Admin. of multiple users QMS without giving admin rights/Managed Addresses
document Change the amount of messages viewed on each page.
document Digest releases but does not show up in clients mailbox
document Unable to Find Released Messages in QMS
document Change QMS Authentication Server
document Automatically delete messages from Quarantine.
document Remove messages from users QMS but not from the Administrators QMS
document How can I Prevent a User From Creating new Accounts in QMS?
document How to Exclude a GW Account From Getting a Digest Report
document QMS Unloading by Itself
document QMS is Reindexing After Restarting GWAVA on Linux
document How to rebuild QMS in a cluster environment
document How to Configure Exchange to Allow AUTH LOGIN to work
document Migrate QMS Data to a GWAVA 4 SMTP Appliance
document How can I Change the Amount of Days Before an Account for QMS Expires?
document Increase Mail in Digest Report
document How to add users to the QMS user list
document Quarantined Messages To A Distribution List
document Cannot Login to QMS because of Cookies
document QMS User Unable to Release a Specific Message from the QMS
document Not all events show up in Digest
document How To Log Into QMS as a User When Not Using GroupWise?
document How To Follow Messages/Digests Released From QMS
document How To Follow Messages That Are Sent To Quarantine
document Removed Address Space on GWAVAQMS, Running Thread InQueueManager
document How to Enable Digests to Certain Users
document How to setup a centralized QMS for multiple GWAVA servers
document QMS Login Via Built-In GWAVA Credentials
document How to View a List of Messages That Were Blocked for a Certain Event and Released.
document How to Follow a Message Through GWAVA Logs to Make Sure it Was Released
document Getting an "Application not Found" Error When Trying to Release From a Digest Report.
document If a User Releases a Message, That Has Multiple Recipients, From Their Quarantine, Will it be Released to All The Recipients?
document If a Message, that has Multiple Recipients, is Deleted by a User From Their Quarantine, is it Removed From All the Recipients' Quarantine?
document Getting a Script Error When Trying to Access the QMS.



RSS