Node HandbookNODE HANDBOOK
Geo data

sing-box: geosite.dat not found

This error usually appears after an update, on a configuration that worked before. The cause is not a missing file but a changed expectation: newer sing-box builds resolve domain lists through rule sets, and the old database field is no longer read.

Last updated: 2026-11-24 · Every error string on this page was reproduced on a real client.

Two ecosystems, two formats

The geo database convention comes from the v2ray family: two binary files, one for IP ranges and one for domain lists, both in a custom format with .dat extensions. The sing-box ecosystem moved to a different mechanism, and the two are not interchangeable.

v2ray conventionsing-box convention
Domain listsgeosite.datRule sets, .srs
IP rangesgeoip.datRule sets, .srs
How referencedInline category names in rulesA named rule set declared separately, then referenced
How updatedReplace the fileRemote rule set with its own update path

An error naming a geo database in a sing-box-based client therefore usually means the configuration is written in the older vocabulary. The core is looking for something to satisfy a field that its own version no longer supports, and no download will satisfy it.

Confirm which vocabulary the configuration uses

Open the configuration and look at how domain and IP matching is written:

  • Inline category names in a route or DNS rule — the older form. These expect a database.
  • A separate block declaring named rule sets, with rules referencing those names — the newer form. These do not use a database at all.

If the first form appears in a client whose core is a recent sing-box build, the mismatch is confirmed and the remedy is a rewrite, not a file. If the second form appears and the error still names a file, then the rule set's own local path is what is missing, which is a genuinely different problem — check whether the declaration points at a local file rather than a remote URL.

Three ways forward

Migrate to rule sets

The correct path and the one that survives future updates. Each subscription-style category becomes a named rule set pointing at a remote source, and the rules reference it by name. The work is mechanical but not trivial: every inline category reference needs a declaration, and a rule that referenced two categories may become two rules.

Do it against the core's current documentation rather than against an example found in a forum, because the schema has changed more than once and older examples reference fields that are themselves deprecated.

Use a build that still reads databases

Legacy builds are published for exactly this reason, and pinning one keeps an existing configuration working. The cost is that the pin must be maintained: every update attempt reintroduces the problem, and the client's automatic update path will happily do it.

Remove the dependency

A configuration that references geo categories for convenience rather than necessity can drop those rules entirely. Check whether any rule actually needs the category before migrating anything — a template inherited from another client often carries rules the profile does not rely on, and removing them is the smallest change that resolves the error.

Why downloading geosite.dat does not help

The instinct on seeing "not found" is to supply the file. In this case the file is not what the core is reading. Placing one at the expected path produces either the same error, because the code path does not look for it, or a parse failure when the format is examined.

This is the single most common way to waste an hour on this error. The word "not found" describes a lookup that the core performed against its own expectations, not necessarily against the filesystem.

After migrating, verify the rules fire

A migrated configuration can load successfully and still match nothing, because a rule set that failed to fetch is often treated as empty rather than as an error. So a clean startup is not proof.

Verify by behaviour: request a host that the category should cover, and confirm from the connection log that it matched the intended rule rather than falling through to the default. That check distinguishes a successful migration from one that silently lost its rules.

Frequently asked

Can I just download geosite.dat and place it in the directory?

Usually not. Recent sing-box builds resolve domain lists through rule sets rather than reading that database, so the file is not consulted. The error describes an expectation the core no longer has, not a filesystem gap.

Why did this only start after an update?

Because the update changed which vocabulary the core accepts. The configuration did not change; the interpretation of it did. That is why the error arrives with no action on your part.

Is geoip.dat the same situation?

Yes, for IP ranges. The same migration applies, and the same conclusion holds: supplying the old file does not satisfy the new mechanism.

Can I keep using an older build?

Yes, and pinning one is legitimate. Remember that the pin has to be defended, because automatic updates will replace it and restore the error. Record why the pin exists, or the next person to see an update prompt will undo it.

The configuration loads but regional routing does not work.

A rule set that failed to download is often treated as an empty set rather than as an error, so startup succeeds while the rules match nothing. Verify by behaviour from the connection log, not by the absence of an error.