Skip to content

[BUG] Banned for bad behavior in own webinterface because /img/flags/unknown.svg 404ed #3683

Description

@Restingo

What happened?

I got locked out my own webinterface because the resource /img/flags/unknown.svg creates a 404 error:

Image

Locale chosen in UI is German / Deutsch:

Image

Path /usr/share/bunkerweb/ui/app/static/img/flags doesn't have this file.

Also I don't know why the geo IP lookup fails because it's a normal german IP if I enter it into db-ip.com directly.

How to reproduce?

Navigate to /reports and refresh a few times if there are IPs with unknown country.

Configuration file(s) (yaml or .env)

Relevant log output

2026/06/30 14:46:31 [error] 491298#491298: *842162 [METRICS] can't get country code mmdb country not loaded while logging request, client: XXX.XXX.XXX.XXX, server: bw.example.com, request: "GET / HTTP/2.0", host: "bw.example.com"
2026/06/30 14:46:32 [warn] 491298#491298: *842162 [ACCESS] IP XXX.XXX.XXX.XXX is banned with reason bad behavior (86286.716s remaining), client: XXX.XXX.XXX.XXX, server: bw.example.com, request: "GET / HTTP/2.0", host: "bw.example.com"
2026/06/30 14:46:32 [error] 491298#491298: *842162 [METRICS] can't get country code mmdb country not loaded while logging request, client: XXX.XXX.XXX.XXX, server: bw.example.com, request: "GET / HTTP/2.0", host: "bw.example.com"
2026/06/30 14:46:32 [warn] 491298#491298: *842162 [ACCESS] IP XXX.XXX.XXX.XXX is banned with reason bad behavior (86286.56s remaining), client: XXX.XXX.XXX.XXX, server: bw.example.com, request: "GET / HTTP/2.0", host: "bw.example.com"
2026/06/30 14:46:32 [error] 491298#491298: *842162 [METRICS] can't get country code mmdb country not loaded while logging request, client: XXX.XXX.XXX.XXX, server: bw.example.com, request: "GET / HTTP/2.0", host: "bw.example.com"
2026/06/30 14:46:59 [warn] 491298#491298: *842690 [ACCESS] IP XXX.XXX.XXX.XXX is banned with reason bad behavior (86259.325s remaining), client: XXX.XXX.XXX.XXX, server: bw.example.com, request: "GET / HTTP/2.0", host: "bw.example.com"
2026/06/30 14:46:59 [error] 491298#491298: *842690 [METRICS] can't get country code mmdb country not loaded while logging request, client: XXX.XXX.XXX.XXX, server: bw.example.com, request: "GET / HTTP/2.0", host: "bw.example.com"
2026/06/30 14:47:00 [warn] 491298#491298: *842690 [ACCESS] IP XXX.XXX.XXX.XXX is banned with reason bad behavior (86258.84s remaining), client: XXX.XXX.XXX.XXX, server: bw.example.com, request: "GET / HTTP/2.0", host: "bw.example.com"
2026/06/30 14:47:00 [error] 491298#491298: *842690 [METRICS] can't get country code mmdb country not loaded while logging request, client: XXX.XXX.XXX.XXX, server: bw.example.com, request: "GET / HTTP/2.0", host: "bw.example.com"

BunkerWeb version

1.6.11

What integration are you using?

Linux

Linux distribution (if applicable)

Ubuntu 24.04.2 LTS

Removed private data

  • I have removed all private data from the configuration file and the logs

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions