IBM Support

nzrestore error, Error while reading archiver header

Troubleshooting


Problem

nzrestore fails with "Error while reading archiver header. Wrong/Missing entry magic PGDMP."

Symptom

The nzrestore command fails with the following error:
Error while reading archiver header. Wrong/Missing entry magic PGDMP.

Diagnosing The Problem

Running the nzrestore command requires the following argument: -dir <backup directory>. However, the command fails with the error above when the schema file is in a format that nzrestore cannot read. 

Resolving The Problem

To resolve this error, do the following:
1. Run the following command to find any file named 'schema' within the directory structure:
find  <backup directory> -name schema -ls

2. For any file found, rename it or relocate it to a completely different directory. 

3. Rerun the nzrestore command.

[{"Product":{"code":"SSULQD","label":"IBM PureData System"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":null,"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.0.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Historical Number

NZ255189

Document Information

Modified date:
17 October 2019

UID

swg21571922