pkg db corrupt on one jail

Code:
]# pkg -j jailname upgrade
Updating custom repository catalogue...
custom repository is up to date.
All repositories are up to date.
pkg: sqlite error while executing PRAGMA journal_mode = WAL; in file pkgdb.c:2755: database disk image is malformed
pkg: sqlite error while executing PRAGMA synchronous = NORMAL; in file pkgdb.c:2755: database disk image is malformed
pkg: sqlite error while executing PRAGMA user_version; in file pkgdb.c:2792: database disk image is malformed

Three other jails and the host are fine, so how do I recover this one? There are no stored backups on this machine as it is a test machine only booted when needed. The configuration is quite complicated so it would be difficult to rebuild the jail.
 
Back
Top