Subject Re: [firebird-support] gbak error: page of wrong type
Author Ann W. Harrison
kapsee wrote:
> When trying to create a database from an fbk file, I am getting the
> following error. The fbk file should be fine (it used to work earlier)
> but gbak keeps complaining that the file is corrupt.

> /opt/firebird/bin/gbak -C TemplateDatabase.fbk RealData.fdb
> gbak: ERROR: database file appears corrupt ()
> gbak: ERROR: wrong page type
> gbak: ERROR: page -1 is of wrong type (expected 7, found 0)
> gbak: ERROR: failed to create database RealData.fdb
> gbak: Exiting before completion due to errors

That one is really strange. How big is the .fbk file? The problem
appears to be that gbak is reading an index (page type 7 is an index
page) and finding -1 which is a very bad page number.

Regards,


Ann