Handling damaged files: Difference between revisions

From NEOSYS Technical Support Wiki
Jump to navigationJump to search
No edit summary
 
No edit summary
Line 1: Line 1:
== General cause, solution and recovery of damaged files ==
== Symptoms ==
 
=== Symptoms ===


  "A Damaged file has been found..... ((the rest of this message to be completed))  
  "A Damaged file has been found..... ((the rest of this message to be completed))  
Line 9: Line 7:
  Record length incorrect or frame linkage error.
  Record length incorrect or frame linkage error.


=== Cause ===
== Cause ==
Rare but nasty problem on server caused by power failure, killing NEOSYS or server hardware or operating system failure. Did you kill NEOSYS while upgrading or something? Was there a power cut. Check the server log for reboot Event Viewer > System Log
Rare but nasty problem on server caused by power failure, killing NEOSYS or server hardware or operating system failure. Did you kill NEOSYS while upgrading or something? Was there a power cut. Check the server log for reboot Event Viewer > System Log


Also note to check disk free space especially on servers not dedicated to neosys
Also note to check disk free space especially on servers not dedicated to neosys


=== Solution===
== Solution==


Depends on the cause and usually often requires aggressive interrogation to discover the cause.
Depends on the cause and usually often requires aggressive interrogation to discover the cause.


=== Recovery===
== Recovery==
 
It is URGENT to stop using NEOSYS and fix the damaged file because it will cause NEOSYS to crash everytime it happens to update that part of the file. NEOSYS crashing while updating often produces unrecoverable inconsistencies in the database that can only be fixed by programmers sitting for hours trying to edit the database .... or by restoring from a backup causing loss of work
It is URGENT to stop using NEOSYS and fix the damaged file because it will cause NEOSYS to crash everytime it happens to update that part of the file. NEOSYS crashing while updating often produces unrecoverable inconsistencies in the database that can only be fixed by programmers sitting for hours trying to edit the database .... or by restoring from a backup causing loss of work


=== Fixing damaged files that have no process for recreating them ===
== Fixing damaged files that have no process for recreating them ==


Some damaged files can be rebuilt using NEOSYS utilities especially index files with filenames starting with !. Other damaged files can be “fixed” to prevent NEOSYS crashes as follows <i>but some records will most probably be lost</i>. Depending on the file loss of a few records may not be too bad compared to restoring a database but the client should be informed and make the decision. Depending on the file it is usually best to lose the records. We can make a list of files that one can afford to lose records and those files that can be rebuilt programmatically from other files. Booking order texts they can lose records but inform them and especially the numbers mentioned in FIXFILE
Some damaged files can be rebuilt using NEOSYS utilities especially index files with filenames starting with !. Other damaged files can be “fixed” to prevent NEOSYS crashes as follows <i>but some records will most probably be lost</i>. Depending on the file loss of a few records may not be too bad compared to restoring a database but the client should be informed and make the decision. Depending on the file it is usually best to lose the records. We can make a list of files that one can afford to lose records and those files that can be rebuilt programmatically from other files. Booking order texts they can lose records but inform them and especially the numbers mentioned in FIXFILE
Line 37: Line 36:
Alternative is restore from a previous backup in this case losing a days work. Nasty, and even worse, it will be impossible to reproduce the days work and especially the exact purchase order, booking order, invoices, receipt and payment numbers.
Alternative is restore from a previous backup in this case losing a days work. Nasty, and even worse, it will be impossible to reproduce the days work and especially the exact purchase order, booking order, invoices, receipt and payment numbers.


=== Fixing damaged file that have a process to recreate them ===
== Fixing damaged file that have a process to recreate them ==


ADS file can be recreated with F5 CREATEADS
ADS file can be recreated with F5 CREATEADS
Line 61: Line 60:


Other reindex commands are:
Other reindex commands are:


*REINDEXACCOUNTS recreates !ACCOUNTS and !BATCHES
*REINDEXACCOUNTS recreates !ACCOUNTS and !BATCHES
Line 70: Line 67:
*REINDEXBRANDS
*REINDEXBRANDS
*REINDEXCLIENTS
*REINDEXCLIENTS
*REINDEXINVS recreates !INVOICES
*REINDEXINVS recreates !INVOICES
*REINDEXJOBS
*REINDEXJOBS
*REINDEXMATERIALS
*REINDEXMATERIALS
Line 82: Line 79:
*REINDEXVEHICLES
*REINDEXVEHICLES


REINDEXMEDIA does the following
REINDEXMEDIA does all the following
*REINDEXPLANS
*REINDEXSCHEDULES
*REINDEXADS
*REINDEXMATERIALS
*REINDEXBOOKINGS


REINDEXPLANS
REINDEXFILES does all the following
*REINDEXCLIENTS
*REINDEXBRANDS
*REINDEXSUPPLIERS
*REINDEXVEHICLES
*REINDEXRATECARDS


REINDEXSCHEDULES
REINDEXPRODUCTION does all the following
 
*REINDEXJOBS
REINDEXADS
*REINDEXPRODORDERS
 
*REINDEXPRODINVS
REINDEXMATERIALS
*REINDEXTIMESHEETS
 
REINDEXBOOKINGS
 
 
 
REINDEXFILES does the following
 
REINDEXCLIENTS
 
REINDEXBRANDS
 
REINDEXSUPPLIERS
 
REINDEXVEHICLES
 
REINDEXRATECARDS
 
 
 
REINDEXPRODUCTION does the following
 
REINDEXJOBS
 
REINDEXPRODORDERS
 
REINDEXPRODINVS
 
REINDEXTIMESHEETS
 
 
 
REINDEXALL does the following
 
REINDEXMEDIA
 
REINDEXPRODUCTION
 
REINDEXFILES
 
REINDEXINVS
 
REINDEXACCOUNTS


REINDEXADDRESSES
REINDEXALL does all the following
*REINDEXMEDIA
*REINDEXPRODUCTION
*REINDEXFILES
*REINDEXINVS
*REINDEXACCOUNTS
*REINDEXADDRESSES

Revision as of 20:35, 28 October 2006

Symptoms

"A Damaged file has been found..... ((the rest of this message to be completed)) 
Group format Error:
OS File : BOOKING.TEXTS
Group# : 00000932
Record length incorrect or frame linkage error.

Cause

Rare but nasty problem on server caused by power failure, killing NEOSYS or server hardware or operating system failure. Did you kill NEOSYS while upgrading or something? Was there a power cut. Check the server log for reboot Event Viewer > System Log

Also note to check disk free space especially on servers not dedicated to neosys

Solution

Depends on the cause and usually often requires aggressive interrogation to discover the cause.

Recovery

It is URGENT to stop using NEOSYS and fix the damaged file because it will cause NEOSYS to crash everytime it happens to update that part of the file. NEOSYS crashing while updating often produces unrecoverable inconsistencies in the database that can only be fixed by programmers sitting for hours trying to edit the database .... or by restoring from a backup causing loss of work

Fixing damaged files that have no process for recreating them

Some damaged files can be rebuilt using NEOSYS utilities especially index files with filenames starting with !. Other damaged files can be “fixed” to prevent NEOSYS crashes as follows but some records will most probably be lost. Depending on the file loss of a few records may not be too bad compared to restoring a database but the client should be informed and make the decision. Depending on the file it is usually best to lose the records. We can make a list of files that one can afford to lose records and those files that can be rebuilt programmatically from other files. Booking order texts they can lose records but inform them and especially the numbers mentioned in FIXFILE

FIXFILE will not run if there are neosys services still running so before doing the FIXFILE command, shut down services from the Support menu or with the Global command:

F5

FIXFILE filename

(Select option 1 to update the file)

In case you get any Overwrite messages – type YES, as these are the actual files being updated.

Alternative is restore from a previous backup in this case losing a days work. Nasty, and even worse, it will be impossible to reproduce the days work and especially the exact purchase order, booking order, invoices, receipt and payment numbers.

Fixing damaged file that have a process to recreate them

ADS file can be recreated with F5 CREATEADS

ANALYSIS file can be recreated with F5 CREATEANALYSIS

Fixing damaged index files (names starting with !)

Whilst backing up or using NEOSYS the following error message might appear:

"A Damaged file has been found.....
Group format Error:
OS File : !ADS
Group# : 00000932
Record length incorrect or frame linkage error.
  1. Ensure that no-one is using NEOSYS
  2. Log into NEOSYS on the server
  3. Press F5 to get a TCL command box
  4. Type REINDEXADS and press enter.
  5. Wait until it finishes and you get back to the command box
  6. Type OFF in the command box and you will quit NEOSYS.

Other reindex commands are:

  • REINDEXACCOUNTS recreates !ACCOUNTS and !BATCHES
  • REINDEXADDRESSES
  • REINDEXADS
  • REINDEXBOOKINGS recreates !BOOKING.ORDERS
  • REINDEXBRANDS
  • REINDEXCLIENTS
  • REINDEXINVS recreates !INVOICES
  • REINDEXJOBS
  • REINDEXMATERIALS
  • REINDEXPLANS
  • REINDEXPRODINVS recreates !PRODUCTION.INVOICES
  • REINDEXPRODORDERS recreates !PRODUCTION.ORDERS
  • REINDEXRATECARDS
  • REINDEXSCHEDULES
  • REINDEXSUPPLIERS
  • REINDEXTIMESHEETS
  • REINDEXVEHICLES

REINDEXMEDIA does all the following

  • REINDEXPLANS
  • REINDEXSCHEDULES
  • REINDEXADS
  • REINDEXMATERIALS
  • REINDEXBOOKINGS

REINDEXFILES does all the following

  • REINDEXCLIENTS
  • REINDEXBRANDS
  • REINDEXSUPPLIERS
  • REINDEXVEHICLES
  • REINDEXRATECARDS

REINDEXPRODUCTION does all the following

  • REINDEXJOBS
  • REINDEXPRODORDERS
  • REINDEXPRODINVS
  • REINDEXTIMESHEETS

REINDEXALL does all the following

  • REINDEXMEDIA
  • REINDEXPRODUCTION
  • REINDEXFILES
  • REINDEXINVS
  • REINDEXACCOUNTS
  • REINDEXADDRESSES