Node HandbookNODE HANDBOOK
Geo data

Clash Verge Rev: geoip.dat not found

The core can answer 'which country is this IP' from either of two database formats, and a switch decides which one it looks for. A profile written for one mode run in the other produces a missing-file error for a file that was never supposed to be there.

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

Two formats, one switch

IP geography is a dataset. Two binary formats circulate for it, inherited from two lineages, and the core supports both behind a mode setting:

FileFormatSelected by
Country.mmdbMaxMind DBThe default mode
geoip.datv2ray datThe legacy geo mode

An error naming geoip.dat while the default mode is active means the configuration asked for the legacy format — through a mode flag, a rule syntax that implies it, or an explicit path. The file may be genuinely absent, but the more interesting case is that it should never have been requested.

Establish which mode is in effect

Two places can set it: the profile and the client's own settings, and the profile usually wins because it is what the core reads.

  • Look for a geo mode flag in the profile. Its presence and value decide which file is read.
  • Look at how rules reference geography. Rule syntax differs between the two modes, so the rules themselves can be the thing selecting the format.
  • Check for an explicit database path. If one is set, it overrides the default location entirely, and that path is what must exist.

Once you know the mode, the error resolves into one of two meanings: the wrong mode for the files you have, or the right mode with a genuinely missing file.

Fix the mode, not the filename

Renaming a MaxMind database to the dat filename is the mistake that costs the most time here. The extension does not select the parser — the content does. A renamed file is opened, fails to parse, and produces an error that no longer mentions the missing file, which makes the original cause invisible.

The correct moves are:

  1. Align the mode with the file you have. If the default database is present, switch off the legacy mode. This is a one-field change and it is resolved by the file that already exists.
  2. Fetch the format the mode requires. If the legacy mode is needed for other reasons, obtain the dat file and place it at the exact path reported.
  3. Remove the requirement. If no rule actually needs IP geography, removing those rules removes the dependency. Check the rules before adding files.

The third option is worth real consideration, because profiles inherited from templates often carry regional rules the user never asked for and does not need.

Why it appears on a fresh or migrated profile

Two situations produce it repeatedly.

A profile copied from another client. The other client's vocabulary includes fields that select the legacy format. The core reads them faithfully and then looks for a file that the new installation never had.

A mode setting carried over from an older version. The setting made sense when it was written; a later version changed its default. The value persists in the profile and keeps requesting a format that is no longer shipped.

Both are configuration-history problems rather than missing-file problems, which is why re-downloading the database does not resolve them.

When it really is a missing file

If the mode is correct for the file type and the file is genuinely absent, then the file is the answer. Check the path literally — the error names it — and confirm the directory exists as well as the file, because creating a database in the wrong directory produces the same error on the next start.

Do not create an empty file. An empty database is not an empty dataset; it is invalid, and the core rejects it with a message that no longer mentions the absence, which makes the diagnosis harder than it was. If your message names the MaxMind file instead of the dat file, the cause sits on the other side of the same mode switch.

Frequently asked

Is geoip.dat the same as Country.mmdb?

No. They carry similar data in different binary formats and are read through different code paths, selected by a mode setting. Installing one does not satisfy a request for the other.

Can I rename the mmdb file to geoip.dat?

It will be opened and fail to parse, because the name does not select the parser. The resulting error no longer mentions the missing file, which makes the real cause harder to find.

Why does my profile need IP geography at all?

Usually because a rule inherited from a template uses it. Check whether any rule references it; if none do, removing the rules removes the dependency.

Will an empty file get past the error?

No. It converts a clear missing-file error into a parse error that does not mention the file, which is strictly harder to diagnose.

Does the database need updating?

The format is stable but the data changes as address allocations move. A stale file produces rules that match the wrong country rather than an error, which is harder to notice than a missing file.