Skip to content

Troubleshooting

Tadoru refuses rather than guesses, and every refusal names what is wrong. This page has the refusals you meet, and what to do about each one. Start with the symptom below: each group lists the common cases first.

Nothing resolves

One name fails

A change is refused

A start stops

A backup or a restore fails

If your problem is not here, the log says what the server refused. Logs and metrics shows how to read it.

A value outside its range is refused, and the message names the file, the setting and the problem:

tadoru: ./data/config/server.toml, setting latency_alpha: 500 hundredths is outside 1 to 100 hundredths

On a first start that stops the server, which is the right answer before anything is running. Once a revision is current, a refused edit is a refused revision instead. The last good configuration keeps serving, and the refusal goes in the audit trail. The watcher repeats the refusal every half minute until the file is fixed. A bad hand edit never takes DNS down.

Over the API the same refusal is a 422 with a problem document, and the document names the file, the setting and the line. tadoru config validate <file> gives you the same answer before the server sees the file.

The log holds a summary of the refusal, not its whole text, because a rule can quote the value that it refused. The line an edit was refused names the file, the setting and the line, with the token of the rule where the refusal has one:

reason=./data/config/server.toml, setting latency_alpha, line 4: refused
reason=/etc/tadoru/node.toml, setting record_expiry: refused by the rule expiry-held

A refusal that names no setting, no line and no rule says the file could not be used. A refusal that the ledger answered says refused before, as the ledger says. For the reason, run tadoru config validate <file>, or read the revision in the audit trail.

Hourly counts that do not fit the room of the query log

Section titled “Hourly counts that do not fit the room of the query log”
tadoru: ./data/config/server.toml, setting stats_retention_days: 2500 days of hourly counts need a retention_mib of 586 or more, because the counts may take a quarter of it at 60 KiB a day, and retention_mib is 512. Raise retention_mib to 586, or lower stats_retention_days to 2184

The hourly counts are kept for stats_retention_days, and they may take a quarter of retention_mib, at about 60 KiB a day. Without the bound they could push every row of the log out. Do one of the two things the message says. The message names the setting that the file writes, or stats_retention_days where it writes both.

Where the log fills its room with counts and lists and has no row left to remove, it says the query log is over its size limit and has no row left to remove once, and it tries again each minute. Raise retention_mib, or lower stats_retention_days.

A request that goes through the proxy of outbound_proxy never falls back to a direct connection. Where the proxy refuses it, does not answer, or cannot carry it, the request fails, and its words name the proxy, such as through the proxy socks5://127.0.0.1:9050: .... A list keeps the body that it had, an ACME order waits for its next try, and a query of a forwarder through the proxy answers SERVFAIL.

A commit of a configuration whose proxy sends outbound_proxy_user, where the stored outbound_proxy_password cannot go with it, logs one warning, with the kind of the proxy and the reason, and never the password:

WARN tadoru::outbound_ways: each request through the proxy of this revision fails, and none goes direct, until outbound_proxy_password fits it: write it again with tadoru secret or the API setting="outbound_proxy_password" kind="socks5" reason="the password is longer than SOCKS5 carries, which is 255 bytes"

The reasons are a password that SOCKS5 cannot carry (empty, or past 255 bytes) or that Basic cannot carry (a control character), no password for a SOCKS5 proxy, and a password file that does not read. Write the password again, as Accounts says, or change the proxy.

After you repair the password or move to a working proxy, a name that failed through the proxy before can still answer SERVFAIL for up to failure_ttl, 60 seconds by default, because the server holds a failure that long. A move of the forwarders to another proxy, or a user set or taken away, empties the cache of answers at once. A new password, or another user, does not. Run tadoru cache flush to clear the held failures at once (Command line).

With update_check = true (Configuration), a check that fails shows in GET /api/info as update.state failed, with its reason. It keeps what the last good check found, and the check tries again after its wait. The log has one warning for each kind of failure in a row, the update check failed, with the reason and a message that names the status or the kind of failure. No field at all means that the check is off.

reason What it means What to do
connect Direct, the lookup of api.github.com failed, gave no address, or no address took the connection Check the resolver and the route of this machine to the internet, or set a proxy for updates
proxy Through the proxy, the proxy refused or did not answer, or its password cannot go with its user Check the proxy, as A request that fails through the proxy says
tls The TLS handshake failed, or the certificate does not name api.github.com A proxy or a firewall that looks inside TLS needs its own authority in the trust store of the machine
timeout A page took more than 30 seconds, or the whole check more than 2 minutes Check the speed of the route, or of the proxy
unavailable GitHub answered 404 or a redirect: the list of releases cannot be read with no login Nothing to do on the server: today the list of releases of the project is not open to such a request
limit GitHub limits the address: a 429, or a 403 that says so Nothing to do: the check waits for the wait that GitHub names. Many nodes behind one address reach it
status GitHub answered another status, or an answer that does not read as HTTP Try again later. Where it stays, a proxy or a firewall may answer in place of GitHub
body The answer was not JSON, passed 4 MiB, was not a list, or broke after its head Try again later. Where it stays, a proxy or a firewall may answer in place of GitHub
version The version of this server does not read as a version, so no release can be compared with it The check does not run, and the log warns at each turn of the check from off to on. Use a build of a release, or of main

A file or a value that does not read as TOML

Section titled “A file or a value that does not read as TOML”

A change of one setting reads the file and the value as TOML before it edits them. This covers a PATCH, a tadoru config command, and tadoru blocklist import. A text that does not read is refused, and the running configuration keeps serving:

Where What you see
The write path A revision that says failed. Its refusal names the file, content for the text of the file or the setting for its value. A TOML error gives the line and the column. A value of the wrong shape, such as a list that must hold tables, names the setting and the shape it needs. Over the API it is a 422
tadoru blocklist import With no server: tadoru blocklist: blocking.toml: TOML parse error at line 1, column 2, before any revision. With a server, the import reads blocking.toml of the revision that runs, so a broken file in the config root does not refuse it, and the watcher refuses that edit on its own. The file stays as it is

Fix the line that the message names, and check the file with tadoru config validate <file>.

A commented line is a comment, whatever it holds. A null in a PATCH takes the setting out, and keeps lines such as # max_retries = = as they are.

A configuration file holds 4 MiB at most. A master file of a zone, such as records.zone, holds 16 MiB, and so does a list file under blocklists/. All the files of a configuration together hold 256 MiB. A file past its bound is refused, and the last good configuration keeps serving:

tadoru config: ./data/config/zones/home/records.zone, setting configuration: is 16777300 bytes, and one zone file holds 16777216
The refusal says What to change
one zone file holds 16777216 Make the master file smaller, or move a subtree of its names into a zone of its own
one configuration file holds 4194304 Make the file smaller
one list file holds 16777216 Make the list smaller, or read a larger list from a url
the most that a file of its kind holds The same bounds, met while the server read the file
bytes in total or what a whole configuration holds Make the configuration smaller, the largest zones and list files first. Sixteen files of 16 MiB fill it
once each zone with updates is checkpointed The change fits now, but not once the server writes the updates of its zones back to their files. Make the configuration smaller, the largest zones and list files first, or wait for the checkpoints of the zones that the message says are noted due. Then send the change again
their room comes back with the checkpoint after their thaw The zones named there are frozen. Run tadoru zone thaw for each once its edit is done, or make the configuration smaller
no checkpoint comes for them on its own The zones named there count a whole master file each, because their journal is not bound to their files. For a zone listed as unmarked whose journal is whole, run tadoru zone checkpoint <zone-id>. For a zone that the server stops for a damaged journal, run tadoru zone journal cut, which keeps the whole updates where the ledger anchors the journal. For any other zone that the server stops for its journal, run tadoru zone journal remake. Run it too for a zone that serves its files. A remake drops the updates past the files. A zone whose last update did not settle binds at the next start. Or make the configuration smaller

A rollback, a restore and the recovery of a staged revision are never refused for these reasons. They are the way out of a bad configuration. They take effect, and the log says A rollback, a restore or the recovery of a staged revision activates all the same, with the same names. Each update that grows a zone is then refused until there is room again.

A new configuration holds 2,000 files at most. The server keeps a record of each revision, which names each of its files and the files that it deletes, and holds 1 MiB. 2,000 files fit in it with as many deletions and 200 zones, where each path is 71 bytes or less with no control character. A longer path takes more of the record, and so does a list file that a source names with a long path, or a file of a zone with a long name. Then the record can fill before the count:

tadoru config: ./data/state/generations, setting generation: would need a record of up to 1100000 bytes, and the ledger records 1048576 for one revision at most. Hold fewer files, or give the files that the server does not read shorter paths
The refusal says What to change
would hold 2001 files, and a configuration holds 2000 at most Remove files from the config root, such as notes the server does not read
The 2500 files that run now can keep their count or shrink The server holds more than 2,000 files from an older build. Edit and delete as before. A change that adds a file is taken where it also deletes one, and otherwise once fewer than 2,000 are left
so a rollback cannot put it back The revision holds more files than the revision that runs, and more than 2,000. Choose a revision of 2,000 files or fewer, or one of no more files than run now
would need a record of up to Remove files, or give files shorter paths. A list file that a source names moves with its path, so change both in one change. Names with control characters take six bytes for each of them
a restored configuration holds 2000 at most where the ledger of the archive does not record them The archive carries no ledger that records its files. Restore an archive with its ledger, or one of 2,000 files or fewer

A dry run and a save refuse the same changes, before anything is written. Both count the random part of the record at its longest, so both can refuse a change that is up to 32 bytes from the bound.

A server that an older build left with more than 2,000 files starts and serves as before. Its checkpoints, the moves of its serials and an edit of a file go on, because they keep the count. A rollback to a revision of no more files than run now goes on too, and it is the way out where the running files are damaged. Deleting files from the config root takes them out one by one.

A restore takes an archive whose ledger records the files of its active configuration, up to 10,000, as a start does. So a server that an older build left can restore its own backup. Without such a record, it refuses an active configuration of more than 2,000 files. It also refuses an archive whose next record can pass 1 MiB, before it replaces anything. The check counts each zone at the longest marks that a zone can take, and each move of a serial that the archive records, so it can refuse an archive whose record fits, and it never takes one that does not. An older revision in the archive with more files travels with it.

The config root skips what an editor leaves behind, so a change cannot write a file under such a name. The server refuses it, and the last good configuration keeps serving:

tadoru config: ./data/config/notes~, setting payload: has a name that ends with `~`, and the walk of the config root skips such a name, so a command cannot write this path. Choose another name
The refusal says The name
has a name that starts with . Any part of the path starts with a dot, such as .notes
has a name that ends with ~ Any part of the path ends with ~, such as notes~
has a name that ends with .tmp Any part of the path ends with .tmp
is bootstrap.toml or a path inside it bootstrap.toml at the top, which says where the roots are

A start says on a line of its own when the running revision records such a file, which an older build could write. The next change leaves the file out, and a rollback to that revision is refused. A copy of the file may remain in the config root, outside every revision; nothing deletes it.

Choose another name. tadoru config apply and tadoru config edit say this before they look for a server on the socket, read the file or look up the editor, so no revision number is spent. The API has no route today that takes a file name from a request. Where a change names such a file another way, the server refuses it, and the change is a revision of its own, which says failed. Through the API that refusal is a 422 whose type is /problems/invalid-configuration, with the file and the setting payload.

A path that leaves the config root, such as ../notes, or that starts with ./, is refused before this check with words of its own, which say that the path leaves the directory or holds a . component. A delete of such a path is refused this way too, with the same 422, rather than as a file that is not there.

A file name outside ASCII, or in another case

Section titled “A file name outside ASCII, or in another case”

A volume that folds Unicode case or normalization takes two such names for one file, so a change that adds one is refused, and the last good configuration keeps serving:

tadoru config: ./data/config/notes/ſ.md, setting payload: has a name outside ASCII that the running revision does not hold, and a volume that folds Unicode case or normalization can take it for another file of the configuration. Choose a name in ASCII
The refusal says What to do
has a name outside ASCII that the running revision does not hold Choose a name in ASCII. A name that the running revision holds stays
differs from other in case alone Keep one of the two names. A rename of an ASCII name that changes the case alone lands

The server checks the whole set that the change leaves, so the change is a revision of its own, which says failed, and through the API the refusal is a 422 whose type is /problems/invalid-configuration, with the file and the setting payload. A hand edit that adds such a name is refused the same way, at a start too. tadoru config apply and tadoru config edit do not check it before they send, so the revision number is spent. At a first start, a name outside ASCII stops the start: rename the file to ASCII and start again. A new ASCII name beside an older name outside ASCII that a volume folds to it, such as s.md beside ſ.md, is not caught: rename the older one.

blocking.toml holds entries rather than settings. So a refusal names the source or the entry rather than a setting and a line:

tadoru: ./data/config/blocking.toml, setting id: ../../etc is not an id: it holds the byte 0x2e, and an id holds lower case letters, digits and -

The refusals you meet:

The file says Why it is refused
An id with a dot, a slash or a capital An id names files and a log column, so it is a plain word
Two sources with one id An id names one list, so a log row names one list
url and path together, or neither A source has one body
url = "http://..." A list over plain HTTP is a list anybody can edit
A url with a user or a password in it Configuration replicates and is backed up, and holds no secrets
path = "../list.txt" or an absolute path A source path stays inside the config root
A path through a symbolic link A link inside the root can point anywhere
A path that the config root skips No revision can hold such a file, so no pass can read it
A path in another case than its file A volume that ignores case reads the file, and no revision names it so
A path of . alone, or a path that the zones directory does not permit It names no list file of a revision
A name with two dots, a space or no ASCII It is not a name this server can look up
An action that is not block or allow A source blocks its names or allows them
exceptions on an allow source An allow source cancels every block, so it takes no scope
More than 64 sources, or 10000 entries The counts are bounded, and the message names both numbers

A path whose name the config root skips is refused, because no revision holds the file. Such a name starts with ., ends with ~ or .tmp, or sits in a directory of such a name, as A file name the configuration skips says. So is a name that matches one of those in another case, such as HOME.TMP, because a volume that ignores case takes it for the skipped file. A leading ./ is no such name. The message names the file:

tadoru: ./data/config/blocking.toml, setting path: source home names .local-list, a name that the server skips as an editor's file, so no revision can hold it. Rename the file, and change path to the new name

A path that names a file of the configuration in another case, such as blocklists/Home.txt for the file blocklists/home.txt, is refused too, and the message names the spelling to write: and the configuration holds the file as blocklists/home.txt, a name in another case. Change path to blocklists/home.txt. A rollback to a revision of an older build with such a path is refused, with words that say to choose another revision, or to change path in a new revision. A restore refuses an archive whose running revision has one, before it replaces anything, and takes one in an earlier revision.

A build before this one took such a path, so a config root of that build can hold one, and the first start after the upgrade stops on it. The log names blocking.toml, the source and the file. Before the upgrade, rename the file to a name that the config root reads, such as blocklists/local.txt, and change path to it, as one revision. After an upgrade that stopped, stop the service, run tadoru config edit blocking.toml to change path, rename the file, and start the service again. The first pass reads the renamed file and compiles it, with no request to the network.

Anything in the config root that is not a plain file or a directory refuses the whole comparison, not one file: a symbolic link, a socket, a pipe. The message names the path. Take it out of the root, or move it somewhere else, and the next pass reads the rest.

A directory that is moved, removed or swapped for a link while a pass reads it stops that pass too. So does a file or a directory added, removed or renamed in it while the pass reads it. The message names the directory and says changed while it was read, or is a symbolic link. Nothing changes, and the next pass reads the directory again.

A refused hand edit leaves the last good configuration serving. The watcher repeats the refusal every half minute until the file is fixed. tadoru config validate blocking.toml gives the same answer before the server sees it.

Some refusals do not come from the file: a port in use, a certificate file that is not there yet, an address that the machine does not hold, or a stop of the server while it applied the edit. A start checks a refused edit again, until the edit was refused 5 times, so a restart after you fix the machine lets the edit land. After that the log says an edit was refused 5 times, so a start no longer judges it again. To try it again without a restart, change the file, or run tadoru config apply with it.

The log line of a refused edit names the file, the setting, the line and the rule, and not the whole reason, because the reason can quote a value of the file. tadoru config validate with the file gives the whole reason. For a refusal that does not come from the file, such as a port in use, tadoru config apply with the file gives it. A URL in a reason shows its scheme and its host alone, such as https://lists.example, never its path, its query or a user and a password.

A fetch that is refused is a different thing. The file is fine, so the configuration keeps running. The record of the source says why: an admin reads it in GET /api/blocking/sources, and tadoru blocklist status shows it on the machine. An operator, a viewer and the log read a short phrase of its kind instead, which names no address, host or port, and last_attempt.unreached gives the kind to every role:

The record says What happened
an address inside this network The host of the URL answered only addresses of your network. An admin sets private = true on the source, below
reaches a public address alone The publisher redirected the fetch to an address in your house. private = true covers the host of the URL alone
an address that no source reaches The host answered the unspecified address, a link-local one such as 169.254.169.254, multicast or broadcast
names a host that only this network answers Through the proxy, a host such as nas or box.local. An admin sets private = true on the source
reads as a number in another form The URL or a redirect names a host such as 0xa9fea9fe or 169.254. No source reaches one: write the address as four decimal numbers, or a name
holds no file at The running revision has no file at the path of the source. Add the file, and the watcher takes it as a revision
of revision ... does not read The list file in the generation of the running revision is not what the revision recorded. Roll back to a revision that verifies, or restore from a backup
passed the ... bytes one source holds The body passed the limit while it was read, so the read stopped
bytes decoded, and one source holds A body already on disk, or a list file of the revision, that is bigger than this source may be. The whole body was read
the fewest this source is allowed The body holds too few rules of its action, block rules or allow rules, to be the list it claims
percent short The body reads as fewer rules than its own header declares, so something cut it short
the least this source may keep The body lost too many of the rules this source had before
and one set is allowed The body compiles to more than one set may hold
did not accept a connection The publisher’s server, this machine’s own network, or a resolver that is not answering yet
is not https, carries a user A redirect named another scheme, or a user and a password. The line shows its scheme and host alone
an encoding other than gzip The publisher sent the body in an encoding that the server does not read
the TLS handshake failed A few words follow, such as the certificate does not name the host. No name of the certificate shows
under onion The URL or a redirect names a host under .onion. Only Tor reaches it, through a SOCKS5 proxy, never direct

A pass reads the list file of a path source from the running revision, so a link or a pipe in the config root is a hand edit that the watcher refuses, and the pass keeps the file of the revision. Where the server prunes the generation that a long pass read from, the pass keeps nothing for that source and reads it again under the revision that runs. With the server stopped and no revision yet, tadoru blocklist refresh of a source with a path says no revision runs yet. Start the server once: the first start takes the files of the config root as a revision, and reads the list.

A list on your network that stopped updating after the upgrade

Section titled “A list on your network that stopped updating after the upgrade”

Every hop of the fetch of a list reaches a public address or the fetch ends, the first one included. A build before this one let the URL you wrote name a machine of your network. So a list served by a machine of the house, or by this one, is refused at its first pass after the upgrade, and its record says an address inside this network, and a source reaches one only with private = true. The list keeps serving the content it had, after a restart too, and it is read again at its interval rather than every half minute.

An admin marks the source in blocking.toml, or with PATCH /api/blocking, and the source is read at once:

[[source]]
id = "house"
url = "https://nas.lan/blocklist.txt"
private = true

An operator cannot set it, and a change of an operator that sets it, adds such a source or points one at another URL is refused with needs-admin. Configuration says what the key allows.

A 403 with the type needs-admin answers an operator whose change gives what an admin alone gives. Its sources member lists each source with its grant, and its detail says the same in words:

  • private (private = true on ...): the change marks a source, adds a marked one, renames one or points one at another URL.
  • proxied (a url outside the catalog of known lists through the outbound proxy): the routes of node.toml send the URL of the source through the proxy, where this server cannot check where the proxy connects. A URL of the catalog goes through, and so does a source that already went through the proxy with the same id and URL. A change of node.toml that sends such a source through the proxy is refused the same way.
  • proxy (another outbound proxy under ...): the change sends the source, catalog or not, through a proxy, its kind and its address, that no list fetch of the running revision went through: another outbound_proxy, a new one, or one that sat unused while the lists went direct and that they now take again. The proxy is where the fetch connects first, so a proxy at an address of the house could knock on it. Taking the proxy away gives nothing.

A rollback to a revision that held such a source, when the running one does not, is refused too. An admin makes the change, or the operator takes that part out of it. The check of a change, POST /api/blocking/check and POST /api/node/check, answers the same.

A source that is refused keeps whatever it held, and the server keeps answering. That includes what it held before a restart, because a compiled list is written to disk when it passes. So a source refused on a first start blocks nothing until it arrives, and one refused later keeps the content of the last body that passed.

Ask the server which sources are serving nothing rather than reading the log for it:

Terminal window
curl -s --unix-socket ./data/run/api.sock http://localhost/api/health | jq .blocking

ok is false while any source is serving no rules, and empty names each one with the state of its last pass and the numbers it was refused with. The same record is in blocklists/attempts.toml in the state root. It carries the checksum of the body that was refused where this server read the whole body, and a read that stopped at the size limit has none. Blocking says which setting changes each of these numbers.

clients.toml holds entries rather than settings, so most refusals name the client. A file that is not TOML at all still names a line, and a file past the count names the count. One query matches an address, a subnet and an arrived_on address at once, and the fixed order settles that. The refusal an operator meets most is one selector given to two clients:

tadoru: ./data/config/clients.toml, setting addresses: gives the address 192.168.1.42 to the client kids-tablet and to the client office, and one query is one client

The whole list:

The file says Why it is refused
One address in two clients One query is one client, and the message names both
One subnet in two clients The same, at the subnet rank
One arrived_on address in two clients The same, at the arrived_on rank
10.0.0.1 here and 10.0.0.1/32 there One address written twice, so both entries match at once
One name on two clients A name has to point at one client
name = "default" That is the client of every query nothing else matches
A client with no addresses, subnets or arrived_on Nothing can ever be that client
A name with a dot, a space or a capital A name is lower case letters, digits and hyphens
addresses = ["10.0.0.0/8"] A subnet goes in subnets
subnets = ["0.0.0.0/0"] default already means every query, and this hides every arrived_on entry
A link-local IPv6 address, such as fe80::1 It names a different machine on every link
A subnet holding all of fe80::/10, fe00::/8 The same, spelled as a range rather than as one address
::ffff:192.168.1.10, or ::/120 in subnets A client of it arrives as an IPv4 address, so it matches no IPv4 client
One client naming one selector twice One entry is enough, and the message names that client once
More than 256 clients, or 64 selectors on one The counts are bounded, and the message names both numbers

A refused hand edit leaves the last good configuration serving, the same as every other file. tadoru config validate clients.toml gives the same answer before the server sees it.

One refusal reads two files. A [[group]] in clients.toml names source ids, and blocking.toml defines them. Neither file alone can see a typo in the other. The message names the group, the id you wrote and the ids that file defines:

tadoru: ./data/config/clients.toml, setting group.kids.sources: names the source add, and no [[source]] in blocking.toml defines it. The sources it defines are ads

A file with many sources gets a short list and a count, so one refusal is not a page of ids. sources = "all" names no id and is never refused this way.

To rename a source, take these three steps in this order:

  1. Add the new id in blocking.toml.
  2. Switch the groups in clients.toml to the new id.
  3. Delete the old id from blocking.toml.

Delete the old id first and you get a revision where a group names an id that is gone. That revision is refused. A PATCH of either file, or a PUT /api/blocking, gets the same refusal, with 422. tadoru config validate reads one file, so it cannot see this refusal. The server and the API see it, and the last good configuration keeps serving. A restore sees it in the archive it staged, and it replaces nothing.

The rest of the group refusals read clients.toml alone:

The file says Why it is refused
A [[group]] with no sources key A group says which lists it tests against
A sources word that is not "all" One word is allowed, and a list of ids is the other form
One group name twice, default included A name has to point at one group
One source id twice inside one group One entry is enough
A group key naming no [[group]] in the file A client runs the policy of a group that exists
block_v4 or block_v6 with no mode = "address" Those addresses only mean something in that mode
More than 64 groups, or more than 64 sources in one group The counts are bounded, and the message names both numbers

A group renamed in a PATCH /api/clients while a client still names the old name gets the refusal of that last row:

setting group: puts the client tablet in the group kids, and no [[group]] in this file declares it

Send the group list and the client list in one body, with the new name in both. The two are checked together and land as one revision.

A zone whose kind or keys this build refuses

Section titled “A zone whose kind or keys this build refuses”

zone.toml names the kind of the zone, and some keys belong to one kind alone. The message names the key, and tadoru config validate of the folder of the zone reports a mistake in zone.toml before you apply anything. It reads the zone alone: a bound of a secondary against a bound of [zones], such as a min_refresh above the max_refresh of [zones], is judged only against the server.toml that runs, when the server takes the change.

The refusal says What to change
that this build reads and does not serve yet Delete the zone, or make it again as a primary. The server serves no secondary zone yet
is not a kind of zone Write primary, stub or secondary
is a key of a stub zone Delete the key, or set kind = "stub"
is a key of a primary zone Delete the key, or set kind = "primary"
is a key of a secondary zone Delete the key, or set kind = "secondary"
the refresh of a secondary is held between Write a min_refresh at most the max_refresh, here or in [zones]
the retry of a secondary is held between Write a min_retry at most the max_retry, here or in [zones]
whose records come from its primaries alone Delete the zone, or make it again as a primary. Every write of records onto a secondary zone is refused: a change of records, an update, an ACME record, the expiry sweep, a move of the serial, a freeze, a thaw and a checkpoint
from its primaries and holds Delete records.zone and each other master file of the secondary
copies its records from the servers it names Write one to eight primaries in zone.toml
a stub zone takes no update Delete [update], or set kind = "primary"
so this command has nothing to read Give the command a primary zone. A stub holds no records of this server
beside primaries Delete records.zone, or delete primaries to keep the servers there
is a master file, and a stub that learns Delete that file, or delete primaries
a stub with no primaries keeps Write records.zone, or write primaries in zone.toml
holds no address, or addresses, and a stub holds or a secondary holds Write one to eight primaries
asks its primaries over plain DNS Write the plain address of the primary, without tls:// and the like
an interval of aging is a time from 1 hour Write a time from 1h to 365d, such as 7d or 36h

A static stub holds the NS records of its name and the addresses of its servers in records.zone, and nothing else (Local Zones). The server reads that file with the rest of the configuration, and it refuses the revision where the file does not read. The message names the file and the line where the record starts. A line that does not read names the line where the reading failed, which can be a later line of a record that parentheses join. A file with no NS record, and a file where no server is reachable, name no line, because the refusal is about the whole file:

tadoru config: ./data/config/zones/corp/records.zone, line 5: the stub holds an address of www.corp.example., and no NS record of corp.example. names it. Name it in an NS record, or delete the address
The refusal says What to change
holds no NS record Write an NS record at @ for each server
holds the NS set of its apex and the A and AAAA Delete the record. A stub holds its servers alone
no NS record of Name the server in an NS record, or delete the address
every server of the stub Write an A or AAAA record for a server inside the zone
more than 8 servers or more than 8 addresses Keep at most eight servers, and at most eight addresses for each
outside the zone Delete the record. The address of a server outside comes from DNS
under localhost Name the servers of the zone, not this machine
sends no query there Write the address of the server on its network
that this server can ask Give one server an address it can use, or a way to its address
twice Delete one of the two lines
reads no $INCLUDE Write the records of that file in records.zone
turned off or an ANAME record Delete the line
the records of a stub never age Delete the ;refreshed= mark. A stub is no primary
is a master file, and a static stub holds Write its records in records.zone, and delete that file

A file that reads makes the stub, and this server sends the questions under its name to those servers.

One name has one route: a zone of yours, a stub or a [[forward]]. So a stub at the name of a zone or of a forward is refused, and so is a stub inside a zone at a name where the zone has no cut. A stub at a cut of your zone, or below it, is served. The message names the file and the key:

tadoru config: ./data/config/server.toml, setting forward[0].suffix: is the name of the stub zone corp. A forward and a stub cannot both answer one name. Delete the forward, or turn the stub off
The refusal says What to change
is the name of the stub zone Delete the [[forward]], or set enabled = false on the stub
the name of the zone Delete the stub or the zone, or turn the zone off
inside the zone Write a cut in the zone at the name of the stub, or delete it
are both called Delete one of the two stubs
and this server answers Name the zone of the stub, not a name that this server keeps
stub zones, and this build holds Keep at most 32 stub zones

A stub turned off still counts against a zone, so turning the stub off does not clear the name of the zone. A dynamic update that deletes the cut over a stub is refused with inside the zone, and the zone keeps the cut. Delete the stub first, and then send the update.

POST /api/zones/{id}/refresh asks the primaries of a learned stub now. It starts nothing where it is refused, and the type in the answer says why:

Status type Means Do
400 bad-request The path does not name the id of a zone Use the id of GET /api/zones
400 unreadable-body The body is not JSON Send no body, or {}
404 not-found No zone and no stub has this id Use the id of GET /api/zones
409 zone-kind A primary zone, which holds its own records and needs no refresh, or a static stub A static stub takes a refresh once zone.toml gives it primaries
409 zone-off zone.toml turns the stub off, so it has no route and no refresh Turn it on. It then asks its primaries at once
409 zone-pending The server does not follow the stub yet, as for a moment after a change Ask again. Where it stays, the log line the stub.zone of a stub zone that changed stays, and the task tries again says why
415 wrong-content-type A body without content-type: application/json Send the header with the body, or send no body
422 unreadable-body The body holds a key, such as full, which this build does not take, or it is not a JSON object Send no body, or {}
503 refresh-not-running No task refreshes the stubs Read the log for why that task ended. A restart starts it again
503 refresh-busy The queue of asks is full, or the task did not answer within 2 seconds Ask again. Nothing started

An ask inside the minute after the start of the last try, or while a refresh runs, is no refusal. It answers 202 with started false, and next_refresh_at says when an ask can start one.

localhost is the one name your own zone cannot take over. A zone whose name is localhost, or any name under it, is refused whatever the records hold. The name in zone.toml is what is refused, so tadoru config validate reports it before you apply anything:

tadoru: ./data/config/zones/localhost/zone.toml, setting name: is localhost or a name under it, and this server answers those itself. Every name under localhost has to answer the loopback address, so the whole subtree stays here. Use another name for the machine

Loopback addresses in the file do not make it allowed. Every name under localhost has to answer 127.0.0.1 and ::1, and a file cannot promise that: a zone with one A record answers nothing for AAAA, and a zone with one name answers nothing for the next one. localhost means the computer that asks, to every program on every client, and a zone that says otherwise breaks them quietly.

A zone for resolver.arpa, or for any name under it, is refused the same way. A client asks there for the encrypted endpoints of this server, and the server builds that answer from its own listeners.

A zone for onion is refused the same way, and for a different reason. Tor resolves those names, and a server that answers them itself takes a name out of Tor’s hands. A [[forward]] is how you reach a resolver that speaks it. This server still answers onion names. The answer is always that the name is not there, which is what tells a program to ask Tor.

Your own zone does take over the rest of what this server answers for itself: the reverse names of the private ranges, test, invalid, home.arpa and local. Configuration has the local_zones setting that sends the reverse names upstream instead, and Local Zones lists what each of them answers until you write one.

A rule of [[update.allow]] in zone.toml is checked when the zone is read and by tadoru config validate. A refusal names the key, and the last good configuration keeps serving:

tadoru: ./data/config/zones/home/zone.toml, setting names: "laptop.example.net" is outside the zone home.arpa.
Refused Why
[update] with no [[update.allow]] It reads like a policy and allows nothing
A rule with no from, or with no names A rule covers the networks and the names it names
A from entry that is not an address or a range A range is written as 192.168.1.0/24, with no bit past it
An IPv4 range written in IPv6 form in from A sender of it arrives as an IPv4 address
::/96 or a range inside it in from, but ::/127 It writes IPv4 addresses in IPv6 form
A link-local IPv6 address or range in from fe80::1 names a different machine on every link
0.0.0.0/0 or ::/0 in from A rule names the networks it trusts
A name outside the zone in names A rule covers names of its own zone
A * anywhere but as the whole first label of a name *. and a name is the one pattern; host* matches nothing
No types A rule covers the types it names, or * for every type
* with another entry in types * already covers every type
A type that only a question, a message or a signer makes An update never writes such a record

A rule of [[transfer.allow]] in zone.toml, or of [[zones.transfer.allow]] in server.toml, is checked when the file is read and by tadoru config validate. A refusal names the rule by its place, counted from 0, and the last good configuration keeps serving:

tadoru: ./data/config/zones/home/zone.toml, setting transfer.allow[1].from: names no network. A rule names the networks that can transfer the zone, one at least
The refusal says What to change
holds 17 rules, and a file holds 16 at most Join rules: one rule holds up to 64 networks
names no network Write from with one address or range at least
holds 65 entries, and this file carries 64 Write a wider range, or split the rule in two
is not an address or a subnet Write 192.0.2.53 or 198.51.100.0/28, with no bit past the prefix
writes an IPv4 address as an IPv6 one Write the IPv4 form. A client of it arrives as an IPv4 address
::/96 or a range inside it Write the IPv4 form of the range
is named twice Delete one of the two entries
is a key of a primary zone at transfer Delete [transfer], or set kind = "primary": a stub holds no zone
unknown field `query_from` Move the key above the first [[zones.transfer.allow]] block
unknown field `key` Delete the key. This release takes from alone

The list of notify in zone.toml, or in [zones] of server.toml, is checked when the file is read and by tadoru config validate. A refusal names the entry by its place, counted from 0, and the last good configuration keeps serving:

tadoru: ./data/config/server.toml, setting zones.notify[1]: 224.0.0.1 is a multicast address, and a NOTIFY goes to one secondary. Write the address of the secondary
The refusal says What to change
holds 17 entries, and a list notifies 16 secondaries Keep 16 secondaries at most
is not an address Write the IP address of the secondary. A name is not accepted
is a URL Write the address alone: a NOTIFY goes over plain DNS
is every address rather than one Write the address that the secondary listens on
is a multicast address Write the address of one secondary
is the broadcast address Write the address of one secondary
asks for port zero Write the port of the secondary, or leave it out to use 53
which the list already names Delete one of the two. ::ffff:192.0.2.53 is 192.0.2.53
in the old compatible IPv6 form Write the IPv4 address that the refusal names
is a link-local address with no link Write the number of the link after a %, such as fe80::53%2
is a key of a primary zone at notify Delete notify, or set kind = "primary": a stub has no serial
unknown field `notify` Move the key above the first block of rules of the file

A client such as nsupdate or a DHCP server reads the answer code. NOERROR means that the server applied the update: the change is in the journal of the zone on the disk, and the next query reads it. An update that changes nothing gets NOERROR too. The other answers:

Answer Why
REFUSED, with code 18 A rule names you, and the update needs a name, type or transport it lacks. A name outside the zone is such a case, because no rule can name it. The code comes only over a connection, and only with an OPT record
REFUSED, with code 18 and the text zone frozen A rule lets the update in, and the zone is frozen, or was frozen while the update waited: it takes no update until tadoru zone thaw <zone-id>. The code comes only over a connection, and only with an OPT record
REFUSED, with no code No rule names you, or the zone section names no zone here, or one of the cases above over UDP (User Datagram Protocol, RFC 768), or the update came over UDP behind a PROXY header
NOTAUTH A rule names you, and the zone section names a name below the apex
FORMERR The zone section is not one SOA entry, or a rule names you and a record is broken
BADVERS The OPT record of the update names an EDNS (Extension Mechanisms for DNS, RFC 6891) version that this server does not speak
NXDOMAIN, YXDOMAIN, NXRRSET, YXRRSET A prerequisite of the update does not hold, and nothing changed

SERVFAIL means the server did not finish the update: 64 updates of the zone were waiting already, or the update reached the deadline of its query, half a second past resolution_deadline_ms. The server can take an update just as its deadline passes, so a late SERVFAIL can come for an update that it applied. A checkpoint can also use that deadline. The server writes a zone into its file once the journal of the zone holds more than 1,000 transactions past its file, or more than 4 MiB of them. Each update that applies is one transaction. A large zone is written sooner: each transaction past its file counts the records of the zone after it, and the zone is written once that count passes 4,000,000. A zone of 100,000 records is written at its 41st transaction. An update that comes meanwhile waits for it, and can answer SERVFAIL. The log then says checkpointed the zone, or the zone took no checkpoint for one that failed. Before you send it again, make it safe to repeat: add a prerequisite, or ask the zone first. An add of a record that is already there changes nothing. A zone that is stopped also answers SERVFAIL to every update that its rules allow, and the update writes no command row. The zone stays stopped until its journal is fixed, so a retry does not help. See “A zone that answers SERVFAIL, or takes no update”. An update that comes while the server stops answers SERVFAIL and writes nothing. Send it again once the server is back.

An update whose frame in the journal passes 512 MiB also gets SERVFAIL, and nothing of it is written. The log says is longer than the largest frame. Only an update that removes most of a zone that an older build let grow past its room comes near that size. Send it as several smaller updates, each of which removes fewer names. A frame that an older build wrote past 512 MiB still reads. The prune and tadoru zone journal cut keep it as the journal holds it.

An update is also refused, with no code, where it breaks a rule of the zones. An MX at a name that is an alias is one such case. These are others:

  • The update holds more than 1,000 records in its prerequisite and update sections together. Send it as two updates.
  • The update adds a record of a type that only signing a zone makes, such as RRSIG. Only a rule with types = ["*"] lets such an update reach this refusal. A rule that names the type never loads.
  • The update adds a DNAME above names that the zone already holds. This server holds no data below a DNAME owner. Delete the names below first, then add the DNAME.
  • The update adds an A or AAAA record at a name that holds an ANAME.
  • The zone after the update breaks any other rule of a zone, such as a CNAME beside other data.
  • The zone after the update leaves no room to write it back to its file. The server writes the updates of a zone into records.zone from time to time, and a master file holds 16 MiB. All the files of a configuration hold 256 MiB together, with each zone that has updates counted at the size it can grow to. The log says one zone file holds or a whole configuration holds. The problem says after this change or This change of zone <zone-id> needs that room, for an update, the record of an ACME challenge and a change of records alike. Remove records, or move a subtree of names into a zone of its own. The server counts the size of a zone generously, so it refuses before the file is full. A record with a ;refreshed= mark counts 32 octets more, for its mark, and the comment of a record counts its octets and 3 more, so shorter comments free room too. An update whose zone writes a shorter text after it, such as most updates that only remove records, passes this check where that text fits. A zone whose text is past 16 MiB takes no update: run tadoru zone freeze <zone-id>, make its files smaller, then run tadoru zone thaw <zone-id>. Where the whole configuration is full, the server writes the zones with updates back to their files. An update sent again after that can pass. The record of an ACME challenge is refused in the same way, and its order fails with cannot go in now, as An ACME order that fails says. Where one zone is past its file, its order fails too.

A rule by address never covers the SOA record or the NS set at the apex. An update that changes either gets REFUSED with code 18, whatever types says.

A zone can hold updates that it does not serve: it is stopped, or the last update of it did not finish. Such a zone counts with those updates where its journal still applies. So an update of another zone can be refused for a name of that zone. Where the server cannot read the journal of such a zone, the update gets SERVFAIL. Send it again later. The update gets SERVFAIL too where a file of such a zone does not match what was recorded for it in the running revision, and the log of the server names the file and its path. Sending it again does not help: roll back to a revision that verifies, or restore from a backup.

An update that comes over UDP through a load balancer of proxy_protocol_from is refused, whatever client its PROXY header names, and a header that names no client is refused too. Anybody who can forge the source address of the load balancer can choose that client, with one datagram and no answer. The refusal comes before every rule, so the answer says nothing about the zone. dns_refused_total{reason="proxy_datagram"} counts these updates. Send the update to the server directly, or through the load balancer over TCP, where the connection proves the address of the load balancer.

Code 18, “Prohibited”, comes over every connection, DNS over HTTPS included, where the refusal is the transport itself: a proxy can name the address of its sender. Over UDP the answer leaves the code out, because the source address of a datagram can be forged. An update with no OPT record gets no code either, because the code lives in that record.

A secondary logs the code that it got, and dig axfr @server <apex> prints it. A REFUSED or a NOTAUTH carries an Extended DNS Error where the query carried an OPT record, which dig sends. The connection stays open after each refusal, so the next query on it gets its answer.

Answer Why What to change
REFUSED, with no code An AXFR came over UDP. An IXFR over UDP is answered with the SOA record, with the codes of TCP for a refusal Ask over TCP. dig axfr does
REFUSED, with code 18 The query came over DNS over TLS, HTTPS or QUIC Ask over plain TCP. This build sends a transfer over plain TCP alone
REFUSED, with code 18 No rule of the zone names the address of the client, or the address is outside the query_from of the zone Add the address to a [[transfer.allow]] rule and to query_from. Behind a relay that sends a PROXY header, the address is the one that the header names
REFUSED, with code 18 No zone of yours holds the name, or it names a stub zone, a zone turned off, or a zone that the server answers itself, such as localhost Ask for the apex of a primary zone that is turned on
NOTAUTH, with code 20 The name is below the apex of a zone that allows the client Ask for the apex of the zone
REFUSED, with code 18 and the zone holds an ANAME, which no transfer carries The zone holds an ANAME, which a secondary cannot read Move the ANAME to a zone that no secondary copies
REFUSED, with code 18 and a zone below this zone does not answer this client The query_from of a zone of yours below this one leaves the client out Add the address to the query_from of the zone below, or transfer from an address that it allows
FORMERR The query holds a record in its answer or authority section, an IXFR holds no SOA record at the name of its question, or the query holds an extra record other than one OPT record, such as a TSIG record Send the query without those records. This build reads no TSIG record
SERVFAIL The zone is stopped, and its SOA query answers SERVFAIL too Read A zone that answers SERVFAIL, or takes no update and A zone that the serial witness stops below
SERVFAIL The client passed a limit of transfers Wait for it to pass, as below

A client that no rule allows gets the same REFUSED with code 18 for every name, whether a zone of yours holds the name or not, so it learns nothing about your zones. The counter dns_refused_total with reason="transfer" counts each REFUSED and NOTAUTH answer to a transfer. The log line refused a zone transfer, at the level debug, names the client and the reason.

A transfer past a limit logs refused a zone transfer at a limit at the level debug, with the limit:

Limit What it means
starts The address started 6 transfers in the last minute, or its /24 of IPv4 or /56 of IPv6 started 12. Each AXFR and IXFR query over TCP counts, a refusal included
places The server runs 10 transfers, or the address or its range runs 2. A place frees when a transfer ends
octets The address took 1 GiB of transfers in the last hour
versions Running transfers hold 2 versions of the zone already. A version frees when the last transfer that holds it ends
budget The versions that running transfers hold use 256 MiB of memory together. A zone whose own size passes that never transfers
keys The server counts the transfers of 4,096 addresses and ranges, and has no room for one more. Room comes back as their minutes and hours pass

A transfer that ends before its last message logs cut a zone transfer at the level info, with the reason and the count of records sent so far. The counter dns_transfers_total counts it with outcome="cut". The secondary keeps the copy that it had, and tries again later.

Reason What happened
peer-closed The connection closed: the secondary closed it, a write failed, or this server retired the listener or stopped
peer-stopped-reading No message reached the secondary within tcp_write_timeout_seconds, 10 seconds by default, so this server closed the connection
time-limit The transfer ran for 10 minutes. The secondary gets one SERVFAIL message at the end
drain This server closed the connection, for example after a change of the configuration stopped trusting the relay in front of the client
oversized A record fits no message. The warning a record is too large for a zone transfer names its owner and its type. The secondary gets one SERVFAIL message. Make the record smaller, such as a TXT record split in two
octets The address reached its 1 GiB of the hour during the transfer. The secondary gets one SERVFAIL message

A revision warns of a record too large for a transfer before any secondary asks, as Configuration says.

A secondary that gets the whole zone for an IXFR

Section titled “A secondary that gets the whole zone for an IXFR”

An IXFR that gets the whole zone is no fault. The secondary ends up with the right zone, and it costs more octets. The counter dns_ixfr_answers_total counts it with kind="ixfr-whole", and reason says why. The line sent a zone transfer carries the same reason. Zones says when the server keeps changes.

reason Why What to change
empty The zone keeps no change. The server started just now, the zone started again with none, or the zone is too small to keep any, such as a zone of an SOA, one NS and one A record Nothing. A zone of a fair size keeps the next change
not-held The zone keeps changes, and none starts at the serial of the secondary. They were dropped at 1,000 changes or at the limits of the kept changes (64 MiB for all zones), or a change was larger than the zone, or the secondary holds a serial that this server never served Nothing for one answer. If it repeats, check that the secondary follows one primary alone
whole-zone-time An apex sends whole zones after tadoru zone witness reset, accept or raise. Over UDP the count is kind="ixfr-over-tcp" Wait until both bounds that tadoru zone witness list names are past and the zone changes once more. Some cases need raise --old-serials, as Zones says
budget Running transfers hold most of their 256 MiB of versions, so the changes do not fit, and the whole zone goes in their place Nothing. It passes when the other transfers end, as the limit budget above says
undefined The serial of the secondary and that of the zone are exactly 2^31 apart, so neither is ahead Nothing. This is a rare serial
stale, child The kept changes do not match the zone, or a zone below it refuses the client. Neither is expected Nothing for the secondary. Report it

A secondary that gets the whole zone at every change with the reason not-held has a serial that this server did not serve. That is the case where two primaries feed it. Give the zone one primary.

A zone with an [[update.allow]] rule keeps its newest records in its journal, and records.zone can lack them. So the server refuses an edit of its records by hand: a save of a *.zone file of the zone, a new or a deleted *.zone file, and a new name in zone.toml. The watcher, tadoru config edit, tadoru config apply, tadoru zone import --replace and the API all meet the same refusal:

tadoru config: ./data/config/zones/home-arpa, setting zones: zone home-arpa takes dynamic updates, and an edit of its records by hand could repeat or undo them, so freeze the zone first: tadoru zone freeze home-arpa. Then edit its files, and run tadoru zone thaw home-arpa
The refusal says What to do
takes dynamic updates Run tadoru zone freeze <zone-id>, which writes the updates into records.zone. Edit the files, then run tadoru zone thaw <zone-id>
five minutes after the last change A zone without an update rule took a change through the API or an ACME challenge. The server writes it into records.zone five minutes after the last one. Edit the file after that, or freeze the zone first
its journal does not read, or is stopped The server cannot read the journal of the zone, or it stops the zone, so it cannot say which changes the file lacks, and the zone takes no freeze. A zone that answers SERVFAIL, or takes no update has the way out, such as tadoru zone journal cut and tadoru zone journal remake. A stopped zone whose journal ends in a freeze names tadoru zone journal cut where the cut can work: with the server stopped, the cut at the freeze keeps it, and the next start finds the zone frozen, so tadoru zone thaw works again. Where the cut cannot work, such as over a journal header that the ledger does not match, the message says known dead end and names a backup. A frozen zone whose freeze frame is damaged, or whose journal is gone, is a known dead end in this release: restore it from a backup

A frozen zone takes no command that changes one of its files, whatever the file:

tadoru config: ./data/config/zones/home-arpa, setting zones: zone home-arpa is frozen: edit the files in the configuration root, then tadoru zone thaw home-arpa

Edit the files of the zone in the configuration root with an editor, then run tadoru zone thaw. A command that deletes a frozen zone, and a rollback that changes its files, are refused with thaw it first. So is tadoru restore --yes, with zone <zone-id> is frozen ... thaw it first, before it replaces any file of the installation. Where the server cannot read the record of the running revision, a rollback is refused while a zone of the running or the target revision is frozen, because nothing proves which files it changes. Where the server cannot read the journal of the zone, the refusal says does not say whether the zone is frozen and gives the reason. The frozen refusal comes before the check of the files, so an edit that does not read gets it too. Through the API, a change of the files of a frozen zone, its deletion and a rollback that changes its files are a 409 with the type /problems/zone-frozen. The same change goes through after the thaw. The server records a refused request that carried an Idempotency-Key under that key, so after the thaw, send it again with a new key, or with none.

A stub zone can sit over the journal of a primary that once had its id, after a restore, a rollback or files moved by hand. PATCH /api/zones/{id} refuses every change of the settings of such a stub with 422 and the words this stub holds the journal of a primary zone; delete the stub first, then make the zone again, with what it found: the journal file, a row of the ledger, a statement of its freeze state, or history of a journal that the ledger holds without its row. A ledger that holds such history and no zone for it, which only an edit of control.sqlite by hand leaves, says a ledger that holds history of journal ... and no zone for it, and then every stub takes no change of its settings until a restore puts back a whole ledger. Deleting a stub and making it again with new settings still works. A journal that a restore kept with an older ledger takes its row with its zone at the first change of its zone, so its history refuses no other stub after it. A change that equals what the stub holds is refused the same way. The journal stays when the stub goes, so a stub made again under the id holds it too: it keeps the settings that POST /api/zones gave it, and takes no PATCH after. This build has no way to delete that journal yet. A primary made again at the id takes the journal back. tadoru zone delete <zone-id> or DELETE /api/zones/{id} always deletes the stub, and keeps the journal. A deletion of its files by hand waits for the start to read the journal, as for any zone over a frozen journal. Where the journal ends in a freeze, a primary made again at the id is published frozen: write its files in the configuration root, and run tadoru zone thaw <zone-id>.

An edit of a stub’s zone.toml or records.zone by hand is refused while the stub runs, before the start reads the journals and after. A stub with no journal under its id says is a stub zone, and a stub takes no edit of its files by hand, with the ways a stub changes: PATCH /api/zones/{id}, tadoru zone enable and tadoru zone disable, or its deletion and a new make. A stub that holds the journal of a primary says this stub holds the journal of a primary zone as above. The file stays in the configuration root as you wrote it, and the server keeps the stub that runs. Put the file back, or delete the stub and make it again. Before the start has read the journals, an edit of a stub over a journal that ends in a freeze waits, and the log says the zone is a stub zone over a journal that ends in a freeze, and its files wait for the start to read the journals. After the start, the edit is refused as above.

A rollback that changes such a stub, or turns it into a primary, is refused with 422 and the words this stub holds the journal of a primary zone, and this rollback changes it, a stub over a journal that ends in a freeze too. Delete the stub first, with tadoru zone delete while the server runs, or with the server stopped by a rollback to a revision that does not hold it, then roll back: the rollback makes the zone again, and a primary made over a journal that ends in a freeze is published frozen. Where the record of the running revision cannot be read, the words say nothing proves that this rollback leaves it, and the way out is the same. A rollback that removes the stub, or leaves it as it is, goes through.

tadoru restore --yes refuses a restore that changes such a stub, or makes it a primary, before it replaces anything: zone <zone-id> is a stub zone that holds the journal of a primary zone, with what it found, and this restore changes it or this restore makes it a primary zone. The dry run says with --yes, this restore is refused with the same words. A restore runs with the server stopped, so start the server, delete the stub with tadoru zone delete <zone-id> and stop the server, or with the server stopped roll back with tadoru config rollback to a revision that does not hold the stub. Then restore again. this restore cannot tell which zones of the running revision are stub zones refuses a first run whose running configuration does not read: make it read, or roll back to a revision whose record reads. A run again of a restore that did not finish gives these as warnings, and goes on. A stub over a journal that ends in a freeze gives the same refusal, and names no thaw, which takes no stub. A restore that removes the stub or holds it as it is goes on, with a warning where its journal ends in a freeze.

While the server runs, POST /api/zones/{id}/freeze and POST /api/zones/{id}/thaw freeze and thaw a zone. A freeze of a frozen zone is a 409 with the type /problems/zone-frozen, and a thaw of a zone that is not frozen is a 409 with the type /problems/zone-not-frozen. Send an Idempotency-Key with the request. Then a retry after an answer that was lost gets the first answer again, and nothing applies twice. A refusal of a request with a key is recorded under that key, so a later request with the same key is a 409 with the type /problems/already-refused. A retry without a key gets the refusal of a frozen or a thawed zone, so the freeze or the thaw can have landed: read the zone with GET /api/zones/{id} to see its state. The two routes take no If-Match, because a freeze makes no revision to compare, and a request that sends it is a 400. A freeze waits up to the deadline of an update for the updates of its zone that wait in the queue, and the zone takes no new update while it waits.

A change of zone.toml that keeps name, such as a new update rule, passes. So does a command that deletes the whole zone, which keeps its journal, and one that makes a zone where none of that id was. A zone in the state at_files serves its files and takes no update, so it takes a hand edit, until a journal remake or cut lets it take updates again.

A change that the updates of a zone refuse

Section titled “A change that the updates of a zone refuse”

A change of the configuration is checked against each zone as it answers: its file, with the updates of its journal applied. These refusals come from that check:

tadoru config: ./data/config/zones, setting zones: zone home changes, and the next start would stop it for its journal: transaction 1 starts from serial 1, and the zone is at 2
The refusal says What to change
the next start would stop it for its journal The edit of records.zone does not fit the updates that the zone took since the last change. Undo the edit, or leave out the records that the updates changed. tadoru zone journal cut and tadoru zone journal remake take a journal only where the start stops the zone for it
The change can be submitted again The server failed to open or read control.sqlite, the journal file of the zone, or a directory above it. Those directories are the directory of the zone, zones/ and the state root. A start opens each of them for writing or for a sync, so give the server read and write access to them. Then apply the change again
break a rule of a set of zones The zones as the change serves them break the rule after the colon, such as an MX at a name that is an alias. Each zone counts with the updates of its journal, at its files where nothing says which updates the files hold, or by its name alone where it is stopped. A rule that only the files break, where an update mends it, refuses nothing. Change or remove the record that the rule names
changed on the disk during this change The zone.toml of the zone in the running generation, under generations/ in the state root, changed while the server applied the change. Submit the change again. If the server then says that the revision does not match what was recorded, roll back with tadoru config rollback or restore from a backup
zone.toml of the running generation ... cannot be read The server cannot read that file under generations/ in the state root. Give the server read access to it, or look at the disk, then submit the change again

A [[forward]] can be refused for a name that an update changed, while the zone file still holds the delegation:

tadoru config: ./data/config/server.toml, setting forward[0].suffix: is inside the zone home, whose name is home.arpa.. The zone answers that name itself, so a forward for it is a second answer

An update removed the delegation, so the zone answers that name itself. Delete the forward, or add the delegation again with an update.

A rollback can refuse the same forward where an update added the delegation. A rollback serves each zone with a journal from its files, and the files lack that delegation. Make the change by hand instead, and write the delegation into records.zone. A restore refuses such an archive for the same reason, because the archive carries no journal. Restore a backup made after the delegation was in records.zone.

A zone that is stopped can refuse a change that does not touch it. The check reads the updates of the stopped zone as a start does, and they break a rule with the rest of the configuration. The refusal names the rule, such as a [[forward]] at a name that the updates of the stopped zone answer. Change or delete the [[forward]] or the record that the refusal names. The journal of such a zone replays, so tadoru zone journal cut and tadoru zone journal remake do not take it.

A change of records that one zone holds back

Section titled “A change of records that one zone holds back”

A change of records reads, for every zone, which journals the running revision still reads, so that no command whose place a reading needs is pruned. Where the journal of one zone, or what control.sqlite says of it, does not read, every change of records answers 503 with so no change of records goes in until zone <zone-id> is repaired, whichever zone it changes. This holds too where the server cannot look at the journal file, for example for its permissions, and where the header of the journal names another zone. Repair that zone: stop the server, run tadoru zone journal cut <zone-id> to keep the frames that read, or tadoru zone journal remake <zone-id> for a new, empty journal, and start the server.

POST /api/zones/{id}/records changes the records of one zone. Each refusal is a problem document, and its type names the rule. Where one line caused it, list, index and excerpt name the line. A refusal by the zone, and an answer of a change that landed, stay with the Idempotency-Key for 24 hours, so a request again under that key gets the same answer: send a fixed request under a new key. A refusal of the request alone stays with nothing, and comes back for the same request. An answer that says to send it again stays with nothing, so the same key can still land.

Status type Means Do
400 bad-request No Idempotency-Key, two of them, or one past 255 octets, or an If-Match that does not read Send one key, and the ETag of a read as If-Match
400 unreadable-body JSON that does not read, an unknown field, no line, a line that is not one record with every name absolute, or an item of replace or notes of another form Read detail and the line or the item it names. Copy a line from GET /api/zones/{id}/records
413 too-many-lines More than 1,000 lines and items of all seven lists in one request Send the change in more requests
422 comment-form The comment of a note is empty, past 1,024 octets, holds a control character or a blank at an end, or a word that starts with ;refreshed= or ;expires= Fix the comment of the note that index names
422 expiry-off, expiry-time An expiry time in a zone without record_expiry, or a time past 9999-12-31T23:59:59Z or at or before the time of the change Set record_expiry = true for the zone, or give a time to come
415 wrong-content-type The body is not sent as application/json Send content-type: application/json
422 aname, soa, signer-type, named-twice, two-lifetimes, replaces-itself A line that a change of records never takes, or two lines that clash Change an ANAME or the SOA through a freeze, an edit of the file and a thaw; fix the lines
404 not-held This server holds no zone with this id Check the id in GET /api/zones
409 version-moved The records changed since the version in If-Match, or If-Match is an empty list Read the records again, and send their ETag under a new key
409 zone-off, zone-frozen, zone-listed, journal-lost The zone is off, frozen, at its files with nothing that marks its updates, or without its journal Turn the zone on, thaw it, run tadoru zone checkpoint <zone-id>, or remake its journal. A zone at its files with no journal at all takes no checkpoint: run tadoru zone journal remake <zone-id> and tadoru zone journal settle-freeze <zone-id> --not-frozen, with the server stopped, then start it, as the detail says
422 kind, outside-zone, absent, lifetime-differs and the other rules of a zone The zone takes no change of records, or a line does not fit the zone. absent for a note: the request does not leave its record in the zone. apex-ns-expiry for a note: no NS record of the apex would stay without an expiry time Read detail, and the line or the item that list and index name
429 over-quota A quota of changes in 24 hours is full Wait the seconds of Retry-After
503 unsettled An earlier change of the zone has not settled, the one that command names Send it again later. Where the health report says the next start decides it, restart the server
503 audit-full The audit of changes of records is at its bound until checkpoints fold the journals Wait the seconds of Retry-After
503 recovery-owed An earlier change under this key waits for its recovery: the next start, or a later build, as its detail says Restart the server where the detail says so; otherwise send the change under a new key
503 unavailable, stopping, too-many-changes, still-writing, ids-taken The server cannot take the change now Send it again with the same key
500 not-in-journal, unknown, append-refused, unreplayable The change did not land, or its outcome is not known Read the records of the zone, then send the change under a new key
500 row-unread, key-collision, start-refused, internal A defect of this server, which the log names Read the log, and see below for a row that does not read

A merge of a zone file that the API refuses

Section titled “A merge of a zone file that the API refuses”

POST /api/zones/{id}/records/import merges a zone file into a zone that exists, as a change of records. Its answers and its key work as the table above says, and the rules of the zone are the same. Where one record caused a refusal, the refusal names the line of the file where that record starts: list is file, and line counts from 1. excerpt is that line, without its line end, cut at 200 octets. In an answer that the key keeps, each NUL of the line shows as U+FFFD. A refusal of the whole file or of the whole zone, such as a file with no record or change-too-large, names no line.

Status type Means Do
400 unreadable-body The body is not UTF-8 Send the file as UTF-8 text
400 bad-request replace is not true or false, or the query holds another name Send ?replace=true, ?replace=false, or no query
413 too-many-records The file passes 10,000 records, the skipped ones counted, at line Split the file, and merge each part under its own key
413 body-too-large The body passes 1 MiB Split the file
422 invalid-import An $INCLUDE line, a line that does not read, a record with no lifetime and no $TTL, or no record Fix the line that line names, write the records of an $INCLUDE in its place, or add $TTL
422 aname and the rules of a request An ANAME, or records of the file that clash, such as one record twice (named-twice) Change an ANAME through a freeze, and fix the line that line names
422 change-too-large The merge passes one transaction of the journal: 10,000 records or 1 MiB, notes counted Split the file, or merge it with fewer comments
422 key-reused The key named a change of records, or another file or another replace Send the merge under a new key
503 unavailable The zone came, or its apex moved, while the server read the file Send it again with the same key

A zone that answers SERVFAIL, or takes no update

Section titled “A zone that answers SERVFAIL, or takes no update”

The journal of a zone is zones/<zone-id>/updates.jnl in the state root. It holds each dynamic update that the zone answered. Where the server does not serve the journal of a zone, it stops the zone or keeps it at its files. Where an update did not finish, it marks the zone unsettled until the server stops. The rest of the server answers in each case. tadoru health counts these zones, and the zones list of the health route names each zone with the reason.

State The zone answers Why
off No name zone.toml sets enabled = false. A name of the zone goes to the zone above it, a [[forward]], a zone that this server holds itself, or the upstream. Set enabled = true to serve it again
stopped SERVFAIL For example, the journal is lost, is damaged, does not read, ends short of what the server recorded, holds other updates than the ones that the server wrote, or holds an update that does not apply to the files. Or the marks of the journal are out of order: an update after a freeze, two freezes, or a thaw with no freeze before it. Or the updates break a rule with the rest of the configuration, such as a [[forward]] under a delegation that an update removed. Or the serial witness stops it, as A zone that the serial witness stops says
at_files From its files Nothing says which updates of the journal the files hold, for example after a rollback or an edit of the records. Or the journal is missing, the files hold every update that the server knows, and the next update makes the journal again. Or an update could not make the missing journal again. Or control.sqlite cannot be read, so nothing says whether the zone had a journal
unsettled With or without the update An update did not finish: its write to the journal, or the change of the answers after it. The answers can hold that update or not, and come from the files after a later change of the configuration
frozen As before tadoru zone freeze or POST /api/zones/{id}/freeze froze it, so you can edit its files. It answers REFUSED to an update until its thaw. After a day, the entry carries a note, because a freeze that was forgotten refuses every update of a DHCP server. Run tadoru zone thaw

A zone is stopped for its journal, too, where its journal is no regular file: a named pipe, a socket, a device or a symbolic link stands at zones/<zone-id>/updates.jnl, or a link at the folder of the zone or at zones, even where no journal is behind the link. The start, an update, the journal commands and a hand edit follow no link there and do not wait on what stands there. Nor do the other readers of the journal: the scan of a start after a crash for the commands that did not finish, which leaves such a command waiting; a checkpoint, which refuses the zone in the same words; the gauge dns_journal_transactions, which counts the zone as unknown and goes on to the next zone; and the prune of the journal, which leaves the zone alone. Where such a thing stands at updates.jnl.new, the new journal that a cut or a remake writes beside the journal, each update of the zone fails with the same words, and the zone shows at_files with the reason a journal that an earlier writer left cannot be finished. A checkpoint, a freeze, a thaw and tadoru zone journal remake refuse the zone too. The reason names the path, says is not a regular file or is a symbolic link, and gives the way out: put the journal file itself in that place, or the folder itself, and move away what is no journal of this node. tadoru zone journal cut, remake and settle-freeze refuse the zone with the same words, after is not read. A hand edit of its files is refused too, with the path.

A zone is stopped for its journal where an update in it gives a record a refresh time that a zone cannot hold. The reason names the record and ends in one of these:

  • which is turned on, turned off or added off, and such a record has no time
  • past the last time that a mark can hold
  • and the SOA never ages

A zone is stopped for its journal, too, where an update in it holds a note of a record, its comment and its expiry time, that a zone cannot hold. The reason names the record and ends in one of these:

  • that the zone does not hold after it
  • and the SOA takes no note
  • twice

This build writes no such update, so the journal comes from another build, or it is damaged. Run tadoru zone journal remake <zone-id>, which drops the updates past the files, or restore the zone from a backup.

A zone that a rollback left at_files takes updates again after tadoru zone checkpoint <zone-id>, which binds its journal to the files that it serves. The updates of the journal that those files lack stay out of the zone.

tadoru zone freeze refuses a zone that is off, stopped, at_files or unsettled, and a zone that the configuration does not hold, with the reason after takes no freeze:. A zone that is at_files gets the way out for its reason:

The reason after because What to do
the journal is missing, and the next update makes it again Make one update of the zone, a change of its records through POST /api/zones/{id}/records or an RFC 2136 update that its update policy allows. A zone that $INCLUDE splits over more than one file takes no change through the records route, so only the RFC 2136 update works there. The update makes the journal again. Then freeze the zone. tadoru zone journal remake refuses such a zone, because it serves its files
the journal is missing, and the revision lists the zone as unmarked This is the reason of a zone after a restore onto a new machine, whose archive carries no journal. Stop the server and run tadoru zone journal remake <zone-id>, which makes the journal again from the files. The remake cannot read the journal that it replaces, so then run tadoru zone journal settle-freeze <zone-id> --not-frozen, and start the server. Then freeze the zone. tadoru zone checkpoint refuses a zone with no journal
the ledger does not say that the journal was made while this revision was served Run tadoru zone journal remake <zone-id>. It makes the journal again from the files, and drops the updates past them. The zone takes no update until then. Where the journal ends in a freeze that stands, the refusal says so and names tadoru zone thaw <zone-id> instead, because the remake would drop the freeze: thaw the zone, then freeze it again
the revision lists the zone as unmarked, so nothing says which transactions its files hold The zone has a journal. Run tadoru zone checkpoint <zone-id>, which binds the journal to the files. A zone with no journal gives the reason above, whose way out is a remake. Where the journal ends in a freeze that stands, the refusal names tadoru zone thaw <zone-id> instead, because a frozen zone takes no checkpoint: thaw the zone, then freeze it again
the ledger cannot be read control.sqlite does not read. Freeze the zone again once it reads

A frozen zone answers as before, answers REFUSED to an update, and takes no checkpoint until its thaw. tadoru zone thaw refuses the same zones, with the reason after takes no thaw:, and a zone that is not frozen. It refuses an edit whose records changed at the serial of the freeze, and names both serials: raise the serial in the SOA record, then thaw again, or thaw with --serial-bump, which raises it for you. --serial-bump refuses a records.zone whose text cannot take the new serial, such as one that an $INCLUDE line splits, and the zone stays frozen: raise that serial by hand. A records.zone that ends in a backslash that escapes nothing gets the refusal of A backslash at the end of a zone file instead, and so does a .zone file of the zone that you changed and that holds a backslash right before a CRLF line end, with --serial-bump and without it. A thaw whose generation is active and whose transaction could not be written stops the zone with the thaw could not be appended, and the next start appends it, and the server takes no other change of the configuration until it is restarted.

While the directory of a frozen zone is gone from the configuration root, every new zone directory there waits, and the log says the directory of a frozen zone is gone and a new zone is there, or it is not clear which moved where for more than one. A command that makes a zone meanwhile, such as tadoru zone import, is refused with the directory of frozen zone ... is gone, and so is a rollback that makes a zone again over a directory of it that you made. tadoru zone thaw of such a zone refuses with looks like it moved there and names the new directory. A thaw does not move a zone. Stop the server, move the directory back to zones/<zone-id>/, run tadoru zone thaw, rename the directory, then start the server.

No state takes a dynamic update, with one exception. Where the journal of a zone at its files is missing and the server knows no update past its files, the next update makes the journal again, and the server applies it. A stop lasts until the server stops, or until a change of the configuration deletes the zone. A start reads the journal again and decides again. Where the reason names a rule with the rest of the configuration, change that configuration and start the server again. A change of the configuration reads each journal as a start does, so it can stop a zone for the same reasons. Otherwise keep the journal as it is, because it holds the updates that the zone answered. Where it cannot come back, tadoru zone journal cut keeps the readable frames, and tadoru zone journal remake makes a new, empty one.

A start can find a change of records that the last run did not finish. The start reads the journal of its zone, and settles the change where the journal says how it ended. The log then says the start settled a change of records that the last run did not finish, with the command id, and the zone takes changes again:

  • No whole frame of the change is at its place in the journal. The change failed, and a request with its key answers 500 not-in-journal.
  • A torn frame is at its place, as a crash in the middle of its write leaves it. The start cuts the torn frame, and once the cut is on the disk, the change failed the same way.
  • The whole frame of the change is at its place, and the start serves the zone from its journal with the change in it. The change applied, and a request with its key answers 200 with the version of the records that the change made, as the first answer would have named it, and that version as its ETag. Where zone.toml or the files of the zone changed since the change, or a cut or a remake replaced its journal, the zone has another version now, and a request with that version gets 409. Read the records of the zone for the version now. Where the server cannot read its record of the configuration that the change read, the answer names no version and has no ETag: read the records of the zone for its version.
  • A cut below the place of the change, or a remake, replaced its journal, so no reading reaches the change again. A request with its key answers 500 unknown. Read the records of the zone before you send the change again.

Where the journal and control.sqlite disagree on the change, the start stops the zone, as below. For example, the frame of the change is at a place that control.sqlite gives to another update, a frame of another kind carries the id of the change, a cut should have kept the frame and lacks it, or the base of the journal is past the place of the change. A change of records that has no stored answer and whose frame the journal holds stops its zone too, and the reason says it has no row. Two changes of one zone that both wait stop the zone, because a zone waits for one change at most. The reason says pending changes of records and names both commands.

In every other case the change stays pending, and its zone is held until a start settles it. The log then says a change of records waits for the next start, and its zone takes no change of its journal until then, with the command id. A start of this build settles it once the cause is gone:

  • The start stops the zone, or serves it at its files, though the journal holds the whole frame of the change. Clear the stop, as below, and start the server again.
  • The cut of a torn frame at its place fails, or the journal does not read. Free the disk or put the right journal back, and start the server again.
  • control.sqlite did not take the outcome of the start twice. Start the server again.

Where the running configuration does not read the journal of the change, as after a restore or a rollback that lists the zone, or after a change of the configuration that deleted it, the log says a change of records waits for the recovery of a later build. A restart of this build does not clear it. Until a build that settles the change starts, the zone stays held. A request of that zone answers 503 unsettled, and its detail says that the change waits for the recovery of a later build. After a restore, a request under the key of that change for another zone answers 503 recovery-owed, and its detail says that a restart of this build does not clear it. Send such a change under a new key.

The start replays the journal of the zone, so the zone serves every whole frame of it: a change that the last run appended and did not publish is served too. The zone is unsettled, so tadoru health names it and its records have no version. The reason in the health report names the command, and says that the next start decides it, or that it waits for the recovery of a later build. Where the zone is also off, stopped or at its files, the health report gives that state, and its reason adds what the zone owes. Until the change is settled, the zone takes no update, no record of an ACME challenge, no change of records, no checkpoint, no freeze, no thaw and no prune of its journal. Each refusal says owes the result of the change of records and names the command, and a refusal under a key is kept nowhere, so the same key works once the change is settled. A change of the configuration still runs, and holds the zone as it is. The other zones take changes as before. Where the journal of such a change is not of its zone, every zone is held this way. Where the start cannot tell which commands are changes of records, the log says the ledger cannot say which commands are changes of records, every zone is held, and the refusal says could not tell from a change of records. That start settles no change and moves no command on. A start that reads the ledger decides those commands.

A running server can owe the result of a change of records too: where the write or the sync of its append failed, where control.sqlite did not take its outcome, or where the version of the records after it is not known. The zone is then held the same way, and its reason in the health report says owes the result of the change of records with the command id and what did not settle. Where control.sqlite did not take the outcome but took the place of the change in the journal, the zone keeps the version of its records, because the change is served and witnessed. Where control.sqlite did not take the outcome, the next writer of the journal of the zone tries it again first: a client update, the record of an ACME challenge, a change of records, a checkpoint by hand, a freeze, a thaw, or the prune of the journal. Each change of the configuration tries every result that a zone owes first too, and so does each tick of the checkpoints, once a minute. Each goes on where a result stays owed, with that zone held. So a ledger that failed for a moment needs nothing. Where no change of the configuration came between, the zone takes changes again once a try settles the result. After such a change the try still settles control.sqlite, and the zone takes changes again at the next start. Where the try finds that control.sqlite holds another outcome, it stops the zone, as the next paragraph says. Until then, each of those writers is refused as above, and a request with the same key answers 503 unsettled with that command. A change whose version is not known settles only under the revision that ran it, so after a change of the configuration it waits for the next start. Where a change of the configuration deleted its zone, made it again, or serves it at its files, as after a rollback, the change settles with an answer that names no version, so a repeat of its key gets no ETag. It settles at the next try, within a minute, and does not wait for a start. A change whose append did not settle waits for the next start too. A change of records that another process left pending holds its zone the same way once the server meets it. So does a change of records that stopped inside the server after its pending row: its request answers 500 internal, the log says a change of records stopped inside the server, and the next start settles the change. Where the server meets a row of a change of records in control.sqlite that does not read, the request answers 500 row-unread. Nothing then says which journal that change can change, so every zone is held until the server stops, and each refusal says does not read. The next start reads the ledger again.

Each start checks every change of records that control.sqlite keeps with a place in a journal against the journal of its zone, before it moves the command of any change on. Where they disagree, the start stops the zone. For example, control.sqlite says that a change failed and the journal holds it, or says that it applied and the journal lacks it. The zone answers SERVFAIL and takes no change until the server stops, and the other zones go on. A change that waits in that zone stays pending. The health report names the zone stopped, and the reason starts with the ledger and the journal disagree on the change of records and the command id. Each start checks the zone again. Where control.sqlite cannot say whether the journal of a change is a journal of its zone, the start checks no change of that zone and stops it the same way, and the reason says cannot say whether a journal. Where the start reads the journal of a zone and stops it too, the reason gives the reason of the start first, then The replay of the start stops it too: and the reason of the journal. Stop the server, run tadoru zone journal cut <zone-id> --at <sequence> with a sequence below the place of the change, or tadoru zone journal remake <zone-id>, and start the server. Each takes a zone that the start stops for a change of records, and the next start settles each change of the zone that waits as 500 unknown. Where the base of the journal is past the place of the change, a cut below the place is below the base, so remake the journal. A journal that ends in a freeze keeps it: neither command drops a freeze. Where the new journal of a zone, which a cut or a remake left, does not finish at the start, the reason says the new journal of the zone does not finish, and the next start tries it again.

The start stops every zone where nothing says which journal a change of records can change. The reason says cannot tell which journal, with the cause:

  • the ledger cannot list the changes of records: control.sqlite does not answer the read of them.
  • the row ... of a change of records does not read: a row of record_changes breaks a rule of the ledger, and the reason names the key of the row in hex.
  • which is no zone id: the row of a change of records gives its command a zone whose name is no zone id.
  • is not of its zone: a change of records that settled names a journal of another zone.

Every name of every zone answers SERVFAIL, and a zone that a change of the configuration adds stops too, until the server stops. No command is moved on. A cut or a remake does not clear it. A control.sqlite that the server wrote never holds such a row, so the file is damaged, or a person or another program changed it. To find the cause, stop the server and copy control.sqlite aside. Then check the file:

Terminal window
sqlite3 /path/to/state/control.sqlite "PRAGMA integrity_check"

Where the check prints anything but ok, the file is damaged. Restore the server from a backup whose control.sqlite reads, as Backup and restore says. Where the check prints ok, this lists each change of records with its zone and its journal, and the row of a key that the reason names, where <key> is the hex of the reason:

Terminal window
sqlite3 /path/to/state/control.sqlite \
"SELECT r.command, z.zone, hex(r.journal), r.sequence, r.result FROM record_changes r
LEFT JOIN command_zones z ON z.command = r.command WHERE r.journal IS NOT NULL"
sqlite3 /path/to/state/control.sqlite \
"SELECT command, result, hex(journal), sequence FROM record_changes WHERE key_id = x'<key>'"

Each change has one zone, a zone id, and a journal that the table journals gives to that zone. Put the copy that you made back where you changed control.sqlite by hand, or restore the server from a backup, and start the server.

Where control.sqlite and the server disagree on a change of records, for example where the row of the change says it settled another way, the server stops that zone. It answers SERVFAIL and takes no change until the server stops, and the other zones go on. The health report names the zone stopped with the reason, which starts with the ledger and this process disagree on the change of records and the command id. The next start reads the zone again from its journal. Where the row of the change in control.sqlite is still pending, the next start holds the zone as owing that change, as above.

The server stops a zone whose journal is lost, and writes nothing for it. The reason starts with the journal is lost:, and says which of these holds:

  • the journal does not reach sequence N of journal J, which is known: control.sqlite, the marks that the running configuration recorded, or this run knows an update past the end of the file. The file lost answered updates, for example a copy from a backup or a file cut by hand.
  • the file holds journal J, which is not the current journal of the zone: the file holds an older journal of the zone, or a journal of the zone that the server does not know as its current one. A file of another zone stops the zone with the journal belongs to another zone.
  • the journal is missing or its header is cut short, and a waiting command can have written to it: a command that the last run did not finish can be in the missing file.
  • the journal is missing, and the ledger cannot be read: control.sqlite cannot be read, and something says that the zone had a journal.

Put the right file back as zones/<zone-id>/updates.jnl, and start the server. If control.sqlite cannot be read, fix that first. Where the file is gone for good, stop the server and make a new journal:

Terminal window
tadoru zone journal remake home-arpa

The command says how many updates that the server knew are gone, and names each update that waits for the zone. Where it fails after it writes the new journal, its error still says how many updates are gone and names each command that waits. The run that finishes it names the new journal alone. The zone then serves its files without those updates, and takes updates again. Send the lost updates again where you know them.

Where the file is damaged or ends short, but its first frames read, keep them instead:

Terminal window
tadoru zone journal cut home-arpa

The cut keeps the whole frames up to the last good one, and says how many updates past it are gone. Where it fails after it writes the new journal, its error still says how many updates are gone and names each command that waits. The run that finishes it names the new journal and the point alone. The remake keeps none. Both are refused where the zones that the next start serves after them break a rule. See “A target that is an alias”.

Three other reasons stop a zone for the file alone: the journal does not hold the point that its files start from, the header of the journal is cut short, and the ledger records the journal in place, and the header of the journal is cut short, and the ledger cannot say whether the journal is in place. A header cut short of a journal that the server never finished making moves to updates.jnl.torn, or the first free name of updates.jnl.torn.2 and on. A zone that the running configuration neither marks nor lists then takes updates again. A zone that it marks or lists serves its files, and the next update makes its journal again.

A journal that an update cannot make again

Section titled “A journal that an update cannot make again”

Where the journal of a zone is missing, the next update makes the journal again before the server applies the update. First the server reads control.sqlite to learn whether the files hold every update that it knows. If they can lack one, or the server cannot make the journal, it answers the update with SERVFAIL. The zone stays at_files with one of these reasons:

  • the journal is lost, and no update makes it again while this holds: R. R is a reason of a lost journal above. For example, the server could not record the outcome of an update of this run that names the zone, and that update can be in the missing file. Or the file was deleted after an update of this run. The zone answers what it served before, which can hold updates that its files lack, and the next start stops it as lost.
  • the remake of the missing journal did not finish: E. The server could not write the new journal or record it in control.sqlite, and E says why. The log names the zone too.
  • a journal that an earlier writer left cannot be finished: E. The server could not read or move updates.jnl.new, the journal that a remake left, and E says why.

The reason stays until an update makes the journal, an update finds the journal in place, or the server starts again. For the first reason, follow the steps for a lost journal above. For the others, fix what E names, for example a full disk, and send the update again.

The server keeps the serial witness in serials.sqlite in the state root. For the apex of each zone, it holds the first and the last serial that the zone served, a digest of its records, and the largest SOA EXPIRE that it served. A secondary server follows a zone by its serial. A serial that goes back, or one serial with two sets of records, splits a secondary from this server with no word in a log. So every change of a zone counts its serial from the witness, and where the witness cannot say which serials a zone served, the server stops the zone. The zone answers SERVFAIL for every name, its SOA included, and takes no update. The health report names it stopped, and its reason starts with one of these:

Reason starts with Why Way out
witness-history-lost: The witness was lost: serials.sqlite is gone, or it does not read. The apex has no row Stop the server. Run tadoru zone witness raise <apex> <serial> with the serial that the secondaries of the zone hold. Or run tadoru zone witness accept where no secondary holds a serial ahead of the one the zone serves now
witness-fenced: The row of the apex came from a restore, and the server cannot tell which serials the secondaries hold Stop the server, and run tadoru zone witness accept, or tadoru zone witness raise <apex> <serial>
witness-bound: The zone cannot serve or move inside 2^31 from the first serial of its row. Or a change found no next serial there, and the row holds the mark that the history of the apex is spent, which a restart keeps Stop the server, and run tadoru zone witness reset <apex>. That starts the history of the apex again on purpose. A secondary of the zone then needs a fresh transfer, as the command prints
witness: The serial of the zone moves past the serial that it served, or waits for something to let it move. The rest of the reason says which As the reason says: nothing where the stop lifts in the same start, tadoru zone thaw <zone-id> --serial-bump for a frozen zone behind its row, or a restart after a rollback or a failed write
freeze-uncertain: Nothing says whether the zone was frozen, as The freeze state of a zone is not certain says tadoru zone journal settle-freeze <zone-id> with the server stopped

Where another stop holds the zone too, its reason comes first, then The serial witness stops it too: and the reason of the witness.

The server cannot check the serial that you give raise, or the EXPIRE that you give --max-expire. Read the serial from a secondary, for example with dig soa @secondary <apex>.

tadoru zone witness list, with the server stopped, prints each row, with the first and the last serial and whether the history of the apex is spent. With the server running, GET /api/zones/{id} answers the row of the apex of one zone as first_serial and served_serial, and the gauge dns_zone_witness_stops of Logs and metrics counts the zones that the witness stops, by the first word of their reason.

The serials of the apex of a zone stay inside 2^31 of its first serial. Where less than an eighth of that room is left, the server logs a zone has used most of its serial space at warning, with the zone, its apex, the first serial, the serial and how many serials are left. It logs it once when a change of the zone passes that line, and once at each start after it. The zone still serves, also at the last serial of the history, where left is 0. A change that needs a serial past that one stops the zone with witness-bound.

A serial that grows by the date, such as 2026110401, takes centuries to get there. A jump of the serial by hand, or a scheme that adds a large step, gets there sooner. Plan a new history before the room runs out: stop the server, run tadoru zone witness reset <apex>, and give each secondary of the zone a fresh transfer of the whole zone, as the command prints.

Where the state root holds the mark that the witness exists, and serials.sqlite is gone or does not read, the history of every zone is lost. A serials.sqlite that does not read is a loss even where no mark stands, because a witness existed: the start then writes the mark first. The start makes a new serials.sqlite with a mark of the loss, and logs the serial witness is lost, and every zone with no row stops at error. The line names the path, and with moved each file that it moved aside. Every zone stops with witness-history-lost, and so does a zone that you make later, until a command names its apex. The mark of the loss stays for good, and each start logs the line again.

A file does not read where SQLite reads it as no database, where it is larger than its rows can make it, where its integrity check finds a fault, or where a part of its schema or a row is wrong. Such a file moves aside to serials.sqlite.damaged, with its -wal and its -shm where they are still there. A second such file goes to serials.sqlite.damaged.2, and on. A -wal or a -shm with no file beside it moves aside the same way, because a store existed. While it moves them, the start keeps the name aside in serials.sqlite.aside until the new serials.sqlite opens, so a start that stopped halfway puts the rest under the same name, and names every file of the group. The server never reads the files aside. They are for you, and you can delete them with the server stopped.

Where serials.sqlite cannot be opened for another cause, the start stops, and the message says the serial witness ... cannot be opened, and nothing was moved. Examples are the permissions of the file, a full disk, and a file of a newer build of the server. Fix the cause and start again. Where the file cannot come back, move it aside with the server stopped. The next start then reads the witness as lost.

Where the start cannot make the new store, the message says the serial witness was lost, and the start could not make it again, with the step that failed and each file that it had moved aside. Fix the cause, such as a full disk, and start again: the next start goes on where this one stopped. Where it cannot settle the commands that did not finish, the message says how many it settled before the failure, and the log names each. The next start settles the rest. Where it cannot prune the entries of the witness, the message says so. Neither changes a row of the witness.

The serial witness holds for the commands of this server alone. Do not copy, edit or roll back serials.sqlite by hand. Use tadoru backup and tadoru restore, which carry it and merge it. A snapshot of the whole state root put back, by a VM or by a file system such as ZFS, goes round it too: each zone serves its old serial again, and nothing logs it.

The first start of a build with the witness makes serials.sqlite. It starts the history of each zone that serves at the serial that the zone serves, and logs made the serial witness, and the zones start their history now at warning, with the count of zones. Where the start stops before it writes the mark of the witness, the next start does the same again, and keeps each row that it finds. Until one start has made it, tadoru zone witness accept, raise and reset refuse with the serial witness does not exist yet: no start of the server made it, and list says so.

A command of the witness that did not finish

Section titled “A command of the witness that did not finish”

Where tadoru zone witness accept, raise or reset did not finish, the next start settles it, and logs the id of the command with the rows that it intended. The next command of the witness settles it the same way, and prints the line:

  • ...: it landed, at info. Nothing to do.
  • ...: it did not land, so run it again, at warning. Run the command again.
  • ... as unknown: nothing proves whether it landed, at error. For example, the witness was lost after the command started. Compare the rows of the witness with the rows that the line names, and run the command again where they differ.
  • ... entry ... as unknown: its audit row is gone, at error. This comes after control.sqlite was made again: the line names the id alone, because the rows that the command intended went with its audit row. Read the rows of the witness, and run the command again where they are not what you meant.

A change that the serial witness refuses or stops

Section titled “A change that the serial witness refuses or stops”

Each change of a zone writes its row of the witness before the change itself, and syncs it. Where that write fails, the change is refused and nothing else is written: a dynamic update answers SERVFAIL, a change of records through POST /api/zones/{id}/records answers 503 with the problem unavailable, and a change of the configuration is refused with the reason. The zone keeps serving the version that it served. The log says a write of the serial witness failed, so the change of a zone is refused, with the zone, the serial and the error. Fix the cause, such as a full disk, and send the change again. Where the rows of the witness do not read back after the failure, the zone stops with witness: until a restart.

Where a change finds no next serial inside 2^31 from the first serial of its row, the history of the apex is spent. The change is refused, the row takes the mark of a spent history, and the zone stops with witness-bound:. A restart keeps the stop. Stop the server, and run tadoru zone witness reset <apex>.

Where the witness holds a serial too far past the serial of the zone for one change to pass it, the change stops the zone with witness: for the rest of the process. Restart the server: the start moves the serial past the row.

A rollback never refuses for a serial. Where it cannot choose a serial ahead of every serial that the apex of a zone served or serves now, or the file cannot take the serial, it lands, and the zone stops with witness: the rollback puts zone ... back at serial .... A restart lifts the stop: the start judges the zone against the serial witness alone, and moves its serial past it.

A thaw keeps the serial of the zone ahead of the last serial that its apex served:

The refusal says Way out
... served serial W, and the thaw would serve serial S ... Run tadoru zone thaw <zone-id> --serial-bump, which writes the serial that the refusal names, or write a serial ahead of W in the SOA record and thaw again
... the last serial inside 2^31 from its first serial F, so no thaw can move past it The history of the apex is spent. Stop the server, and run tadoru zone witness reset <apex>, then the thaw as the refusal says
... no serial lies one step ahead of H and ahead of W ... No thaw frame from the serial of the freeze reaches past the row. Stop the server, and run tadoru zone thaw <zone-id> --serial-bump with the server stopped, then start the server: the start moves the serial past W in more than one step

A zone that is frozen behind its row stops with witness: and the words Run tadoru zone thaw <zone-id> --serial-bump. A cut or a remake of its journal does not drop the freeze, so neither is a way out.

The refusal says What to change
the serial witness does not exist yet Start the server once, which makes it, then stop it and run the command again
the first start of the serial witness did not finish Start the server, which finishes it, then stop it and run the command again
the mark that the serial witness exists is gone, and serials.sqlite does not read Start the server first, which reads it as a lost witness and makes it again, then stop it and run the command again
this needs the state root to itself Stop the server, run the command again, and start the server afterwards
a restore of this state root started and did not finish Run the same archive again with tadoru restore --yes, which finishes it
at or past 2^31 from its first serial raise refuses a row past the bound. Run tadoru zone witness reset <apex> first
A serial that is not ahead of the row, or has no room after it Give raise a serial ahead of the row, which leaves one more serial inside 2^31 from the first serial
A refusal that names the thaw The zone is frozen or freeze-uncertain, and the serial lies too far from the head of its journal. Thaw the zone first, as the refusal says
An apex that no zone holds, with no --max-expire Give --max-expire with the largest SOA EXPIRE that a secondary of the apex can hold
which holds no copy yet The apex is a secondary zone with no copy, which has no EXPIRE of its own. Give --max-expire with the largest SOA EXPIRE that a secondary of the apex can hold
the quarantine of the serial witness holds 100000 apexes, its limit A quarantine row of an apex with no zone goes once its deadline passes. A row of an apex with a zone stays until a command replaces it. Run the command again after the first one goes, or reset an apex that no zone holds

accept names each zone that it leaves out, with its reason and its way out, writes the others, and exits 1. A zone whose serial equals its row with other records is left out with raise to a serial ahead, or reset. A frozen zone too far behind its row is left out with the thaw.

reset and raise print what a secondary of the apex needs. A secondary that holds a serial of the history before a reset can take the next serials for older ones, so start a fresh transfer of the whole zone on it, or wait until its copy expires.

Where step 2 of a command fails, the command says whether its rows landed: its rows landed all the same, no row changed, or nothing proves yet whether its rows landed. In the last case the next start or command settles it: read the rows with tadoru zone witness list before you run it again.

A frozen zone holds its freeze in its journal, updates.jnl. Where the journal is lost, does not read to its end, or was replaced by a cut or a remake that could not read the old one, a freeze in it can be lost. A zone whose freeze is lost would thaw with no thaw, and serve a hand edit of its files with a serial that a secondary does not take. So the start stops such a zone with freeze-uncertain:, with one of these causes in the log field cause:

Cause Why
unread The journal does not read to its end. Cut or remake it first, with the server stopped
gone The journal is gone, and the ledger or the running revision knows that the zone had one
cut A cut made the journal, and it could not read what it dropped
remake A remake made the journal, and it could not read the journal that it replaced
older-build A cut or a remake of a build before this one made the journal, and that build recorded nothing of what it read. From the first start after an upgrade on, each start stops such a zone until settle-freeze states it
unknown The ledger does not hold the journal, or its read failed, as the reason says

A cut or a remake of a damaged journal says so as it ends, with the statement to make before the next start.

Only you know whether the zone was frozen: a zone that you froze with tadoru zone freeze and did not thaw is frozen, at the serial at the head of its journal. One that you never froze, or that you thawed, is not. With the server stopped, state it:

Terminal window
tadoru zone journal settle-freeze <zone-id> --not-frozen
tadoru zone journal settle-freeze <zone-id> --frozen-at <serial>

The server cannot check either statement. --frozen-at appends a freeze frame at the head of the journal, or, where the journal ends in that freeze already, writes no frame and records the statement alone. Either way the next start serves the zone frozen, and tadoru zone thaw then ends the freeze as usual. A journal that is gone takes --not-frozen alone. Where the zone was frozen when its journal went, its freeze is gone with it. Finish the edit of its files first, because the next start takes it in as an edit of a zone that is not frozen, and moves its serial past the serial that the zone served. State --not-frozen, and start the server. A freeze of the zone is refused until its journal is made again: by its first update, or, for a zone that the revision lists as unmarked, which takes no update, by tadoru zone journal remake <zone-id>, as the row of the journal is missing, and the revision lists the zone as unmarked in A zone that answers SERVFAIL, or takes no update says. Freeze it again after that, where you need to.

While the freeze state of a zone is not certain, an edit of its files in the configuration root waits there: the server takes it in only after the statement and the next start, as an edit of a zone that is not frozen with --not-frozen, or with the thaw after --frozen-at. A command that a frozen zone refuses, such as tadoru zone checkpoint, refuses such a zone too.

settle-freeze refuses a zone whose freeze state is certain, a journal that does not read with either flag, --not-frozen on a journal that ends in a freeze that stands, and --frozen-at at a serial other than the head of the journal, on a gone journal, on a zone that serves its files, on a journal with updates past its files, and where no thaw from that serial can pass the serial witness. Each refusal names its way out.

Change times of records that are not known

Section titled “Change times of records that are not known”

The server keeps the time that each record of a zone last changed in record_times.sqlite in the state root. GET /api/zones/{id}/records gives it as modified_at (Local zones), and a later release prints it in tadoru zone records. Where the server cannot keep a time exact, it keeps none, and the log says so once for the zone:

WARN zone=home cause="..." the change times of the records of the zone are not known from now on, so its records show none. The zone answers as before

The zone answers DNS questions and takes updates as before. Only the change times are gone for it. The most common cause is a change of the records made with the server stopped, such as a hand edit of records.zone that the next start adopts. Others are a write of record_times.sqlite that failed, such as a full disk, a start that finds the file behind or ahead of the zone, as after a crash, and a change that the server made with no time. Nothing needs doing for DNS. A record shows a time again once a later release repairs the zone, or once the file is deleted with the server stopped and each record changes again.

A write of record_times.sqlite that fails stops the times of its own zone alone. A writer of the configuration, or the write of the times itself, that fails part way, a defect of the server, stops the times of every zone until the next start, with one of these lines:

ERROR a writer of the configuration failed, so no record shows a change time in this process. The zones answer as before
ERROR the write of the change times of the records failed, so no record shows one in this process. The zones answer as before

A file that does not open at all leaves no time for any zone, with one line at the start; a damaged file moves aside as record_times.sqlite.damaged.

An $INCLUDE line names a file of the zone’s directory. A refusal names the file and the line of the $INCLUDE, and the last good configuration keeps serving:

tadoru config: ./data/config/zones/home/records.zone, line 6: iot.zone is not a file of the zone's directory
The refusal says What to change
is not a file of this zone Name a *.zone file of the zone’s directory, in letters, digits, - and _, with no leading dot
is not a file of the zone's directory Write the file beside records.zone, or correct the name
is already open above this line Remove the $INCLUDE that leads back to a file above it
levels one zone nests Move the records of the deepest file into the file that includes it
files one zone reads Join small files, or move a subtree into a zone of its own
bytes of text one zone reads Include a large file once, or move a subtree into a zone of its own
takes a file and an origin Remove the third value from the $INCLUDE line

A refusal on a line of an included file names that file, such as zones/home/iot.zone, line 2.

A *.zone file that no $INCLUDE line reads is no refusal. The server serves the zone without it, and logs a warning:

zone home holds the file old.zone, and no $INCLUDE line reads it

Add an $INCLUDE line for the file, or delete the file.

zone import refuses an $INCLUDE in the file it imports, because the file that the line names is on the machine the zone came from:

tadoru zone import: home.zone, line 7: an $INCLUDE names a file on the machine this zone came from. An imported file holds all the records of its zone, so write the records of that file in place of the line

Write the records of that file in place of the line. For a zone from BIND, named-compilezone -o - <zone> <file> writes the zone as one file.

PUT /api/zones/{id}/import answers 400 for a query that it does not take, before it parses the text. The detail starts with these words:

detail starts with Means Do
the query takes `name`, the apex of a new zone A key other than name and serial, or a serial that is no scheme Send name, and serial as increment, unixtime or date
`serial` goes with `name` serial on a replace, which keeps the zone.toml of the zone Leave serial out, and change the scheme with PATCH /api/zones/{id} and {"serial": "date"}

A backslash escapes the character after it. At the very end of a .zone file, with no line end after it, it escapes nothing. A new text of a .zone file that ends so is refused. That is an edit, a thaw, an import, and a file that a new $INCLUDE line reads for the first time. The refusal names the file and the line, and the last good configuration keeps serving:

tadoru config: ./data/config/zones/home/records.zone, line 12: the file ends in a backslash that escapes nothing. Remove it if it was not meant, or write "" for an empty word or \\ for a backslash

The same text again is refused too, and so is an import of the text that the zone already holds. tadoru zone import and the import route say line 12: and the same words. tadoru config validate of the zone’s directory gives the same refusal, for each .zone file in it. tadoru config edit of such a file that you save untouched says that it is unchanged and sends nothing.

A file that the server already runs keeps loading, because earlier builds took such a file: a start, a rollback and a restore read it as before. The server drops the backslash, and logs a warning that names the file and the line each time it reads the zone, as at each start and at each check of a change. An edit of another file of the zone is taken, and the warning stays:

zone home: the file records.zone ends on line 12 in a backslash that escapes nothing, so the server drops it. Remove it if it was not meant, or write "" for an empty word or \\ for a backslash. A new text of the file that keeps it is refused

Delete the backslash where it is a typing mistake. A backslash that stands alone after a space or a ) is an empty word, and a TXT record keeps it as an empty string: write "" to keep that string. Write \\ to keep one backslash. A static stub gives the same warning about its records.zone.

A backslash right before a line end is refused in a new text of a .zone file, before an LF (line feed) line end and before a CRLF line end, the line end that Windows writes, alike. The refusal names the first such line:

tadoru config: ./data/config/zones/home/records.zone, line 12: a backslash escapes the end of the line

Before an LF line end, every build refused it, in every file. Before a CRLF line end, earlier builds took it: the backslash escapes the CR (carriage return), and the word keeps the CR. So a file with CRLF line ends that the server already runs keeps loading, with the CR in the word, as the other backslash above does. The same text again, an import of it, tadoru config validate, a thaw and a file that a new $INCLUDE line reads are refused as above. The server logs a warning that names the file, the first such line and how many more there are, each time it reads the zone:

zone home: the file records.zone has a backslash right before a CRLF line end on line 12, and on 2 more lines, so the server keeps the CR in the word. Remove the backslash if it was not meant, or write \013 for a CR. A new text of the file that keeps it is refused

Delete the backslash where it is a typing mistake. Write \013 where the word must keep the CR. A static stub gives the same warning about its records.zone. Where the server writes the file itself, as a checkpoint, a freeze that checkpoints the zone and a rollback that moves the serial do, it writes each such backslash as \013 and keeps the rest of the file, so the warning goes. A freeze of a zone with no update since its last checkpoint writes no file, and the warning stays.

A zone file holds the types that Local Zones lists in their text form, and other types in the generic form alone. Some types it never holds, and a line of one of them is a refused revision. The message names the file, the line and the reason:

tadoru config: ./data/config/zones/home/records.zone, line 5: RRSIG records come from signing a zone, and a zone file does not hold them

The DNSSEC records RRSIG, NSEC, NSEC3, NSEC3PARAM and DNSKEY get that message. A signer makes them from the other records of the zone, so a copy in the file is out of date as soon as a record changes. Delete the line. A DS record is the one DNSSEC record a zone file holds, at a delegation.

OPT, the types from 128 to 255 such as AXFR and ANY, and the reserved TYPE0 and TYPE65535 get this message instead:

tadoru config: ./data/config/zones/home/records.zone, line 5: OPT is reserved, a question type or the metadata of a message, not the data of a record

No record holds these as data. Delete the line. Any other type with no text form in this build gets has no text form in this build. Write its data in the generic form, \# with the length of the data and its bytes in hex, as dig prints a type it does not know.

A record of type 63, ZONEMD, that a build before this one kept as bytes is refused where its data holds fewer than 18 bytes: 6 for the serial, the scheme and the algorithm, and a digest of 12 at least. Such a line comes from a hand edit, or from an update under types = ["*"] that the older build wrote into the file. The next start refuses the file too, with the same message:

tadoru config: ./data/config/zones/home/records.zone, line 5: the generic form holds no ZONEMD record: unexpected end of message at offset 4: needed 2 bytes, 1 available
The refusal says What to change
the generic form holds no ZONEMD record The data holds fewer than 6 bytes. Delete the line, or write a valid ZONEMD
a ZONEMD digest holds at least 12 octets Delete the line, or write the ZONEMD with its whole digest

An update removes such a record only with a delete of the whole ZONEMD set of its name, because the data of one record of it does not read.

A line that starts with ;off and a space holds a record turned off. The server reads that record, so a fault in it is a refused revision, as the fault of any other record is. The message names the file and the line:

tadoru config: ./data/config/zones/home/records.zone, line 7: it starts with a space after an ;off line, so it takes the owner of the line above the ;off line and not the owner of the record turned off. Write its owner
The refusal says What to change
holds no record Write the record after the mark, or delete the line
starts with a space. A record turned off Write the owner of the record after the mark
holds a directive Delete the mark. Only a record is turned off
turns no ANAME off Delete the line, or write the ANAME record without the mark
holds a SOA record Delete the line, and change the SOA record itself
starts with a space after an ;off line Write the owner at the start of the line
both served and turned off Delete the record or its ;off line

The last refusal is for the line after an ;off line. Another server reads the ;off line as a comment and gives the next line the owner of the line above it. The line looks like it belongs to the record turned off, so name its owner. A record that does not read after the mark gets the message of that record, such as is not a record type.

A comment that starts with the exact text ;refreshed= is a mark. It gives the record of its line its refresh time, and opts that record in to aging, whoever writes the mark. The time is in UTC, in the form YYYY-MM-DDTHH:MM:SSZ, such as 2026-10-21T12:00:00Z. The server refuses a mark that does not read, and the message names the file and the line:

tadoru config: ./data/config/zones/home/records.zone, line 9: the mark ;refreshed=2026-10-21 holds no time of the form YYYY-MM-DDTHH:MM:SSZ in UTC, from 1970-01-01T00:00:01Z to 9999-12-31T23:59:59Z
The refusal says What to change
holds no time of the form Write the time in that form, or delete the mark
holds a second ;refreshed= mark Keep one mark, the first word of the comment
the line where a record ends Put the mark at the end of the last line of a record
a record turned off has no time Delete the mark from the ;off line
the SOA never ages Delete the mark from the SOA record
an ANAME never ages Delete the mark from the ANAME record

The mark goes first in the comment, and the rest of the comment follows it after a space. Any other comment is a comment, such as ; refreshed= with a space after the ;.

In a zone with record_expiry = true, a comment that starts with the exact text ;expires= gives the record of its line its expiry time. The expiry time of a record has the form. The server refuses a mark that does not read, and the message names the file and the line. In a zone without the key, the text is a comment, and nothing refuses it.

The refusal says What to change
the mark ;expires= and holds no time Write the time as YYYY-MM-DDTHH:MM:SSZ in UTC, or delete the mark
holds a second ;expires= mark Keep one mark
goes first in the comment Put the mark first in the comment of the last line of the record
holds a ;refreshed= word after Write ;refreshed=, then ;expires=, then the comment
the SOA never leaves its zone Delete the mark from the SOA record
an ANAME takes no expiry time Delete the mark from the ANAME record

The message names the zone.toml of the zone and the key record_expiry, and the API answers 422 with "setting": "record_expiry". A turn on over a past time has the type /problems/expiry-past-on. A turn off over a time that the zone holds has the type /problems/expiry-held. Every other refusal of the key has the type /problems/invalid-configuration. The server judges a change of the key against the zone with the changes of its journal. A change through the API stays in the journal until the checkpoint. The first five records go in the message, each with its time.

tadoru config: ./data/config/zones/home-arpa/zone.toml, setting record_expiry: turns the expiry times of zone home-arpa on, and the zone, with the changes of its journal, holds an expiry time that has passed: test.home.arpa. 60 IN A 192.168.1.90 expires at 2026-01-01T00:00:00Z. ...
The refusal says What to change
an $INCLUDE line splits the records Move the included records into records.zone, or delete record_expiry
is a key of a primary zone Delete record_expiry from the zone.toml of the stub
that has passed or that have passed Delete each such mark, or give it a later time, then turn the key on
the clock of this machine is Wait until a time client sets the clock, then turn the key on. tadoru health names the state of the clock
with the changes of its journal, still holds Clear the time of each record first. One hand edit can delete the marks and the key together
do not read with the key on Fix or delete each ;expires= mark that does not read, then turn the key off
does not replay over its files read with the key on The journal changed while the server read it. Send the change again
is stopped for its journal Bring the zone back first (A zone that answers SERVFAIL)

A rollback to a revision with the key meets the refusals of that has passed and of the clock too. A rollback to a revision without the key is never refused for its expiry times: it clears every one of them. A start and a restore take the files that they find, and the rules of the key do not judge them. The other rules of a zone do: see the next section for files that leave no NS record of the apex without an expiry time.

No NS record of the apex without an expiry time

Section titled “No NS record of the apex without an expiry time”

A zone with record_expiry = true keeps one NS record at its apex with no expiry time, so that no expiry time takes the last name server of the zone. The expiry time of a record has the rule. The server refuses a change of the files that marks every NS record that the apex serves. The API answers 422 with the type /problems/apex-ns-expiry and "setting": "zones", and the message names records.zone:

tadoru config: ./data/config/zones/home-arpa/records.zone, setting zones: zone home-arpa serves no NS record at home.arpa. without an expiry time, and the apex keeps one, so that no expiry time takes the last name server of the zone

Delete the ;expires= mark of one NS record of the apex, or add an NS record without one. An NS record turned off does not count, because it serves nothing. A turn off of record_expiry in the same edit is expiry-held instead, because the files hold those expiry times: clear them first.

A change of records through the API that leaves no such NS record is refused whole, with 422, the type /problems/apex-ns-expiry, "rule": "apex-ns-expiry", and no list, index, file or setting. The key of the request keeps the refusal. Send a new request under a new key that adds an NS record without a mark, or that leaves one.

A dynamic update (RFC 2136) that deletes the last NS record of the apex with no expiry time is not refused. The server skips that delete, applies the rest of the update, answers NOERROR, and logs nothing. Today no rule of an update policy covers the NS set of the apex, so such an update is refused (REFUSED) before the rule is reached.

A build before this rule read ;expires= with no such rule, so it could leave a zone that breaks it. The server repairs nothing by itself. The way that loses nothing is to repair each such zone with that build before the upgrade: give one NS record of the apex no mark, or turn the key off, and then run tadoru zone checkpoint <zone-id>, so that no note of the journal gives the record its time back. After the upgrade, two cases differ in what they stop:

Where the zone breaks the rule What stops The way out
In the files of the running revision The start of the whole server, with the message above. No zone answers and no management listener runs With the server stopped, run tadoru config rollback <revision> to the last revision whose files keep the rule, then start it. The changes of the later revisions are lost. A hand edit of the files does not help, because the start refuses an edit over a revision that does not read. Or install the build before, repair the zone there, and upgrade again
In a frame of the journal That zone alone: it answers SERVFAIL, and the message of a zone stopped for its journal names the rule. The other zones answer With the server stopped, run tadoru zone journal cut <zone-id>. It keeps the frames before the first one that breaks the rule, and drops that frame and each frame after it, with their updates. A cut and a remake read the files of the running revision, so they do not work while those files break the rule too

A run of the journal whose later frame mends the rule replays whole, so the server serves that zone, and a cut is refused for it.

The zone clock is the clock that the expiry sweep of a record reads. While it holds, no record expires, and dns_zone_clock_held reads 1. A record past its expiry time then stays in the zone. Each of these holds it, with a warning in the log:

What happened The log says What ends the hold
A step of the wall clock of more than 5 minutes the wall clock stepped, so the zone clock holds for one quiet hour One quiet hour with a time client that set the clock, or the resume
Small changes of the wall clock that add up to more than 5 minutes the wall clock ran more than 5 minutes away from the zone clock The same
A start after a crash, or with the wall clock more than 5 minutes before the last time of the clock the last run did not stop cleanly, or the wall clock is more than 5 minutes before the time of aging.clock The same
Clocks of the host that gave no coherent reading, at a start or a tick, such as in a pause of a virtual machine the clocks of the host gave no coherent reading The same
A start that finds the hold in the file of the last run the zone clock is held, as the file of the last run says, with its end The end that the file names: a quiet hour, or the resume alone
A start that finds no aging.clock, and a zone with record_expiry aging.clock is missing and a zone has record_expiry The resume alone
A start that finds an aging.clock that does not read aging.clock does not read, with the reason The resume alone
A write of aging.clock that failed a write of aging.clock failed, with detail and way_out, once a day while the writes fail The fix that way_out names, then the resume
A panic in the clock the zone clock broke after a panic A restart, which then holds for one quiet hour

A quiet hour is an hour with no step, counted by the boot-time clock of the host. At its end, the hold ends where the time client of the host set the clock. The gate of the clock says so in tadoru health. Without a time client, only the resume ends it. Set the clock of the host, then resume:

Terminal window
tadoru zone clock resume
# resumed the zone clock: it trusts the wall clock now, and holds no record back

A restore onto another machine, or a lost aging.clock, holds the clock the same way, because nothing says how far the clock moved. A damaged aging.clock stays as it is until the resume, which keeps it as aging.clock.damaged.

The resume, tadoru zone clock resume or POST /api/zone-clock/resume, refuses in these cases:

The refusal What to change
409, /problems/clock-wrong: the wall clock reads earlier than this build Set the clock of the host, then resume
503, /problems/clock-unsampled: the clocks of the host gave no coherent reading Try again. A host that pauses again and again, such as an overloaded virtual machine, gives this
500, /problems/clock-unwritten: the write of the zone clock failed Read the detail, and the section below where it names the sync of the directory
503, /problems/clock-off: the zone clock does not run The server stops. Run the command again with the server stopped
500, /problems/clock-broken: a panic broke the zone clock Read the log for the panic, and restart the server. The next start holds for one quiet hour

The directory of the state root refuses a sync

Section titled “The directory of the state root refuses a sync”

Every write of aging.clock syncs the directory of the state root after its rename, so a power loss cannot bring back the file before it. Some mounts, such as some network file systems, refuse the sync of a directory. Then every write of the file fails, the clock holds until the resume, and the resume fails too. The answer of the route and the command, with the server running or stopped, say:

aging.clock is written, and the directory of the state root could not be synced, so a power loss can bring back the file before it. Some mounts refuse the sync of a directory, and then every write of the file fails, so the zone clock still holds until a resume

Put the state root on a file system that syncs a directory, such as ext4, XFS or Btrfs on a local disk, then resume.

A record past its expiry time is still there

Section titled “A record past its expiry time is still there”

A record of a zone with record_expiry leaves at its expiry time, as When a record leaves says, unless something holds it. GET /api/zones/{id} says what holds it in expiry.blocked (What blocks a removal). tadoru health names the zone clock, the clock gate and the zones whose removal was refused or failed:

ok, revision 12, zone clock held until the resume, 1 zone with a refused expiry sweep
blocked What to change
gate Set the clock of the host with a time client. The record leaves once the gate says Synchronized or Assumed
clock Read A zone clock that holds. Where tadoru health says that the expiry sweep ended or the zone clock broke, read the log for the panic, and restart the server. Where it says that the host clocks gave no coherent reading, the server looks again at the next tick, once a minute
outage Nothing: the record leaves after one quiet hour with a set clock, or at tadoru zone clock resume
state The record leaves once the zone leaves the state that state names: thaw a frozen zone, and turn on an off zone. tadoru health and tadoru zone list say the other states. At received, a command of the zone is not yet finished, and the record leaves after it. at-files and listed are a zone that serves its files and takes no change
rule, cross-file Read the warning an expiry sweep was refused in the log, which names the rule in detail. Change the time or the records that it names. The server tries again at once after the change, or after an hour
failed Read the warning an expiry sweep failed in the log, with detail. The server tries again after its wait, up to an hour

The log gives each of these warnings once a day for a zone and a reason. The full health report, GET /api/health with a credential, gives the same as expiry: clock with state, ends, unwritten and way_out, gate, and zones with the refused and failed zones and their retry_at. A failed write of aging.clock gives the step that failed in unwritten, and way_out says what to do in the words of the server. No text of the system goes there. Where the step is directory-sync or aside-sync, a resume fails again on the same mount: move the state root first (The directory of the state root refuses a sync).

An NS, MX, SRV or PTR record names a host. A target that is an alias in your zones is refused: a CNAME owner, a name that a wildcard CNAME covers, or a name below a DNAME owner:

tadoru config: ./data/config/zones/home/records.zone, setting zones: zone home holds a MX record at home.arpa. whose target files.home.arpa. is an alias. Name the host that the alias points to

Write the name that the CNAME points to as the target instead. Under a DNAME, write the name the DNAME maps the target to. tadoru config validate on the zone finds a target inside the zone. A target in another of your zones needs both zones, so that refusal comes from any change you apply. Validate reads one zone alone, so it also refuses a target below the zone’s name that a deeper zone of yours holds as a host. The server reads all your zones, and that deeper zone answers for the target, so applying the change works.

tadoru zone journal remake and tadoru zone journal cut check your zones as the next start serves them after the command. After a remake, the zone of the command is at its files. After a cut, it keeps its updates up to the point of the cut. Each other zone is as the next start reads it: with its updates, at its files, or by its name alone where it is stopped. The command is refused where that set breaks a rule, because the next start would then stop a zone or refuse to start. The refusal names the rule. Change the record or the setting that it names, such as a [[forward]], and run the command again. A zone that is stopped for its journal takes no change until its own remake or cut. So where the rule names a record of such a zone, change the other zone or the setting that the rule names.

An SVCB or HTTPS record in AliasMode, priority 0, stands alone among the records of its type at a name, as a CNAME stands alone at its name:

tadoru config: ./data/config/zones/home/records.zone, setting zones: zone home holds a HTTPS record in AliasMode at www.home.arpa. beside another HTTPS record. A client follows the alias and ignores the rest

Keep the record in AliasMode and delete the others of that type, or give it a priority above 0.

An ANAME record gives a name the addresses of another name, and it is a record of this server alone. A zone file writes it as @ IN ANAME lb.provider.net.. An ANAME where the zone cannot hold one is refused:

tadoru config: ./data/config/zones/home/records.zone, setting zones: zone home holds an ANAME at home.arpa., and an ANAME owner holds no A or AAAA record, because the ANAME is the source of both

The message names the rule. Find the words of the left column in it:

The refusal says What to change
holds no A or AAAA record Delete the A and AAAA records of the name. The ANAME gives both
a CNAME owner holds nothing else Keep the CNAME or the ANAME at the name, not both
a cut holds NS, DS and glue only Move the ANAME off the delegation
the names below a cut belong to the zone below it Write the ANAME in the zone that the delegation leads to
a DNAME maps every name below its owner Move the ANAME out from under the DNAME
one name holds at most 8 ANAME records Delete records until eight are left

A target that leads to an ANAME is refused as well. It can be a name with an ANAME, or a name that a wildcard ANAME covers. It can also be a name that a CNAME or a DNAME of your zones leads to:

tadoru config: ./data/config/zones/home/records.zone, setting zones: zone home holds an ANAME at home.arpa. whose target www.home.arpa. leads to an ANAME, and the target of an ANAME never does

Write the target of the other ANAME as the target instead. Two names whose ANAME records point at each other would keep each other’s old addresses for good.

The generic form, \# and the data in hex, cannot hold an ANAME, because the type has no number. Write the target as a name.

A target in a zone that answers fewer clients than the owner’s zone is refused, because the server looks the target up itself and hands its addresses to every client of the owner’s zone. The check reads each zone that the target reaches through a CNAME or a DNAME of your zones, and the query_from of each, from its zone.toml or else from [zones]:

tadoru config: ./data/config/zones/home/records.zone, setting zones: zone home holds an ANAME at home.arpa. whose target nas.lab.example. reaches the zone lab, and the query_from of zone lab does not cover the query_from of zone home. The flattened addresses would go to clients that zone lab refuses. Widen query_from of zone lab, or narrow that of zone home

Widen query_from of the target’s zone, or narrow that of the owner’s zone, until each network of the owner’s list sits inside one network of the target’s list.

A target outside your zones needs a route out of this server: the forwarders, recursion, or a [[forward]] that covers the name. So does a target at or below a delegation. A server with none of these refuses the zone, because the name would answer SERVFAIL for good. The refusal comes from any change you apply, because it needs server.toml beside the zone:

tadoru: ./data/config/zones/home/records.zone, setting zones: zone home holds an ANAME at home.arpa. whose target lb.example.net. is in no zone of this server. No route reaches lb.example.net.: no [[forward]] covers it, there are no forwarders, and resolution is not recurse

Set forwarders, set resolution = "recurse", or add a [[forward]] for the name after No route reaches. Where a CNAME of your zones leads out of them, the message names that name, and the forward must cover it. All your zones together hold at most 1,000 names with an ANAME.

A target that a [[forward]] or a stub zone answers is refused where the owner’s zone answers clients that this server does not resolve for. A forward or a stub answers only the clients of allow_recursion, and its answers can be private. The server looks the target up itself, so the addresses would go to every client of the owner’s zone. So the query_from of the owner’s zone, from its zone.toml or else from [zones], must lie inside allow_recursion of node.toml. Where this node has an encrypted listener, it must lie inside encrypted_allow_recursion too. The networks of a list count together, so two halves of a network hold that network. A deny entry of a list counts too: a denied subnet inside the query_from is a hole, and the target is refused. A target at or below a delegation of your zones, or in a zone that this server serves itself such as home.arpa, counts by the forward or the stub zone that answers it. With the defaults, query_from holds every address and allow_recursion holds the private ranges, so such a target is refused:

tadoru config: ./data/config/zones/home/records.zone, setting zones: zone home holds an ANAME at home.arpa. whose target lb.corp.example. goes to the [[forward]] for corp.example., and allow_recursion does not cover the query_from of zone home. The flattened addresses would go to clients that the route does not resolve for. Narrow query_from of zone home to the clients that allow_recursion holds, or point the ANAME at a name that the ordinary route answers. Widening allow_recursion to every address instead would make this server an open resolver

Do one of these:

  • Narrow query_from of the owner’s zone to the networks of your house, in its zone.toml.
  • Point the ANAME at a name that the forwarders or the walk answer, rather than at a name of the forward or the stub.

Do not widen allow_recursion to every address to make the refusal go. That makes this server an open resolver, which Configuration warns against. A wider list that still holds only your own networks is fine.

The refusal comes from any change you apply, and also from a change of node.toml that narrows a list. In a cluster, each node judges the zones by its own node.toml.

After an upgrade to a build with this rule, a configuration that the server ran before can be refused at the start. The server then does not start, and the log names the file, the zone and the list, in the form tadoru: ./data/config/zones/<zone>/records.zone, setting zones: zone <zone> holds an ANAME at .... Stop the service, for example with systemctl stop tadoru, edit the zone.toml of the zone or the ANAME in its records.zone with tadoru config edit, and start the service again.

A name with an ANAME answers A, AAAA and ANY with SERVFAIL and Extended DNS Error 14, Not Ready, while it has no addresses yet. The server looks up the targets when the zone loads or the ANAME records of the name change, and again before the addresses expire. Every other type answers from the records of the name. Not Ready that stays means a lookup fails: a target that does not exist, or one that does not resolve. Ask for the target yourself, through this server, to see why. A lookup fails too where the way to the target reaches a zone whose query_from does not cover that of the zone of the ANAME. It also fails where that way goes to a [[forward]] or a stub zone, and the query_from of the zone of the ANAME is not inside allow_recursion, or not inside encrypted_allow_recursion where an encrypted listener answers. Such a lookup drops the last addresses of the name at once, so the name answers Not Ready until a lookup passes. Your own question can still succeed then. The warning the lookup of an ANAME target broke a rule of the zone of its owner names the zone and the rule. Narrow the query_from of the zone of the ANAME, or widen the other list. A target outside your zones also needs a place for background work, which takes at most half of max_concurrent_resolutions. With that setting at 1, no place is left, and such a name stays Not Ready. One failed target fails the whole name, because a part of its addresses would hide the failure.

When the lookups of a name start to fail, the server logs one warning with the name, the target and the response code that failed it. When a lookup reads the targets again, it logs one line that says so. Two metrics show the same from outside. dns_aname_refreshes_total counts the lookups by result: ok, failed, and skipped for a lookup that stopped because the server had no place for background work or too many questions in flight. dns_aname_sets counts the names by state. fresh is a name whose addresses are within their lifetime, or just past it while the next lookup has time. stale is a name whose addresses are past their lifetime, after a failed lookup or a wait that ran out. missing is a name with no set of addresses yet, or with one past its limit of one day, which answers Not Ready.

A change of the rebinding settings while the check is on also clears the addresses of every such name: rebind_protection turned on, another rebind_allow, rebind_inside or rebind_nat64, or another rebind_protection on a [[forward]]. Each name answers Not Ready until its next lookup. The lookups start at once, sixteen at a time.

A change also clears the addresses of a name where its last lookup would now break the rule of who may read them, as the server checks that lookup again under the new configuration. That can be a narrower recursion list, an encrypted listener, a [[forward]] or a stub zone on the way, a wider query_from of the zone of the ANAME, or a delegation that sends a name on the way to a forward. A dynamic update that adds such a delegation clears them too. That name answers Not Ready until its next lookup, which starts at once.

tadoru: ./data/config/server.toml, setting forwarders[0]: tls://resolver.onion is a name under onion with addresses, and a name under onion is reached through Tor alone, so the addresses would go past Tor. Write it with no addresses, and send the forwarders through a SOCKS5 proxy: outbound_proxy and forwarders in outbound_proxy_for of node.toml

A name under onion is an onion service, which only a Tor client reaches (RFC 7686). An entry of forwarders, or of the to of a [[forward]], that names such a name with a list of addresses would connect to the addresses, past Tor, so it is refused on every route. The same holds for the check of one file. Write the entry with no addresses, such as tls://resolver.onion, and send the forwarders through the SOCKS5 port of Tor, with forwarders in outbound_proxy_for (Configuration).

A forwarder with no addresses after a change of the proxy

Section titled “A forwarder with no addresses after a change of the proxy”
tadoru: ./data/config/server.toml, setting forwarders[0]: tls://dns.example names no addresses. The server never looks a forwarder up, because at a cold start the forwarder is the resolver it would ask. Write the addresses after the name, as in tls://dns.quad9.net (9.9.9.9, 149.112.112.112). Or send the forwarders through a SOCKS5 proxy, which looks the name up: outbound_proxy and forwarders in outbound_proxy_for of node.toml

An encrypted forwarder with no addresses is taken only where its route is a SOCKS5 proxy for the forwarders. A change of node.toml that takes that route away is refused with these words, naming the entry of server.toml: an empty outbound_proxy, forwarders taken out of outbound_proxy_for, the name put in outbound_proxy_bypass, or an HTTP proxy. Write the addresses of the entry first, or keep the SOCKS5 route.

An older version took such an entry. A server whose running configuration holds one still starts, and serves the entry as before, with this warning in the log:

WARN config::cross_file::routes: a forwarder under onion with addresses is served as before, and its addresses go past Tor. The next change of the configuration is refused until the entry is taken out, so take it out file=./data/config/server.toml setting=forwarders[0] entry=tls://resolver.onion

Its addresses go past Tor, so take the entry out. Until then, every change of the configuration is refused with the refusal above, because the change would keep the entry. The change that takes it out passes. A backup whose active configuration holds one still restores: the restore prints the same warning as a line of its report, beginning with warning:, and the server starts with it and logs the warning at each start. A generation of the history that holds one is not refused either, and a rollback to that generation refuses it (Backup and restore).

Each refusal names the entry by its place in the file, counting from zero, and the key inside it. An entry has no name of its own, so forward[1] is the second [[forward]] in server.toml.

tadoru: ./data/config/server.toml, setting forward[0].suffix: is localhost or a name under it, and this server answers those itself. Every name there answers a loopback address, because a program that connects to one connects to this machine

The common refusals come from server.toml alone, so tadoru config validate reports them:

The refusal says What to change
is not a name The suffix. An empty string and a label over 63 characters are refused
is the root Use forwarders for every name, which is the list that means that
is localhost or a name under it Another suffix. This server answers localhost itself
is invalid or a name under it Another suffix. Every name there answers that it does not exist
is resolver.arpa or a name under it Delete the entry. This server answers what its own encrypted endpoints are, and a forward for arpa still leaves resolver.arpa here
already sends that suffix somewhere Delete one of the two entries with the same suffix
holds no address Write an address in to, or delete the entry
holds a control character The note. Write one line of plain text
mixes plain and encrypted destinations Make every destination of the forward encrypted, or every one plain
addresses in all A forward carries 8 addresses. Each address in the parentheses of an encrypted destination counts
names no IP address. A tcp entry is A tcp:// destination. Write tcp:// and an IP address, with a port or without, as in tcp://192.168.1.1. A name is not accepted

An encrypted destination in to is refused for the reasons an encrypted entry of forwarders is, and a tcp:// destination for the reasons a tcp:// entry is. The refusal names it by its place, such as forward[0].to[1]. Configuration lists those reasons.

A refusal shows the scheme and the host of an entry, such as tls://dns.example, only where the scheme is tcp, tls, https, quic or h3. For any other text it says “the entry” in its place, because the text before :// can hold a user and a password, and a refused tcp:// entry is named “a tcp:// entry”. The user, the password, the path and the query never show.

Two more need the zones beside the file, so they come from tadoru config validate with no file named, and from any change you apply:

tadoru: ./data/config/server.toml, setting forward[0].suffix: is inside the zone home, whose name is home.arpa. The zone answers that name itself, so a forward for it is a second answer

A zone of yours answers every name below its own name, so a forward for one of those names has nothing left to do. Delete the forward, or take the name out of the zone. To send the name to another server, write an NS record for it in the zone. That delegation hands the name away, and a forward at or below it is allowed. A forward for a name this server answers for itself, such as a reverse name of a private range, is not refused: that is what a forward is for.

A note is refused on a forward whose dnssec is validate, because a note says why validation is off. Write dnssec = "insecure" beside it, or write the text as a # comment.

One more refusal comes from the machine rather than from the files:

tadoru: ./data/config, setting configuration: ./data/config/server.toml, setting forward[0].to: names 127.0.0.1:5300, which is this server's own listener. A query for home.lan. comes back here and waits for itself. Name the resolver that holds those names, or delete the entry

The line names two settings, and the second one is yours. Every refusal from this stage reads that way, because the stage reports against the config root and the check inside it reports against the file. The console_listen refusal looks the same.

forwarders goes through the same check, and its refusal names the entry as forwarders[0]. An entry there that is this server is worse than one on a forward. Every name no zone holds goes to that list.

Neither list takes 0.0.0.0, :: or a port of zero. Those are refused at the file rather than at the change, because they are wrong on any machine.

The address and the port are both compared, so 127.0.0.1:53 and 127.0.0.1:5300 are two endpoints and only one of them is this server. Two spellings of one endpoint are caught as well: an IPv4 address written as an IPv6 one reaches the same socket, and a scope id does not change which socket a value names. The check runs as the change is applied, rather than as the file is read. listen belongs to one machine, and server.toml is shared with every node in a cluster.

A loop with one end elsewhere is the case nothing catches. If your router forwards the suffix back to this server, each side waits for the other. The log says the forward timed out, and the section above says where to look.

A [[negative_trust_anchor]] the server will not take

Section titled “A [[negative_trust_anchor]] the server will not take”

Each refusal names the entry by its place in server.toml, counting from zero, and the key inside it. So negative_trust_anchor[0].until is the until of the first entry.

tadoru: ./data/config/server.toml, setting negative_trust_anchor[0].until: is "2026-10-01T18:00:00", and it has no offset, so it names a different moment in every time zone. Write a date, a time and an offset, such as 2026-10-01T18:00:00Z

These refusals come from server.toml alone, so tadoru config validate reports them:

The refusal says What to change
holds 33 entries Delete entries that ended. A file carries 32 at most
is missing Write the suffix or the until that the entry lacks
is not a name The suffix. Write one domain name
is the root Use dnssec_validation = false to stop validation for all
already names that suffix Delete one of the two entries with the same suffix
it has no offset Add an offset to until, such as Z for UTC
it needs both a date and a time of day Add a time of day to until
that is not a date and time Write until as a date, a time and an offset
that is before 1970 or after 9999 Write an until between those years
holds a control character The note. Write one line of plain text

A note over 255 bytes is refused with a message that gives its size. Write one sentence, and put the rest in a # comment.

Three more refusals come from a change you apply, and not from tadoru config validate. Each is about a new or changed entry. An entry that the running file already holds is not checked again.

The refusal says What to change
which is not in the future Write an until after now, or delete the entry
An entry ends at most 7 days after it is written Write an until within 7 days of now
cannot be checked, because the clock of this machine Wait until a time client sets the clock

While the clock is not trusted, you can still delete an entry. A shorter until is a changed entry, so it waits for the clock.

One more refusal needs the zones beside the file. It comes from tadoru config validate with no file named, and from any change you apply:

tadoru: ./data/config/server.toml, setting negative_trust_anchor[0].suffix: is inside the zone home, whose name is home.arpa., and this server validates none of those answers. So the entry never acts

The entry is refused because no answer under it goes through validation, so it changes nothing. That is true of a zone of your own and of a [[forward]] with dnssec = "insecure". It is true too of a name this server answers itself, such as home.arpa. A [[forward]] answers before those names. So where a forward with dnssec = "validate" takes the name, the entry is accepted. Delete an entry that is refused.

The rules of zone transfers go by the name of their list: zones.transfer.allow in PATCH /api/server, and transfer.allow in PATCH /api/zones/{id}. The table that holds the list, zones.transfer or transfer, is refused with 400 by its own name, whatever the value:

transfer is the table that holds transfer.allow, and a body changes the list by its own name. Send transfer.allow as a list of objects, [] or null

Send the list instead. The check of the file refuses some lists with 422, with its own message: a list of 17 rules, a rule with no from, and a from of more than 64 networks.

A PATCH that sends a list of tables writes one block per entry in the place of the blocks of the file. These lists are:

  • forward, negative_trust_anchor and zones.transfer.allow in server.toml
  • transfer.allow in zone.toml
  • source, block, allow and regex in blocking.toml
  • client and group in clients.toml

Two layouts of the file have no blocks to write in place of, and the change is refused with 422, naming the setting:

setting forward: is written in this file as something other than [[forward]] blocks, so it is not replaced here. Send the whole file
setting forward: has a [[forward]] block that holds a table of its own, so the blocks are not replaced here. Send the whole file

The first is a list written on one line, such as forward = [{ suffix = "home.lan", ... }]. The second is a block with a table under it, such as a [forward.x] header or a dotted key such as x.y = 1, which no forward takes. Rewrite the entries in the file as [[forward]] blocks, with tadoru config edit or a PUT of the whole file, and send the PATCH again. An empty list on a file that holds forward = [] is no change, and is not refused. The same holds for each list of blocking.toml and of clients.toml, with its own name in the message.

A key that a block does not take is refused by its place, such as forward[0].nosuch or source[0].nosuch, and the message lists the keys that the block takes.

A PATCH /api/blocking with an object, or with a list of objects for a setting that is not a list of tables, is refused with 400:

source was sent as a value this body cannot carry. blocking.toml holds no table of settings, and its lists of tables, source, block, allow or regex, go as lists of objects
bypass was sent as a list of objects, and it takes no tables. Only a list of tables of blocking.toml, source, block, allow or regex, takes objects

Send a list of tables as a list of objects, such as "source": [{"id": "ours", "url": "..."}], and every other setting as a value, such as "bypass": ["192.0.2.7"]. A key that blocking.toml does not take is refused with 422, also when it is sent as null.

A PATCH /api/clients gets the same two answers, with the lists of clients.toml:

client was sent as a value this body cannot carry. clients.toml holds no table of settings, and its lists of tables, client or group, go as lists of objects
clients was sent as a list of objects, and it takes no tables. Only a list of tables of clients.toml, client or group, takes objects

clients.toml holds two lists and nothing else. Send client and group from file of GET /api/clients. The lists clients and groups of that read are what the server runs, and a body with them is refused.

A number above what TOML holds is refused with 400 on every file, such as max_source_bytes was sent as a number past what TOML holds. A whole number goes up to 9223372036854775807.

A certificate file the server will not take

Section titled “A certificate file the server will not take”

The running server reads the two files that tls_certificate_file and tls_private_key_file name when a revision is applied. A file that is wrong refuses the revision, and the old revision keeps serving. The command line does not read them when it applies a revision to a stopped server. Then the next start reads them, and a wrong file stops that start with the same line. The line names the setting and the file:

tadoru: ./data/config, setting configuration: node.toml: tls_private_key_file names /etc/letsencrypt/live/dns.example.net/privkey.pem, with mode 0644. Remove the bits 0004

The server also looks at both files every 30 seconds, and reads them where one changed. A file that is wrong then leaves the old certificate serving. The log shows the warning the TLS certificate did not reload once, with the same line in it, and the health report shows reload_failed. The server reads the files again at each look until they are right, and warns again only after a new change of a file. It also reads them every hour, for a file system that does not record a change.

The refusal says What to change
which does not open The path, or the permissions of a directory on it
which is not a regular file The path. A directory or a named pipe is not a certificate
which uid ... owns The owner. Root or the account that runs the server must own it
with mode ... The mode. Run chmod without the bits that the line names
which is larger than 1 MiB or which is not PEM The path. It names a file that is not the certificate or the key
whose first certificate does not parse The certificate path. It names a file that holds no X.509 certificate
which holds no certificate The certificate path. It names the key, or a file with no chain
which holds no private key The key path. It names the certificate, or a file with no key
private keys. It must hold one The key file. Keep the key of the leaf alone
is not a kind the server signs with The key. Order a certificate with ECDSA P-256 or RSA of 2048 bits
is RSA of ... bits The key. Order a certificate with an RSA key of 2048 bits or more
is not the key of the first certificate One of the two paths. The leaf and its key belong together, leaf first

certbot names the pair fullchain.pem and privkey.pem. cert.pem holds the leaf alone and works too. chain.pem holds no leaf, and its key never matches.

The server reads the file that tls_pkcs12_file names, with the password tls_pkcs12_password, at each revision, at each look of the watch where it changed, and every hour. A file or a password that fails refuses the revision, and the old revision keeps serving. At a start, it stops the start. In the watch, the old certificate keeps serving, and the health report names the refusal. Where no certificate served yet, nothing serves: every handshake fails, and the health report reads reload_failed with no expires_at until a read serves. The line names the setting and the file:

tadoru: ./data/config, setting configuration: node.toml: tls_pkcs12_file names /etc/tadoru/tls/server.p12, which does not open: the password does not open the file, or the file changed after it was written. Set the password with tadoru secret set tls_pkcs12_password, which asks the server while it runs and writes the file with it stopped

The file takes the rules of a key file: root or the account that runs the server owns it, it gives nothing to other users and no write to its group, and it holds 64 KiB at most. The refusals of which does not open, which is not a regular file, which uid ... owns and with mode ... are those of the table above.

The refusal says What to change
its password ... is unreadable The file of the password, as A secret of the node that is unreadable says, or set it again
the password does not open the file The password. A start that it stops: A start that a secret of the node stops
the MAC matches the password, but the encrypted content The file: a safe or the key is under a second password. Export it again with one password
which is larger than 65536 bytes The path. A chain and its key take a few KiB
it is in BER Write the file again in DER, with the command that the line gives
it has no MAC Export the file again with a MAC: drop -nomac
its MAC is not HMAC, a safe or a key is encrypted with Export the file again with the defaults of OpenSSL 3
its key is under RC2-40 Write the file again, with the command that the line gives
asks for ... iterations, more than ... iterations in all, a salt of Export the file again with fewer iterations: 100,000 at most for each KDF
it holds no key, keys, and a PKCS #12 file of a certificate holds one Export the certificate with its one key
two leaves, does not order, comes back to certificate Export the leaf with its own chain alone
a bag of type, a certificate of type Export the file again with certificates and a key alone
whose key is not a kind the server signs with The key. Use ECDSA P-256 or RSA of 2048 bits or more
whose key is RSA of ... bits The key. RSA needs 2048 bits or more
whose key is not the key of its leaf The file holds the key of another certificate. Export the leaf with its own key

A certificate of the file that is not on the chain of its leaf does not serve, and the log says so at info, once each time a new content serves.

A PKCS #12 file cannot go with tls_certificate_file, tls_private_key_file or acme_names. One certificate serves every name, so the revision names one source.

A secret of the node is a file under secrets/node/ of the state root, such as secrets/node/tls_pkcs12_password. A start reads each one. It reads a file only where the file is a regular file of the account that runs the server, with mode 0600, in directories secrets/ and secrets/node/ of that account with mode 0700. A file that fails is not read. The secret then counts as unreadable, not as not set. A revision that names tls_pkcs12_file is then refused, and a start with one stops: the server does not try the empty password in place of an unreadable one. Without a source that reads it, the start goes on. The log shows one warning for each such secret:

WARN tadoru::secrets: a secret of the node is unreadable, so it counts as unreadable and not as not set: the mode of the file is not 0600 secret=tls_pkcs12_password file=secrets/node/tls_pkcs12_password reason="wrong_mode"

The health report, for a caller with a credential, names it in secrets, with the same word in reason. The server never changes the mode or the owner of a file or a directory of the secrets itself. Fix it, then restart the server:

reason What to change
wrong_mode, directory_wrong_mode chmod 600 the file, or chmod 700 the directory
wrong_owner, directory_wrong_owner chown it, as root, to the account that runs the server. A file of root is refused unless root runs the server
link, not_a_file, directory_link, directory_not_a_directory Put a regular file or a directory at the name
empty, too_large, not_utf8, bad_character The value: 1 to 1024 bytes of UTF-8, with no NUL and no line break, at the end too
unread, directory_unread The permissions of the state root, or the disk
unsettled Nothing: the last change did not end in a known state, and the next change reads the file again

A file that cannot be fixed can be removed. The secret is then not set. Or write the value again with tadoru secret set. While the server runs, the server writes it. With the server stopped, the command writes it itself (see “A start that a secret of the node stops”). Either way the file becomes one of the account that runs the server, with mode 0600. That fixes each reason of a file, except a directory at the name of the secret: the command removes no directory, so move it away first. A reason of a directory, one that starts with directory_, makes the command refuse too, and it repairs nothing.

The server holds each secret of the node in its memory while it runs. It wipes a value when it lets it go, but a core dump writes the memory that the server holds at that moment, and so it can hold a secret. The server does not turn core dumps off. That is the choice of the operator:

  • With systemd, add LimitCORE=0 to the [Service] section of the unit, such as with systemctl edit tadoru, and restart the server.
  • In a shell that starts the server, run ulimit -c 0 first.

tadoru secret set holds the value in its own memory while it runs, so a core dump of that command can hold it too, and the wipe does not prevent that while it holds it. LimitCORE=0 of the unit does not reach a shell. Run ulimit -c 0 in the shell before the command.

A core dump that the system already wrote, such as under /var/lib/systemd/coredump/, can hold a secret too. Delete it, or keep it as you keep the secret.

A change of a secret of the node that is refused

Section titled “A change of a secret of the node that is refused”

PUT /api/node/secrets/{name} writes a secret of the node, and DELETE clears it. Both need an admin, or a caller on the management socket that is root or the user of the server, with no token or session. tadoru secret set and tadoru secret clear send them that way while the server runs. The answer never holds the value, and neither does the log.

The route checks a change before it hands it on: the role, the name, the body and the value, and whether another change runs. A change that one of these checks refuses writes no line. A change that passes them goes to the writer of the secrets. It writes one line, with the name of the secret, the account that asked, or uid:N for a caller on the socket, and the result:

INFO tadoru::secrets::routes: a change of a secret of the node is in place secret=tls_pkcs12_password caller=7f3a9c01 change="write" reload="none"
WARN tadoru::secrets::routes: a change of a secret of the node was not made secret=tls_pkcs12_password caller=7f3a9c01 change="write" result="refused"
WARN tadoru::secrets::routes: a change of a secret of the node is not certain secret=tls_pkcs12_password caller=7f3a9c01 change="write" result="unknown"
WARN tadoru::secrets::routes: a change of a secret of the node is in place, and a crash can still lose it secret=tls_pkcs12_password caller=7f3a9c01 change="write" reload="none" result="uncertain"

The refusals of the route, which write no line:

Answer Means What to do
400 unreadable-body The body is not {"value": "..."}: one member, a string Send that body, with content-type: application/json
413 secret-too-long The value is longer than 1024 bytes Use a shorter value
422 invalid-secret The value is empty, or holds a NUL or a line break Send 1 to 1024 bytes with no NUL and no line break. A value copied from a file often ends with one
429 busy Another change of a secret is running Send it again after a second

The answers of the writer of the secrets:

Answer Means What to do
422 secret-refused The file of a running certificate source does not open with the value Check the value against the file. The value of before stays, and so does the certificate that serves
422 secret-refused The running certificate source cannot serve with the value: the file does not read, or it holds a key that is not the key of its leaf Fix the file first. A PKCS #12 file the server will not take gives each cause. The value of before stays
503 secret-unwritten A step before the change took failed The value of before stands. A warn line of tadoru::secrets names the step and the code of the system
503 secret-unwritten The change did not reach the writer: the server is stopping, or the writer was busy for 20 seconds The value of before stands, and no line is written. The detail says which. Send it again, after the start where the server stopped
503 secret-uncertain It is not known whether the change took, or whether it lasts a crash Read GET /api/node/secrets, and send the change again
503 secret-uncertain The writer took the change, and its result did not come: 20 seconds passed, or the task that hands it on ended Read GET /api/node/secrets. The change may still finish, with its line, or it may not

A change that is in place answers 200 with reload. For tls_pkcs12_password while tls_pkcs12_file serves, the server reads the file again with the new value after the change:

reload, reason Means
served The file opened with the new value, and its certificate serves the next handshake
failed, does_not_open The file changed after the try, and the new value does not open it. The old certificate serves
failed, refused The file changed after the try, and cannot serve. The health report names the cause
failed, moved A revision landed during the change. Where the revision of now still names a PKCS #12 file, the server reads it again with the new value at once, and the health report says so until that read. Where it names PEM files or ACME, nothing reads the value
none No source of the running revision reads the secret

The value is in place in each case. Fix the file, and the watch serves it at its next look.

The list shows what is in place, but not which value: it holds no value, and its time has a precision of a second. The same change again ends with its own value. Where another admin changed the secret in between, the change sent again writes over that change. A secret listed with readable: false and the reason unsettled stays so until the next change reads the disk again.

While the server runs, tadoru secret set, clear and list go to it over the socket. set and clear say what the reload did, as the table above says it, and list says whether each secret is set and readable. Their other words:

The command says What to do
the server proved nobody for this Run it as root or as the user of the server. A server of an older release takes neither: update it
the running server knows no secret The server is older than the command. Update it
another change of a secret is running Run it again once that change ends
and that stays, but the reload after it failed The value is in place, and the old certificate serves. Fix the file, as the table above says. The command ends with 1
nothing changed The server refused the change, or it never got it. The words after it say why, in words of the command: it never repeats the words of the server
does not hold the state root, a process of user The process on the socket is not the server of this state root, and the command sent it nothing. Find what listens there, or point the command at the right --runtime-dir
came free while this ran The server stopped while the command ran. Run it again
it is not known whether Run the same command again. tadoru secret list shows whether the secret is set and readable, but not which value is in place

A route cannot reach a server that does not start. A restore of an older backup, or a change of a file by hand, can leave a secret that the start cannot use. Write the secret with the server stopped:

Terminal window
sudo systemctl stop tadoru
sudo -u tadoru tadoru secret set tls_pkcs12_password
sudo systemctl start tadoru

The command writes secrets/node/tls_pkcs12_password itself, under the lock of the state root, and the next start reads it. Run it as the account that runs the server. Run as root over a state root of that account, it refuses, because a file of root stops the next start again.

The command says What to do
the state root is locked, and no server answers on Another command holds the state root, or a server is starting or stopping, or runs with another runtime directory. Run this again once it ends
a process of user ... answers on The socket belongs to a process of another user than the owner of the state root, and the command sent it nothing. Find what listens there
the socket could not be asked Something holds the state root, and the socket did not answer. Stop the server, or wait
there is no state root at, holds no owner.sqlite Start the server once. A start that fails makes both too
belongs to user Run it as that user, as in sudo -u tadoru
a restore of this state root started and did not finish Finish the restore with the same archive first
the state root moved while this ran Something replaced the state root while the command ran. The command wrote no secret and sent no request. Run it again. The check comes after the databases open, so a swap away and back while they open goes unseen, and those opens can change the other directory. Keep every other program off the state root while a command runs
a directory stands at Move the directory away with the server stopped, as the command says, then run it again
Nothing here changes the owner or the mode of a directory Fix secrets/ or secrets/node/ as “A secret of the node that is unreadable” says
a crash can still lose it, a crash can still bring it back, it is not known whether Run the same command again. It ends in the same state
the terminal did not turn its echo off, the question could not be shown, the signals of the terminal could not be handled Pipe the value in from a file

The settings that start with acme_ are checked when a revision is applied, as every setting is. The refusal names node.toml and the setting. The old revision keeps serving.

The refusal says What to change
acme_names names a certificate to order, and tls_certificate_file names one to read Keep the files or acme_names, not both
acme_terms_agreed is not true Read the terms of the authority, and set it to true
acme_names no encrypted listener would serve it Name an address in tls_listen, https_listen, quic_listen or http3_listen
acme_http_listen is empty Name the address for port 80, or set acme_challenge = "tls-alpn-01"
acme_challenge is not a challenge Write "http-01", "tls-alpn-01" or "dns-01"
too long for dns-01 Shorten the base name, without *., to 237 characters. Its record name adds _acme-challenge. in front
which is in no zone of this server Add a zone that holds _acme-challenge. and the name, or choose another challenge
no zone of this server holds the target Add a zone that holds the target of the CNAME at _acme-challenge, or point the CNAME into a zone of yours
is answered by the built-in zone Hold the record in another zone. A built-in zone, such as the one of resolver.arpa, answers that name ahead of yours
holds a record of type Move that record off the name of the challenge, or point the challenge elsewhere with a CNAME
holds an ANAME at Move the ANAME off the name of the challenge, or point the challenge elsewhere with a CNAME
has a lifetime of … seconds Give each TXT record at the name of the challenge a lifetime of 60 seconds, or point the challenge elsewhere with a CNAME. A TXT set keeps one lifetime, and the record of the challenge has 60
is turned off Turn the zone on, or let another zone hold the record
is split by $INCLUDE Put the records of the zone in records.zone alone, or give _acme-challenge a zone of its own
answers only the networks of its query_from Write query_from = ["0.0.0.0/0", "::/0"] in the zone.toml of the zone. Since the default holds the private ranges alone, this comes after an upgrade too
hands … to other servers The owner is at or below a delegation. Hold the record in the zone below, or delete the NS records
maps every name below … with a DNAME Move the name out from under the DNAME
finds no address for it Give the name server an A or AAAA record in a zone of yours, add a [[forward]] for its name, or set forwarders
holds a CNAME at … as well Point the CNAME at _acme-challenge at the name that takes the record
acme_challenge is "tls-alpn-01" Name an address in tls_listen or https_listen. The check runs over TCP
is an IP address Name a host name. The server orders certificates for names alone
is a wildcard Set acme_challenge = "dns-01", or name each host. An authority proves a wildcard through DNS-01 alone
is not a host name The name. Labels of letters, digits and hyphens
is named twice Remove the second entry, in acme_names, acme_contact or acme_http_listen
one certificate holds 100 at most Split the names across two servers, or remove some
acme_directory which is not "letsencrypt" Write letsencrypt, letsencrypt-staging or an https:// URL. The refusal shows the URL as its scheme and host alone
acme_directory names a URL with a user or a password in it Take the user and the password out of the URL. Configuration holds no secrets
acme_contact is not a mailto: address Write mailto: and the address
acme_http_listen is also in Choose another address or port. One TCP port serves one protocol. An address of http_listen can be here too
http_path is under /.well-known/acme-challenge/ Choose another path, such as /dns-query. The path of the challenge of ACME is not one of DoH

A failed order leaves the old certificate serving, where there is one. The health report reads renewal_failing, or expired where the old certificate expired, and problem says why. The log shows the warning an ACME order failed, with the same text. The server tries again after 1 hour, then after 2, 4 and so on, up to once a day. A renewal adds its random delay of up to an hour to that wait. A change of acme_names, acme_directory, acme_challenge, acme_contact or acme_dns01_skip ends the wait, and the server decides again at once. After you fix the router, or acme_http_listen, restart the server to try again at once.

A refusal of the authority reads the <step> step failed with the problem <type> of the authority. The type is a name that RFC 8555 defines, such as connection. The server does not show the detail text of the authority, in the log or in the health report, because it is text that the server did not write. The type and the step say where to look, as the table below says. Where they do not, try the order against the staging directory of the authority with a client of your own, which shows the whole answer, or ask the authority.

The type What it means, and what to do
connection The authority did not reach the server. Forward port 80, or 443 for tls-alpn-01, to this server, and open the firewall
unauthorized Another server answered the check. The forward or the name points somewhere else, such as a reverse proxy on port 80
dns The name did not resolve at the authority. Check the public record of the name
caa A CAA record of the domain does not allow this authority. Add the authority to it, or remove the record
tls The tls-alpn-01 handshake failed. Port 443 reaches another server
rejectedIdentifier The authority does not issue for this name, such as a name under .local
rateLimited A limit of the authority. The server waits for the time the authority names, where that is longer than its own wait, up to 7 days

Two more forms carry no type that the server knows:

The problem says What it means, and what to do
a problem that this server does not know The authority named a type outside RFC 8555, or none. Check acme_directory, and that the authority speaks RFC 8555
HTTP <status> and no problem document The answer was not a success and held no problem document. Check acme_directory: it often names a page that is no directory

Other failures name what went wrong on the way:

The problem says What to do
the authority could not be reached Check the network of the server, and that the directory URL is right
under onion, which is reached through Tor alone A URL of the authority names a host under .onion, which only Tor reaches. The server refuses it before any lookup where the request would go direct or through an HTTP proxy. Use a directory URL whose host is not under .onion, or send acme through a SOCKS5 proxy of Tor
requires external account binding The authority needs a key from you, which the server does not support. Use another authority
the order took longer than 10 minutes The authority did not finish. The next attempt starts over
the store failed The server failed to write pki/acme/. Check the disk and the owner of the state root
the name servers did not all hold the record within 5 minutes Read the server, the address and the reason that the problem names for each. no answer from an address of this network is often a router without NAT loopback: list that address in acme_dns01_skip. has no AA bit means a resolver answered at that address, not the zone. holds no TXT record or holds no CNAME means that server holds an old copy of the zone
the name servers of zone … are not known The server found no address for a name server of the zone. Give the name server an A or AAAA record in a zone of yours, or a [[forward]] for its name
cannot go in now … is frozen The zone that takes the record of the challenge is frozen, and the problem names it. Thaw it with tadoru zone thaw <zone-id>. The next order puts the record in, after the wait above. A restart of the server ends the wait
cannot go in now … a whole configuration holds The zones need more room for their checkpoints than the whole configuration holds. The problem names the zone of the record, and each zone that frees room and how, as A file that is too large says: the zones noted due give it back at their checkpoint, a frozen zone after its thaw, and a zone that counts a whole master file once its journal binds again: tadoru zone checkpoint, a cut or a remake, as the problem names. Or remove records, or make the configuration smaller. Once there is room, the next order puts the record in, after the wait above. A restart of the server ends the wait

A second warning reads the retry of a DNS-01 order waits the negative lifetime of its zone. It comes after a failed dns-01 order whose record the authority was told to read. A resolver of the authority can keep the answer “no such record” for a time. That time is the negative lifetime of the zone: the lower of the lifetime of its SOA record and its MINIMUM field. So the next order waits at least that long. The warning gives both waits in seconds. A restart forgets this wait, as it forgets the usual one. The resolver of the authority does not forget, so an order right after a restart can fail again.

The health report can also stay at waiting_for_acme with no warning in the log. Then the server does not trust its clock yet, and it orders nothing until it does, because a wrong clock reads every certificate as expired. The clock entry of the health report says why. The server looks at the clock again every minute.

A DoH request that the server cannot answer gets an HTTP status other than 200, and no DNS answer. The status says which part of the request failed. The server checks in the order of this table, and the first failure answers. A GET skips the row of 408, because it has no body.

Status What it means
403 The peer of http_listen is not in http_trust, or a deny entry holds it
404 The path is not http_path
408 A POST body did not arrive in 10 seconds
405 The method is not GET or POST
400 A trusted proxy named no client, or the request does not carry one DNS query
406 The Accept header does not allow application/dns-message
415 A POST has another Content-Type than application/dns-message
413 A POST body is longer than 65535 octets

A browser that opens the URL with no variable dns gets a help page with 200 instead, where http_help_page is on, the default. A URL with a variable dns takes the path of DoH, so a browser gets a DNS answer or one of the statuses above. A browser also gets one of these statuses where its Accept asks for application/dns-message at a higher weight than text/html, or where http_help_page is off. The page in a browser says what the page holds.

403 on every request means that the proxy is not in http_trust, or that a deny entry of that list holds its address. Check the entries that start with !, because the entry with the longest prefix that holds the proxy decides. The address in that list must be the address that the server sees the proxy connect from. A proxy on the same machine that connects to 127.0.0.1 comes from 127.0.0.1, and one that connects to the machine’s own address comes from that address. The socket doh.sock never sends 403. A proxy that cannot open it gets an error from its own system, permission denied, and its log shows it.

On an address of both http_listen and acme_http_listen, a sender outside http_trust gets the challenge of ACME alone. Its other requests get 403 once their head is read. Its challenge gets 404 for a token that no order waits on, 505 for a request older than HTTP/1.1, 413 for a body past 1 KiB, and 408 for a body that does not arrive in 10 seconds. A head past 16 KiB gets 431, and a request that is not HTTP gets 400, such as one that starts with a PROXY header on an address of acme_http_listen alone, which reads none. A head that does not arrive in 10 seconds, or a 65th connection at once, closes with no answer. A proxy whose address left http_listen gets no answer to its next DoH request, and its connection ends.

400 has three common causes. A trusted proxy sent no X-Forwarded-For, or the header named in http_client_header. nginx needs a proxy_set_header line for it. The header holds something that is not one address in its last entry. Or the dns parameter of a GET is not base64url without padding, or it decodes to fewer than 12 octets. A tool that writes base64 with +, / or = makes the last one.

406 means that the client asked for another answer format in Accept. A client that leaves out Accept, or sends */*, gets the DNS message. A browser that opens the URL as a page allows */*, so it passes this check. It then gets 400, because its request carries no dns parameter.

Terminal window
# How many answers of each status the three listeners sent.
curl -s http://127.0.0.1:9153/metrics | grep dns_https_responses_total

A request that is not HTTP at all gets its answer from the HTTP library, and the counter does not count it.

An entry of a DNS listen list can name a device after @ on Linux (Configuration). The six lists are listen, tls_listen, https_listen, http_listen, quic_listen and http3_listen. The check of the file refuses an entry for these reasons, and the message names the setting:

node.toml, setting listen: "192.0.2.1:53@eth0" names the device "eth0", and a listener binds to a device on Linux alone. Remove the device to listen on 192.0.2.1:53
node.toml, setting listen: "192.0.2.1:53@eth0:1" names the device "eth0:1", which holds ':'. The name of a device holds no /, no :, no @, no white space, no control character, and no character whose UTF-8 holds the byte 0xA0
node.toml, setting listen: "192.0.2.1:53@.." names the device "..", and no device is named . or ..
node.toml, setting listen: "[fe80::1%2]:53@eth0" names the scope %2 and the device "eth0". The scope of an address names a device too, so write one of them
  • A device on a system that is not Linux: remove @ and the name of the device. The listener then takes queries on its address from every interface.
  • A name that cannot be a device: write the name as ip link shows it. An alias such as eth0:1 is a label of an address, so name its device, eth0.
  • A scope and a device: keep one of them. [fe80::1]:53@eth0 binds the link-local address of eth0.
  • A wildcard address with a device, and one address and port named twice whatever the devices, get the messages of an entry with no device.

A revision that passes the check binds or checks each device before it is applied, and refuses what the kernel refuses. The message names the entry, the transport, and the error of the kernel:

cannot listen on 10.8.0.1:53@wg0 over UDP: no device named "wg0" exists on this host (No such device (os error 19))
cannot listen on 10.20.0.1:853@vrf-blue over TLS: 10.20.0.1 is not an address of this host in the routing table of the device "vrf-blue", which is the table of its VRF where it has one (Cannot assign requested address (os error 99))
cannot listen on 192.0.2.1:53@eth1 over UDP, in place of 192.0.2.1:53 that is served: no device named "eth1" exists on this host (No such device (os error 19))
cannot listen on [fe80::2]:53 over UDP, in place of [fe80::2]:53@eth0 that is served: fe80::2 is a link-local address, which binds only with a device or a scope (Invalid argument (os error 22))
cannot listen on [fe80::2]:53@eth1 over UDP: the device "eth1" does not hold fe80::2, and a link-local or a loopback IPv6 address binds only on the device that holds it (Cannot assign requested address (os error 99))
cannot listen on 10.8.0.1:53@wg0 over UDP: the kernel refused to bind the socket to the device "wg0" (Operation not permitted (os error 1)). One cause is Linux 5.6 or older, which lets only a process with CAP_NET_RAW do it, and the packaged unit grants CAP_NET_BIND_SERVICE alone. A security policy of the host can refuse it too. This kernel is 5.4.0-150-generic
  • No device of that name: check the name with ip link. A device that a service makes, such as WireGuard, must be up when the revision is applied and when the server starts. Install says how to order the server after it.
  • An address outside the routing table of a VRF: add the address to the VRF or to a device of it, or name the device that holds it.
  • A link-local or a loopback IPv6 address that the device does not hold: name the device that holds it. The kernel looks for such an address on the device itself, and not in a table.
  • in place of ... that is served: the revision changes the device of an address that is served, and the server checked the new one on port 0. The served listener keeps its socket. A change that passes waits for a restart.
  • A link-local address with no device and no scope binds nowhere. Keep its device, or write its scope. [fe80::2%3]:53 and [fe80::2]:53@eth0 are two addresses to the server, even where index 3 is eth0, so a move of a served address from one form to the other takes two revisions: one that removes it, then one that adds it. In one revision, the new form cannot bind, because the old socket still holds the port.
  • Operation not permitted: Linux 5.6 and older give a socket a device only for a process with CAP_NET_RAW. The service does not hold it. Run Linux 5.7 or later, or check the security policy of the host where the kernel is newer.

The revision is refused, and the one before it keeps serving. At a start, the same message stops the start: the configuration that is running cannot be served: cannot listen on ....

A listener on a device that answers nothing

Section titled “A listener on a device that answers nothing”

A listener with a device answers only the queries that arrive on that device. A query for its address that arrives on another device gets no answer: a refusal of the port over UDP, and a reset over TCP. Check which device the queries arrive on with ip route get <client address>.

A socket keeps the index of the device of its bind. wg-quick down and wg-quick up delete a device and make it again under its name. To the kernel, that is a new device, with another index. The sockets of the listener keep the old index, which no device has, so they take no packet.

Every 10 seconds the server reads the index that each socket of a listener with a device holds. It compares that index with the index of the device of that name now. Where what it reads changes, it writes a warning. The field listener holds the entry, setting the list, and sockets the sockets of that state, such as UDP 2 of 4, TCP 1 of 1:

these sockets hold the index 7, which no device has now, and no device is named "wg0". A socket bound to an index that no device has takes no packet. Restart the server once a device has that name
these sockets hold the index 7, which no device has now, and the device named "wg0" has the index 9. A socket bound to an index that no device has takes no packet. Restart the server to bind them to that device
these sockets hold the index 7, whose device is named "wg9" now, and no device is named "wg0"
every socket of this listener holds the index of the device named "wg0" again
  • no device has now and no device of the name: the device is gone, or it moved to another network namespace. Restart the server once the device is back. A start while it is missing fails, as Install says.
  • no device has now and a device of the name with another index: the device was made again. Restart the server.
  • whose device is named ... now: the device of the sockets was renamed. The sockets keep it under its new name. A restart binds the entry to the device that node.toml names. So the restart fails until a device has that name, or until node.toml names the device by its new name.
  • The info line: every socket holds the index of the device of the name again, as after a rename back.
  • A revision can change the device of a served entry, which waits for a restart. Then the sockets keep the device of their bind. In place of its own advice, a line then ends with A restart binds 192.0.2.1:53@eth1, which the revision in force names. A restart binds that entry. A later revision that changes that entry writes the line again, with the new entry.

What the warning says holds at the moment of the read:

  • It polls every 10 seconds, so a device that goes and comes back within one period can go unseen.
  • A device that flaps writes a line at each change that a read sees. Nothing limits the lines.
  • The kernel gives a new device a new index. A device can still take the old index in two ways. A device moved in from another network namespace keeps its index, where no device here has it. A person can give an old index by hand, with ip link add ... index N. A device with the old index reads as the same device.
  • A listener whose sockets hold the device of the name can still take no query, such as where the device is down or lost the address of the entry. The warning is about the index alone.
  • The sockets of one listener can hold different indexes, where the device was made again while they were bound. The warning names the sockets of each state.
  • A reload, or a revision that keeps the entry, does not bind a served listener again, so it does not repair this. Restart the server.
  • The health answer has a listener_devices list, with an entry for each listener in this state. It gives the entry and its list, the live sockets by protocol, each state with its sockets (gone, made_again or renamed), and restart where a restart binds another entry. tadoru health counts these listeners, and its exit code stays zero (CLI). The list carries facts that listen does not: the index that the sockets hold, the index of the device that has the name now (named), and the new name of a renamed device (name). It is in the full answer alone, as listen is, and not in the answer that needs no credential.
  • The health and the log come from the same read, and the log writes its line just after. So the health can show a state a moment before its warning is in the log. A revision that changes the advice of a restart shows in both at the next read.

quic_listen and http3_listen are refused for these reasons, and the message names the setting:

node.toml, setting quic_listen: 192.168.1.2:53 is on port 53, which carries plain DNS. DNS over QUIC takes another port, 853 by default
node.toml, setting quic_listen: 192.168.1.2:5300 is also in listen, and one UDP port serves one protocol
node.toml, setting http3_listen: 192.168.1.2:853 is also in quic_listen, and one UDP port serves one protocol
node.toml, setting quic_listen: names an address, and DNS over QUIC needs a certificate. Name tls_certificate_file and tls_private_key_file
node.toml, setting http3_listen: names an address, and DNS over HTTP/3 needs a certificate. Name tls_certificate_file and tls_private_key_file
  • Port 53 is for plain DNS, so move DoQ to another port, 853 by default.
  • listen holds UDP on each of its addresses, so a QUIC list cannot share an address and port with it. The two QUIC lists cannot share one either. An address and port in tls_listen or https_listen is fine, because those are TCP.
  • Both lists need the certificate files of DNS over TLS.

A list that passes these checks can still fail to bind, where another program holds the UDP port:

cannot listen on 192.168.1.2:853 over QUIC: Address already in use (os error 98)

Find the program with sudo ss -ulpn 'sport = :853', or lsof -iUDP:853 on macOS. The revision is refused, and the one before it keeps serving.

The three numbers are refused outside their ranges, as any setting is. For example:

node.toml, setting quic_idle_timeout_seconds: 4 seconds is outside 5 to 300 seconds

The DoH3 listener ends a stream or a connection with a code of HTTP/3 where a client breaks a rule of “What a DoH3 client gets wrong” in Encrypted DNS. A client logs the code, and the server logs nothing at the default level.

Code Name What the client did
0x10b H3_REQUEST_REJECTED Its head did not come within 10 seconds of the start of its stream. The query was never read, so the client can send it again
0x10c H3_REQUEST_CANCELLED It stopped reading the answer, or the server stopped the request once it ran
0x107 H3_EXCESSIVE_LOAD A frame past its bound: on a request stream the stream ends, and on the control stream the connection. Also the close of a setup past 10 seconds, and of a connection with too many requests dropped before their head
0x106 H3_FRAME_ERROR A frame that ended before its length, or held more than its type allows. The connection closes

A client that sends large heads, such as many cookies, can pass 17 KiB. Make the head smaller, or send the query in the body of a POST rather than in the URL of a GET.

A DoQ or DoH3 client resumes from a ticket. The server seals tickets with a key that it makes every 6 hours from random octets of the system. Where the system gives none, the log says, at most once an hour:

cannot make a new ticket key, so new QUIC connections get no ticket to resume

dns_quic_ticket_key_failures_total counts each try. DoQ and DoH3 share their keys. Clients still connect, and each connection makes a full handshake. The server tries again at the next connection, and resumes once the system gives random octets again. On Linux, getrandom waits for the pool of the kernel at boot, so a count that keeps rising is a machine whose kernel refuses the call.

The DoQ and DoH3 listeners count each connection until the QUIC library lets it go. If they ever cannot see that, they stop taking new connections, and the log says once, at ERROR:

the QUIC listeners cannot see when quinn drops a connection, so they refuse every new attempt

From then on, dns_quic_connections_refused_total{reason="untracked"} counts each attempt, on every DoQ and DoH3 address, also on one that a later revision adds. A connection that was open before stays open. This is a fault of the build, not of the configuration or of a client: the server would otherwise lose count of what it holds. Plain DNS, DoT and DoH over TCP are not touched, so a client that falls back to them keeps working.

  • Report the fault with the output of tadoru --version.
  • Point clients at DoT or DoH until a fixed release. A restart does not help: the listeners refuse again from the first connection.

A door of the API the server will not take

Section titled “A door of the API the server will not take”

api_listen and console_listen are refused for these reasons, and the message names the setting:

node.toml, setting api_listen: names an address, and the management API on the network needs a certificate. Name tls_certificate_file and tls_private_key_file, or acme_names
node.toml, setting api_listen: 0.0.0.0:8453 listens on every address. Answering from an address the query did not arrive on makes a client discard the reply. Name each address instead
node.toml, setting api_listen: 192.168.1.2:853 is also in tls_listen, and one TCP port serves one protocol
tadoru: the configuration files were not adopted, so nothing was started: ./data/config, setting configuration: console_listen names 192.168.1.2:5343, and this build holds no console. Build with the console feature, or use api_listen. Put it right and start again. Each start judges the files again
  • Name the two certificate files, or acme_names, the same as for DNS over TLS.
  • Name each address that serves the API. A wildcard reaches every network of the machine, also one that you did not mean.
  • Give the door a port that no other TCP listener of this server uses, 8453 by default.
  • A binary built without the console refuses an address in console_listen. Use a binary built with it, or serve the API alone on api_listen.

The last line comes from the first start of a server, before it runs any revision. See A first start that does not adopt the files.

A door of console_listen keeps the same address and port over UDP, for HTTP/3. No DNS listener of UDP can take it: not listen, quic_listen or http3_listen. A node.toml that an older release loaded can hold such a pair. After the upgrade the start refuses it, and so does the next revision:

node.toml, setting console_listen: 192.168.1.2:443 is also in http3_listen. A door of the console keeps its UDP port for HTTP/3, so no DNS listener can take it

A browser keeps the address of HTTP/3 that a door named for a day, so a DNS listener there would take the requests of the console. Give the door or the DNS listener another port. An address with a scope that names no device, such as [2001:db8::1%7]:443, is the same socket as the address without it, and the message names the other spelling after as.

The doors of console_http3 count each connection until the QUIC library lets it go. If they ever cannot see that, they stop taking connections over HTTP/3, and the log says once, at ERROR:

the UDP doors cannot see when quinn drops a connection, so they refuse every attempt

From then on, dns_api_quic_refused_total{reason="untracked"} counts each attempt. This is a fault of the build, not of the configuration or of a client: the server would otherwise lose count of what it holds. The TCP doors of console_listen and api_listen are not touched, so browsers fall back to HTTP/2 there and the console keeps working.

  • Report the fault with the output of tadoru --version.
  • Set console_http3 = false until a fixed release, so the doors stop naming HTTP/3 in Alt-Svc. A browser that holds the header can try HTTP/3 for up to a day, and can fall back to TCP. A restart does not help: the doors refuse again from the first connection.

The browser does not use HTTP/3 for the console

Section titled “The browser does not use HTTP/3 for the console”

A door of console_listen names its UDP door in the Alt-Svc header of an answer over TCP. Look for it with curl -sI https://<name>:<port>/ | grep -i alt-svc. Where it is missing:

  • console_http3 is off, or the revision that turned it on did not land.
  • The client is a proxy of api_trust. The door sends no header to a proxy. Set it at the proxy.
  • A DNS listener holds the same UDP port on another address of the node, in listen, quic_listen or http3_listen. Give the door or the DNS listener another port.
  • The door has no certificate yet, such as before the first order of ACME.

Where the header is there and the browser still uses TCP:

  • The UDP port is closed in a firewall, or a router forwards it to another port.
  • The certificate is not valid for the name in the address bar.
  • The browser has not loaded a page over TCP since the door started. The header comes with an answer over TCP.

The browser decides when to switch, and some wait for a later connection.

The console fails over HTTP/3 after a change of ports

Section titled “The console fails over HTTP/3 after a change of ports”

A browser keeps the header for a day. If the name of the console resolves to another address of the node whose UDP port is a DNS listener of HTTP/3, the browser can send its requests there, and they get the answers of DNS over HTTPS. The door sends no header while a DNS listener of the node holds the port, but a browser can hold an older one. Make each address of the name serve the console on its port, or nothing on its UDP port. A new connection of the browser after a day goes over TCP again.

A first start that does not adopt the files

Section titled “A first start that does not adopt the files”

The first start of a server takes the files of the config root as its first revision. When it cannot, it stops, and says why:

tadoru: the configuration files were not adopted, so nothing was started: <the reason>. Put it right and start again. Each start judges the files again
  • The reason can be in the files, such as a setting out of range. It can also be outside them: a binary built without the console, a port that another program holds, a certificate file that is not there yet, or an address that this machine does not have.
  • Put the cause right, and start the server again. You do not need to change a file when the cause was outside the files.
  • Each refused start stays in the history of revisions as a failed revision with its reason. So the first revision that runs can be revision 2 or later.
  • /health reports the refused start as last_failure, after the server starts, until a later change is refused.

An older release said this instead, at every start after the first refusal:

tadoru: command adopt:0dee53ca8a168ed0d437e232 was already refused: <the reason>

It repeated the first answer even after the cause was put right. Install this release and start again. It reads the same data directory and judges the files again.

A login answers 401, “the name or the password is wrong”, for a password that you know is right. If the log of the server holds this text at the level ERROR at the same time, with the name of the account, the account keeps a password verifier that this build cannot read:

a stored password verifier is not one this build can read

The login answers as it does for a wrong password, so a stranger cannot learn from it that the name has an account. Set the password of the account again. The new verifier replaces the one that the build cannot read:

Terminal window
tadoru accounts password alice --password-file ./passphrase

The log holds this line at the level WARN, with the name of an account:

the failed logins at one account reached the threshold of an hour, from every address together

The failed logins at that account, over every address and door together, reached 50 in an hour. Each address is held to 10 failed logins a minute at one name, so many addresses at once, or one address for five minutes or more, are guessing at its password. account=an unknown name stands for every name that has no account. dns_api_accounts_guessed_total counts these lines.

The server makes nobody wait for it, so the owner can still log in. Look at the lines a login failed for the clients that guess. Keep the console and the API off the internet where you can, or behind a proxy of api_trust that names each client. Make sure that the password of the account is long and used nowhere else, and change it if it is not.

log_level and log_format are refused when the word is not one of the choices, and the message names the setting:

node.toml, setting log_level: "loud" is not a level. Write "error", "warn", "info", "debug" or "trace". A level for each part of the server is a value of TADORU_LOG alone
node.toml, setting log_format: "yaml" is not a format. Write "text" or "json"
  • The words are in lower case. "INFO" is refused.
  • log_level takes one level for every part of the server. A list such as info,resolver=debug is a value of the environment variable TADORU_LOG, and the file does not take it.

A revision that sets a value which TADORU_LOG or TADORU_LOG_FORMAT overrides is not refused. The log writes a WARN line that says the file changes nothing. Logs and metrics has the line.

With log_file_days above 0, the thread of the log file writes a warning when it cannot write the file, at most one a minute for each kind, and one an hour for a line too large. Standard output and the ring keep every line. Each line that the file does not take counts in dns_log_dropped_total.

The warning Why What to do
the directory logs of the state root cannot be used, so the lines of this day are not written to a file STATE/logs is a link, not a directory, another user owns it, or its mode could not be narrowed to 0700. The server tries again at the next day Make logs a directory of the user of the server, or delete it while the server is stopped
the log file of the day cannot be used, so the lines of this day are not written to a file The name of the file of the day is a link, a pipe or a directory, another user owns the file, it has more than one link, or its last octet does not read. The lines count as file_write_failed Remove what is at that name. The next revision, or the next day, opens the file again
the log file of the day has no room left under the cap of the log files, and no deletion of an older file can make room, ... The file of the day reached log_file_mib, and the older files cannot make room. The lines count as file_full until the day ends Raise log_file_mib, or lower the level of the log
an older log file could not be deleted to keep the cap of the log files, ... The deletion of the oldest file failed. The warning names the file and the error Fix the mode of logs/, or delete the file by hand
the file system of the state root is under its floor of free room, ... The free room is under 5% of the file system, or under 256 MiB. The file takes no line for a minute, then looks again Free room on the disk
the free room of the file system of the state root could not be read, ... The query of the free room failed. The file takes no line for a minute Look at the disk and the mount of the state root
the sizes of the log files are not known, ... A scan of logs/ failed. The file takes no line until a scan a minute later reads it Look at the mode and the disk of logs/
entries of the directory logs have the name of a log file but are not one, ... A link or a file of another user has the name of a day. The server leaves it as it is and does not count it in the cap. The warning names the first one and how many Remove the entry, or leave it
a log file older than the days to keep could not be deleted The prune by days failed. The warning names the file and the error Fix the mode of logs/, or delete the file by hand
a line is larger than the free room above the floor, so it is not written to a file. ... One line did not fit the free room above the floor. The next line can still go in Free room on the disk
the thread log-file could not start, so the log writes no file until the next revision The system refused a new thread Look at the limits of the service. The next revision tries again

A line lines are written to the log file again says that the file takes lines again.

With log_local_time = true, the log writes UTC as +00:00 where the server finds no time zone. One WARN line says so, at the start and at each revision that turns the setting on.

The warning Why What to do
log_local_time is on, but this machine has no time zone that the server can read, so the log writes UTC TZ is not set and /etc/localtime is not there, or TZ names a file that is not there, such as a name that the zone files of the machine do not have. A real UTC zone gives no warning Set the zone of the machine, for example with timedatectl set-timezone, or put a valid TZ in the environment of the server, then restart the server
the thread log-zone could not start, so the offset of the log lines changes only with a revision The system refused a new thread. Lines keep the offset that the last revision that turned the setting on found. It stays so, also across a change of the clock for summer, until a revision turns the setting off and on again, or the server restarts Look at the limits of the service. A revision that turns the setting off and on again starts the thread once more

A read of the recent lines that is refused

Section titled “A read of the recent lines that is refused”

GET /api/logs reads the ring of recent lines. Each refusal names its reason:

What you see Why What to do
401 on the socket The route needs a token or a session there too: the word of the kernel proves nobody for it Send a token, or log in
403, ... is a viewer, and this needs admin or operator The lines hold the names of accounts, the addresses of clients and the paths of files Read them with an operator or an admin
429 logs-busy, with Retry-After: 1 Two reads of the log run already, for the whole server Try again a second later
400 that names a parameter The parameter does not read: a level, a number of seconds, a cursor or a limit of 1 to 1000. The problem names the parameter, and not its value Fix that parameter. before and after cannot go together
503 logs-unavailable This server keeps no ring, or the connection cannot watch the delivery of a page Read the log on standard output, or with journalctl

A client that does not take a page within 30 seconds of its build loses the page, and its connection closes gracefully: on HTTP/2 the other requests of that connection get their answers within 10 seconds, and then the connection ends. The deadline bounds how long the server keeps the page, from its build, however fast the bytes go. A page holds 1.38 MiB at most, so a client that reads less than about 47 KiB a second can lose a full page. A slow link, or a slow proxy in front of a door, can cause it. Ask for fewer lines with limit. At debug, the log says a body was not taken within its deadline for each such connection.

Every name under one suffix answers SERVFAIL, and the rest of DNS works. The destination of that [[forward]] is not answering. A log line names the suffix, so you know which entry. It is at debug level, which the default info does not show, so set log_level = "debug" in node.toml to read it:

forwarding failed suffix=home.lan error=...

Three things to look at, in order. Whether the destination is up, which a dig straight at it answers. Whether it answers for that suffix at all, because a router that resolves the internet does not always hold the names it handed out. And whether it answers this machine, because a router can be set to answer its own clients and not a server.

Terminal window
dig @192.168.1.1 tablet.home.lan A

A loop is the case no check can catch. If the router forwards that suffix back to this server, each side waits for the other and the client sees the timeout. Nothing in this server can see the other half, so the answer is a rule on the router.

An upstream that is asked after the others

Section titled “An upstream that is asked after the others”

An upstream that answers nothing three times in a row is suspect. The server then asks it a question of its own, . NS, before the next client question. If that question gets an answer, nothing more happens. If it gets no answer, the upstream rests. For 60 seconds the server asks it only after the other upstreams of its route, and only where they all failed the question. At the end of the rest, the same question asks it again. If that gets no answer, the rest doubles: 120 seconds, then 240, then 300 seconds at most. Any reply ends the rest. A client’s own questions never rest an upstream, so a client that asks for names that time out cannot take a route down. The log says when an upstream is suspect, when a rest starts or grows, and when it ends. Each line names the route, which is ordinary or the suffix of a [[forward]]:

INFO an upstream answered nothing three times in a row, so the server asks it a question of its own route=ordinary upstream=192.0.2.1:53 protocol=udp
WARN an upstream answered nothing, nor the server's own question, so it is asked after the others until its rest ends route=ordinary upstream=192.0.2.1:53 protocol=udp seconds=60
WARN the probe of an upstream at rest got no answer, so it rests again route=home.lan. upstream=192.168.1.1:53 protocol=udp seconds=120
INFO an upstream at rest answered again route=ordinary upstream=192.0.2.1:53 protocol=udp

A route can have every upstream at rest, and a route with one upstream always does when that one rests. Then the route sends one question of its own at the end of each rest, and it answers every other question SERVFAIL at once. Where serve-stale is on and the cache holds an expired answer to the question, the client gets that answer instead. So the names behind a router that was down for a moment can fail for up to a minute after it comes back. After a long outage, they can fail for up to five minutes. dns_upstream_suspects_total counts the suspicions, dns_upstream_rests_total the probes that got no answer, and dns_forward_failures_total{reason="resting"} the questions that failed at once because their route rests.

Some upstreams do not rest, and the latency choice moves them down instead:

  • an upstream that answers with an error, such as SERVFAIL or REFUSED, because it is there;
  • an upstream whose port refuses the query, because a forged packet can say that;
  • an upstream whose query the deadline cut short, because that query had no whole timeout.

An old resolver can refuse the OPT record of EDNS (the Extension Mechanisms for DNS, RFC 6891). It answers FORMERR or NOTIMP, and it answers the same question without the record. With dnssec_validation = false in server.toml, the server then asks it without the record, and remembers that for five minutes, per address and per transport. The log says so once each time:

INFO a server refused the OPT record and answered without it, so it is asked without one for five minutes server=192.168.1.1:53 protocol=udp

dns_upstream_edns_marks_total counts these marks, and dns_upstream_edns_fallbacks_total falls to one fallback each five minutes for such an upstream. A question with DNSSEC OK, or with a client subnet option, always keeps the record. With validation on, which is the default, every query keeps it, so such an upstream answers nothing this server can use. It does not rest, because it replies (An upstream that is asked after the others). The latency choice moves it down, and each question it gets goes on to the next upstream. Point the route at an upstream that takes EDNS, or turn validation off.

A name that answers SERVFAIL because of its aliases

Section titled “A name that answers SERVFAIL because of its aliases”

One name answers SERVFAIL for every client, whatever its group, and a query with an OPT record reads Extended DNS Error 0 with the text an upstream answer whose alias chain cannot be read. The name’s zone is broken, and every server this one asked gave the same broken answer. Three shapes do it: a name that is an alias and holds other data as well, which the DNS forbids; a name with two CNAMEs that lead to two places; and a chain of more than 16 aliases in one answer. A name is an alias where it holds a CNAME, and where a DNAME above it rewrites it, even into a name too long to exist. A client would follow one of two answers, or names no rule of this server read, so this server takes the answer from nobody and asks the next upstream or name server first.

dig straight at the upstream shows the answer as it arrives:

Terminal window
dig @9.9.9.9 www.example.com A +noall +answer

dns_upstream_failures_total{reason="unwalkable"} counts it per upstream reply, and dns_unwalkable_answers_total per name server reply in the recursive mode. Per question, the failure the client got goes to dns_forward_failures_total{reason="unwalkable"}, or to dns_recursion_failures_total{reason="unwalkable"} in the recursive mode. The reason is unwalkable wherever one upstream sent such an answer and no upstream sent a failure code, whatever the others did. The failure is cached like any other, so the name answers SERVFAIL for a while after the zone is fixed. The owner of the zone is the one who can fix it.

A private address from a forwarded suffix is not refused

Section titled “A private address from a forwarded suffix is not refused”

rebind_protection refuses an answer from outside that points at a private address. A suffix you send somewhere with [[forward]] is exempt, and the answers are cached like any other. That is deliberate: a forward to the router exists to answer private addresses for the names the router handed out, and the check refuses exactly those.

So a [[forward]] for a public suffix, pointed at a resolver you do not control, loses that check for every name in the suffix. Nothing in the answer says so. Configuration says it beside the setting.

upstream_timeout_ms must not outlive resolution_deadline_ms, and minimum_ttl must not exceed maximum_ttl. A floor above a ceiling is refused as a pair. Choosing one of the two silently serves a configuration nobody asked for.

forwarder_timeout_ms must not outlive resolution_deadline_ms either. A wait past the deadline never ends, so the next forwarder is never asked. The refusal names the setting forwarder_timeout_ms, and says 5000 milliseconds is more than resolution_deadline_ms, which is 3000 milliseconds. Lower forwarder_timeout_ms, or raise resolution_deadline_ms. Without forwarder_timeout_ms, a forwarder waits upstream_timeout_ms, which has the same rule.

Four changes take effect at the next start: moving the metrics endpoint, turning it off, changing udp_workers for an address that is already served, and a longer clock_grace_minutes. The log names the change and says a restart is needed. The answer of a change through the API names each one in waits_for_restart, and so does GET /api/info. Everything else takes effect as soon as the revision is current.

A read of GET /api/server answers from the snapshot the query path is using. If it does not show your edit, the edit is not a revision yet. GET /api/revisions says whether it was refused, and why.

The server serves the generation its pointer names, and it checks that generation against what was recorded for it first. Three things stop the start: a file that changed behind the server’s back, a file nobody recorded, and a pointer that is gone. The message names the file and the way out.

It does not fall back to an older revision. That leaves the pointer naming one revision and the server running another, and then nothing says which is current.

For a file that changed or a file nobody recorded, there are three ways out. The message names the first two.

Terminal window
# Which revisions are on disk. The pointer names the one that was being served.
ls ./data/state/generations
# Run revision 4's content again, as a new revision. It works either way: through the
# server when one is running, and under the lock when none is.
tadoru config rollback 4

The rollback reads revision 4 and checks it against its own record, so it never reads the damaged one. The second way out is a restore from a backup, which Backup and restore covers. The third is to move the state root aside and start fresh, which loses the history and the accounts with it.

A pointer that is gone where revisions are on disk has two ways out, and the message names them: a restore from a backup, or a fresh state root. Where the directory of the generations holds only entries named like a revision, such as a file or a link, the message says so instead. Look at each entry. Remove it if it is not a revision, then start again.

With no pointer, a directory of the generations that cannot be listed stops the start too, because the server cannot tell a lost pointer from a first boot. The message names the directory and the error. The server sets the mode of that directory at every start, so the cause is a directory that went away, a disk or a mount that failed, or a security policy that refused the read. Remove the cause, then start again.

The start also stops where the zones it serves break a check across the files, even with every replayed zone stopped. An example is a [[forward]] inside a zone that has no journal and no delegation there. No change of this build commits such a set. A generation that a build with fewer checks wrote can hold one. The message names the setting. Edit the file in the config root, then start again. The start takes the edit as a new revision before it serves.

A rollback puts the configuration of an older revision back, as a new revision. It goes back to a revision whose record and configuration are kept, that does not run, and whose change did not fail. A row that says failed failed. So did a row that still says staged because the server refused the change and could not write that to its ledger. The server then deletes the directory of that revision, which never ran, so the next start writes the row off. It refuses any other revision. Through the API the answer is a 422, with the type invalid-configuration. tadoru config rollback prints the same words. The detail says why:

The words Means
revision N failed, so a rollback cannot reach it The row of revision N says failed. A change that was refused marks its revision failed. Rarely, a start marks it failed too, because a later change overtook it. A row that says staged gives it too, where the server refused the change and could not write that
revision N is already running Revision N runs now, so there is nothing to go back to
there is no revision N in the command log No record of revision N is kept, so nothing says what its files held
was recorded as holding A file in the directory of revision N, under generations/, changed, went or came after the revision was made
is a symbolic link The directory of revision N under generations/ is a symbolic link. The server reads only a directory that it wrote, and it does not follow the link. Put the directory back, or choose another revision
Revision N was recorded with the file An older build wrote revision N with a file under a name that the config root skips, such as .notes. No rollback can put that file back. Choose another revision
An error that reads generations/N and finds no directory The server keeps only the 10 configurations before the one that runs, and it deleted the older ones

GET /api/revisions says which revisions a rollback can reach: the rows with restorable set to true. Choose one of them. GET /api/revisions/N/difference then says what the rollback changes: each file, each setting, the value that runs and the value that comes back. A rollback that you send to the API yourself can carry that tag in If-Match, so a change that lands in between is refused with 409. tadoru config rollback sends no If-Match: it puts the revision back over whatever runs, as config apply does. For a revision whose change failed, it answers the same 422 as the rollback, whose file is generations/N, relative to the state root. A refused rollback is a revision of its own, and its row says failed with these words. The same rollback with the same If-Match answers 409 after that, because the server refused that change already.

tadoru config rollback sends the rollback again with one key of its run, where an answer is lost (Commands says when). Where a try was refused and its answer was lost, the next try prints the same reason, from a 409 with the type /problems/already-refused. Where no try settles, the command says that the rollback to revision N can have landed. It says the same where the server stops, or names a change that it has not settled, after a try whose answer was lost. Read GET /api/revisions before you run it again, and look for a row that says roll back to revision N, after the revision that ran when you started. Other changes can have landed after it, so it need not be the newest row. Where that row says activated, the rollback landed: do not run it again. A new run sends a new key, and makes a second revision with the same content.

prune.lock in the state root keeps the prune of a journal out of a backup and a restore. The server makes it at its start, as its own user, with mode 0644. These refusals name it:

The refusal says What to change
prune.lock: is missing Start the server again, which makes it. Do not make it by hand
prune.lock: is a link, and the lock of the prune follows none Remove the link with the server stopped, and start the server, which makes the file
prune.lock: is not a regular file Remove what is there with the server stopped, and start the server
prune.lock: Permission denied Stop the server and every backup, and remove the empty file. Start the server as its own user, which makes it again
prune.lock: is made by a hard link, and the file system of the state root refuses one Put the state root on a file system that allows hard links, such as ext4, XFS or Btrfs. The same refusal names auth.gate or auth.lock for an accounts command or a restore
is in the state root Write the archive of a backup somewhere outside the state root
is a lock of the node that the archive came from The archive is not one that tadoru backup wrote. Use one that it wrote
is the serial witness of the node, which a restore merges and never replaces The archive is not one that tadoru backup wrote. Use one that it wrote. A restore keeps the serials.sqlite of this machine
is the file of the zone clock of the node, which no archive holds and a restore keeps The archive is not one that tadoru backup wrote. Use one that it wrote. A restore keeps the aging.clock of this machine
is the record of the place of the query log of the node, is the directory of the log files of the node or is a file of the query log in memory The archive is not one that tadoru backup wrote: no archive holds telemetry.place, logs/, a marker of a reset or a directory of a store in memory. Use an archive that it wrote
is a side file of a database, which no backup writes The archive is not one that tadoru backup wrote: a backup copies each database through SQLite as one file, with no -wal, -shm or -journal beside it. Use an archive that it wrote
holds a part outside ASCII outside generations/ The archive is not one that tadoru backup wrote: outside generations/, every name that a backup writes is ASCII, and a volume that folds Unicode reads some other names as those names. Use an archive that it wrote
is beside the state root in the archive, where a backup writes nothing but its manifest The archive is not one that tadoru backup wrote. Use one that it wrote
is a link, which no backup writes The archive is not one that tadoru backup wrote: a backup writes no link. Use one that it wrote
is a hard link, which no backup writes The archive is not one that tadoru backup wrote: a backup writes plain files alone. Use one that it wrote
is in the archive and not in its manifest, which no backup writes The archive holds a file or a directory that its manifest does not list. A backup lists every file it writes, so somebody added it. Use another archive
the restore cannot delete ...-journal, because it is no file A directory, or another entry that is no file, stands at the name of a side file of a database that the restore puts in place, such as control.sqlite-journal. Remove it by hand, and run the same archive again
names . or an empty part in its path The archive is not one that tadoru backup wrote. Use one that it wrote
spells a name that a backup writes in another case The archive is not one that tadoru backup wrote. Use one that it wrote. A volume that ignores case, as on macOS, would take the name as the file of the backup
holds a first part outside ASCII The archive is not one that tadoru backup wrote: every name that a backup writes at the root of the state root is ASCII, and a volume such as APFS reads some other names as those names. Use an archive that tadoru backup wrote

Delete prune.lock only with no server, backup or restore running. A process that holds the lock holds that file, and a new file under the name is another lock.

A backup copies each database in one pass, into $TMPDIR. These refusals name the database and then its copy, because SQLite does not say which of the two held a lock or failed:

The refusal says What to change
copying a database: ... the database or its copy was busy or locked, so the backup did not finish Another program held a lock that the copy needed, such as tadoru rewrite, or sqlite3 with PRAGMA locking_mode = EXCLUSIVE. The copy waits up to 5 seconds for most locks, and for some it does not wait at all. Let that program end, and run the backup again. A running server does not hold a database that way
copying a database: ...: database or disk is full The copy filled $TMPDIR. Free space there, as Backup and restore says, or set TMPDIR to a place with more room, and run the backup again
copying a database: ...: attempt to write a readonly database or unable to open database file Most often, the user that runs the backup cannot write the copy in $TMPDIR. Give that user a TMPDIR that it can write, and run the backup again
copying a database: ... with another reason SQLite failed to read the database or to write its copy, as on an error of a disk. Check the disks of the state root and of $TMPDIR, and run the backup again

In each case the backup writes no archive, and an archive that was already at the output path stays as it was.

The lock of the certificate that the node makes, in a backup

Section titled “The lock of the certificate that the node makes, in a backup”

A backup holds pki/self-signed/lock shared while it copies the store of the certificate that the node makes, and each change of that certificate holds it exclusive. These refusals of tadoru backup name it or the store:

The refusal says What to change
pki/self-signed/lock: is missing, so nothing holds the store Run the backup again. Where it still says so, stop the server and run the backup then. Do not make the file by hand
pki/self-signed/lock: is a link, and the lock of the certificate that the node makes follows none Stop the server and remove the link. The server makes the file again when it next changes the store
pki/self-signed/lock: is not a regular file Stop the server and remove what is there. The server makes the file again when it next changes the store
pki/self-signed/lock: Permission denied Run the backup as the user of the server, or as root
pki: is a link or no directory, and a backup follows no link, or the same of pki/self-signed or of a directory in it Something other than the server put a link or a file there. Stop the server, put the real directory back or remove what is there, and start the server
changed while the backup copied the certificate that the node makes Something other than the server replaced or moved pki/self-signed/, a directory or a file in it, or lock, while the backup ran. Find what does it, stop it, and run the backup again

Delete pki/self-signed/lock only with the server stopped and no backup running.

A backup copies pki/acme/ with no lock. Where a file in the store changes while it copies, it copies again after a short pause, up to five times, and it keeps a copy where current names a certificate whose files the copy holds. This rests on the server alone writing pki/.

Message What to do
pki/acme...: changed while the backup copied the ACME store, on each of its 5 tries The server renewed a certificate or wrote a DNS-01 challenge during each try, or something other than the server changes pki/acme/. Run the backup again. Where it keeps saying so, find what writes there, or stop the server and run the backup then
the archive holds a copy of .../pki/acme/current that names no ACME certificate whose files the copy holds, in the report of tadoru backup The copy of the ACME store in the archive has a current that names no whole certificate, as the store stood when the backup read it. A server restored from this archive serves no ACME certificate until its next order works. The node may have mended its store since: run the backup again, and where the line comes again, the next order of the server makes a new certificate
pki: changed while the backup copied it: pki/ under the state root is no longer the directory that the backup opened Something other than the server renamed or replaced pki/ while the backup ran. Find what does it, stop it, and run the backup again

A self-signed certificate that does not serve

Section titled “A self-signed certificate that does not serve”

With tls_self_signed = true, the server keeps its certificate in pki/self-signed/ of the state root. Each line below starts with tls_self_signed:.

The line says What it means, and what to do
the store of the certificate is busy: ..., or the new certificate cannot be stored: ... is busy: another process, such as a backup, held it past 30 seconds A backup, or another change of the store, held it for 30 seconds. Nothing is wrong with the store. Apply the revision again once the backup ends. At a start, start again
the store of the certificate could not be read: ... A call of the system failed, such as a read of a disk that failed for a moment. Nothing is removed. Apply the revision again, or start again. Where it keeps failing, look at the disk and at the modes of pki/self-signed/
the store of the certificate does not read: ..., at a start current names a pair that does not read, a key that does not match its certificate, a file of another mode or owner, or a link. The start stops. To start again, stop the server, remove pki/self-signed/, and start it: the server makes a new certificate, with a new key and new fingerprints. Clients that pinned the old key need the new one
the same, at a revision The revision is refused, and the old one keeps serving. Fix or remove the store as above, then apply the revision again
the new certificate cannot be stored: the store of the self-signed certificate cannot put current back: ... An earlier commit could not write current back, such as on a disk that fails or is full. The old certificate keeps serving. Make room or fix the disk. The server tries every minute to put current back, and the revision stays refused: apply it again once the health has no problem

The health report says the rest under certificates, as renewal_failing with a problem, while the certificate before it keeps serving:

The problem says What it means
the store of the certificate is busy, such as with a backup The revision is in force, and its new certificate waits. The server tries each minute, and the old certificate serves with the old names until then. At the first revision that turns the source on, nothing serves until then
the new certificate did not become current: ... A write of current failed. The server tries again each minute
the certificate ends at ... seconds since 1970, and the server cannot make one that ends later until the clock is trusted The clock gate does not trust the clock, so a new certificate gets the same dates, and the server makes none. Set up a time client, or wait for the grace window to end. expired follows once the date passes

A restore merges the copy of the serial witness that the archive carries into serials.sqlite of this node, as Backup and restore says. Before its mark, it reads the witness of the node, settles each command of the witness that did not finish, and runs the merge on a copy. A refusal there replaces nothing. The dry run, with no --yes, runs the same steps on copies of the two databases, and prints each refusal as with --yes, .... Each line of a settle that a refusal wrote comes first.

The refusal says What to change
... so the serial witness there is not the state root's alone serials.sqlite, its -wal, its -shm or serials.sqlite.aside is a link, not a regular file, or a file with a second name. Put the file itself there, alone, and run the restore again
the copy of the serial witness in this archive does not read The archive is damaged. Restore another archive
the manifest names ... beside the copy of the serial witness, the archive holds ... beside the copy The archive is not one that tadoru backup wrote. Use one that it wrote
the serial witness would hold N apexes after the restore Stop the server, and run tadoru zone witness reset <apex> for the apexes that no secondary follows any more, then restore again
a restore would leave N apexes in the quarantine of the serial witness A quarantine row of an apex with no zone goes once its deadline passes. A row of an apex with a zone stays. Restore again after the first one goes, or restore another archive
the archive and the serial witness here each hold command C with another intent One id names two commands. Restore another archive
a restore would leave N entries of audited commands in the serial witness An entry goes 30 days after its command settles. Restore again after that, or restore another archive
the entry of command C of the serial witness is open Run the same archive again, which settles it first
the copy of the serial witness in the archive holds serial S of A, at or past 2^31 from its first serial The copy is damaged or was edited. Restore another archive, or reset the apex on the node that made it and back it up again
holds a quarantine row of A with the deadline ... The copy is damaged. Restore another archive
the restore could not settle the commands of the serial witness that did not finish Fix the cause that it names, such as a full disk, and run the same archive again
the command log of this archive could not be written whole in the staging directory The restore could not fold the mark of the witness into the ledger that it puts in place. Free space on the disk of TMPDIR, and run it again
zone Z is frozen at serial H by its journal here, and the serial witness holds serial S ... too far past it Thaw the zone first with tadoru zone thaw Z, then restore. Where its journal holds a damaged frame after the freeze, the refusal names the cut, the statement of the freeze, a start and the thaw. Where Z runs here as a stub zone, or is not a zone of this server, no thaw, cut or statement takes its journal, and the refusal says so: restore an archive that does not hold Z, or start the server and make Z here as a primary zone first, after the deletion of the stub, which takes the journal back. Then stop the server and restore again: the refusal then names the way out of a primary
zone Z: revision N of this archive thaws the zone, and its journal here does not hold that thaw yet Start the server first, so that it appends the thaw, then restore
zone Z: revision N of this archive thaws the zone, and the journal of the zone here does not hold that thaw, and a start here cannot append it Restore an archive of a revision made after that thaw, or of one from before it. A machine that holds no journal of the zone, such as a new one, takes this archive
zone Z: revision N, which this restore puts back, thaws the zone A restore of an older build stopped after its files. Keep the server stopped, and do not delete restore-unfinished by hand: a start would take the configuration files from before the restore as edits. A later build adds a way to finish it
the journal of zone Z here does not say whether the zone is frozen With the server stopped, cut or remake the journal where it does not read, state its freeze state with tadoru zone journal settle-freeze Z, and restore

The check of the frozen journals reads only where a witness stands after the restore. It holds a zone frozen on this node against the serial that the witness holds for its apex after the merge: a thaw must pass that serial in one step, or the zone would stop after the restore with no way to thaw.

Where the merge refuses after the files are in place, the message starts with the files are restored, and. The mark of the restore stands, so the server refuses to start. Change what the message says, and run the same archive again, which merges where it stopped.

A restore that cannot open the witness of the node for its revision says the files are restored and the serial witness could not be opened. Fix the cause, and run the same archive again.

The server prunes the journal of a zone, updates.jnl, by a copy that reads it a frame at a time. Where the copy finds damage that lasts, the log holds the warning the copy of the journal of a zone meets damage that lasts, so its prune waits behind the other due zones. Its fields are zone, offset and why.

offset is the octet of the journal where the damage is. why says what it is:

  • holds a damaged frame, with the kind of damage: Length, Size, Checksum, Fields or Sequence.
  • ends before the end that the zone serves: the file is shorter than the updates that the zone answered.
  • holds another history at the end that the zone serves: the frames of the file are not the ones that the zone answered.

The journal keeps every octet, and the prune leaves no copy. The zone waits behind every zone that is due for a prune and has no damage. The prune reads that journal again after an hour, or at once where the file is replaced or holds fewer octets, and each read that finds the damage warns again. The zone still serves what it served. The next start reads the same damage and stops the zone, so it answers SERVFAIL.

  1. Stop the server.
  2. Run tadoru zone journal cut <zone-id>. It keeps the whole updates before the damage, and drops the rest (the command line).
  3. Start the server.

A cut drops the updates after the damage. To keep them, restore the state root from a backup that holds them instead (Backup and restore).

Before the prune puts its copy in place of the journal, it reads the copy again. Where the copy does not read as the prune wrote it, the log holds the warning the prune of a journal failed, and a later tick tries again, with an error that says read the copy of a prune again. The journal keeps every octet, and the zone keeps serving and taking updates. A disk that does not give back what it took is the usual cause, so check the disk and its log.

After the prune renames its copy over the journal, it checks that the journal is that copy. Where it is another file, holds another length or header, or its name gives another file or a link by the end of the check, the server stops the zone, and the health report names it stopped with the reason the journal differs from what this process wrote: the pruned journal is not the copy that the prune read again. The zone answers SERVFAIL until the server stops. Start the server again, as below.

Do not let another program write zones/ in the state root while the server runs. The server cannot see each such write, and an update that it answered can be lost to one. The server finds a change that is in the journal at the next read of the whole journal. Each update reads it, and so does each change of the configuration, each checkpoint, freeze and thaw:

  • An update of the zone answers SERVFAIL, and the log gives its reason: the journal of zone <zone-id> is lost or differs from what is known of it.
  • A change of the configuration, a checkpoint, a freeze or a thaw stops the zone with the reason the journal differs from what this process wrote. The zone answers SERVFAIL until the server stops, or until a change of the configuration deletes the zone.
  • A change of the configuration that changes that zone, and a checkpoint, a freeze or a thaw of it, are refused with this process stops it for its journal until a start of the server reads the journal again.

Find the program that wrote the journal, such as a tool that restores or syncs files, and stop it. Then start the server again. The start reads the journal that the disk holds by its own rules: it serves it, or stops the zone where it is damaged, as above. Where that journal is not the one that you want, restore it from a backup.

control.sqlite keeps each command of a dynamic update, of ACME and of aging that made no revision, so that a repeat of its id gets its first answer. The prune of the ledger stamps each such command after it finishes. It deletes the command more than 7 days and 1 hour after the stamp. It deletes nothing in the first 7 days and 1 hour after each start of the server, and dns_ledger_prune_start_hold reads 1 in that time. SQLite uses the space of a deleted command again, so the file stops growing rather than shrinks.

  • A server that starts again more often than every 7 days and 1 hour never prunes its ledger, because each start begins the hold again. It keeps every command, which costs disk and nothing else. Let the server run for 7 days and 1 hour once. The ticks after the hold then take the backlog, at most 100 commands a batch.
  • After an upgrade from a build without the prune of the ledger, no finished command has a stamp yet. The first start stamps up to 1,000 of them, and each later tick goes on with the rest. dns_ledger_rows_stamped_total shows the progress. Each command then waits 7 days and 1 hour from its own stamp, so the prune deletes nothing until a week after the upgrade.
  • A host that sleeps stops the clock of the hold, so a machine that suspends keeps its commands longer.
  • dns_ledger_prune_failures_total grows, and the log says the prune of the ledger failed, and the next tick tries again once an hour, with the error. A batch that fails changes nothing, and the next tick tries again. Read the error:
    • database or disk is full: free disk in the state root.
    • database is locked: another process writes control.sqlite. Find it and stop it. Only the server that owns the state root writes that file, so do not open it for writes beside the server.
    • An error that starts with the batch stopped is a fault of the program. Report it with the log. The next tick tries again.
  • dns_ledger_rows_capped_total grows after a start. An earlier run of the server, or the archive of a restore, left stamps ahead of the clock of this run, for example from a clock that was ahead. Each batch brings such a stamp back to the clock of this run, and no command goes early.

With a passphrase, a backup writes a MAC over the manifest of the archive, and a restore with the passphrase checks it before it unpacks anything (Backup and restore). These refusals come from that check:

The refusal says What to change
the passphrase is wrong, or the archive changed after it was written Check that the passphrase file holds the passphrase of this backup, with nothing else changed. Where it does, the archive changed after the backup wrote it: do not restore it, and use another copy
this archive carries no MAC The archive was written without a passphrase, a version before the MAC wrote it, or somebody removed the MAC. Where you know where the archive came from, run the restore again with --without-mac, or without the passphrase file for an archive written without one. Otherwise use another archive
its manifest names keys and no manifest.mac follows it The MAC is missing or is not right after the manifest. The archive is damaged or changed. Use another copy
it holds manifest.mac and its manifest names no keys The archive is not one that tadoru backup wrote. Use one that it wrote
manifest.mac is not 64 lowercase hexadecimal digits The MAC of the archive is damaged or changed. Use another copy
manifest.mac is not a plain file The entry after the manifest has the name of the MAC and is a link, a directory or another kind. The archive is not one that tadoru backup wrote. Use one that it wrote
is an entry of the kind ..., which no backup writes The archive holds an entry that is no plain file, directory or link, such as a sparse file. The archive is not one that tadoru backup wrote. Use one that it wrote
... is ... bytes, and the manifest says ... A file in the archive has another size than its manifest says. The archive is damaged or changed. Use another copy
its first entry is not manifest.json as a plain file A backup writes its manifest first. The archive is not one that tadoru backup wrote, or it is damaged. Use another copy
the archive asks for memory_kib ..., passes ... or lanes ..., and this build takes ... The archive asks for a cost of its key that this version does not take. A later version wrote it, or it was changed. Restore it with the version that wrote it
the archive names the key function ..., the split ..., the MAC ... or the cipher ..., which this build cannot read A later version wrote the archive, or it was changed. Restore it with the version that wrote it
the salt of the archive is ... bytes long The archive is not one that tadoru backup wrote. Use one that it wrote

A restore without the passphrase checks no MAC. It says no passphrase was given, so nothing checked the MAC of this archive, and it takes the plain files of the archive as they are.

A start refuses a state root where a restore began and stopped. What is on disk is part one installation and part another. A server that runs on that mixture is worse than one that does not start. The message names the mark it found.

Run the same archive again to finish the job. A backup is refused for the same reason until it is finished. A start reads the mark again after it takes the lock of the state root, so a restore that began a moment before the start is caught too.

A run that finishes another run must open at least what that run opened. A first run with a passphrase file, and a second one without it, gives:

tadoru: checking the mark a restore left: a restore of this archive started here and can have restored files that this run cannot open, such as auth.sqlite (1 in all), so this run would leave them as they were and clear the mark over part of one installation and part of another. Run it again with the passphrase file of the first run. The mark is ./data/state/restore-unfinished

Run it again with the same passphrase file.

A mark that an older build left does not say which files its run opened. Then the message says The mark comes from an older build, which did not note which files its run restored, so only a run that opens them all finishes it, and only a run with the passphrase file of the archive finishes it.

tadoru accounts refuses while a restore or a tadoru rewrite of auth.sqlite runs, and after a restore that stopped half-way. The command reads and changes no account then:

tadoru accounts: a restore or a rewrite of this state root holds ./data/state/auth.gate, and it can replace ./data/state/auth.sqlite, so this command neither read nor changed an account. Run it again when it has finished
tadoru accounts: a restore of this state root started and did not finish, so ./data/state/auth.sqlite can belong to either installation, and the next run of that restore can replace it. This command neither read nor changed an account. Run the same archive again with tadoru restore --yes, with the passphrase file of the first run where it had one, then this command. The mark is ./data/state/restore-unfinished

Wait for the restore, or finish it, and run the command again. A restore that finds an account command running waits for it, and says an account command is using. While it waits, a new account command is refused, so the restore waits only for the commands that ran before it. auth.gate and auth.lock refuse as prune.lock does, with is a link, and the gate of the accounts follows none, is a link, and the lock of the accounts follows none or is not a regular file: remove what is there, with no account command and no restore running. A file such as auth.lock.1234-0.new beside them is a new lock file of a command that was killed while it made one, and deleting it costs nothing.

A restore refuses before it writes its mark, and before it removes anything, where a directory that it would remove holds an entry that is neither a file nor a directory, such as a link:

tadoru: the restore cannot remove the directories that hold ./data/state/generations/1/zones/old/linked, because a restore follows no link and removes only files and directories. Remove it by hand, then run the same archive again

The dry run names each such entry under this cannot remove. Tadoru writes no link and no special file in the generation store or in a secret directory, so the entry is somebody else’s. Remove it, and run the same archive again. A link made while the restore runs stops it with is neither a file nor a directory, in a directory that the archive does not carry, under its mark. The way out is the same: remove the entry, and run the same archive again, which finishes the job.

A restore opens the state root once, right after it takes the lock, and follows no link there. It writes its mark, removes and writes the restored files, and clears its mark through that directory. It reads the frozen zones and opens the databases by the path. A state root that is a link is refused with is a link or no directory, and a restore follows no link: name the directory itself with --data-dir. A state root that is moved or replaced while the restore runs stops it with is no longer the state root that the restore opened. Put the directory that the restore opened back where it was, and run the same archive again. Where the restore stopped after its removals, that directory holds its mark, and the same archive finishes the job.

A restore refuses an archive whose stored answers of changes of records it cannot close. It refuses before it writes its mark and before it replaces anything, also in the preview:

tadoru: the era of the record changes of this ledger is at its maximum, so a restore cannot close its stored answers, in the control.sqlite of this archive. Nothing was replaced. Restore another archive

The same refusal can name another reason in place of the first part:

  • hold an era that it has not had: a stored answer of the archive, or its table of the era, holds an era that the ledger never had. Examples are an era past its own, 0, or a value that is not a whole number.
  • does not move up by one: the ledger of the archive does not take the move of its era, for example because a trigger in it stops or ignores the move.

The roots and the lock file can be there by now, but nothing was replaced. Where no restore mark stands in the state root, restore another archive. Where the mark of an earlier run of the same archive stands, the restore takes no other archive, and this build refuses that one. Finish that restore with the build that started it, and then restore another archive with this build.

An archive that carries no control.sqlite keeps the one in the state root, and the restore closes the stored answers of that one. Where that ledger cannot be closed, the refusal ends with these words:

in the control.sqlite of this state root, which a restore of this archive keeps, because the archive carries none. Nothing was replaced. Restore an archive that carries control.sqlite

Where that ledger cannot be opened, the refusal starts with these words:

this archive carries no control.sqlite, so the restore keeps the one here, and that one cannot be opened

In both cases, restore an archive that carries control.sqlite.

For every archive, control.sqlite, control.sqlite-wal and control.sqlite-shm of the state root must each be a regular file with one name, or not be there. Where a journal of the state root ends in a freeze, the restore opens the ledger to check the frozen zones. An archive with no control.sqlite keeps the ledger here and moves its era. The restore refuses before its mark in three cases, each for its own reason:

  • A link sends those opens and writes to the file that it names, outside the state root.
  • A file of another kind, such as a directory, is no ledger, so the restore can neither keep it nor replace it.
  • A file with a second name is one file under both names, so the writes change it under the other name too.

The messages, in that order:

tadoru: /var/lib/tadoru/control.sqlite is a link, and a restore follows no link in the state root. Nothing was replaced. Put the file itself there, or remove the link, and run the restore again
tadoru: /var/lib/tadoru/control.sqlite is not a regular file, so it is no part of a ledger that a restore can keep or replace. Nothing was replaced. Move it away, and run the restore again
tadoru: /var/lib/tadoru/control.sqlite has 2 names, and a restore would change the file under each of them. Nothing was replaced. Give the state root a copy of its own, and run the restore again

Each message names the file that it found, which can be the -wal or the -shm file. Do what the message says, and run the restore again. The preview ends with code 0, and prints the same message after with --yes, , before its last line, nothing was replaced. Run it again with --yes to do it.

A restore can stop after it put the files in place, with one of these messages:

the files are restored and the ledger could not be opened
the files are restored and the stored answers of the archive are not closed yet
the files are restored and the stored answers of the control.sqlite of this state root are not closed yet

The restore left its mark, and the message names the error. Fix the cause, and run the same archive again. Where the archive carries control.sqlite, the run puts that ledger back and moves its era once. Where it carries none, the run keeps the ledger here, and each run moves its era once more. A second move is safe, because it only closes the stored answers again.

A restore that runs as root over a state root that another user owns is refused with belongs to user N, and a restore that runs as root makes files that user cannot open. Run it as the user of the server, with the server stopped, as in sudo -u tadoru tadoru restore <archive> --yes.

No archive carries the times of records. A restore deletes record_times.sqlite, then its -wal, its -shm and its -journal, as Backup and restore says. Three messages come from this.

An archive with an entry under one of these names is refused before the mark, and nothing is replaced. The entry can be in the manifest or only in the archive:

tadoru: checking the archive: record_times.sqlite is the store of the times of records of a node, which no archive holds and a restore deletes, so this archive is not one to unpack

tadoru backup never writes such an entry, in any case. Another tool wrote the archive or changed it. Restore an archive that tadoru backup wrote.

A name of these files that is no file, such as a directory, refuses the restore before the mark, and nothing is replaced. The preview names it under this cannot delete:

tadoru: the restore cannot delete ./data/state/record_times.sqlite-journal, because it is no file. A restore deletes the times of records and their side files, and removes no directory at their names. Remove it by hand, then run the same archive again

Remove what stands at that name, then run the same archive again.

A delete that fails after the mark, such as for the permissions of the state root, stops the restore before it replaces a file. The message starts with deleting the times of records: and names the file. Fix the cause that it names, then run the same archive again.

A restore deletes pending-lists.toml and pending-lists.toml.new in the state root, under its mark and before it replaces a file, and keeps each copy set aside. The lists that the record owed belong to the config root that the restore replaces. An archive with an entry under one of these names, in any case, is refused before the mark:

tadoru: checking the archive: pending-lists.toml is the record of the lists that a pass of the watcher of the node owes, which no archive holds and a restore deletes, so this archive is not one to unpack

A name of the record that is no file, such as a directory, refuses the restore before the mark, and the preview names it under this cannot delete:

tadoru: the restore cannot delete ./data/state/pending-lists.toml, because it is no file. A restore deletes the record of the lists that a pass of the watcher owes, and removes no directory at its name. Set it aside with `tadoru config recover-pending`, then run the same archive again

A delete that fails after the mark starts with deleting the record of owed lists: and names the file. Fix the cause that it names, then run the same archive again.

A state root from an earlier build does not open. This project has no release, so such a root is a development one: auth.sqlite records a schema version this build refuses. Deleting that file is the way on, and a start with no account then writes a setup token.

A new build brings each database under the state root up to its own schema when it starts, one step at a time. A start that stops with migration to version N failed undid step N alone. The steps before it stay, so a build that knows fewer steps refuses the database. The rest of the message says why the step failed.

a row of journal_places names a row of commands that is not there means a row of commands was deleted by hand. A database the server wrote never holds such a row. Stop the server, remove the rows that name nothing, and start the new build again. control.sqlite is in the state root, which Install and run places:

Terminal window
sqlite3 /path/to/state/control.sqlite \
"DELETE FROM journal_places WHERE command NOT IN (SELECT id FROM commands)"

migration to version 12 failed with this message means that the ledger holds a command that is not a change of records, with an id that starts with records::

the prefix records: is for record changes, and these commands of the ledger have it: <ids>.
Move them out of control.sqlite, then start again

From version 12 on, the prefix records: is for the changes of records through the API alone, and the server counts and prunes those commands as their audit. The message names up to 20 of the commands. Until they go, control.sqlite stays at version 11, and the server does not start. Stop the server, copy control.sqlite aside, and move those commands out of it. This lists them:

Terminal window
sqlite3 /path/to/state/control.sqlite \
"SELECT id, origin, state FROM commands WHERE id GLOB 'records:*'
AND NOT (origin IS 'api' AND revision IS NULL AND generation IS NULL)"

Then start the new build again.

migration to version 13 failed means that the step that adds the index of the prune of the ledger stopped. The step changes no row. It reads every command, writes the index, and checks every foreign key, so on a large ledger it needs time and free disk. The free disk it needs is about twice the size of the index: once in the file, and once in the write-ahead log. A ledger of 1,000,000 commands needs about 110 MB. The rest of the message gives the cause, such as database or disk is full. Free disk in the state root and in the temporary directory of the server, and start the new build again. Until the step ends, control.sqlite stays at version 12.

migration to version 14 failed is the same case for the step that adds the stamp of the prune of the ledger. It adds a column to every command and an index of the commands that have no stamp yet, and it needs about twice the size of that index in free disk: about 100 MB for a ledger of 1,000,000 commands. Until the step ends, control.sqlite stays at version 13.

migration to version 15 failed is the same case for the step that drops the index of version 13, which the stamp replaced. It needs little free disk, about 2 MB for a ledger of 1,000,000 commands. Until the step ends, control.sqlite stays at version 14.

migration to version 23 failed is the same case for the step that builds the table record_changes again, for the new lists, the kind and the counts of an import. It copies every row of the table, so it needs about twice the size of the table in free disk: once in the file, and once in the write-ahead log. In one measure, 20,000 changes with an answer of 16 KiB each took 4 seconds. The file grew from 353 MB to 694 MB, and the log held 345 MB. That is an example, not a bound. Until the step ends, control.sqlite stays at version 22, and the next start runs the step again. After the step, the start gives the space of the old table back to the file system and empties the log. A ledger that a build made before its file took auto_vacuum keeps its larger size until tadoru rewrite. Where the start cannot give the space back, such as while another process reads the ledger, it logs a warning and goes on. The space then stays until later writes take it again, or until tadoru rewrite.

migration to version 23 failed with this message means that a row of record_changes holds a value of another class than its column, such as text where a number belongs:

migration 23 copies each row of record_changes as it is, and these rows hold a value of another
class than their column: row <rowid> (<columns>). Mend or delete them in control.sqlite, then start
again

A ledger that the server wrote never holds such a value, so the file is damaged or was changed by hand. The step refuses the row rather than change its value as it copies it. The message names up to 20 rows. Until they go, control.sqlite stays at version 22, and the server does not start. Stop the server, copy control.sqlite aside, and look at those rows:

Terminal window
sqlite3 /path/to/state/control.sqlite \
"SELECT rowid, hex(key_id), result, settled_at, typeof(era), typeof(counts_shared_quotas)
FROM record_changes WHERE rowid IN (<rowids>)"

Delete each row that has settled, by its rowid. A repeat of its key then counts as a new request. The ledger refuses the delete of a pending row. For such a row, restore an archive (Backup and restore). Then start the new build again.

Answer Means Do
400 A proxy of api_trust named no single client in api_client_header (proxy-header) Make the proxy add the address it saw as the last entry of that header, as Caddy and Traefik do and nginx does with proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;. The warning in the server log names the proxy and the header
400 A range of GET /api/stats/hourly that holds more than 744 hours (range-too-long) Ask for 744 hours (31 days) at most. Split a longer range into parts. Start each part at the start of the hour after the hour of the to of the part before, so a to of 12:30 is followed by a part that starts at 13:00. The detail names the timestamps
401 No credentials, or none this server knows Log in again, or use a token that exists
403 A role that is not allowed, or a cookie without its forgery token Use an account with the role, or send x-csrf-token
408 The body did not arrive within 10 seconds of the head (body-too-slow) Send the request again from a faster link
409 A revision that moved, a tag from before a restore or an upgrade, an empty If-Match, or a change refused before Read again and send the new If-Match, or a new Idempotency-Key
413 The body passes the limit of the route (body-too-large) Send a smaller body. The answer names the limit
422 A setting the server cannot use Read the setting and line in the problem document
429 Too many failed attempts with this credential, or too many attempts at once (too-many-in-flight) Wait the seconds the answer names. For too-many-in-flight, try again after a second
503 The query log is off (unavailable), the query log is still opening its database (query-log-starting), a change did not settle in time (still-writing), a check of a change did not finish in time (still-checking), too many changes or checks wait (too-many-changes: at most four checks wait at once, so a save keeps at least four places), the server is stopping (stopping), a redaction waited 20 seconds for the writer of the query log (still-clearing), a redaction of client came before the privacy settings were read (privacy-not-read, see A redaction answers privacy-not-read), a read of the accounts did not end within 3 seconds (accounts-busy), too many bodies arrive at once (busy), two comparisons of revisions run already (busy-comparing), the request ran out of time with nothing recorded (out-of-time), the ledger did not answer for a key (ledger-unread), or a proxy left api_trust and its connection closes (no body, Connection: close) For still-writing or ledger-unread, send it again with the same Idempotency-Key, or read GET /api/revisions and look for the command that the answer names, or for that name with # and a revision after it, a later attempt of a change sent with no key. After still-checking, send the check again: a check writes nothing. After stopping, send it again once the server is back. After a proxy left api_trust, its next connection is served as one client. A change that answered still-writing keeps its body counted until it ends, so a busy after a still-writing means that the write path is held: wait for that change to settle. Otherwise, and after query-log-starting, try again in a moment

A change of records has answers of its own, which A change of records that the API refuses lists.

The words of a refused change name no root of the server. The record of the change keeps them, GET /api/revisions shows them, and a retry with its key answers them in already-refused. They name a file of the configuration by its path inside the config root, such as clients.toml, and a root itself by its name, such as the state root. Where the check of the server refused the change, such as for a certificate file that does not read, the file is configuration and the words are those of the check.

The delete of a list file quotes none of those words. Where the check refused it, the answer says so and names the setting, and GET /api/revisions shows why. A retry with its key answers the words that the delete built itself, such as a list that another source reads, and otherwise says only that it was refused before.

The blocking routes have eighteen of their own. The type in the document says which:

type Means Do
pass-running A pass over the lists is running, and one runs at a time With 409, nothing started. Ask again when done
pass-failed A pass panicked. The lists before it kept what they read Read the log. Restart on blocking-not-running
nothing-refused That list is serving what it read, so there is nothing to accept Read it again if you expected a refusal
another-body The list refused a different body while you were reading The answer names the one it holds. Accept that
revision-moved The configuration changed while the pass ran Nothing was kept. The pass on the timer reads it
blocking-not-running Nothing is fetching the lists in this server Read the log for why that task ended
unusable-switch The body read fine, and it is not a switch this server can set Read the detail. It names the field and the bound
no-client The running configuration holds no client of that name Apply the change, or read GET /api/clients for the names
search-busy A search is running, and one runs at a time Ask again after a second
search-unavailable The search got no answer. The detail says why Read the log. Where the task stopped, a restart of the server starts it again
source-not-uploaded An upload or a delete named a source that reads a URL or another path Upload under another id, or change or remove the source with PATCH /api/blocking
list-shared Another source reads blocklists/<id>.txt, which the upload writes or the delete removes Upload under another id, or change path of the source that detail names first
no-list-file A read of the list file named a source that reads a URL Read the list at its URL. Only a source with a path has a list file
list-unusable A gate refused the uploaded list: gate and its numbers say which Fix the list, or the setting of the source that the gate reads
list-shrinks The uploaded list holds less of the list before than its source asks for Read the numbers. The same upload with ?accept=<checksum> lands it and runs the pass that takes it. Where the answer says accepted: false, POST .../accept with the checksum of last_attempt.refused takes it after the pass refuses it
accept-mismatch accept names another checksum than the one of the uploaded list Send the checksum that list-shrinks gave for this text
invalid-import POST /api/blocking/import met a line it cannot take, or a file with no name or no rule. line names the line where one is at fault Fix that line and send the whole file again. For ;reply=IP with file blocking.toml, write block_v4 or block_v6 there first
too-many-entries The import would pass the bound of the list: 10,000 names in one list, or 200 patterns Import fewer, or take entries out first. A larger list of names is an upload of a list file

An upload of a list file, PUT /api/blocking/sources/{id}/list, answers 409 stale-revision where another change landed while it checked the list, and nothing of it was written: read the sources again, and send it again. With an Idempotency-Key, its refusals are recorded, and the same key again answers 409 already-refused with the words of the first answer. Send it again with a new key, or with none, to read the numbers of a list-unusable or of a list-shrinks again, and the checksum that accept needs. An upload, the import of a zone and the read of a list file larger than 1 MiB, GET /api/blocking/sources/{id}/list, take the one place of the large bodies, so one of them during another answers 503 busy. Blocking says what an upload does.

A delete of a list file, DELETE /api/blocking/sources/{id}/list, answers 409 stale-revision where another change landed between its read and its write, and nothing was deleted: read the sources again, and send it again. A group that names the source in sources refuses it with 422, and the setting names the group: take the source out of the group first. Blocking says what a delete does.

An import of entries, POST /api/blocking/import, answers 409 stale-revision where another change landed between its read of blocking.toml and its write, or where If-Match names a revision that no longer runs. Nothing was imported: read again, and send it again. With an Idempotency-Key, a refusal of the file, of blocking.toml or of If-Match is recorded, so the same key again answers 409 already-refused: send it again with a new key, or with none. A revision that moved between the read and the write is not recorded, so the same request with the same key can land. Blocking says what an import does.

202 from a refresh, a refresh of every list or an accept means the pass is taking longer than the request waits. Your request started it, and it carries on. GET /api/blocking/sources says what it did, and tadoru blocklist status shows the same rows on the machine.

POST /api/zones answers invalid-zone for a body that makes no zone. The detail starts with these words:

detail starts with Means Do
it names primaries or servers, the keys of a stub A primary with primaries or servers, an empty list too Set "kind": "stub", or leave both keys out
it names name_server or addresses, the keys of a primary A stub with name_server or addresses, an empty list too Leave them out, and name the servers in servers
it names serial, a key of a primary A stub with serial, which a stub does not move Leave serial out
it names both primaries and servers A stub with both lists Send primaries for a learned stub, or servers for a static one
it names no primaries and no servers A stub with neither list Send one of them
its primaries hold no address, its servers hold no server An empty list of a stub Send one entry at least
it names 9 primaries, it names 9 servers, the server ... has 9 addresses A list past its bound of eight Send eight at most
... holds a character outside ASCII A name with a label outside ASCII Write the label as its A-label, which starts with xn--
... is not a domain name A name that does not read Write an absolute name, such as dc1.corp.example

POST /api/server/check, POST /api/node/check, POST /api/blocking/check and POST /api/clients/check check a change as its save would, and change nothing. Each answers with the refusal that the save of the same request gives, with the same Idempotency-Key. A key that a save used gets the answer of that save again. Without a key, a change whose save was refused is checked again, as its save is judged again, so the check gives the reason of the change as it is now. A change whose save landed answers with that save. The check takes the settings as application/json or the whole file as text/plain, and answers 415 for another content type, so send a file with content-type: text/plain. A port that is in use passes the check, because a check binds nothing, and the save refuses it. An answer or a refusal with "results_owed": true can differ from the save: a zone owes the result of a change of records, and the save settles that first. Read it as provisional. At most four checks wait for the write path at once. Past that, a check answers 503 too-many-changes at once, so a save keeps at least four places. Send the check again in a moment.

Every failure a handler raises is a problem document, as application/problem+json. It carries a stable type, a title that is the same for every failure of that kind, and a detail about this one. API Reference lists the answers each route gives.

A body this server cannot read is a problem document too: one that is not JSON, one whose JSON the route cannot use, a missing content type, and a PUT body that is not text. Each names the part that is wrong.

A body past the limit of its route is a 413 problem document, and a body the server could not finish reading is a 400 one, such as a connection that closed halfway. One answer is the framework’s own, with a bare status and no problem document: a request that outlives the timeout of 35 seconds answers 503.

POST /api/zones/{id}/convert and its check, POST /api/zones/{id}/convert/check, answer these refusals. A refusal writes nothing. The convert records a refusal under its Idempotency-Key, so the same key again answers 409 already-refused. The check records nothing, so its key stays free. The words of already-refused are those that the ledger kept. The applier can find that the zone is gone or that a zone holds the new id. Then those words differ from the words of the first answer. Send the fixed request with a new key, or with none. Zones says what a convert does.

type Status What it means What to do
not-found 404 No zone and no stub zone has this id Read GET /api/zones for the id
invalid-zone 422 The body names no zone this server can make. setting names the key, and detail starts with the words of the table above Fix that key
the same 422 detail says the request gives 17 addresses for the name server, with setting addresses Send 16 addresses at most. POST /api/zones answers this with new-zone
the same 422 detail says is not the id of a zone, with setting id: the new id does not read Send an id of lower-case letters, digits and hyphens, 40 at most
same-kind 422 The zone is of that kind and source already. A new id alone is no convert Name the other kind, or the other source of a stub
zone-exists 409 A zone or a stub zone holds the new id Choose another id
zone-frozen 409 The zone is a frozen primary Thaw it with tadoru zone thaw <zone-id>, then convert it
zone-journal 422 detail says Name a new id: the id holds a trace of a journal, and a new zone there takes it Send id with a new id. The journal stays under the old one
the same 422 detail says Choose another id: the new id holds a trace of a journal Choose another id
the same 422 detail says Try again: the look for a journal failed, such as a ledger that does not read Make the ledger and the state root read, then send it again
the same 422 detail says counts under every id alike: the ledger keeps history of a journal that no zone is tied to Put the journal file of that journal back in the state root, then convert again
new-zone 422 The defaults write no records.zone for the new primary, such as with no name server Send name_server, or set zones.name_server in server.toml
invalid-configuration 422 The record of the running revision or the old zone.toml does not read, or the configuration with the new zone is not valid Where the record does not read, roll back to a revision that verifies. Else fix what setting names
the same 422 detail says takes no change of its kind: the freeze state of the primary is in doubt, or the replay of the start has not read its journal yet Do what detail says for its journal, as for The freeze state of a zone is not certain, then convert it

PATCH /api/zones/{id} with kind answers 422 zone-key, with the title “PATCH does not change this setting”. Convert the zone instead. name gets the same refusal: no route changes the apex of a zone, so delete the zone and make it again.

A request that reads the accounts in auth.sqlite answers 503 accounts-busy where its reads do not end within 3 seconds in all. Every request with a token or a session cookie reads them to know who is calling, and so do the lists of the accounts, of their history and of the tokens, a change of an account, the state of setup, a setup token and a login. A request with no credential to a route other than setup and login reads nothing. On the socket, a request that the uid of the server sends with no credential, to a route that takes that uid as its caller, reads nothing too. Nothing changed, so send the request again in a moment. A failed attempt is not counted.

The read waits on a thread of its own, so it holds none of the workers that answer DNS and the other requests. DNS answers that need only a worker go on. Work that needs a thread of its own, such as a DNSSEC validation, can still wait where every such thread is busy. At most 16 reads run or wait for a thread at once, and the rest wait for one of those places. dns_auth_reads_late_total counts each late read, and its label stage says where the read was:

stage The read waited for Look at
place one of the 16 places, which other reads held the reads behind them, at read
thread a thread of the server, which other work held the load of the machine
read the store, which a write or the disk held a tadoru accounts command that holds its write, the disk of the state root, and dns_auth_log_cut_pending

The line reads of auth.sqlite ran past their budget comes at most once a minute, with the count of each stage since the last line.

While the accounts do not answer, more than 30 requests at once with credentials from one address of api_listen answer 429 too-many-in-flight for the extra ones: each counts against its address while it waits. GET /api/health on api_listen with a credential answers 503 accounts-busy too, and keeps the cookie. With no credential it still answers {"live": true}, and the socket still gives the whole report.

GET /api/queries, POST /api/queries/redact, GET /api/stats/hourly, GET /api/stats/top and GET /api/stats/top-blocked answer 503 query-log-starting while the query log opens its database. After an upgrade, the server brings that database up to date in the background, and that can take minutes for a large log. The server answers DNS meanwhile. The rows of those queries wait in memory until the log is open, 4096 of them at most. Past that, a row is lost, and dns_querylog_dropped_total counts it with reason="queue_full". A redaction asked in that time clears nothing, so ask for it again once the log is open.

The server log says the query log is open once it is, and took_ms says how long the open took. Where rows were lost meanwhile, the warning the query log lost N rows while it opened, because its queue was full follows it. Try again in a moment. Where the open failed, the routes answer 503 unavailable instead, and the error line the query log could not be opened says why. Every query then counts as a lost row, with reason="log_off".

A stop while the log opens waits 5 seconds for it. Past them, the server exits, the step of the upgrade that ran does not commit, and the rows that waited in memory are lost. The next start runs the upgrade again from the last step that committed.

The upgrade to this build copies the query log once, to give each row an identifier. That copy is most of the time the log takes to open after the upgrade. After the copy, the log gives the space of the old copy back to the disk, about 100 ms of it before it is open, and the rest in steps of about 100 ms between batches of rows once it is open. A stop in that part leaves the upgrade done. The next start gives back the rest where the file is still mostly free space. Below that, the free space stays in the file, and new rows take it.

dns_querylog_dropped_total{reason="queue_full"} counts the rows that came while the queue of the query log was full. The query log page says how many rows of its range were lost. The writer takes rows off the queue between its batches, and a turn of the writer that takes more than a second, past its wait for rows, says so at most once a minute: a turn of the query log writer took N ms, so rows waited in its queue. lost counts the rows that a full queue lost in the slow turns since the last line, and it is a warning where that count is above 0. parts names each part of the turn that took 10 ms or more:

Part What took the time
write The write of a batch of rows. A slow disk
prune The prune and the give-back of free space. See rows_by_age and rows_by_size
fold A fold that a route asked for
redact A clear of a column, which can take minutes
fold turn The publication of the hourly counts, every five minutes
scrub The scrub of the file after a clear or a start
flush Batches written before a fold or a clear
drops The record of the lost rows
other The rest of the turn

slow_turns counts the slow turns since the last line, and wal_bytes is the size of the write-ahead log. No such line does not rule out a writer that fell behind: a turn under a second can still fill the queue in a burst, and the line of the slow turns of a minute comes only at the next slow turn after it. A burst of queries faster than the writer often comes from one device, and the busiest devices of the query log page show it.

The upgrade to this build copies the query log once. Before the copy, the server checks two things. Where either fails, the copy does not begin, nothing of it is written, and the query log stays at the version it had before the upgrade. The log stays off for this run of the server, its routes answer 503 unavailable, and each query counts in dns_querylog_dropped_total with reason="log_off". The server answers DNS all the same. The next start checks again.

The server log has the line the query log could not be opened, so nothing is recorded, and its error says which check failed:

The error says What to do
... needs N bytes free on its file system, where M are free Free space on the disk of the state root, then start the server again. Or stop the server and move telemetry.sqlite out of the state root, with telemetry.sqlite-wal and telemetry.sqlite-shm beside it where they are there: the server starts an empty log, and the old rows and statistics are gone
... depends on the table queries, and the upgrade would drop or change it Somebody added a trigger, an index, a view or a table to telemetry.sqlite by hand. Stop the server, remove the object that the error names with sqlite3, and start the server again

The copy needs about twice the size of the query log, and 8 MiB more. Lowering max_size does not help, because the log prunes nothing while it is off.

The upgrade also builds an index for the sort by time taken, after the copy. It checks the room for it in the same way, and the first row of the table above is its refusal too. The index needs about 128 bytes for each row of the log, and 8 MiB more, less the free pages already in the file. Where it refuses, the steps before it stay done, so the next start checks the room of the index alone.

The check does not count the temporary files of the copy. When the copy builds an index larger than about 128 MiB, which a log near the default limit of 512 MiB can have, SQLite sorts part of it in temporary files. It puts them in the first of these that it can write: SQLITE_TMPDIR, TMPDIR, /var/tmp, /usr/tmp, /tmp. Where that is a small file system, or one in memory, the copy can fail when it is full, and the log is off for the run. Point SQLITE_TMPDIR at a directory on a disk with room for about a third of the size of the log. Set it in the environment of the service, because the server ignores TMPDIR when it runs with the capability to bind port 53. Under the systemd unit, add the directory to ReadWritePaths too.

could not read the free space of the state root, so the upgrade of the query log runs without the check is a warning. The copy runs. Where the disk fills during it, the copy is undone, and the error of the log says database or disk is full.

A restore of an archive from an older build upgrades its query log too. It does so on a copy in a staging directory, a temporary directory under TMPDIR (or /tmp where TMPDIR is not set) that the restore removes when it ends. The copy, the rewrite of the names and the index of the sort need room there. The restore tells these cases apart:

The restore says What it means and what to do
... its upgrade writes much of it ... The upgrade needs N bytes free and had M in the staging directory D The staging directory had too little room, so the upgrade did not run. The restored server upgrades the log at its start, and needs that room free on the state root then. To upgrade it during the restore, free space on the disk of TMPDIR, or run the restore with TMPDIR on a disk with room for about twice the log
the upgrade of this archive's query log did not finish in the staging directory D ... The upgrade stopped, for a cause such as a full disk or an error of the step. The file is whole at the last step that committed, which the note names. The restored server tries the upgrade again at its start. Read the error: if it names the disk, free space on the disk of TMPDIR and on the state root. If it fails again, the server log has the line the query log could not be opened, so nothing is recorded, and the table above applies
the upgrade of this archive's query log to version N found a schema that is not the one its version names ... Somebody changed the file by hand. A new try fails the same way. Move telemetry.sqlite out of the state root after the restore, and the server starts an empty log
the open of this archive's query log failed in the staging directory D ... The open failed for a cause that is not the file, such as a full disk. The restored server tries again at its start. Free space on the disk of TMPDIR
this archive's query log failed the check before its upgrade copies it: ... The query log of the archive is damaged, as A damaged query log was moved aside says. The restore goes on. The restored server moves the file aside at its start and records into a new log. The kept file keeps the rows of the archive
... is not one this build can read The file is a newer version, damaged, or not a database. The restored server records no queries until you replace the file

Where the upgrade leaves part of its work in the log of the staging directory and the restore cannot fold it into the file, the restore stops with could not be written whole in the staging directory, replaces nothing, and says to free space on the disk of TMPDIR and run it again.

The server log has the warning the query log was damaged, so it was moved aside and a new, empty log starts. Before an upgrade copied the log, a check of the file found damage, as A damaged log before the upgrade says. damage says what the check found, kept names the kept file, and recover is the command that copies its rows into a new file. The new log takes the rows of each new query. DNS was never affected.

To get the old rows back:

  1. Install the command line of SQLite. On Raspberry Pi OS Lite, run sudo apt install sqlite3.

  2. Run the command of recover as the account of the server, with umask 077, so the new file has the owner and the mode of the store:

    Terminal window
    sudo -u tadoru sh -c 'umask 077; sqlite3 /var/lib/tadoru/telemetry.sqlite.damaged-20261124T101530Z .recover | sqlite3 /var/lib/tadoru/telemetry.sqlite.damaged-20261124T101530Z.recovered'
  3. To use the recovered rows in place of the new log, stop the server. Move telemetry.sqlite out of the state root, with telemetry.sqlite-wal and telemetry.sqlite-shm beside it where they are there. Rename the recovered file to telemetry.sqlite, and start the server. The start upgrades it, and the rows of the new log are gone.

  4. When you are done, delete the kept file. It takes its full size on the disk until then.

The kept file can also hold rows that you do not need. Then delete it, with the server running or not.

These refusals keep the file where it is, and the log is off for this start:

The error says What it means and what to do
... another process holds it open now, so it was not moved aside. Restart the server once that process is gone A program, such as sqlite3, has the file open. Close it, and restart the server: the next start moves the file aside
... a backup holds the state root now, so it was not moved aside. Restart the server once that process is gone A tadoru backup ran for more than 5 seconds of the start. Let it end, and restart the server
... the lock that keeps a backup out was not taken: ... The server could not try prune.lock of the state root, for the error that it names. A missing prune.lock says is missing: the server makes it at its start, so restart the server. Otherwise fix the owner or the mode of the file, and restart the server
... a telemetry.sqlite-journal stands beside it, so it was not moved aside ... A -journal of the store stands, which no connection of the server makes and the open left. Stop the server, delete telemetry.sqlite-journal, and start the server: the next start moves the file aside
... its write-ahead log did not fold in: ... The server could not fold the -wal into the file before the move, for the error that it names, such as a full disk. Fix that, and restart the server
... the move aside failed: ... The rename failed, for the error that it names. Stop the server, and move telemetry.sqlite out of the state root by hand, with its -wal and its -shm. Run no program on those files while the server runs. The next start makes a new log

A query log in memory is not checked. A file whose first page or schema is damaged does not open at all, and the line the query log could not be opened, so nothing is recorded says file is not a database or database disk image is malformed. In both cases, stop the server, move the file out by hand as in step 3, and start the server: it makes a new log. You can still run .recover on the file that you moved.

The server also moves aside a -wal, a -shm or a -journal of the query log that stands with no telemetry.sqlite beside it, under a name of its own, and warns side files of the query log stood with no store beside them. A crash, or a hand move of the main file alone, leaves them. A new log never opens beside them. Delete them once you do not need them.

The server records where the query log is in telemetry.place, in the state root, owner-only. It writes the file at the first start of this build, and again only where the place, or the identity of its directory, changes. The lines below can come from it, or from a command that reads it. The server answers DNS with each of them but the last, which stops the start.

The line What it means What to do
telemetry.place does not read, so where an older copy of the query log is cannot be known, and nothing is deleted. The directories are those of this user in the runtime root The file is damaged, of a later version, or cannot be read, and reason says which. The server never writes over it, and the line comes at each start while it stays. directories names each directory telemetry-<id> of the runtime root that the user of the server owns, or says none Stop the server, delete telemetry.place, and start the server. The start writes it again with a new id. A directory that directories names holds a copy of the query log that a server kept in memory. Delete it too, with the server stopped: read its id in the damaged file where the file still shows one, and where two servers share the runtime root, delete only the directory of this one
telemetry.place was written for another state root, or by a development build, so this start leaves the query log in memory that it names as it is, and gives this state root its own with a new id. The directory can be the store of another server, such as the one whose state root this one was copied from: check that no server uses it before you delete it telemetry.place names a query log in memory, or the old copy of one, and the device and inode of the state root that it records are not those of this state root. That comes from a copy of a state root, from a state root moved to another file system or mounted again in this boot, from a state root on OverlayFS, such as the layer of a container, whose directory can take a new inode at a mount, or from a file of a store in memory that a development build wrote before this check. No release kept the query log in memory before it. directory is the store of that record in the runtime root. The server never takes, reports or touches it. It keeps its own query log at a new id: in memory that log starts empty. Where telemetry.place could not be written comes too, the log is off at this start, also on the disk: the file on the disk still names that store, or does until the sync that failed is done, and the next start tries again Where this state root is a copy, directory is the store of its original: leave it. Otherwise it holds rows of this server from before, which no server takes again. Before you delete it, check that no process holds its files, for example with fuser -v on each file in it, and delete it only then. A reboot empties it too. Until it goes, it keeps its room on the mount, so on a mount sized for one store the new store finds too little room, and telemetry stays off
this start cannot tell whether telemetry.place is the record of this state root, so it writes nothing. The query log on the disk runs in the state root, and one in memory is off The server could not read the device and the inode of its state root, which tie telemetry.place to it, and reason says why, such as a refusal of the system. The file is not damaged. On the disk the health gives old_copy as not known, and in memory telemetry.off.reason is place_unrecorded Fix what reason names, such as the mode or the owner of the state root or of a directory above it, and start the server again. Do not delete telemetry.place: the next start that reads the state root takes it as before
telemetry.place was written for another state root, so this state root takes a new id. Nothing is deleted As the line above, where no store of that record is in the runtime root of this start, or where it went with a reboot. It also comes after a reboot that gave the disk of the state root another device number. The query log on the disk keeps its rows: only its id changes Nothing
telemetry.place could not be written, so the next start writes or syncs it again A write of the file failed, and error says why, such as a full disk or a state root that the server cannot write. renamed=true says that the file holds the new place, and only the sync of the state root failed Free space on the disk of the state root, or fix its owner. The next start writes the file again, or, where it holds the new place already, syncs the state root
the old copy of the query log is still at its old place. The server does not use it and never deletes it. Check the directory, and delete the files named by hand A change of telemetry_storage left the query log and the statistics of before at the old place. directory is its absolute path, files names each file with its octets, and bytes is the room in all. boot_unknown=true says that the boot of the machine is not known, so the server cannot show that this is the copy that it left Check that directory is the one that this server left. Do not run a tadoru backup meanwhile: a backup reads the store of the state root. Then delete each file that files names, in directory, and nothing else. In the state root, never delete the directory itself. In the runtime root, the directory telemetry-<id> holds the old copy alone, so it can go as a whole. The server does not use the copy, so it can run meanwhile. Within about a minute it sees that the copy is gone, says the old copy of the query log is gone, and ends its record. A copy in memory also goes with a reboot
the old place of the query log does not read, so the server cannot tell whether its old copy is there, and keeps the record of it The server could not read the old place, and reason says why: a refusal of the system, or a runtime root that is missing, that is another mount than the one that held the copy, or that is another directory than the one that held the copy. The last comes where the runtime root was renamed aside, swapped for a new directory on the same mount, or deleted and made again, or where --runtime-dir names another directory, in one boot: after a change of place, or after a start in memory under the new root, which keeps the store under the old one as its old copy. The server knows the runtime root by its device and inode, so a link or a bind mount of the same directory is the same root. These three reasons say that the copy can still be at its old path, not that it is there: a runtime root deleted with its store, as a unit without RuntimeDirectoryPreserve=yes does at a stop, or a new tmpfs that a container mounts at each start, leaves nothing, and the server cannot tell that from a root renamed aside. For a copy in memory, the line and the health name a directory only where the server read the directory of the copy, by its device and inode, and found it apart from the store that runs and from the state root. So they name none for these three reasons, nor for a refusal before that read: the path under the runtime root of now is not where the copy was, it can be the store that runs, and it can even sit inside the state root. A runtime root moved with the server stopped is not followed. Three limits stay. Where the boot of the machine is not known, no runtime root is compared. Where an older build moved a store from memory to the disk, its record holds no runtime root, so that old copy is judged by the device alone: a swap of its runtime root then ends the record, and the old copy stays, unreported, until a reboot. And while the server runs, a runtime root of the copy brought back at its path ends the record, since the path of the store that runs then leads to the copy: the next start records the store that ran as the old copy again Fix what reason names, such as the owner of the directory, or bring back the runtime root of the copy at its path: the next look then reports the copy. Where you moved the runtime root on purpose, delete the old copy at its old path by hand: the record of it ends at the next reboot, or once that root is back at its path and the copy is gone, or at once where you stop the server and delete telemetry.place while the query log is on the disk. Where the runtime root went with its store, nothing is left to delete, and the record ends at the next reboot: keep the runtime root from a stop to the next start, as the unit does. The server looks again once a minute
the runtime root is another directory than the one that held the query log in memory in this boot, so the store that it held can still be under the old runtime root, or went with it. The server reports it as an old copy that it cannot read until a reboot, and never deletes it A start in memory found that the runtime root is not the directory that held its store in this boot, by its device and inode: it was renamed aside, swapped for another directory or mount, or deleted and made again, or --runtime-dir names another directory. The store runs in the directory directory_name under the runtime root of now, and starts empty where starts_empty=true. telemetry.place keeps the store under the old root as its old copy, and the health gives it as an old_copy that does not read, with no directory. The server cannot tell whether the old root still stands Where the old runtime root still stands, such as one renamed aside or the directory that --runtime-dir named before, find directory_name in it, check that no process holds its files, for example with fuser -v on each file, and delete it by hand. The record ends at the next reboot, or once that root is back at its path and the copy is gone. Where the root went with its store, nothing is left to delete: keep the runtime root from a stop to the next start, as the unit does with RuntimeDirectoryPreserve=yes
the record of the query log keeps one old copy only, so the server no longer reports this other copy of the query log, which can still be at its old place, such as an old runtime root. Check for its directory there by hand telemetry.place holds one old copy, and a start found a second one. Either a start in memory under a runtime root that replaced the old one in this boot found an old copy in the record already, and keeps that one, or a change of place records the store that ran last, and drops an older copy in memory beside it. Where the runtime root goes with its store at each stop, as in a unit without RuntimeDirectoryPreserve=yes or a container with a new tmpfs at each start, the line comes at each start from the second one on, since the record keeps the first store. directory_name names the copy that the server no longer reports, and root says where it was: runtime for the runtime root Look for directory_name under the old runtime root, check that no process holds its files, and delete it by hand. The server never reports it again, and a reboot empties it. Delete the copy that the server still reports too, as its own line says
the old place of the query log is, holds or sits inside the state root or the directory of the store that runs, so the server reports nothing there, and the record of an old copy ends The runtime root and the state root lead to one directory, or one is inside the other, so the old place of a change takes in the store that runs or the state root Nothing: the server keeps the store that runs and ends the record. Give the state root and the runtime root two directories of their own, neither inside the other
telemetry.place could not record where the query log runs (...), so the log is off at this start. The next start tries again The start changes the place of the query log, or its directory after a reboot, and the write or the sync of telemetry.place failed, or the sync of the state root after its read failed. The log takes no row at this start, so the file always names the place of the rows that the backup, the restore and the rewrite read Free space on the disk of the state root, or fix its owner, and start the server again
the query log is in memory, and a backup carries only a query log in the state root. The archive carries no query log tadoru backup --include-telemetry found that telemetry.place names the runtime root. The files of the query log in the state root are an old copy, which no archive carries Nothing. Where you need the log in an archive, keep it on the disk
the query log is in memory, and tadoru rewrite takes only a query log in the state root tadoru rewrite chose the query log, and telemetry.place names the runtime root. Nothing was rewritten Run it with --only for the other stores
telemetry.place is damaged: ..., so where the query log is cannot be known tadoru backup or tadoru restore left the query log out, or tadoru rewrite refused it, because the file does not read. On the disk the log still runs in the state root Stop the server, delete telemetry.place, and start the server once, as the first row says
the state root ... holds telemetry.sqlite.rewrite-aside-..., which a rewrite of the query log left while the store ran there, and this start takes that store again The start takes the query log in the state root again, where telemetry.place names the runtime root or does not read, and a rewrite that stopped left a file aside there that no sweep sorted out. The server does not start Keep the file with the rows that you need under the name telemetry.sqlite, delete the other, and start the server again
the restored configuration keeps the query log in memory, so the restore leaves the query log here as it is, and the query log of the archive is left out tadoru restore found a node.toml in the archive that keeps the query log in memory. A restore puts a query log only in the state root Nothing. The query log here keeps its rows
the query log in memory, telemetry-<id>, can stay as an old copy at its old path, which the server reports and never deletes, but the server cannot read it: ... tadoru restore puts the query log of the archive in the state root, and the store in memory that ran here stays as an old copy. Its runtime root is missing, or is another mount or another directory than the one that held the store, in this boot, so the copy can still be at its old path, or went with that root. Or the system refused a read before the server could tell that the directory at its name is the store. The reason is the one that the next start gives with the old place of the query log does not read Fix what the reason names, or do as for that line. The restore goes on
the query log in memory at ... can stay as an old copy, which the server reports and never deletes, but its place does not read: ... As the line above, where the server read the directory of the store, by its device and inode, apart from the store that runs and from the state root, and a read in it then failed. The reason names the refusal Fix what the reason names. The restore goes on
the record of the query log keeps one old copy only, so this restore ends the record of telemetry-<id>, an older copy of the query log, which can still be at its old place, such as an old runtime root, and the server no longer reports it. Check for that directory by hand telemetry.place held an older copy in memory beside the store that ran here, after a runtime root that a new one replaced in this boot. The restore records the store that ran as the old copy, and the record of the older one ends. The preview says it too Look for that directory under the old runtime root, check that no process holds its files, and delete it by hand. The restore goes on
planning the query log of the restore: the state root ... holds an old copy of the query log: ... The query log runs in memory here, the archive keeps it on the disk, and the state root holds files of the query log from an earlier change. The restore changed nothing Check the files that it names, delete them by hand, and run the restore again
planning the query log of the restore: the query log in memory at ... is, holds or sits inside the state root The runtime root is inside the state root, so the store in memory would become an old copy that the server cannot report. The restore changed nothing Move the runtime root out of the state root, or delete that store by hand, and run the restore again
planning the query log of the restore: the state root holds telemetry.sqlite.rewrite-aside-... A rewrite of the query log stopped and left a file aside in the state root. The restore changed nothing Start the server once, which sorts it out or names the file to keep, or run tadoru rewrite --only telemetry, then run the restore again. Where the query log runs in memory, those files belong to an old copy: remove them by hand, and run the restore again
planning the query log of the restore: .../telemetry.place.new is no file Something that is no file, such as a directory, stands at the name of the new copy of telemetry.place, so the restore could not write the place of the query log after its mark. The restore changed nothing Remove it by hand, and run the restore again
the files are not restored yet, and writing telemetry.place for the restored query log: ... Run the same archive again The restore wrote its mark, and the write of telemetry.place for the state root failed, before any file was put in place. The server does not start under the mark Free space on the disk of the state root, or fix its owner, and run the same archive again

A query log in memory keeps its room, telemetry_memory_mib, from its start to the next one. Its data takes three quarters of the room, and the hourly counts of stats_retention_days must fit a quarter of that. An upgrade of the store that does not fit the room drops the store at a start, which then starts empty. DNS answers with each line below.

The line What it means What to do
telemetry is off at this start, so no query and no statistic is recorded. DNS answers A start in memory could not run the store, and reason says why. The telemetry.off.reason of the health names it in one word, among those that the schema lists, such as not_memory, the runtime root is not on a tmpfs; ramfs, it is on ramfs, which has no size; unbounded, its tmpfs has no size; no_room, the tmpfs has less free room, with the store that it holds, than telemetry_memory_mib; unfit, the days of counts of stats_retention_days do not fit the room; one_directory, the runtime root is the state root; open_path, another user can change a directory on the way to the runtime root; place_unread, telemetry.place does not read; not_linux, memory needs Linux. Nothing is written to the disk in its place Give the runtime root a tmpfs of its own with a size past telemetry_memory_mib (Install), raise the room or lower stats_retention_days as the reason says, or set telemetry_storage = "disk". Then restart the server
the query log in memory writes no row now, and counts each row that it drops. DNS answers The store in memory has no room for the next write, and reason says why: the store with what a checkpoint owes would pass telemetry_memory_mib, the tmpfs has less free room than the write needs, SQLite found the tmpfs full, or a checkpoint failed while a reader held the log. The health gives telemetry.full, or telemetry.unmeasured where the room could not be measured. Each row dropped counts under store_full or store_unmeasured Nothing where it ends on its own: the line the query log in memory writes rows again comes once a checkpoint gives the room back. Where it stays, give the tmpfs more room than telemetry_memory_mib, or lower retention_mib
telemetry is off from this pass until a restart, so no query and no statistic is recorded. The rows of the store stay. DNS answers A change of stats_retention_days asks for more days of counts than the room of the query log in memory holds. reason names the days, the days that fit and the room that the days need. The store takes no row from then on, and the query log and the statistics answer that they are off. A later change that fits does not turn it on again Lower stats_retention_days to the days that fit, or raise telemetry_memory_mib to the room that the line names, then restart the server. The rows of before stay where the runtime root stays: a start after it opens them again, and a reboot, or a container that drops its tmpfs at a stop, empties them
telemetry is off from this pass until a restart, so no query and no statistic is recorded. The rows of the store stay. DNS answers, with a reason that names the guard of memory After the measure of a redaction, the writer of the query log in memory could not put back the guard that bounds the memory of its statements, because SQLite had no memory for it. The writer stops there, so no statement that the guard bounds runs without it. The redaction answers its error and clears nothing. The telemetry.off.reason of the health is store_file. The rows of the store stay The process ran short of memory. Find what takes the memory of the machine, then restart the server
the query log in memory starts empty at the new version, and its rows and statistics are gone The upgrade of the store to a new version of this build needs more room than the room has, with the store that it holds, and reason names the version, the octets that it needs and those that the room has. The rows of before are gone. A copy at an upgrade needs about twice the table Nothing for the rows. To keep the rows at the next upgrade, raise telemetry_memory_mib, or lower retention_days or retention_mib, before you upgrade
a reset of the query log in memory that a stop left had removed nothing, so the start measures the upgrade again A stop came while a start dropped the store, before it removed a file. The store was whole, so this start measured its upgrade again. Where it fits now, the rows stay. Where it does not, the line above follows Nothing
the marker of a reset of the query log in memory cannot tell whether its removal began, so the start finishes the reset A stop or a crash came while a start dropped the store, and the marker that it left is of an older build, or does not read. The start cannot tell the store of before from an empty one that the reset made, so it drops it Nothing. The query log starts empty

After a redaction, and at each start, the server scrubs the files of the query log, as The query log says. While it runs, dns_querylog_scrub_pending reads 1. These lines say why it has not ended:

The server log says What it means and what to do
a reader holds the query log's write-ahead log, so the bytes that a redaction cleared can stay in its files until that reader ends A read holds the write-ahead log. The scrub goes on when it ends. A backup and the measure of the lists end on their own. Close a sqlite3 shell that you left open on telemetry.sqlite
could not scrub the query log, so the bytes that its deletions left stay in its files until the next try A step failed, often on a full disk. Its error says why, and free_bytes says how much free space of the file is left to give back. The server tries again a minute later. Free space on the disk of the state root
the query log was made without auto-vacuum, so its free pages keep what earlier deletions left A warning, and the scrub has ended: dns_querylog_scrubs_total counts it with outcome="limited". The file was made by hand or by another program, so its free pages cannot be given back. To clear them, stop the server and move telemetry.sqlite out of the state root, with the -wal and -shm beside it: the server starts an empty log

A redaction that fails changes no row, and says could not clear a column with its error. Its scrub still runs, and cuts the write-ahead log that it grew.

A query log in memory that turns off at a pass, with the line telemetry is off from this pass until a restart, stops its scrub there: dns_querylog_scrub_pending reads 0, and the bytes that a redaction cleared can stay in the files of the store until the next start scrubs them.

POST /api/queries/redact of client answers 503 with the type /problems/privacy-not-read where the query log has not read the privacy settings yet. Nothing was cleared, and nothing was written down. The server log says refused to clear a column before the privacy settings are read.

The detail says What it means and what to do
the query log has not read the privacy settings yet A redaction of client first keeps the counts of each hour from the rows that wait. Those counts follow store_clients, and the lists of the same fold follow store_names. A running server reads the settings before it serves the API, so it does not send this answer: it is a guard. Where it comes, the configuration was not loaded. Report it with that log line. A redaction of name does not wait for the settings

POST /api/queries/redact answers 507 with the type /problems/no-room where the disk does not hold what the redaction can write. Nothing was cleared, and nothing was written down. The server log says could not clear a column, with the same figures.

The detail says What it means and what to do
a redaction of ... can write up to N bytes on the disk of the query log, where M are free The disk of the state root is short. Free some space there and ask again. A smaller retention_mib lets the prune remove old rows and give their space back first, which also makes the redaction smaller
... bytes of temporary files in the temporary directory of the query log, where M are free SQLite’s temporary directory is on another disk, and that disk is short. Free space there, or start the server with SQLITE_TMPDIR set to a directory with room

The figure is an upper bound. Where the disk is nearly full, the server measures the rows and the index of the column for at most 5 seconds; on a very large log that measure can run out of time, and the server then refuses with the larger first figure. A first figure far past the size of the log can mean that many rows, or rows in many hours, wait for the fold of the hours. Where the server log says that more rows wait for the fold of the hours than the first figure of a redaction reads, wait a few minutes for the fold to catch up, and ask again. The query log says how the figure is made.

The write-ahead log of the accounts is not cut

Section titled “The write-ahead log of the accounts is not cut”

After a change that removes a verifier or a session, the server folds the change into auth.sqlite and empties auth.sqlite-wal, as Accounts says. It retries at its start and every minute, wherever the log holds anything, a login too. While that step waits, dns_auth_log_cut_pending reads 1, and older copies of the rows that changed can stay in the two files. The change itself took.

The server log says What it means and what to do
the write-ahead log of auth.sqlite could not be cut, so it can keep older copies of the rows that changed Its problem says why. another connection reads or writes the file is a tadoru accounts command, a backup in its copy, or a sqlite3 shell left open on auth.sqlite. Close a shell that you left open. N bytes stay in the log and any other problem is a failure, such as a full disk or a file that does not read: free space on the disk of the state root, or fix the permissions of the file. The server retries every minute, and the line the write-ahead log of auth.sqlite is cut follows a retry that ended

When its own step waits, tadoru accounts says so on standard error, and tadoru restore in its report. The line is the write-ahead log of ... was not cut after this change (problem), with a problem from the table above. A running server retries every minute, and its next start retries too.

tadoru rewrite needs the server stopped, as The command line says. While the server or another command holds the state root, it says what restore says in The command line refuses, and rewrites nothing. A refusal of a store names the file, says why, and ends with one of these:

The refusal ends with What it means
It is not replaced, and it is unchanged It refused before it held the file. No byte of the file changed
It is not replaced, and it holds the same rows It refused while it held the file. The file is the old one, with every row. It folded the write-ahead log into the file and put the file in rollback-journal mode, and the next open of the server sets write-ahead logging again
It was replaced, and a power cut can still bring back the old file The new file is in place, and the flush of the directory failed. The old file holds the same rows. Run the rewrite again
The rename ran, and its name could not be read after it The copy was renamed over the file, and the read of the name after it failed, so the rewrite does not know which file the name points at. Run the rewrite again: it reads the file again, and a store that it rewrote is rewritten once more
Its name now points at a file that this rewrite did not check Something renamed a file into the state root between the check of the copy and its rename. Only the user of the server, or root, can do that. Stop, find what wrote the state root, and restore the store from an archive

After the refusal, three lines list the stores that it rewrote, the one that refused, and the stores that it did not reach. Run it again once the cause is gone. A second run rewrites every store again, which costs only time.

The refusal says What to do
a restore of this state root started and did not finish Finish the restore first, as A restore that did not finish says
an account command is using ... The rewrite waits for it to finish Not a refusal. The rewrite of auth.sqlite waits for a tadoru accounts command that runs, then goes on
something else has it open, such as the sqlite3 shell or another program A program that is not the server holds the file, such as a sqlite3 shell. Close it, and run the rewrite again
it would not leave write-ahead logging The same: something else holds the file. Close it
it is a link, and the rewrite follows none, is not a regular file, is a link or no directory Put the file, or the state root, back as a plain file or a plain directory. The rewrite follows no link
it belongs to user N, and this runs as user M Run it as the user of the server, as in sudo -u tadoru tadoru rewrite
a start of the server did not finish with it, and left serials.sqlite.new (or serials.sqlite.aside, or record_times.sqlite.new) Start the server once, so it finishes, stop it, and run the rewrite again
it is at schema version N, and this build writes M Start the server once, so it brings the store up, stop it, and run the rewrite again. The start serves, so the query log can take new rows meanwhile
it is at schema version N, which a later build wrote A later build wrote the file. Run the rewrite of that build, or restore an archive of this one
it is not a database of this server The file under the name of the store is another database, or one that a prerelease build wrote. Move it away; the server makes the store again where it can
needs about N free in ... to be rewritten, and M is free. Nothing was rewritten, or the rewrite needs about N free in ... The figures are estimates. Free space on the file system of the state root, or leave that store out with --only and rewrite the others
the copy did not pass its check (...), so it is deleted The copy differs from the store, or does not read whole. The store is the old one, with every row. Run the rewrite again. If it refuses again, run sqlite3 FILE "PRAGMA integrity_check" on the store, and keep the output for a report
... was replaced while the rewrite ran, ... came while the rewrite ran, is no longer the directory that the rewrite opened Something wrote the state root while the rewrite ran. Find what it was, stop it, and run the rewrite again
flushing the copy, renaming the copy, copying it, with an error of the system The disk refused a write. The store is the old one. Fix the disk or its room, and run the rewrite again
flushing the state root after the rename The new file is in place, and the flush of the directory failed. Run the rewrite again
flushing the state root after the fold of the store The store is the old one, with every row, and nothing was renamed. Fix the disk, and run the rewrite again
flushing the state root after deleting the copies The copies that a rewrite left are deleted, and the delete may not outlive a power cut. No store was touched. Fix the disk, and run the rewrite again
... belongs to user N, and a rewrite that runs as root makes files that user cannot open The rewrite ran as root over a state root of another user, and made and deleted nothing. Run it as that user, as in sudo -u tadoru tadoru rewrite
it was replaced since the rewrite looked at it, it was replaced while the rewrite took it, it was replaced while the rewrite ran, so the copy does not take its name Something put another file at the name of the store while the rewrite ran, and the rewrite left that file where it is. Find what wrote the state root, stop it, and run the rewrite again
its write-ahead log is still there after the fold, the journal of the copy is still there, the copy holds no count of the pages of the lists SQLite did not do what the rewrite asked of it. The store is the old one. Run the rewrite again, and keep the output for a report if it refuses again
opening it, setting up the connection, taking the file, asking for auto-vacuum, opening the copy, preparing the copy, closing the copy, making, narrowing or reading a copy, deleting a file, reading the free space of the state root, with an error of SQLite or of the system The disk or the file refused. Where it ends with it is unchanged, nothing was written; otherwise the store is the old one, with every row. Fix the cause the error names, and run the rewrite again
it was replaced while the rewrite ran, and the file that replaced it is back at its name Another program put a file at the name of the store while the rewrite put its copy in place. That file is back, with its rows, and the copy is deleted. Find what wrote the state root, stop it, and run the rewrite again
putting that file back failed The same, and the file of the other program is still aside, under the name that the refusal gives. Run the rewrite again, which puts it back first
... is there, which an earlier rewrite moved aside and which is neither its old file nor a copy that nobody wrote since A file under an aside name that the rewrite cannot place, or a copy that may hold changes beside the file that it replaced. Look at both with sqlite3: keep the one with the rows that you need under the name of the store, delete the other, and run the rewrite again
... is there already, which this rewrite did not make, so the copy does not take that name Another program made a file under the aside name while the rewrite ran. The store is the old one, and that file stays. Find the program, stop it, look at the file, and run the rewrite again
the copy that took its name since may hold changes, so both are kept Another program put a file at the name of the store, and the copy, which took the name, was written since. Both files stay: the copy under the name of the store, and the other under the aside name that the refusal gives. Keep the one with the rows that you need, delete the other
exchanging the copy with the store, with Invalid argument The file system of the state root cannot exchange two names, which the rewrite needs. The store is the old one. Put the state root on a local file system such as ext4, xfs or btrfs
the lock that this took is not the one in the state root that the rewrite opened A directory above the state root moved while the rewrite took its lock. Put it back, and run the rewrite again
is no UTF-8 path, which SQLite takes The path of the state root holds bytes that are not UTF-8. Move the state root to a path that is

A start that stops with a rewrite that stopped left a store unresolved, so the server opens no store names the files: a rewrite stopped while it put its copy in place, and the start cannot prove which file holds the rows. Look at both with sqlite3, keep the one with the rows that you need under the name of the store, delete the other, and start the server again. The command trusts its own process and the folders of the state root: keep other programs out of them while it runs.

A line deleted a copy that an earlier rewrite left, auth.sqlite.rewrite, or the line deleted a copy that a rewrite left when it stopped in the log of a start, is not an error. Neither is put back the file that another process wrote while an earlier rewrite published its copy: the file of that program is back at its name. A rewrite that stopped left that copy, and nothing reads it. A copy of auth.sqlite holds the verifiers of the accounts, so it goes as soon as it is found.

GET /api/queries answers 400 with the type /problems/bad-cursor where before or after is not a cursor of this server. The detail names the parameter. A cursor is text that the server writes, such as v1.1789137428125.99.130. A changed or cut cursor does not read, and neither does a cursor of another kind: the after text in before, or the other way round. Send back the before or the after of an answer as it came. Where the text is lost, read again with no cursor, which gives the newest rows.

A before of another sort answers the same 400, and its detail says of another sort. A before walks on in the sort and order that it came with. When you change the sort, read again with no cursor.

A request with both before and after answers 400 with the type /problems/bad-request. Send before to walk to older rows, or after to poll for the rows written since, not both.

After a restore of the query log, a held cursor can read as from another log. The server then starts again from the newest rows, and some rows that the console showed come again. Start again without a cursor after a restore.

GET /api/queries answers 400 with the type /problems/bad-request where a filter does not read. The detail names the filter and what it takes. For example, source=cached is refused, and the detail lists cache, stale, synthesized, forwarded, recursed, local, blocked. These are refused:

  • A value that the filter does not take, such as rcode=SERVFAILED, qtype=AAAAA, a code above 4095 or failure=yes. failure and subtree take true or false alone.
  • An empty value, such as rcode=, group= or rcode=SERVFAIL,, which ends in an empty one.
  • More than 16 values in one filter.
  • A name with letters outside ASCII, such as name=münchen.de. Send the xn-- form of the name, such as xn--mnchen-3ya.de, which is how the log holds it.
  • subtree without name. subtree says whether the names under name match too.
  • name=. with subtree=true. The root covers every name, so leave both out to read every row.
  • An empty name_contains, or one longer than 255 characters. Send a shorter part of the name.
  • A name_contains with letters outside ASCII, such as name_contains=münchen. Search the ASCII text that the log shows: the xn-- form, such as xn--mnchen, or the escapes of the bytes, such as \195\188nchen.
  • A name_contains with a space or a control character. + in a URL is a space too. The log writes such a byte as its escape, such as \032 for a space, so send the escape.

Some reads of the query log can answer 429 with the type /problems/busy and Retry-After: 1. One page of such a read can count up to 65 536 rows. So the server runs two of them at once, and the others wait in turn for up to a second. These are the reads:

  • A read with any filter, such as name, client, qtype, failure, subtree or name_contains.
  • A page sorted by duration, with no after.
  • A read with before: an older page.
  • A read with after that sends a filter, a from above 0, or a to below 9223372036854775807, the largest that it takes.

The 429 says that this read got no place within the second. Two such reads ran, perhaps from other tabs of the console, and others can have waited before it. Ask again a second later. The next try can wait again. A first page with no filter, sorted by time, never waits. A console of an earlier version says for each of these 429s that two searches by part of a name run.

The server checks a read of the query log in this order, and answers with the first that fails:

  1. Each parameter comes once, and from, to and limit are numbers: 400.
  2. The query log runs: 503 with the type /problems/unavailable.
  3. The range holds something, so from is not after to: 400.
  4. Each filter reads, in the order subtree, name, name_contains, client, qtype, rcode, failure, source, policy, group and client_name: 400.
  5. sort and order read: 400.
  6. The cursor reads, is of this sort and order, and before and after are not both sent: 400, or 400 with the type /problems/bad-cursor.
  7. A read of the list above gets one of the two places within a second: 429 with the type /problems/busy.
  8. The log has opened its database: 503 with the type /problems/query-log-starting.

A filter that reads but finds no row is not refused. A row written with a privacy setting off holds no value for that filter: with store_names off, name finds no new row. Older rows keep their values until a redaction clears them.

Two commands are refused while the server runs: restore and acme rotate-account-key. Each takes the state root’s own lock. The message is two lines, and the second one is the way out. Here it is for restore, quoted as the binary prints it, one line each:

tadoru: ./data/state/owner.sqlite: is locked by another process. One Tadoru process at a time holds this lock, and it holds it while it writes configuration generations, backs up or restores. Stop the one that is running, or use another --data-dir
this needs the state root to itself. Stop the process that holds it, which is usually the server. Run this again, and start the server afterwards

Usually the server holds it. Another command line under the lock holds it the same way, such as an offline config apply in a script that is still running. A tadoru zone export with the server stopped holds it too, while it reads, so a start in that moment fails with this refusal. Start the server again once the export ends. zone import goes to a server that answers on the socket, and takes the lock only where nothing answers. Its second line then says that another command holds the lock: wait for that command to finish, and run the import again. blocklist import does the same. Its second line names the socket that it asked, and says that a server that is starting, or another command, holds the lock. Where a server runs over these roots with its socket in another runtime directory, give that directory as --runtime-dir.

The command line has the table of which command needs what.

Nothing else is refused while the server runs. A config command that changes something asks the socket first, and sends the change to the server that answers. With no server there, it makes the change itself under the lock.

Two commands under that lock refuse each other. A backup with no server running holds the lock while it copies, and a change or a restore in that window gets the message above. Run it again when the backup ends. An accounts command writes the database directly, and the database orders it against the server’s own writes. A backup copies a state root that is being written. Two answers from a config command are worth knowing.

“This change was written against revision 4, and revision 5 is running” means somebody else changed the configuration while you were typing. Your work is kept, at the path the message names.

“Cannot tell whether a server is answering here” means the socket is there and this command cannot reach it. That is usually a group you are not in. The socket is mode 0660, owned by the user and the group the server runs as.

A runtime root nobody but the server can enter does the same. The server narrows that directory to 0750 and never widens it, so a directory somebody made 0700 keeps the group out of the socket inside it.

A command that runs as the server’s own user and still asks for a token can come from this line at the start:

the management API is listening, and the owner of the socket could not be read, so only root uses it without a token

The server learns its own uid from the owner of the socket that it creates. Where it cannot read that owner, it accepts no uid but root without a token. Run the command as root, or log in with a token as any other client does.

A refusal about a file names the file, and the setting and the line where it knows them. That holds with a server answering and with none. A command can add a sentence of its own: edit says where your typing was kept.

A running file that does not match what was recorded

Section titled “A running file that does not match what was recorded”

Some readers take one file of the running revision:

Reader File
GET /api/server and GET /api/node with Accept: text/plain that file
tadoru config edit and tadoru config apply, with no server the file named
tadoru blocklist status, refresh and accept, with no server blocking.toml
tadoru blocklist import, with no server blocking.toml
tadoru acme rotate-account-key node.toml

Each reads the file from the generation, under generations/ in the state root, and compares it with the digest that was recorded for it when the revision was made. It refuses the file in five cases:

  • The file differs from its digest.
  • The file is in the generation and was not recorded at all.
  • The file cannot be read, such as a link or a directory in its place.
  • The revision has no record to compare with.
  • The revision holds no node.toml, which every revision holds.

The API answers 500, and a command stops before it changes or opens anything. The detail of the 500 names the file and the revision, and not the path:

server.toml of revision 4: does not match what was recorded for it. Roll back to a revision that verifies, or restore from a backup

The log of the server holds the whole error, with the path. Something changed the generation on the disk after the revision was made. Roll back to a revision that verifies, such as tadoru config rollback 3, or restore from a backup. Until then, the next change of the configuration is refused for the same reason. The other files of the revision still read.

tadoru zone export asks a running server for the zone over its socket. With the server stopped, it reads as the start reads, and writes no file of the state root. It takes the lock of the state root and reads the record of the revisions in control.sqlite. It holds every file of the running revision to its record, and replays the journal of every zone, then checks the whole set. So a damaged file or journal of another zone can refuse the export of this one, as it stops that zone at a start. Each refusal names the file or the answer:

The refusal says What it means, and what to do
cannot be read by this user. It is the server's alone Run the command as the user of the server or as root: sudo -u tadoru tadoru zone export <zone>. A member of the group of the server gets this
runs as the user of the server or as root The lock of the state root cannot be taken by this user. Run the command as that user or root
no server took this state root yet The state root has no owner.sqlite, the lock file, and the export makes none. Start the server once, then export
does not exist, so nothing records the revisions The state root has no control.sqlite. Restore it from a backup
whose ledger this reads With the server stopped, the export reads the whole ledger, which needs the schema of this build. Restart the server with this build, which brings it forward
there is no record of revision The running revision has no record to hold its files to. Roll back to a revision that verifies, or restore from a backup
does not match what was recorded for it A file of the running revision differs from its record, as the start finds it. Roll back to a revision that verifies, or restore from a backup
this build knows A newer build wrote the database. Run the newer build’s tadoru
stops the zone, as the start would stop it The journal of the zone does not place against its files, or its replay breaks a check of the set. The reason follows. A start stops the zone for it too
which the next start decides The last run left a command unfinished, or a thaw that waits for its append. Start the server once, then export
did not fold into the database control.sqlite-wal holds a log that the last run left. Start the server once, which recovers it
the running server answers The server refused the export over its socket, and its answer follows: 404 for a zone it does not hold, 503 for a zone it stops
no server answers on the socket Another command line holds the state root, such as a restore. Run the export again once it ends
did not finish A restore of this state root did not finish. Finish the restore first

tadoru zone list, create, delete, enable or disable refuses

Section titled “tadoru zone list, create, delete, enable or disable refuses”

These five commands work on the zones of the running server, over its socket. Each change is one revision, and the server refuses what it refuses for the same edit of the files. Each refusal says what the server said, and the notes below follow it:

The refusal says What it means, and what to do
no server is answering on The commands need the server running. Start it, then run the command again. Run the command as the user of the server or as root
A create of zone ... sent before can have landed A zone of that id exists. Where a create sent before lost its answer, it landed: tadoru zone list shows the zone. The id can also name a stub zone, which these commands do not make
A delete of zone ... sent before can have landed The server holds no zone and no stub zone of that id. Where a delete sent before lost its answer, it landed. An older server answers a stub with a 404 that names it, and the refusal then says that the id names a stub zone
this stub holds the journal of a primary zone enable and disable of a stub zone that holds the journal of a primary of its id. Such a stub takes no change of its settings: A hand edit of a zone that takes updates says why and what is left
The configuration moved after this read zone Another change landed between the read of the zone and the change, such as the same command sent before. Run the command again, which reads the zone again
The change can have landed The server had not settled the change when it answered. tadoru zone list shows whether it landed. Where it did not, run the command again
Nothing was applied Other changes landed each time the server checked this one. Run the command again
did not say whether zone ... is on The answer of the server to the read of the zone holds no enabled, such as from a build that does not match this one. Run the tadoru of the running server
said nothing about a revision The answer to the change holds no revision, so the command cannot tell whether it landed. tadoru zone list shows the zones as they stand
the list of zones is not JSON this build reads The answer of the server to the list does not read. Run the tadoru of the running server
frozen The zone is frozen, and a delete or a change of it waits for its thaw: tadoru zone thaw <zone>

One name answers SERVFAIL and the rest work

Section titled “One name answers SERVFAIL and the rest work”

The server tests the alias chain of an answer, and three shapes of answer are refused rather than sent. A chain longer than the 16 hops the walk covers holds a name no rule was read against. An answer with two different aliases of one name has no single chain, because the client picks whichever record comes first. An answer that a DNAME record rewrites, with no alias beside it, leads a client to a name this server cannot read. The log says which one it was:

WARN an answer whose alias chain is longer than this server tests name=deep.example.com hops=16
WARN an answer with two aliases of one name, which has no one chain name=odd.example.com
WARN an answer that rewrites a name by a DNAME this server cannot follow name=moved.example.com

With store_names = false, the line arrives without the name. No ordinary site publishes any of the three shapes. Ask the publisher of the name what their answer is for. To send the answer anyway, put cname_blocking = false in blocking.toml, which turns the second test off for every name. One group in clients.toml can carry that setting on its own.

A zone with a notify list sends a NOTIFY to each of its secondaries at each change of its serial and at each start (Zones). A secondary that misses it learns of the change at the refresh time of the zone. The log names each secondary that did not take a NOTIFY. Each line comes once while the secondary stays in that state, and at the level debug after that:

The line says What it means, and what to check
a secondary did not answer a NOTIFY outcome="unanswered": 6 copies in 2 minutes, and no answer came back. Check that the secondary listens on that address and port, and that no firewall drops UDP. A reply with the RA bit set does not count as an answer, so a secondary that offers recursion in its reply looks the same
the same, with outcome="unreachable" The system said that the address or the port cannot be reached, so no more copies went out. Check the address, the port and the routes
the same, with outcome="failed" and error The error says why the round stopped. With sends=0 no datagram went out: no address of the family in outbound_addresses, an address that this machine no longer holds, or no socket free. With sends above 0, that many copies went out before a later send or read failed, so the secondary can have the NOTIFY all the same
a secondary refused a NOTIFY The secondary answered with the code in rcode, most often REFUSED. A secondary takes a NOTIFY only from an address that it knows as a primary of the zone. Add the source address of this server to its primaries, or name that address in outbound_addresses
a secondary does not take NOTIFY, at info The server answered NOTIMP: it has no use for NOTIFY. It polls at the refresh time instead. The line comes once for each address
the task of NOTIFY stopped, at error A fault of the program ended the sending of NOTIFY, and no NOTIFY goes out until a restart. Report it with the line

The warnings below come as a revision starts to run. Each names a zone whose NOTIFY cannot work as written, and none refuses the revision.

The warning says What it means, and what to check
its transfer rules or its query_from refuse The secondary gets the NOTIFY and cannot transfer the zone from that address. Add the address to a [[transfer.allow]] rule and to query_from, or check that the secondary transfers from an address that both allow
holds an ANAME, which no transfer carries The zone sends no NOTIFY, because no transfer of it can follow. Move the ANAME to a zone with no secondary, or delete the notify list of the zone
outbound_addresses names no IPv4 address, or IPv6 No NOTIFY goes to the targets of that family. Add an address of that family to outbound_addresses of node.toml, or empty the list to let the system pick the source address

A secondary checks the source address of a NOTIFY against its primaries. So on a machine with several addresses, outbound_addresses names the address that each secondary knows.

A source in proxy_protocol_from must send a PROXY header on every DNS listener. A query from it without one gets no answer: the connection closes, or the datagram is dropped. So dig @127.0.0.1 on a machine that lists 127.0.0.1 for a local load balancer gets nothing. Ask through the load balancer, or from another address. A query to a QUIC listener is the exception, because a QUIC listener never reads a header. doh.sock never reads one either.

The counter dns_proxy_header_failures_total says why, with its reason label:

reason What happened
missing A listed source sent something other than a header
malformed A listed source sent a header that breaks the format
unsupported A listed source sent a header form the server does not read
too_long A listed source sent a header past 512 octets, or a text line past 107
timeout A listed source sent no whole header in 10 seconds
untrusted A source outside the list sent a header to listen

missing from a load balancer means that its configuration sends no header. In HAProxy, add send-proxy-v2 to the server line. untrusted means that a load balancer sends a header and is not in the list. Add its address to proxy_protocol_from. Its clients get nothing until then, because the server reads no header from an address outside the list. The label counts on listen alone, over UDP and TCP. On tls_listen and https_listen, the header fails the TLS handshake, and dns_tls_handshake_failures_total counts it with the other failed handshakes. On http_listen, it fails the HTTP request. So behind such a load balancer, make sure that its address is in the list.

unsupported covers a header that names a protocol other than the one it arrived on, such as a UDP header on TCP, and a version 1 header in a datagram. The counter dns_proxy_headers_total counts the headers that were read, by version: 1, 2, or local for a header that named no client, such as the health check of a load balancer.

A packet whose source is an IPv4 address written as an IPv6 address, such as ::ffff:192.0.2.1, gets no answer on any listener. The datagram is dropped, and the connection is closed. A QUIC connection never moves to a new address, so a packet of it from such an address is dropped. The server opens every IPv6 listener as IPv6 only, so no real client reaches it in that form, and such a source was written by somebody who wants the rules of the IPv4 address. dns_forged_peers_total counts each on a DNS listener, by transport, and dns_api_forged_peers_total on a door of the API or the console, by door. The http-01 responder of ACME closes one without a count. A count that rises means such packets reach the server. Find where they come from in the firewall log. A NAT64 address such as 64:ff9b::c000:201 is an IPv6 address, and it is answered as one.

A client that stops getting answers, with no error

Section titled “A client that stops getting answers, with no error”

A client that sends too many queries in its window gets no answer over UDP until its window ends. Its lookups time out, and it sees no refusal to read. Over TCP it gets REFUSED, and the connection closes. The limit is rate_queries_per_minute in server.toml, 1000 queries a minute per address by default, times rate_window_minutes, which is one minute by default. The subnet of rate_prefix around the address, a /24 or a /56 by default, gets eight times that. Where rate_udp_queries_per_minute is set, a query over UDP is held to that bar instead, on the same count, so the client’s queries over TCP spend it too. The line and the counter then say queries as well.

The log names the client once a window for each limit, not once per query.

a client reached a rate limit, and this server drops what goes past it

A client can also reach a limit on the questions the cache cannot answer: rate_resolutions_per_minute, 100 a minute by default, and rate_resolutions_in_flight, 100 at once. Such a client still gets answers for the names in the cache, and silence for the rest. The limit on questions waiting ends as soon as one of them is answered, rather than at the end of the window.

A client that opens more than rate_connections TCP connections at once, 20 by default, has the next one closed before this server reads it. So has a client that opens 5 × rate_connections × rate_window_minutes in its window, 100 at the defaults.

The line carries the address or the subnet as key, and its prefix length as length, 32 or 128 for an address. scope says which of the two reached its limit. limit says which limit it was: queries, resolutions, in_flight or connections. The counter dns_rate_limited_total counts every dropped query, with the same two labels. It also counts, with limit="suppressed", a SERVFAIL for a name whose lookup failed for this server’s own reason less than a second before.

If the client is a machine you trust, such as a monitoring box, add its address to rate_bypass in node.toml. If the machine has no reason to ask that much, look at what runs on it. A browser and a laptop together ask tens of queries a minute.

A client gets empty answers with the TC bit set

Section titled “A client gets empty answers with the TC bit set”

A client outside allow_recursion that asks your zones over plain UDP more often than its bar gets an empty answer with the TC bit set, until its window ends. The answer keeps the code that the client would have got, such as NOERROR or NXDOMAIN. dig sees the TC bit and asks again over TCP by itself, which answers, so its output shows the answer of TCP, with a line that says the reply was truncated and that it retries in TCP mode. To see the empty answer itself, ask with +ignore:

$ dig +ignore @192.0.2.53 nas.home.arpa
;; flags: qr aa tc rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

A resolver does the same as dig. The bar is the one of A client that stops getting answers, counted apart from the clients of your network. A client over TCP, DoT, DoH, DoQ or DoH over HTTP/3 is not held to it. The log names the client once a window:

a client outside allow_recursion reached a rate limit, and this server answers what goes past it empty with TC set, so a real client asks again over TCP

dns_rate_limited_total counts each such answer, with limit="queries". Many such lines for addresses you do not know mean that somebody sends queries with forged sources, and the empty answers are what keeps your server from flooding the addresses they name. If the client is one you trust, add it to allow_recursion, or to rate_bypass in node.toml.

A content network answers from the wrong continent

Section titled “A content network answers from the wrong continent”

A name served by a content network resolves to a server far from you, so a download is slow. The content network chose that server from the address that asked it, which is this server’s own, or your provider’s resolver’s where this server forwards.

In the recursive mode, ecs_send in server.toml tells such a network part of your client’s address, so it can choose a nearer server. It helps only where your clients have addresses the internet routes. Behind one public address, which is most houses, your clients are on private addresses, which no option carries, and the answer does not change. The counter dns_ecs_sent_total counts the queries that carried the option, and dns_ecs_unsupported_total counts the servers that answered without it.

Behind one public address, or where the walk leaves through a tunnel, name the public network of your clients in ecs_network. Every client with no option then sends that network. Each server that the walk asks learns it, and Configuration says what that costs.

ecs_network in server.toml is checked when the file is read, by tadoru config validate, and by a PATCH of /api/server. Each refusal names ecs_network, also the two that the value of ecs_send causes, so the console shows it on that field. A change that the running server refuses leaves the last good configuration serving.

The message says What to do
93.184.216.1/24 has bits set past its first 24 Write the network address, which the message gives: 93.184.216.0/24
... is not an address or a prefix Write an address and a length, such as 93.184.216.0/24
... is an IPv4 network written as IPv6 Write it as IPv4. A client of IPv4 takes the IPv4 network
... does not route on the internet, so authoritative servers can ignore it Name the public network that your clients reach the internet from, not a private, shared or documentation one
... are both IPv4 networks (or IPv6) Keep one network of each family
names a network, and ecs_send is off, so no query carries it Empty ecs_network, or turn on ecs_send. To turn ecs_send off, empty ecs_network first or in the same change
... is longer than the 24 bits of an IPv4 address that ecs_send sends Shorten the network, or raise the bits of that family in ecs_send

allow_recursion and encrypted_allow_recursion in node.toml are checked when the file is read, by tadoru config validate, and by a PATCH of /api/node. A refusal names the setting. A change that the running server refuses leaves the last good configuration serving. At the start, a refused node.toml stops the start, and the server does not run until you fix the list:

tadoru: ./data/config/node.toml, setting allow_recursion: !192.168.0.0/16 lies inside no allow entry, so it denies nothing that the list allows. A deny entry takes a range away from a wider allow entry

An entry that starts with ! is a deny entry (Configuration).

The refusal says What to change
holds 65 entries, and this file carries 64 Use fewer allow entries inside the allowed set, or allow fewer clients
is not an address or a subnet Write !10.1.0.0/16: no space after !, no bit past the prefix
writes an IPv4 address as an IPv6 one Write the IPv4 form. A client of it arrives as an IPv4 address
::/96 or a range inside it Write the IPv4 form of the range
is named twice Delete one of the two entries
is both allowed and denied Keep the allow entry or the deny entry of that range, not both
every entry is a deny entry Name the clients to allow beside the deny entries, or write []
lies inside no allow entry Fix the range of the deny entry, or delete it: it denies nothing
which denies it already Delete the inner deny entry
longer entries decide every address of Delete the deny entry, or the longer allow entries that fill it

The limit of 64 counts allow and deny entries. A wider range in place of a few narrow ones can take in a client that a deny entry left out, so keep each new entry inside the set that the list allowed.

A list of proxies the server will not take

Section titled “A list of proxies the server will not take”

api_trust, http_trust and proxy_protocol_from in node.toml are checked when the file is read, by tadoru config validate, and by a PATCH of /api/node. A refusal names the setting. A change that the running server refuses leaves the last good configuration serving. At the start, a refused node.toml stops the start:

tadoru: ./data/config/node.toml, setting api_trust: the allow entries together hold every public IPv4 address, all of 0.0.0.0/0 but 224.0.0.0/3 and the private and special ranges, so any machine could name its own client address, and a deny entry does not change that. Name the reverse proxies, by address or by their own subnet

An entry that starts with ! is a deny entry (Configuration for api_trust, DNS over HTTPS for http_trust). Each list takes the refusals of a recursion list, with its own limit, and one more: a list whose allow entries hold every public address of a family. That is every IPv4 address but 224.0.0.0/3, 0.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12 and 192.168.0.0/16, or all of 2000::/4, however the entries write it. A deny entry does not change this refusal. proxy_protocol_from takes no deny entry, and refuses such a list too, with “the entries together hold”. Fix each refusal so that the list trusts no more machines than before:

The refusal says What to change
holds 17 entries, and it takes 16 at most api_trust: name fewer proxies. The limit counts allow and deny entries
holds 65 entries, and this file carries 64 http_trust or proxy_protocol_from: name fewer proxies or load balancers. The limit of http_trust counts allow and deny entries
the allow entries together hold every public IPv4 address Name the reverse proxies. A deny entry does not change this refusal
the allow entries together hold every IPv6 address that the registries allocate Name the reverse proxies. A deny entry does not change this refusal
the entries together hold every, in proxy_protocol_from Name the load balancers, by address or by their own subnet
The same, of a list that loaded before the upgrade Since this build. An older build took the list. Name the proxies or the load balancers
is both allowed and denied Delete one of the two. Keep the allow entry only for a proxy you trust
every entry is a deny entry Name the proxies to trust, or write [] to trust none
lies inside no allow entry Fix the range of the deny entry, or delete it: it denies nothing
which denies it already Delete the inner deny entry
longer entries decide every address of Delete the deny entry, or the longer allow entries that fill it

The other messages, such as is named twice and is not an address or a subnet, are those of the recursion list.

Two upgrades make lists that loaded before stop the start. http_trust refuses a whole family since an earlier build: a node.toml with http_trust = ["0.0.0.0/0"], two /1 entries or ["::/0"]. And all three lists refuse every public address of a family with no /0 since this build: ["2000::/4"], ["2000::/3"], ["::/1"], or a list that holds every public IPv4 address but leaves out a range that is not public, in api_trust, http_trust or proxy_protocol_from:

tadoru: ./data/config/node.toml, setting http_trust: the allow entries together hold every IPv6 address that the registries allocate, all of 2000::/4, so any machine could name its own client address, and a deny entry does not change that. Name the reverse proxies, by address or by their own subnet

Such a list let any machine on the internet name its own client address: of a DoH query in http_trust, of a failed login in api_trust, and of a relayed query in proxy_protocol_from. Name the senders that you run instead. Where you do not know them yet, write [], and each list then works as follows:

  • http_trust = []: https_listen and http3_listen answer each client as itself, and http_listen gives 403 to every peer. A proxy that stays in front of https_listen is then the client of every query that it carries. It meets the cap of connections of one client and the rate limits, and encrypted_allow_recursion must allow it.
  • api_trust = []: a proxy in front of the API is the client of every login that it carries, so the failed logins of each user count under the address of the proxy, and one stranger behind it can lock out every user.
  • proxy_protocol_from = []: a load balancer is a client like any other, and the header that it sends in front of a query closes the connection or drops the datagram. So the DNS that it relays with a header is refused until you name it.

Name the senders soon.

An archive of a build before this one can hold such a list in an earlier generation, which a rollback can make active again. The restore takes it, and checks the generation that it makes active in full, so an archive whose running generation holds such a list is refused, and the refusal names the file of that generation. A rollback to the earlier generation is refused with the message above. Roll back to another revision, or write the settings of that revision again by hand, with the reverse proxies or the load balancers named.

A client outside allow_recursion gets REFUSED for every name this server does not hold itself. The RA bit in that answer is clear, because recursion is what this client is not offered. Over TCP, TLS, HTTPS and QUIC, a query with an OPT record also gets Extended DNS Error 18 (Prohibited). dig prints it in the OPT section. Over UDP the refusal carries no code, because the source of a datagram can be forged. A refusal larger than the query then sends traffic to somebody who did not ask.

$ dig +tcp @192.0.2.53 example.com
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 4919
;; flags: qr rd; QUERY: 1, ANSWER: 0
; EDE: 18 (Prohibited)

The default list is loopback and the private ranges. A client on a global address gets a refusal even on your own network. If your internet provider gives you IPv6, add your prefix to allow_recursion in node.toml, which Configuration holds.

In the recursive mode the refusal looks the same. The list is read before any query leaves this server, so a refused client never costs a walk from the root.

The counter dns_refused_total with reason="recursion" counts these answers. A count that climbs for addresses you do not know is a scan of your server. The answer to that is a rule on your router, because this list holds nobody out of the machine.

A name in a zone of your own is answered for any client that query_from of the zone holds. So an answer there, beside a refusal for another name, tells you that the list is the cause. Blocking does not run for such a client, because filtering is for the clients you resolve for. By default query_from holds the private ranges alone, so a client outside them gets REFUSED for your zones too.

A client on the list can clear the RD bit. It then gets REFUSED for a name that no zone holds and the cache does not hold. That client asked this server not to resolve for it. On a route that does not check signatures, a query that also sets the CD or the DO bit skips the cache. So it gets REFUSED for every name outside a zone. The counter above does not count these, because the list allowed the client. This refusal carries Extended DNS Error 20 (Not Authoritative) in place of 18. So the code tells you which of the two refusals a client got.

If every client on your network is refused, read the listen entry you wrote. The server refuses an IPv4 address written as an IPv6 address. Every IPv6 listener is IPv6 only, so it takes no IPv4 traffic, and an IPv4 client reaches only a listener on an IPv4 address. Write the plain IPv4 address.

A zone stopped answering clients outside the house after an upgrade

Section titled “A zone stopped answering clients outside the house after an upgrade”

A zone that writes no query_from, in a server.toml whose [zones] writes none either, answers the private ranges alone since this build. A build before it let every address ask. Those ranges are the default ranges of allow_recursion, not the list you wrote there. The start logs one line while a zone takes that default, and so does a change of the configuration after which more zones take it:

these zones answer only the private and local ranges, because query_from is not set. To answer other networks, set query_from in [zones] of server.toml, or in the zone.toml of a zone

Its field zones counts them. While a zone takes the default, the start and each change of the configuration log a warning for each network of allow_recursion outside the default, such as the IPv6 prefix of your provider or a VPN range. Where the node has an encrypted listener, the warning names the networks of encrypted_allow_recursion too, such as the world of phones over TLS:

allow_recursion names 2001:db8:1234::/48, which the default of query_from leaves out, so these zones refuse those clients. Write the networks that may ask the zones in query_from of [zones] in server.toml

Write those networks in query_from of [zones]. If a zone is meant for the internet, write query_from = ["0.0.0.0/0", "::/0"] in its zone.toml, or in [zones] for every zone. Install lists what else the default changes.

A client outside query_from of the [zones] table in server.toml gets REFUSED for every name of your zones, also where it is on allow_recursion. Over TCP, TLS, HTTPS and QUIC, a query with an OPT record also gets Extended DNS Error 18 (Prohibited), the same code as a client outside allow_recursion. Over UDP neither refusal carries a code. The zones that the server answers itself, such as localhost, still answer that client, and so does such a zone above yours, such as home.arpa. A name that a [[forward]] covers goes to that forward, as it would without your zone. An update from that client gets REFUSED with no code too.

The counter dns_refused_total with reason="zone" counts these answers, apart from reason="recursion". If a client of yours is refused, add its network to query_from (Configuration). The change counts from the next query, with no restart.

SERVFAIL, and the log says the answer points inside

Section titled “SERVFAIL, and the log says the answer points inside”

The server refused an answer that pointed at an address on your own network. That is DNS rebinding: a name on the internet becomes a way to reach your router or your printer from a web page. The answer is dropped and the client gets SERVFAIL.

WARN refused an answer that points at a private address question=tracker.example.com owner=tracker.example.com address=192.168.1.1

With store_names = false the line carries the address alone, because the name is what that setting keeps out of the logs.

The refused IPv4 ranges are 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 127.0.0.0/8, 169.254.0.0/16, 100.64.0.0/10, 198.18.0.0/15, 192.0.0.0/29 and 0.0.0.0/8. The refused IPv6 ranges are ::1, fe80::/10 and fc00::/7. The ipv4hint and ipv6hint addresses of an SVCB or HTTPS record count as addresses, because a browser connects to them. A record with priority 0 is the exception, because a browser ignores its keys. An SVCB or HTTPS record from outside that does not read as its type leaves the answer with the rest of its set, because the server cannot read its hints. A name in rebind_allow keeps such a set. An IPv4 address written as an IPv6 address counts as the IPv4 address it is. The two addresses 0.0.0.0 and :: are the exception: an upstream that filters a name answers with one of them, and that answer is served.

Those are the ranges this server holds itself. The prefixes you write in rebind_inside are refused beside them, which is where a global IPv6 prefix from your provider belongs. Until you write yours, an answer carrying an address on your own IPv6 network is served.

A NAT64 prefix goes in rebind_nat64 instead. An address inside one carries an IPv4 address, and that address decides: a global one is served and a private one is refused. The log line names the IPv6 address that arrived. Where the IPv4 address sits inside it depends on the length of your prefix, and for the usual /96 it is the last four octets.

owner is the name that carried the address, which is the last hop of an alias chain rather than the name you asked for. question is the name the server asked the upstream for.

Nothing is remembered, so the next query for that name asks the upstream again. A fix takes effect at once.

If the answer is one you expect, name it in rebind_allow in server.toml. Use the name from question in the log line, which is the name the server asked for. One name per entry, and a name under an entry is not covered by it. An allowed answer goes to the client that asked and is not cached, so each client that asks costs one query to the upstream. To turn the check off for every name, set rebind_protection = false. Configuration holds all three settings.

A name your own zone answers is never refused this way. A private address is the point of a name like nas.home.arpa. Write the name in a zone rather than allow it as an exception. Local Zones has the two files a zone needs. An alias in your zone that points outside is different. The server asks the upstream for the target, so the check reads that answer. question in the log line names the target rather than your own name.

The counter dns_refused_total with reason="rebinding" counts these answers.

SERVFAIL, and the log says the alias points into this network

Section titled “SERVFAIL, and the log says the alias points into this network”

The same protection, for an answer that carries no address at all. A name on the internet can be an alias at a name this server answers itself, and then the address arrives one query later:

WARN refused an answer whose alias points into this network question=evil.example.com owner=evil.example.com target=nas.home.arpa

This rule closes an attack that works in two steps. The answer for evil.example.com holds a CNAME and no address, so the check that reads addresses finds nothing to refuse. Your browser takes the alias and asks this server for nas.home.arpa. Your own zone answers that with a private address, and nothing reads a zone’s answer, because a zone is your own data. The page is still evil.example.com. Its script now reaches that machine with the access it has to the page itself.

Where this server leads a target into your network, the answer is refused. Three things do that. Your own zone holding an address on your network. An alias of its own that leads to one. Or a suffix you send to a router with rebind_protection = false on the [[forward]].

An address on your network means three things: the ranges above, the prefixes you wrote in rebind_inside, and a translated address that carries one of those. The same settings decide it for both rules. A global IPv6 prefix of your own covers your zone’s answers as well as the answers that arrive from outside.

An SVCB or HTTPS record counts as an alias for an SVCB or HTTPS question, because a browser connects to what it names for the page that asked. Its target counts as the target of an alias. So does a record of your own zone that such an alias reaches: one with priority 0 leads on to its target, and one with another priority leads to the addresses of its target, or of its own name for a target of ..

A target in an empty zone is served. The zones this server answers for the private reverse ranges and for test and invalid hold no address, so an alias there leads nowhere. localhost is not one of those: it answers 127.0.0.1, so an alias at it is refused.

A router’s own alias between two names of its own suffix is served. That suffix is what rebind_protection = false exempts, and an alias inside it is the router’s business. An alias from a name outside the suffix into it is not, and it is refused.

Asking for the CNAME record itself is answered. A client that asks what an alias is gets told, because nothing connects to an answer like that.

rebind_allow covers this the same way it covers an address. Name the value from question in the log line. rebind_protection = false turns both off together, because they are one protection.

With store_names = false the line carries target alone. That name is on your own network, and whoever wrote the hostile answer chose it rather than anybody browsing. So the setting keeps it. question is the browsed name and it goes. To write the exception you need question, so turn store_names on for as long as it takes to read one line.

The counter is the same: dns_refused_total with reason="rebinding".

Forwarding is off by default, so every name the server does not hold itself answers NXDOMAIN. That NXDOMAIN carries Extended DNS Error 20 (Not Authoritative), where the query sent an OPT record. Name some upstreams in forwarders, or set resolution = "recurse" to walk from the root. Configuration shows both.

To tell a resolution problem from a listener problem, ask for a name one of your zones holds. A zone answers with no upstream at all, so an answer there means the listener is fine. Local Zones has the two files a zone needs.

SERVFAIL, and the upstream failures say referral

Section titled “SERVFAIL, and the upstream failures say referral”

An upstream in forwarders sent a referral: NS records for a zone in the authority section, no SOA record, and no answer to the question. The answer is a record of the type you asked for, at the name where the chain of aliases ends. An authoritative server that holds the delegation but not the data sends a referral. So that upstream is not a recursive resolver.

The server does not pass a referral on to the client. It asks the next upstream. If every upstream sends a referral, the client gets SERVFAIL. Each referral adds one to dns_upstream_failures_total with reason="referral". Where every upstream failed, dns_forward_failures_total goes up with the reason of the last upstream that failed, so referral where that one sent a referral. One reason comes first: unwalkable, where any upstream sent an answer whose alias chain cannot be read (below). If an upstream answered with a failure code, such as SERVFAIL, the client gets that code. Then dns_upstream_rejections_total counts the code, and dns_forward_failures_total goes up with reason="rejected".

A reply can look like an answer and still be a referral. The answer section can hold a DNAME and the CNAME it makes, or a record at a name off the chain. If the target of the chain is in a delegated zone that the reply does not answer for, the reply is a referral.

Point forwarders at recursive resolvers, or set resolution = "recurse". To see what an upstream sends, ask it yourself:

dig @ADDRESS www.example.com A

A certificate of a forwarder that is refused

Section titled “A certificate of a forwarder that is refused”

An encrypted forwarder fails, and the log has a warning such as:

WARN the certificate of an encrypted upstream was refused protocol="tls" address=192.0.2.53:853 name=dns.example.net reason=the name does not match

The server writes one warning per upstream, and the next failures of that upstream go to the debug level, until a connect to it succeeds again. The counter dns_upstream_failures_total with reason="certificate" counts each one. The server then asks the other upstreams, and it tries this one again five seconds later.

The reason at the end names the kind of the refusal. It names no name that the certificate presents, because that is text that the upstream sent:

The reason says What to change
the name does not match The name before the parentheses. Write a name that the certificate holds. openssl s_client -connect ADDRESS:853 -servername NAME shows the names
an unknown authority The trust store. Add the root of a private authority, as “A resolver with a private certificate” in Encrypted DNS says
expired The certificate of the upstream, or the clock of this machine where the certificate is current
not valid yet The clock of this machine, which runs behind
another certificate failure Read the certificate of the upstream with openssl s_client, as above

A quic:// forwarder gives fewer reasons, because a QUIC connection carries only the alert of TLS that this server sent:

The reason says What to change
a bad certificate, such as one for another name The name before the parentheses, or the certificate
expired or not valid yet The certificate of the upstream, or the clock of this machine
an unknown authority The trust store, as for an unknown authority above
revoked The certificate of the upstream
another certificate failure The trust store, for a root with the name of the authority and another key, such as an old root. Else the certificate

openssl s_client speaks TCP, so it does not reach a quic:// upstream. Where the upstream also serves DNS over TLS on port 853, the same command reads the certificate there, which is most often the same one. Otherwise, a client of DNS over QUIC that prints the certificate of the peer shows it.

A name that is an IP address, as in tls://1.1.1.1 (1.1.1.1), needs a certificate that lists that address. Most upstreams list their name alone, so write the name.

A revision with an encrypted forwarder, in forwarders or in the to of a [[forward]], is refused, with:

server.toml: forwarders[0] is encrypted, and the trust store of this machine holds no certificate this build can use, so no certificate of a forwarder can be checked. Certificates that did not parse: 0. Install the CA bundle of the system, such as the ca-certificates package, and restart the server

The server reads the trust store of the machine once, at start, and it found no root in it. Every handshake would then fail, so the server refuses the revision rather than log a failure for each query. Install the CA bundle, such as with sudo apt install ca-certificates on Debian and Ubuntu, and restart the server. A count of certificates that did not parse above zero means the store holds certificates this build cannot read. The message ends with what the store said when it was read, where it said something.

The message names the destination: forwarders[0], or forward[0].to[0] for the first destination of the first [[forward]].

The container image carries the bundle, so this happens there only where a mount replaced it.

A file of the trust store that the server does not read

Section titled “A file of the trust store that the server does not read”

At start the log can show this warning, one for each file. tadoru dig writes the same lines to standard error, after tadoru dig:, for an encrypted transport:

WARN tadoru: a part of the trust store of this machine is not used reason=the trust store file /etc/ssl/certs/ca.pem is a FIFO, not a regular file, so it is not read

The server reads only regular files of the store. A link to one is fine, as the links in /etc/ssl/certs are. A FIFO, a socket or a device is refused, and so is a file over 16 MiB. On Linux a file of a file system of the kernel, such as /sys or /proc, is refused too, because its read can wait with no end, and so is a file whose file system the server cannot tell. A section that does not parse is named by its file and its number, and the line names no byte of the file. One read of the whole store stops after 64 MiB or 10,000 paths. The log lists at most 16 such lines, then one line that counts the rest, and last the line that says where the read stopped, where it did. The other files still count, so the server runs on the roots they hold. Where no root is left, the refusal above follows, and it ends with the same words. SSL_CERT_FILE and SSL_CERT_DIR point the read somewhere else, so look at them first. A store fed by a pipe, such as SSL_CERT_FILE=/dev/fd/3, is refused: write the bundle to a file and name that file.

SERVFAIL for every name, and the log says no root server answered

Section titled “SERVFAIL for every name, and the log says no root server answered”

The log says no root server answered the priming query, and it names the addresses it tried. This happens in the recursive mode only. The server learns the root’s servers by asking one of them, and none of them answered.

After such a failure the server waits 5 seconds before it asks the roots again. Every query in that time gets SERVFAIL at once, so a network with no route out does not cost a round of timeouts per query.

Make sure that this machine reaches the internet on port 53, over UDP and TCP. A firewall rule that allows only a forwarder’s address blocks the walk. If you run a root of your own, make sure that root_hints names its addresses. The counter dns_priming_failures_total counts these failures.

Every name times out on a machine with several addresses

Section titled “Every name times out on a machine with several addresses”

Every name fails with a timeout, and a name that one of your zones holds still answers. The machine has several addresses, and the operating system sends each query from one that the far end cannot answer. A firewall that passes DNS from one address only is the usual cause.

Name the address that works in outbound_addresses in node.toml:

outbound_addresses = ["192.0.2.10"]

Queries to IPv6 servers still go out from the address the system picks, because the list names no IPv6 address. Configuration shows the rules for the list.

If the server refuses the revision, the message names an address that this machine does not hold. Name one that ip addr or ifconfig shows. The log can say that a query went out from the address the system chose. Then an address in the list went away while the server ran.

Names are slow on a network with broken IPv6

Section titled “Names are slow on a network with broken IPv6”

The first query to each name server is slow, and later ones are fast. The network has a route for IPv6 and no working IPv6 path. The server asks a new name server over both families at once, so one answer comes back fast. But every IPv6 query waits for its timeout. The lookup of a name server’s own address can wait as well.

Put ipv6 = "disabled" in server.toml while you fix the network. The server then never sends to an IPv6 address. A name server that has IPv6 addresses alone becomes unusable, and the server asks another server of the same zone. After IPv6 works again, remove the line.

SERVFAIL for new names when the server is busy

Section titled “SERVFAIL for new names when the server is busy”

A query that needs a resolution gets SERVFAIL, and a name in the cache still answers. The server runs at most max_concurrent_resolutions resolutions at once, 256 by default, and it refuses a new one past that number. It does not queue the query. The counter dns_capacity_refused_total counts these refusals, and the gauge dns_resolutions_in_flight shows how many run now.

A gauge that stays at the cap means that the upstream servers are slow or that clients ask more than the machine resolves. Look at the per-client limits in server.toml first. Each resolution holds up to two sockets. If the machine has the file descriptors for more, raise the cap.

A name keeps its old address while the upstreams are down

Section titled “A name keeps its old address while the upstreams are down”

A name answers with an address it had before, and the query log marks the answer stale. The server got no current answer in time, so it answered from what it already knows. That is the feature working. The usual cause is that every upstream stopped answering. A client past its rate limit and a server at its cap get old answers too. A client gets the old answer after stale_max_wait_ms at most, and at once for the stale_reset_ttl after a failed attempt.

If one old address is wrong, flush that name, as “A name that answers its old address” below says. A flush during an outage also takes away the old answers clients live on. Those names then get SERVFAIL until an upstream answers. To stop all old answers, put stale_ttl = 0 in server.toml. The counter dns_cache_stale_served_total counts old answers by reason: refused is a limit or the cap, and waited, failed and held are an upstream that did not answer.

A query with an OPT record also gets an Extended DNS Error on an old answer. dig shows code 3 on an old address or an old empty answer, and code 19 on an old NXDOMAIN:

; EDE: 3 (Stale Answer)
; EDE: 19 (Stale NXDOMAIN Answer)

A site changed its address, or a domain moved to a new DNS provider, and this server still answers with what it had. The cache keeps an answer for its time to live, and serve-stale keeps it longer. In the recursive mode the server also keeps the old name servers of the zone, and it asks them again. Flush the name. A flush also removes the zone cut above the name, so the next query learns the new name servers:

Terminal window
tadoru cache flush example.com --below

On the machine itself, as the user the server runs as, the command needs no token. --below flushes every name under example.com too. Leave it out to flush the one name. A flush does not follow an alias: where www.example.com is a CNAME to a name at a content network, flush that target as well. tadoru cache show www.example.com shows the alias and its target.

A name that a signed zone just added can answer NXDOMAIN here for a while. The server keeps the NSEC and NSEC3 records that prove a range of names absent. A name inside a range gets NXDOMAIN from the cache, and no query goes upstream. That lasts until the record expires, which is three hours at most. The SOA of the zone can make it shorter.

The query log shows such an answer with the source synthesized, and the counter dns_cache_synthesized_total counts it. To end the wait for one name, flush it:

Terminal window
tadoru cache flush new.example.com

The flush drops the ranges of the zone that holds the name, and the ranges of every zone above it. So the next query for any name in those zones goes upstream. To ask upstream about every name inside a range, put aggressive_nsec = false in server.toml. Configuration has the setting.

SERVFAIL that stays after the upstream is back

Section titled “SERVFAIL that stays after the upstream is back”

The server remembers a failure for up to five minutes, so that clients who ask again do not each start a query upstream. After an outage ends, a name can answer SERVFAIL until its failure expires. Flush the name, as above, and the next query goes upstream. A flush costs one query, so it does not bring back the flood the rule stops.

A flush answers 500 where the memory is flushed and the snapshot on disk is not:

WARN the cache snapshot on disk could still hold what a flush removed

The next start can then load the removed entries again. Flush again, or delete cache/snapshot.bin under the state root while the server is stopped.

Old answers stop after a change of upstreams

Section titled “Old answers stop after a change of upstreams”

Old answers stop at once after a revision that changed the upstreams, a [[forward]] or the resolution mode. An answer from the old upstreams is not an answer from the new ones, so the server stops using what it cached under them. The next queries go to the new upstreams. This is expected, and nothing needs to change.

Every signed name answers SERVFAIL, and the health endpoint names a route

Section titled “Every signed name answers SERVFAIL, and the health endpoint names a route”

An upstream that removes the DNSSEC signatures breaks every signed name. Some home routers do it. Each signed name then answers SERVFAIL with code 10. At each start and each reload, the server asks each forwarding route that checks answers for the root’s keys, with their signatures. tadoru health --json names each route that answered without the signatures:

"dnssec": {"ok": false, "signatures_stripped": ["upstreams"]}

upstreams is the ordinary route, which asks the forwarders. Any other name is the suffix of a [[forward]]. The log names the route too:

WARN this route answers the root's keys with no signature, so every signed name under it fails validation route=upstreams

The dnssec object is absent where no route checks answers. It is also absent until the first probe of a start finishes, so read it again a few seconds after a start. With resolution = "recurse", the server asks the servers of each zone itself. Nothing sits between them to remove a signature, so the server does not probe that route.

The server does not turn validation off by itself. An answer that turned it off is an attack that anybody can send. So change the route:

Route What to do
upstreams Name forwarders that keep the signatures. Or empty forwarders and set resolution = "recurse" in the same change
A suffix Point the [[forward]] at a server that keeps the signatures
A suffix of a local zone Set dnssec = "insecure" on its [[forward]], because the zone has no chain to the root

dnssec_validation = false in server.toml turns validation off for every name, and the dnssec object goes away. The server asks the routes again at the reload that applies a change.

no_answer names a route that brought back no key at all. It gave no reply, a failure code, or a reply with no DNSKEY record. Nothing is known about such a route, so ok is false for it too. The log says this route brought back none of the root's keys, so nothing is known about whether it keeps their signatures. Make sure that each server of the route answers dig +dnssec @ADDRESS . DNSKEY. For upstreams, ADDRESS is each address in forwarders.

One signed name answers SERVFAIL, and dig +cd answers it

Section titled “One signed name answers SERVFAIL, and dig +cd answers it”

A signed zone whose signatures fail is Bogus. The server answers SERVFAIL for each name in it, with a code that names the fault. “An EDE: line in dig” below lists the codes. The CD bit asks for the records even where the check fails. So dig +cd gives the records, with the AD bit clear:

dig @127.0.0.1 dnssec-failed.org A # SERVFAIL
dig +cd @127.0.0.1 dnssec-failed.org A # the records

The server checks the answer in both cases. So the query log says bogus for both, and the Bogus counter counts both.

The zone is broken, and its owner must fix it. The server cannot tell a broken zone from an answer that somebody changed on its way, so SERVFAIL is the correct answer. If the names in the zone must answer before the fix, add a [[negative_trust_anchor]] for the zone, with an until a few days away. Configuration has the entry.

One name answers SERVFAIL, and dig +cd answers SERVFAIL too

Section titled “One name answers SERVFAIL, and dig +cd answers SERVFAIL too”

An upstream sent a reply that holds a malformed NSEC, NSEC3 or NSEC3PARAM record. The server reads every field of these three types. So one malformed record makes the whole reply unreadable, and the server drops the reply. An older build passed such a record on as bytes that it did not read. The CD bit does not help, because the server has no records to send.

If every upstream sends the same reply, the result depends on the cache. A name with no old answer answers SERVFAIL. A name with an old answer gets that answer with EDE: 3, until stale_ttl ends.

Two counters show the dropped replies. Over UDP, the server waits for a reply that it can read, and dns_upstream_mismatched_replies_total goes up. The attempt then ends as a timeout. Over TCP, the attempt fails at once, and dns_upstream_failures_total with reason="unparsable" goes up.

No setting makes the server take such a record. A [[negative_trust_anchor]] does not help either, because the server cannot read the reply at all. The owner of the zone or the operator of the upstream must fix the record. To see the reply, ask the upstream yourself:

dig +dnssec @ADDRESS example.com A

The AD bit says that the server checked the answer, and that every signature passed. The server sets it only for a client that asks with the DO bit or the AD bit. dig sets the AD bit by default, so dig sees it. Many programs set neither, and those programs never see the AD bit. The dnssec column of the query log says what the server found for each answer:

dnssec Why the AD bit is clear
secure The program asked with neither DO nor AD. Ask the same name with dig to see the bit
insecure The server proved that the answer has no chain to the root. The next table says why
bogus The check failed. The program got SERVFAIL. With CD set, it got the records
unchecked dnssec_validation = false in server.toml
indeterminate The server did not decide. Code 5 or 14 with a text is the clock. Code 5 with no text is the root keys
empty The server wrote the answer itself: a zone of yours, a blocked name, or a refusal

An insecure answer has one of six causes. The code in dig tells most of them apart:

Code in dig Cause
None The zone is not signed, or an NSEC3 opt-out record covers its delegation
None A [[forward]] with dnssec = "insecure" takes the name
1 The zone uses an algorithm that the server does not check
2 The DS record of the zone uses a digest that the server does not check
27 The zone asks for too many NSEC3 iterations
33 A [[negative_trust_anchor]] covers the name

An NSEC3 opt-out record says that the parent did not sign the delegation to an unsigned zone. “A signed zone answers without the AD bit” below covers the algorithms. The two sections after it cover opt-out and code 27.

A name answers SERVFAIL after its owner fixed it

Section titled “A name answers SERVFAIL after its owner fixed it”

The server keeps what it learned about a zone. A Bogus answer stays for failure_ttl, 60 seconds by default. A zone whose keys or DS record failed stays failed for failure_ttl too, and never more than 5 minutes. The good keys of a zone stay for their TTL, and that can be hours. So a zone that changed its keys can fail until the old keys expire. To end the wait at once, flush the zone:

tadoru cache flush example.com --below

The flush removes the answers at and below the name, and what the check proved about each zone at and below it. The next question checks the zone again. If the name still fails, ask the upstream: dig +dnssec @ADDRESS example.com DNSKEY. An upstream can hold the old answer too.

A zone signed only with SHA-1 answers without the AD bit, and so does a zone signed only with Ed448. The server does not take a signature of either algorithm as proof. So it answers for such a zone as it answers for an unsigned zone: the records are there, and the AD bit is not. To see the algorithm of a zone, ask for its keys:

dig +dnssec example.com DNSKEY

The third number after DNSKEY is the algorithm. Algorithms 5 and 7 are RSA with SHA-1, which RFC 9905 deprecates, and this server treats them as unsupported by default. If its answers must carry the AD bit, put dnssec_sha1 = "validate" in server.toml. After the change, the server stops using the answers it cached before, because the change decides what those answers prove.

Algorithm 16 is Ed448, which this server does not check yet. No setting changes that.

A name under com answers NXDOMAIN without the AD bit

Section titled “A name under com answers NXDOMAIN without the AD bit”

The zone com is signed, but its denials are opt-out, so the server cannot prove a name absent. An opt-out NSEC3 record skips the delegations that nobody signed. It proves that no signed name is in its range, and it says nothing about an unsigned name there. So the server answers NXDOMAIN without the AD bit, and the dnssec column of the query log says insecure. Other validators answer the same, and nothing needs to change.

The server does not answer other names from an opt-out range. So each new name under com goes upstream. Other zones can use opt-out too. In the counter dns_dnssec_proofs_total, such a denial has outcome="opt_out".

An answer without the AD bit, with code 27

Section titled “An answer without the AD bit, with code 27”

The zone hashes each name in its NSEC3 records more than 150 times. That costs the server work for every denial that it checks. So past 150, the server computes no hash and does not check the denial. The answer is there, the AD bit is clear, and dig shows EDE: 27. The dnssec column of the query log says insecure, and dns_dnssec_proofs_total has outcome="iterations".

Three kinds of answer need such a denial: an NXDOMAIN, an empty answer, and a wildcard answer. A delegation to an unsigned child zone needs one too, so every name in that child zone answers this way. A name that the zone signs, and that needs no denial, still answers with the AD bit. To see the count, ask for the NSEC3PARAM record of the zone:

dig +short example.com NSEC3PARAM

The third number is the iteration count. No setting raises the limit. The zone owner must lower the count, and RFC 9276 asks for 0.

An EDE: line is an Extended DNS Error: a number the server adds to say why an answer is what it is. The server adds it only where the query carried an OPT record, and dig sends one by default. Code 18 needs more, and its row says so. The code never changes the response code or a flag. Some codes carry a text after the number.

$ dig @127.0.0.1 dnssec-failed.org A +dnssec
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 4242
;; OPT PSEUDOSECTION:
; EDE: 9 (DNSKEY Missing)

An older dig, such as the 9.10 that macOS ships, does not decode the option. It prints ; OPT=15: 00 09 ("..") instead. Option 15 is the Extended DNS Error. Read its first two bytes as one number in hexadecimal. 00 09 is code 9, and 00 21 is code 33. The bytes after them are the text. The parentheses show all the bytes again as characters, with a dot for each byte of the code.

The query log keeps the codes of each answer in extended_errors, and The query log has that column. The counter dns_extended_errors_total counts each code sent, with the number as its code label. A count of code 6 or 9 that climbs is a signature problem that no user reported yet. The server sends these codes and no others:

Code What it says What to do
1 The zone is signed with an algorithm this server does not check, so the AD bit is clear Read “A signed zone answers without the AD bit” above
2 The DS record of the zone uses a digest this server does not check, so the AD bit is clear Nothing. If the zone is yours, publish a DS record with SHA-256
3 An old answer from the cache, because no upstream answered in time Read “A name keeps its old address while the upstreams are down” above
4 A blocked name, answered with records such as 0.0.0.0 Read the query log row. Blocking has how to allow a name
5 The server did not check the answer, and the text says why Read the text. The cases follow the table
6 A signature that fails, or a check that stopped at the work limit of this server Read the text. The two cases follow the table
7 The only signatures of the answer expired Make sure that the clock of this machine is correct. If it is, the zone owner must sign again
8 The only signatures of the answer are not valid yet Make sure that the clock of this machine is correct. If it is, the zone owner must fix it
9 No key of the zone matches its DS record at the parent, or the key that matches has a size this server refuses Nothing. The zone owner must fix the key or the DS record. A text names the size, and the case follows the table. If every name fails, read “Every name fails validation, because of the root keys” below
10 A set of records in a signed zone has no signature Nothing. The zone owner must sign the zone again. If every signed name fails, read “Every signed name answers SERVFAIL, and the health endpoint names a route” above
11 The key that matches has the Zone Key flag clear Nothing. The zone owner must fix the key
12 A denial of a name has no proof Nothing. The zone owner must sign the zone again
14 SERVFAIL, because the server does not trust its clock yet Let a time client set the clock. The text says what the server knows of the clock
15 A blocked name, answered with no record, such as NXDOMAIN Read the query log row. Blocking has how to allow a name
18 REFUSED, for a client outside allow_recursion or query_from, an update its rules refuse, or a zone transfer Read “A client this server does not resolve for”, “REFUSED for a name of your own zone”, “An update that is refused” and “A zone transfer that is refused” above
19 An old NXDOMAIN from the cache, because no upstream answered in time Read “A name keeps its old address while the upstreams are down” above
20 REFUSED for a query with RD clear, NXDOMAIN from a server with no upstream, or NOTAUTH for a zone transfer of a name below the apex of a zone Read “A client this server does not resolve for”, “Nothing resolves” and “A zone transfer that is refused” above
27 The zone asks for too much work for each denial, so the server treats it as unsigned Nothing. The zone owner must lower its NSEC3 iteration count to 150 or fewer. RFC 9276 asks for 0
33 A [[negative_trust_anchor]] entry covers the name, so the server did not check it Read the text: the suffix, the end and the note. With probe on, the entry ends once the zone is fixed

Code 5 has two texts. not validated: no time client has set the clock yet is a grace name, which answers before the clock is set. not validated: the clock reads earlier than this build is a clock that is wrong for certain. For both, let a time client set the clock. Code 5 with no text is a grace answer whose grace ended while the query ran. Ask again. Code 5 with no text on every name is a root whose trusted keys all revoked themselves. Read “Every name fails validation, because of the root keys” below.

Code 6 with a text that starts validation stopped at the work limit of this server is a zone that asked for more signature checks than the server does for one answer. The last word names the limit. per_set and calls mean that the zone publishes too many keys or signatures. failures means that too many signatures failed, because the zone is broken or somebody changed the answer. hashes means that its denials need too many NSEC3 hashes. No setting raises a limit. The zone owner must fix the zone. Until then, a [[negative_trust_anchor]] for the zone makes it answer, without the AD bit.

Code 6 with no text is a signature that does not match its records. Either the zone is broken, or somebody changed the answer on its way. To see the records that failed, ask with the CD bit set:

dig +cd +dnssec @127.0.0.1 dnssec-failed.org A

That answer carries the data and the same code, with the AD bit clear.

Code 9 with a text such as the key that matches the DS record is an RSA key of 768 bits, outside 1024 to 4096 is a zone signed with an RSA key of a size that this server refuses. The number is the size of the key. The server treats such a zone as broken, not as unsigned, so every name in it answers SERVFAIL. The zone owner must sign with a key of 1024 to 4096 bits. Until then, a [[negative_trust_anchor]] for the zone makes it answer, without the AD bit.

A code from an upstream never reaches the client. The server reads its own checks and sends its own codes.

Signed names fail, and the server does not trust the clock

Section titled “Signed names fail, and the server does not trust the clock”

A signature is valid between two times, so the server needs a correct clock. It trusts the clock once a time client set it. Until then, a signature time that fails gives SERVFAIL with code 14, and the names of the time servers answer with code 5. Install and run says how the server learns that a time client set the clock.

tadoru health names the clock while the server does not trust it:

ok, revision 12, 3 of 3 blocklists serving, query log ready, clock unconfirmed: time servers answer unvalidated

The clock object of tadoru health --json holds the whole report:

Field What it says
state wrong, unconfirmed, synchronized or assumed, from the table below
grace true while the time servers answer without validation
witnessed true once the file that says a time client set the clock appeared
now The clock of this server, in seconds since 1970
floor The earliest time this build accepts, in seconds since 1970
grace_left The seconds left before assumed. Only unconfirmed has this field
graced The answers that a time server got without validation, since the start
refused The SERVFAILs that the clock caused, since the start

Under assumed, refused counts each answer whose signatures failed on their times.

State What it means What to do
unconfirmed No time client set the clock yet, and clock_grace_minutes did not end Wait. If the state becomes assumed, read the log of the time client
wrong The clock reads earlier than the build of this binary Set the clock. Read the case of witnessed below
synchronized A time client set the clock Nothing
assumed clock_grace_minutes ended with no file from a time client Make sure that the clock is correct. A refused that climbs says it is not

The text of code 14 says which case holds:

; EDE: 14 (Not Ready): (a signature time failed, and no time client has set the clock yet)
; EDE: 14 (Not Ready): (the clock reads earlier than this build, so no signature can be judged)

The first is unconfirmed. The signature can be correct, and the clock can be wrong, so the server gives no verdict. Ask again after the time client sets the clock. The second is wrong. No signature can be judged against that clock, so set it.

A time server that answers with code 5 is the grace policy at work. The text is not validated: no time client has set the clock yet or not validated: the clock reads earlier than this build. The answer carries no AD bit. The code stops once a time client sets the clock.

A wrong state with witnessed set to true is a conflict. A time client set the clock, and the clock still reads earlier than this build. The log says a time client set the clock and it reads earlier than this build, so one of the two times is wrong. Either the time client got a wrong time, or the build machine had a clock in the future. Compare now with a clock you trust. If now is correct, build the binary again on a machine with a correct clock.

Every name fails validation, because of the root keys

Section titled “Every name fails validation, because of the root keys”

Validation starts at the keys of the root zone. The server needs a root key that it trusts, and that key must sign the root’s key set. Without one, every name that the server checks answers SERVFAIL with code 9. The unsigned names fail too, because the proof that a name is unsigned also starts at the root. tadoru health --json shows the root keys under dnssec.anchors:

"anchors": {"ok": true, "trusted": [20326], "problem": "no trusted key signed the root's key set"}

That problem says that the server trusts only keys that the root no longer signs with. The cause is a build with old keys, and no trust-anchors.toml that saw the new key arrive. A build that knows only a key that the root retired is an example. ok stays true until stale_at, about three days after the start, because the server keeps its keys while it asks again.

An empty trusted list is the same failure, and there ok is false at once. Every key of the build is then past its end date, or the file holds only revoked keys. The log says no root key is trusted, so every answer that validation checks fails until a new build or file.

For both, upgrade the server. A new build holds the current root keys, and it trusts them from its first start. Until you upgrade, dnssec_validation = false in server.toml makes the names answer without validation.

deleted set to true is a different case. Every root key that the server trusted revoked itself, which means that the root withdrew it. The server then answers every name without the AD bit, and each answer carries code 5 with no text. Only a new build or a deleted trust-anchors.toml gives the server a root key again. Before you do either, make sure from the IANA page of the root keys, https://www.iana.org/dnssec/files, that the root published new keys.

ok is false for two more causes. The first is a time past stale_at. The server still trusts its keys, but no refresh of them worked for three refresh intervals, about three days. problem says why the last refresh failed, and the server tries again later:

problem What to do
no root key set came back Make sure that the server can reach the root, or its upstream
no trusted key signed the root's key set Read the case of old keys above
the check of the root's key set ran out of its crypto budget Nothing. The root’s key set holds more signatures than the server checks
the resolver was too busy to ask for the root's key set Read “SERVFAIL for new names when the server is busy” above

The counter dns_trust_anchor_refreshes_total counts each refresh by its outcome, so a panel shows which problem repeats. The second cause is a clock that reads earlier than this build. Read “Signed names fail, and the server does not trust the clock” above.

damaged set to true says that the start found trust-anchors.toml damaged. The server renamed the file to trust-anchors.toml.damaged and started from its built-in keys, so the names keep their answers. The log line of the start names what was wrong. A new root key that the file waited on starts its 30 days again. A built-in key that the file held as revoked is trusted again. So make sure from the IANA page of the root keys that the root withdrew no key since your build. If it did, upgrade the server. Delete the .damaged copy once you read it. damaged stays until the next start.

The root publishes a new key months before it signs with it. The server trusts a new key only after it sees the key for 30 days, which RFC 5011 calls the hold-down. Until then, the key waits, and nothing is wrong. tadoru health --json lists it under dnssec.anchors.pending:

"pending": [{"tag": 38696, "trusted_from": 1792000000}]

trusted_from is the earliest time that the key becomes trusted, in seconds since 1970. The first refresh that works after that time trusts the key. The log then says a new root key passed its hold-down, so it is trusted now. A stopped server counts one refresh interval of its stop at the most. So after a long stop, trusted_from moves later. The gauge dns_trust_anchor_keys with state="pending" counts the keys that wait.

A name whose signatures are broken answers SERVFAIL. If such a name answers again, without the AD bit, and dig shows code 33, a [[negative_trust_anchor]] covers it. The server does not check the names under such an entry. The text of the code names the entry: its suffix, its until and its note.

; EDE: 33 (Negative Trust Anchor): (broken.example. until 2026-10-01T18:00:00Z: DS at the parent matches no key)

The entry acts until its until, or until its probe finds the name fixed. To check the names again before that, delete the entry from server.toml. Configuration has the entry and its settings. The counter dns_nta_answers_total counts each answer with code 33.

A negative trust anchor that stopped before its until

Section titled “A negative trust anchor that stopped before its until”

With probe on, the server asks for the SOA record of the suffix every 5 minutes, and that probe ignores the entry. When every answer passes the check, the entry stops acting before its until. tadoru health --json then shows the entry as lifted under dnssec.negative_trust_anchors. The log says a probe found that the names under a negative trust anchor validate again, so it is lifted. The names under the suffix are checked again, and their answers carry no code 33.

If a name under the suffix still fails, turn probe off on the entry. The entry then acts until its until. Configuration says what the probe asks, and what makes a lifted entry act again.

A start with an empty cache although a snapshot is there

Section titled “A start with an empty cache although a snapshot is there”

The server loads cache/snapshot.bin after a start, and a file it refuses costs one start with an empty cache. The start itself goes on, and the next write replaces the file. The log says why, and the counter dns_cache_snapshot_refused_total counts it by reason:

INFO the cache snapshot was written under another configuration, so the cache starts cold
INFO the cache snapshot was written under other trust anchors, so the cache starts cold
WARN the cache snapshot was refused, so the cache starts cold problem="does not match its own checksum, so it is not the file this server wrote"
WARN the clock reads earlier than the cache snapshot was written, so the cache starts cold
WARN the cache snapshot is larger than this cache can hold, so the cache starts cold

The first is ordinary. An edit while the server was stopped can change what an answer means. That holds for an upstream, a [[forward]], the resolution mode, the rebinding settings and the DNSSEC settings. It also holds for the route above a [[forward]] that validates: a zone of yours or a delegation in it over its suffix, a stub zone above it, or other servers that such a stub learned. So the old answers are not used. A reload empties the cache for the same changes while the server runs, but for the route above a validating [[forward]]: a change there empties the answers of that forward alone, and the rest of the cache stays. So does each refresh of a stub zone that learns its servers, where such a forward sits inside it and the refresh brings other servers. The second is ordinary too. The server trusts other root keys than it did at the write, so it does not use the answers that the old keys proved. The third covers every file this build cannot read. A disk that damaged the file is one cause, and a file another version wrote is another. A file of the build before is one too: the cache of this build keeps the answers of each [[forward]] apart from the rest, and a file that mixed them is refused at each start until this build writes its own, so stop the server only after its first snapshot write if a cold start costs you. The fourth is a machine with no real-time clock that starts at a saved or zero time. Set the clock, or let the time service set it before the server starts. The fifth is a file from a machine with a larger cache.

The load also waits until the server trusts the clock. The log then says the cache snapshot waits for a trusted clock before it loads. The time service ends the wait as it sets the clock, and so does the end of clock_grace_minutes. A clock earlier than this build keeps the wait going. Until the load, the server writes no snapshot, so the file on disk stays for the next start.

A warning that a reply changed the case of the question

Section titled “A warning that a reply changed the case of the question”

The log says a server's reply changed the case of the question, and it names the server and the name. This server writes each query’s name in a random mixture of upper and lower case, and a correct server copies it back exactly. A reply in another case is one of two things: an attack that guessed everything else, or a server or a device on the path that rewrites the case.

The server tells the two apart by itself. It asks the same server again over TCP, where nobody off the path can answer in its place. If the case changes there too, it asks that server in plain case for the next hour. The name still resolves, and the counter dns_case_mismatches_total counts the replies.

If the line keeps naming one server, that server or something between you and it rewrites the case. If it names many servers, suspect the network, such as a router or a firewall that rewrites DNS. To rule the feature out, set case_randomization = false in server.toml.

A line that a name server answered for a zone it does not hold

Section titled “A line that a name server answered for a zone it does not hold”

The log says a name server answered for a zone it does not hold, and it names the zone and the server’s address. The parent zone lists that server for the zone, but the server answers as though it never heard of it. Such a server is called lame. The usual cause is a server that moved, while the parent zone still lists its old address.

The server leaves the lame server alone for that zone for lame_interval_minutes, 30 by default, and asks the zone’s other servers. The name still resolves where one of them answers. Where every server of the zone is lame, the server asks them anyway, and the counter dns_all_lame_total goes up. The counter dns_lame_answers_total counts each lame answer.

If the zone is yours, fix its listing at the parent zone, or make the server hold the zone. If it is not yours, only its owner can fix it. The line comes back after each interval while the server stays lame.

The log says a listener cannot read or accept. The machine ran out of something every new socket needs, and that is file descriptors almost always. The listener keeps trying, so the server answers again as soon as the machine recovers. It never stops the server for this.

Terminal window
# How often a read or an accept failed, by transport.
curl -s http://127.0.0.1:9153/metrics | grep dns_listener_errors_total

One warning covers the start of a run, and one more comes every 10000 failures. The counter is where the size of the problem shows.

The way out is a higher descriptor limit for the service. The packaged unit allows 16384, which covers four listening addresses plus 1024 outbound sockets. Each listening address holds up to 1000 TCP connections, one listening socket, and one socket per UDP worker. The server holds a second descriptor of the listening socket and of each UDP worker of a DNS listener, so it can change their buffers and their backlog while they serve. A revision that replaces listening addresses binds the new ones before it closes the old ones, so for a moment it holds both. A unit somebody wrote by hand often carries the default of 1024, and one busy listener passes that on its own. A unit with 8192, the number of earlier releases, can run out while a revision replaces busy addresses. The server then refuses the revision with Too many open files, and the old listeners keep serving. A node listening on more than four addresses needs more than 16384.

The log says could not write the running configuration into the config root, and the reason says so no copy of the edit can be kept. Somebody saved a file at the moment a change from the API or the command line was applied. The change wins, and the server keeps a copy of the save in overwritten/ of the state root (/var/lib/tadoru/overwritten/ on a native install) before it writes over the file. Here it could not keep the copy, so it left the save in the file, and wrote no file after it.

What happens next is what happened before this server kept copies at all. The next pass of the watcher, at most 30 seconds later, finds the save in the file, takes it for a new change and makes a revision of it. That revision undoes the change that wrote over it. So the save wins after all, and the other change is lost from the running configuration. Read the log, fix what stopped the copy, and send that change again if you still want it.

The reason says What to do
is a symbolic link Remove the link at overwritten, or at the state root. The server makes overwritten itself
is not a directory Move the file at overwritten away
is not there The state root is gone. Stop the server, and restore it from a backup
holds 10000 copies Move the old copies of that file out of overwritten
changed while it was read Something moved overwritten while the server wrote in it. Stop that
anything else, such as No space left on device The disk or a permission stopped the copy. Fix that

In every case the save wins at the next pass. Fix the cause first, and then send the change that the save undid again. A change that you send while the cause stays is undone the same way, the next time somebody saves over it.

The copies stay until you delete them. No backup carries them, a restore leaves them, and the server never deletes one. Each is named after the path of its file, with each / and each \ as _, and .1 and on for a later copy of the same file, or of another file whose name comes out the same, so zones/home-arpa/records.zone is kept as zones_home-arpa_records.zone. Read one, take what you need, and delete it with rm. The server makes the directory again for the next copy.

A copy is made with a hard link and two flushes of directories, so the filesystem of the state root has to keep hard links and flush durably. A volatile overlay of a container does not: the image keeps the state root in the /data volume, which does.

Edits of files that wait for a record of owed lists

Section titled “Edits of files that wait for a record of owed lists”

A save of a list that is not text, with a change of blocking.toml that takes its source away, is applied as two changes, blocking.toml first. Before the first, the server records the list in pending-lists.toml in the state root, so a stop between the two does not lose it: the next start takes the list with no source. A change that you make with the command line before that start, such as tadoru config apply, writes the configuration over the list and keeps its bytes in overwritten/, and the record owes the list no more. Where that record does not read, the log says, at each pass:

the record of the lists that a pass of the watcher owes, pending-lists.toml, does not read: it is not a record of this form. No edit of a file is applied until it is set aside: stop the server and run `tadoru config recover-pending`

The server keeps serving the running configuration and applies no edit of a file, so nothing writes over a list that the record owed. A change of the API still applies, and leaves every file that the server does not read as text, such as a list. The reason says why the record does not read:

The reason says What happened
it is not a record of this form, it is not text, a digest in it is not 64 lowercase hex digits The file is damaged
it is larger than 4194304 bytes, it holds more than 10000 lists The file is larger than a record this server writes
it is a link, it is not a regular file Something else is at the name
its version is ... A later build wrote it
... so it is of another history The ledger, control.sqlite, is not the one the record was written beside, such as a state root put together by hand

Stop the server and run tadoru config recover-pending. It moves the record to pending-lists.toml.set-aside-<time>, in UTC, and the next start applies the edits. A list that the record owed is then a file that no source names: it enters once a path source names it, and the next change writes the running list over it and keeps its bytes in overwritten/.

Where the record cannot be written or read now, the pass changes nothing and the log names the file, with could not compare the configuration files, or could not read the configuration files at startup at a start. A pass writes the record before its first change, and a flush of the state root that fails means that the pass started no change either: the next pass flushes again before its first change. Fix the disk, the permission or the limit of open files, and the next pass applies the edits. This needs no recover-pending.

Lines missing from the log or from standard error, or a writer that cannot start

Section titled “Lines missing from the log or from standard error, or a writer that cannot start”

The log drops a line rather than wait for a reader of standard output that does not read. Where it dropped some, it says so in one line, once the reader takes lines again:

WARN tadoru::logging::pipe: the log dropped lines, because standard output did not take them stdout_full=120 queue_full=0 too_large=0 write_failed=0

stdout_full counts the lines that found the queue of standard output full, because its reader took them too slowly or not at all. queue_full counts the lines that found the first queue of the log full, because the thread that empties it did not keep up, which is a machine short of processor time. A stalled standard output counted as queue_full before stdout_full came, so an alert on queue_full for it moves to stdout_full. too_large counts a line larger than the whole queue, 8 MiB. write_failed counts a line that standard output refused, such as a pipe with no reader. The line says “standard output” for every reason, and it also counts queue_full and too_large, which are lost before standard output. A level that hides warnings hides this line too, and the count waits for the next line that shows. The counter dns_log_dropped_total counts the same lines by reason, and it counts while standard output is blocked, when no line can say so. Look at what reads standard output: the journal, the log driver of the container, or a terminal that is paused or scrolled back.

A start that cannot start a thread of the log, log or log-out, stops at once, before it binds a socket or writes a file, with exit status 1:

tadoru: the log cannot start its writer: <error>

The error is the reason that the system gave, usually a limit of threads or of memory.

A start can also end with status 1 and write nothing at all, on standard output or on standard error. Then it did not start the thread that writes standard error, errors, which starts before the log, or it did not get the copy of standard error that this thread writes. The causes are a limit of threads or of memory, such as TasksMax of the unit or the limit of processes of the user, and a limit of open files, such as LimitNOFILE of the unit or ulimit -n. The server says nothing, because the one way left to say it would write standard error directly, and a reader that does not read would hold the process for good.

A start that fails before the log starts, such as on a bootstrap.toml that does not read, also ends with status 1 and nothing on standard output. Its reason goes to standard error, and where nothing reads standard error, the line is lost after its second.

A panic message or the last line of a start that fails can be missing from standard error, or end with [the message was cut at 64 KiB]. Each waits 1 second at most for standard error, and the exit loses what waits then. Look at what reads standard error, as for standard output above. A message longer than 64 KiB is cut at that size, after its head, so the thread, the place and the start of the reason stay. Nine messages at most are held at once, and a burst of panics past them loses the rest. The next message that is made says so first:

[messages dropped before this one, because 9 were held at once: <count>]

A panic message at h3-0.0.8/src/frame.rs:57, with There is still data to read, comes from a forwarder over h3:// that ended a response inside a DATA frame. The server catches this panic. The attempt fails as protocol, with the reason a DATA frame cut by the end of the stream, the connection to that server closes, and the query is not sent to that server again. Other queries that wait for an answer on that connection fail as protocol too. Nothing needs a restart. Where the message repeats, the server of that forwarder is broken: take it out of forwarders.

POST /api/dns-client asks one DNS server one question for an operator or an admin (The DNS client). The route answers 200 for every query that it asked, whatever the server answered, and outcome says how the query ended. These answers are the refusals of the route itself:

Answer Means What to do
422 unusable-query A field that the checks refuse. setting names the field Fix that field. The detail says the rule, and never repeats the text of server
422 target-refused The rule of the target refuses every address of the server, such as a loopback address Ask another address. A DNS listener of this server on loopback passes for its own transport
429 dns-client-busy Another query of the DNS client is running. One runs at a time for the whole server Ask again after the second of Retry-After
429 dns-client-rate The DNS client took 60 queries in the last minute Ask again after the seconds of Retry-After
503 dns-client-unavailable The DNS client did not answer. Its task is not there, failed, or did not take the query in 1 second. Or the query did not answer in 16 seconds, or its reply did not convert Read the server log for the line of the failure, and ask again. A restart starts a task that stopped

A target that the rule refuses writes one line at warn, with each address and its rule:

WARN tadoru::dns_client_route: the DNS client refused a target actor="operator" transport="udp" port=5353 refused=127.0.0.1 is loopback

A refused target sends nothing, and does not count in the 60 of a minute. A host name is different. The route takes its query before the lookup, so the query counts. Where the rule refuses every address of the lookup, the answer is 200 with the outcome refused.