Developer beta 0.1.0-beta.1 documentation. The build is not available for download yet; these pages describe the beta as built and tested on Linux x86-64.

Troubleshooting

Message Meaning What to do
database … is in use by process N another process holds the directory’s lock (an operating-system file lock; N is the pid it recorded) stop it, or use the server’s endpoint instead of the directory; a crashed holder releases the lock by itself, nothing to delete
database format N was written by a newer HolaDB (…) the directory was written by a newer release; this binary does not read it; nothing was touched run that release, or restore a backup taken before the upgrade
database format: … FORMAT is malformed the format record is unreadable restore a backup; the record is never rewritten by an open
an upgrade of … was interrupted; run holadb upgrade … holadb upgrade did not finish run it again (it resumes where it stopped), or restore the pre-upgrade backup named in the message
holadb-server: unknown option --… / needs a value / given twice (status 2) the command line is not what the server accepts; nothing was opened holadb-server --help / holadb serve --help
the server exited with status 3 (stopped … reason=fail-stop) a panic under the store lock; the database was not closed restart it: the next start recovers from the WAL; report the panic under the store lock log line
the server exited with status 4 the stop waited --drain-timeout-ms for a statement that still held the database restart; raise the drain timeout or lower --statement-timeout-ms
authentication required (code 20) the database has users and this connection has not authenticated put user:password@ in the URL, or call authenticate
authentication failed for user "x" (22) / psql password authentication failed wrong password or unknown user (deliberately the same message) check the credentials; reset with holadb users <dir> passwd
permission denied: user "x" lacks INSERT on table "t" (21) the role does not carry the privilege GRANT … TO role as an administrator; reconnect (privileges resolve at login)
syntax error at line L, column C: … the statement is not in the SQL subset or is malformed the position points at the token
unsupported: JOIN (or another construct) parsed, deliberately not supported see the SQL page for alternatives
constraint violation: … duplicate primary key or unique index value, or NULL in a NOT NULL column fix the data
transaction: serialization failure … another transaction committed a row this one wrote (first committer wins) retry the transaction
current transaction is aborted (…); ROLLBACK first a statement failed inside the transaction ROLLBACK, then retry
DDL inside a transaction is not supported schema changes are autocommitted run them outside BEGIN … COMMIT
no such table "x" the name is not in the catalog (names are case-sensitive only when quoted) SHOW TABLES
response of N bytes exceeds the frame limit a result over 16 MiB use a cursor (query_start / db.cursor) or LIMIT
cannot bind 127.0.0.1:7433: address in use another server (or a previous one still stopping) holds the port wait, or choose --listen
TLS is configured but this build has no TLS implementation --tls-cert given terminate TLS in a proxy; start without the flags
psql: relation "pg_catalog…" does not exist or \d fails the PostgreSQL catalog tables are not emulated SHOW TABLES, SHOW COLUMNS FROM t
migrate: ✗ … [needs --lossy] a column’s type cannot be mapped without loss accept with --lossy after reading the note, or change the source type
verify-backup: hash mismatch (corrupted), size mismatch, missing the backup or a base it references is damaged do not restore from it; use another backup
… has no BACKUP_MANIFEST.json: the backup is incomplete or not a backup / … is incomplete: it has a manifest but no BACKUP_COMPLETE marker an interrupted backup discard it and back up again (the same destination works)
… is the staging directory of an interrupted backup or restore a *.partial or *.restoring directory was given it is never a backup; use a complete one
verify-backup: <base>: manifest hash mismatch: not the backup this one was taken against / missing base backup a base of the chain was replaced or moved apart from the chain put the original base back next to the chain (relative to it, as recorded)
… holds a restore that did not complete (RESTORE_INCOMPLETE is present): it is not a database a restore was interrupted remove the directory and restore again (restore into the same target removes it itself)
uncertain outcome of a write … at commit position N (code 24, SQLSTATE 08007) the disk refused a write and its rollback; the write may or may not be on disk restart the server; if the recovered position is ≥ N the write was applied — do not retry blindly (Transactions)
the archive does not reach back to the base the archive was started after the backup’s logs were sealed use a backup taken after the archive started
the schema changed after the base backup (archive step …) point-in-time restore cannot replay schema changes restore to an earlier position, or use a backup taken after the change
archiving is not configured holadb archive against a server without --archive start the server with --archive <dir>
doctor: ✗ segments: … on-disk data fails its hashes restore from a backup (Recovery)

Getting more information

  • holadb doctor <dir> --json — every check with details.
  • holadb serve … --log json --log-level debug --trace — per-request spans.
  • GET /metrics.json — counters, including statement_errors_total and malformed_total.
  • holadb verify <dir> — integrity of segments, indexes and catalog.

Reporting a bug

Include holadb version, the exact command or statement, the error text, and, if possible, holadb doctor --json output. Never include AUTH.json or audit logs with real user names in a public report.